Page 1 of 1

Building on Fedora 11 x86_64

Posted: 06 Jul 2009, 01:12
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

Re: Building on Fedora 11 x86_64

Posted: 06 Jul 2009, 10:46
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.