bugBattle for Wesnoth - Bugs: bug #20841, Linking error when using CMake

Show feedback again

bug #20841: Linking error when using CMake

Submitted by:  William Linna <dnyarri>
Submitted on:  Fri May 24 10:38:26 2013  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group:  None of the others
Status: FixedPrivacy: Public
Assigned to: Mark de Wever <mordante>Open/Closed: Closed
Release: 1.11.4Operating System: Kubuntu 13.04

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu May 30 16:00:56 2013, comment #4:

fixed in commit 1e766c2246f11e74880fb263f6d8e4233b2b082c

Anonymissimus <anonymissimus>
Project Member
Sun May 26 16:19:49 2013, comment #3:

Assigning to you mordante as the cmake maintainer. Note that this contains a patch apparently solving the problem.

Anonymissimus <anonymissimus>
Project Member
Sun May 26 15:07:41 2013, comment #2:

It seems I didn't use correct method to generate patch. Here's new one.

(file #18010)

William Linna <dnyarri>
Sun May 26 13:41:04 2013, comment #1:

After commit 27571918202b240bb79004e00cb29e5561be02f7 , I was able to get wesnoth compiled with CMake.

I downloaded CMake module for finding VorbisFile and and added VorbisFile to "game_external_libs" -variable. I generated patch for it and attached it here.

(file #18009)

William Linna <dnyarri>
Fri May 24 10:38:26 2013, original submission:

At linking phase I get error that is related to libvorbisfile.(see attachment linking_error)

Here's how I got the error:

git clone git://github.com/wesnoth/wesnoth-old.git wesnoth
sudo apt-get build-dep wesnoth
mkdir build
cd build
cmake ..

At linking phase I get the error.

However, with SCons I have no problems at all.

I also tested with Fedora 18:

git clone git://github.com/wesnoth/wesnoth-old.git wesnoth
yum-builddep wesnoth # As root
mkdir build
cd build
cmake ..

Again, at linking phase I get error, though it's slightly different. (See attachment linking_error_fedora)

William Linna <dnyarri>


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #18000:  linking_error added by dnyarri (514B - application/octet-stream)
file #18001:  linking_error_fedora added by dnyarri (1kB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by shadowmaster (Updated the item)
  • -unavailable- added by anonymissimus (Posted a comment)
  • -unavailable- added by dnyarri (Submitted the item)
  • -unavailable- added by dnyarri

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Jun 27 10:04:34 2013shadowmasterOpen/ClosedOpen=>Closed
    Thu May 30 16:00:56 2013anonymissimusStatusNone=>Fixed
    Sun May 26 16:19:49 2013anonymissimusAssigned toNone=>mordante
    Sun May 26 15:07:41 2013dnyarriAttached File-=>Added 0001-Fixed-VorbisFile-related-linking-error-when-using-CM.patch, #18010
    Sun May 26 13:41:04 2013dnyarriAttached File-=>Added cmake_linking_error.patch, #18009
    Fri May 24 10:38:26 2013dnyarriAttached File-=>Added linking_error, #18000
      Attached File-=>Added linking_error_fedora, #18001
      Carbon-Copy-=>Added dnyarri
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup