[Freeciv-Dev] Re: (PR#11825) os x building
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >
No, I don't think that is it. The linker is only generating lots of
warnings about the two libs - I am not sure how to deal with those
exactly, but I know why it is the case. If you install using fink os
Mac OS X, chances are you will get these double ups. Fink installs only
into paths beginning with /sw.
The actual error is here:
ld: /usr/lib/crt1.o illegal reference to symbol: __objcInit defined in
indirectly referenced dynamic library /usr/lib/libobjc.A.dylib
This is my diagnosis... on os x, you can't just link with SDL_mixer.
You must use -lSDL_mixer -lSDLmain -lSDL -framework Cocoa
if I do:
gcc -o conftest conftest.c `sdl-config --cflags --libs` -lSDL_mixer
The test program compiles without a single error or warning.
So, I'm thinking, shouldn't the configure script be responsible for
calling sdl-config somewhere in the following line:
configure:14467: gcc -no-cpp-precomp -o conftest -Wall -Wpointer-arith
-Wcast-align -Wmissing-prototypes -Wmissing-declarations -O3
-I/sw/include -L/sw/lib conftest.c -lSDL_mixer -lz -liconv >&5
Ruben
On 07/01/2005, at 7:58 AM, Jason Short wrote:
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >
>
> Ruben Zilibowitz wrote:
>> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >
>>
>> I am building freeciv 2 beta 6 on mac os x using gtk+ 2.0. I am having
>> trouble getting it to work with sdl_mixer. Below is the relevant
>> portion of config.log after running the configure script.
>
> The problem appears to be that you have two copies of the iconv library
> installed. SDL mixer already links to one and Freeciv tries to link to
> the other. The two conflict.
>
> -jason
>
>
>
>
- [Freeciv-Dev] Re: (PR#11825) os x building, Jason Short, 2005/01/06
- [Freeciv-Dev] Re: (PR#11825) os x building,
Ruben Zilibowitz <=
- [Freeciv-Dev] Re: (PR#11825) os x building, Jason Short, 2005/01/06
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/06
- [Freeciv-Dev] Re: (PR#11825) os x building, Per I. Mathisen, 2005/01/07
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/07
- [Freeciv-Dev] Re: (PR#11825) os x building, Jason Short, 2005/01/07
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/08
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/08
|
|