2012-08-13, 09:30
I get an error when i try to compile TexturePacker for XBMC 32 bit. Seems that something is wrong with the target. Any ideas?
When i set the target to x86_64 everything works fine. I'm on OSX Lion with XCode 4.3.2 and try to build margros master.
TheChief
Code:
make -C tools/TexturePacker/
g++ -D_LINUX -DUSE_LZO_PACKING -DTARGET_DARWIN -I. -I/Users/Shared/xbmc-depends/macosx10.7_i386/include -I/Users/chris/xbmc/lib -I/Users/chris/xbmc/xbmc -I/Users/chris/xbmc/xbmc/linux md5.cpp SDL_anigif.cpp XBTFWriter.cpp XBMCTex.cpp /Users/chris/xbmc/xbmc/guilib/XBTF.cpp -L/Users/Shared/xbmc-depends/macosx10.7_i386/lib -lSDL_image -lSDL -llzo2 -L/Users/chris/xbmc/lib/libsquish -lsquish-native -o TexturePacker
ld: warning: ignoring file /Users/Shared/xbmc-depends/macosx10.7_i386/lib/libSDL_image.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /Users/Shared/xbmc-depends/macosx10.7_i386/lib/libSDL.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /Users/Shared/xbmc-depends/macosx10.7_i386/lib/liblzo2.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
"_SDL_CreateRGBSurface", referenced from:
ReadImage(gifdata*, int, int, int, unsigned char (*) [256], int, int)in ccWzNb8F.o
"_SDL_SetColorKey", referenced from:
_AG_LoadGIF_RW in ccWzNb8F.o
"_SDL_DisplayFormatAlpha", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
_AG_ConvertSurfacesToDisplayFormat in ccWzNb8F.o
"_SDL_DisplayFormat", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
_AG_ConvertSurfacesToDisplayFormat in ccWzNb8F.o
"_SDL_MapRGBA", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
"_SDL_FillRect", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
"_SDL_ConvertSurface", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
createXBTFFrame(SDL_Surface*, CXBTFWriter&, double, unsigned int)in ccXgBFlp.o
"_SDL_UpperBlit", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
"_SDL_FreeSurface", referenced from:
_AG_NormalizeSurfacesToDisplayFormat in ccWzNb8F.o
_AG_ConvertSurfacesToDisplayFormat in ccWzNb8F.o
_AG_FreeSurfaces in ccWzNb8F.o
createXBTFFrame(SDL_Surface*, CXBTFWriter&, double, unsigned int)in ccXgBFlp.o
createBundle(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double, unsigned int, bool)in ccXgBFlp.o
"_SDL_RWFromFile", referenced from:
_AG_LoadGIF in ccWzNb8F.o
"_lzo1x_999_compress", referenced from:
appendContent(CXBTFWriter&, int, int, unsigned char*, unsigned int, unsigned int, bool, unsigned int)in ccXgBFlp.o
"_lzo1x_optimize", referenced from:
appendContent(CXBTFWriter&, int, int, unsigned char*, unsigned int, unsigned int, bool, unsigned int)in ccXgBFlp.o
"_IMG_Load", referenced from:
createBundle(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double, unsigned int, bool)in ccXgBFlp.o
"___lzo_init_v2", referenced from:
_main in ccXgBFlp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [TexturePacker] Error 1
make: *** [tools/TexturePacker/TexturePacker] Error 2
When i set the target to x86_64 everything works fine. I'm on OSX Lion with XCode 4.3.2 and try to build margros master.
TheChief