Building on Fedora 11 x86_64

Building on Fedora 11 x86_64

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
fcoelho
Posts: 1
Joined: 06 Jul 2009, 01:02

Building on Fedora 11 x86_64

Post by fcoelho »

In order to build spring from Fedora 11, I had to modify some link options for it to work.
I built everything from a separate folder, namely, build.
I had to add the link libraries for allegro in the file

Code: Select all

rts/CMakeFiles/spring.dir/link.txt
I just run

Code: Select all

allegro-config --libs
which output

Code: Select all

-L/usr/lib64 -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable
And added the result to the file mentioned above, after <tt>-lILUT</tt>, as it's a dependency for it (or some other DevIL package, can't be bored to really find out).

I don't really know how to create CMake files, but I believe it would be a small patch to correct the above, given the user has the allegro development files in his computer (and specially allegro-config). In systems where this isn't needed it would do no harm after all
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Building on Fedora 11 x86_64

Post by Auswaschbar »

fcoelho wrote:In order to build spring from Fedora 11, I had to modify some link options for it to work.
I built everything from a separate folder, namely, build.
I had to add the link libraries for allegro in the file

Code: Select all

rts/CMakeFiles/spring.dir/link.txt
I just run

Code: Select all

allegro-config --libs
which output

Code: Select all

-L/usr/lib64 -Wl,--export-dynamic -lalleg-4.2.2 -lalleg_unsharable
And added the result to the file mentioned above, after <tt>-lILUT</tt>, as it's a dependency for it (or some other DevIL package, can't be bored to really find out).

I don't really know how to create CMake files, but I believe it would be a small patch to correct the above, given the user has the allegro development files in his computer (and specially allegro-config). In systems where this isn't needed it would do no harm after all
Yes, spring would fail to link when they weren't installed. Also, this is a packaging bug, as if DevIL needs allegro, it should be already linked against it.
Post Reply

Return to “Linux”