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 24 May 2013 10:38:26 AM UTC  
 
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 30 May 2013 04:00:56 PM UTC, comment #4:

fixed in commit 1e766c2246f11e74880fb263f6d8e4233b2b082c

Anonymissimus <anonymissimus>
Project Member
Sun 26 May 2013 04:19:49 PM UTC, 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 26 May 2013 03:07:41 PM UTC, comment #2:

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

(file #18010)

William Linna <dnyarri>
Sun 26 May 2013 01:41:04 PM UTC, 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 24 May 2013 10:38:26 AM UTC, 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 ..
make

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 ..
make

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):
   
   
Comment:
   

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 27 Jun 2013 10:04:34 AM UTCshadowmasterOpen/ClosedOpen=>Closed
    Thu 30 May 2013 04:00:56 PM UTCanonymissimusStatusNone=>Fixed
    Sun 26 May 2013 04:19:49 PM UTCanonymissimusAssigned toNone=>mordante
    Sun 26 May 2013 03:07:41 PM UTCdnyarriAttached File-=>Added 0001-Fixed-VorbisFile-related-linking-error-when-using-CM.patch, #18010
    Sun 26 May 2013 01:41:04 PM UTCdnyarriAttached File-=>Added cmake_linking_error.patch, #18009
    Fri 24 May 2013 10:38:26 AM UTCdnyarriAttached 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