mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Guichan under xCode #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I want to compile the tutorial 
http://guichan.sourceforge.net/wiki/index.php/SDL_Hello_World_tutorial 
on my mac using xCode. I added the Guichan include path, it finds every 
header file. Those are located here: /usr/local/include
2. When I press the compile & link button from xCode it returns those 
errors: http://codepad.org/cypaoczM

What is the expected behaviour? What happens instead?
Actually I just want the program to compile and link, instead I get those 
error messages.

What version of the product are you using? On what operating system? 
Which back-end (SDL/Allegro/OpenGL/other)? 
I use SDL and Guichan 0.8.0 which became installed via macports.

Please provide any additional information below.
My system is Mac OS 10.5 on a MacBook, late 2008.

Original issue reported on code.google.com by littlega...@web.de on 19 Dec 2009 at 10:08

GoogleCodeExporter commented 9 years ago
You have normal link errors. You have to link with both libguichan and 
libguichan_sdl properly, or simply include the Guichan source into your 
project. I 
don't own a Mac and I have never used xCode, so I can't help you with how you 
should 
set up your project.

Original comment by olof.nae...@gmail.com on 20 Dec 2009 at 9:47

GoogleCodeExporter commented 9 years ago
Many thanks, it compiles and links fine now. But now a new problem appears: 
I run the application and the debugger returns this messages:
dyld: lazy symbol binding failed: Symbol not found: _IMG_Load
  Referenced from: /usr/local/lib/libguichan_sdl-0.8.0.dylib
  Expected in: flat namespace

dyld: Symbol not found: _IMG_Load
  Referenced from: /usr/local/lib/libguichan_sdl-0.8.0.dylib
  Expected in: flat namespace

I hope that you can help me.

Original comment by littlega...@web.de on 20 Dec 2009 at 10:16

GoogleCodeExporter commented 9 years ago
You also need to link with the SDL_image library.

Original comment by mrlacha...@gmail.com on 20 Dec 2009 at 4:38

GoogleCodeExporter commented 9 years ago
Works fuine now, thanks for your help.

Original comment by littlega...@web.de on 21 Dec 2009 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 21 Dec 2009 at 12:10