marvo
01-20-2008, 06:12 PM
ok so im a windows user, i dont really know what symlinks are.. (like shortcuts from what i understand?) well anyway i can compile apps with winchain thats not a problem, but now i want to start using sdl. so i built sdl and placed the libs in the right place (still not the problem). so now i want to build VirtualBall's port of the sand game because it seems simple enough.

in this thread: http://www.ipodtouchfans.com/forums/showthread.php?t=12329&page=5 , jungzandvliet gets help from Virtualball compiling the sand game. he gets to a point where he gets this error:

Cygwin@zandvliet /home/sand
$ arm-apple-darwin-gcc -fsigned-char ./main.cpp -o sdlsand -I/usr/local/arm-app
le-darwin/include/SDL -framework CoreFoundation -framework UIKit -framework Cor
eGraphics -framework CoreSurface -framework LayerKit -framework GraphicsService
s -L/usr/local/arm-apple-darwin/lib -lSDL -lSDLmain -lobjc -lstdc++
/usr/local/bin/arm-apple-darwin-ld: Undefined symbols:
__Unwind_SjLj_Resume
__Unwind_GetDataRelBase
__Unwind_GetIP
__Unwind_GetLanguageSpecificData
__Unwind_GetRegionStart
__Unwind_GetTextRelBase
__Unwind_SetGR
__Unwind_SetIP
__Unwind_SjLj_RaiseException
__Unwind_SjLj_Resume_or_Rethrow
__Unwind_DeleteException
collect2: ld returned 1 exit status

this is where im at btw

then SkylarEC says:

Go into the iphone-filesystem, or wherever you saved the iphone filesystem, and fix your symlinks.


this is where im confused. if someone could help me out and tell me where in the filesystem i should be looking for these 'symlinks' (shortcuts?) and how to fix them i would appreciate it A LOT.

pinhassi
01-22-2009, 06:57 AM
The problem is with linking libgcc_eh.a
To solve this, use:
LIBFLAGS += -L"/usr/local/arm-apple-darwin/lib"
instead of:
LIBFLAGS += -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib

I created the toolchain env using this tutorial:
http://ansani.it/2008/08/12/build-the-toolchain-for-iphone-20x-on-macosx-105x/

I attached a working application (an example I found on the net) and a makefile that compiles it successfully.


Goodluck,
Asaf Pinhassi

Steaps
01-22-2009, 02:24 PM
The problem is with linking libgcc_eh.a
To solve this, use:
LIBFLAGS += -L"/usr/local/arm-apple-darwin/lib"
instead of:
LIBFLAGS += -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib

I created the toolchain env using this tutorial:
http://ansani.it/2008/08/12/build-the-toolchain-for-iphone-20x-on-macosx-105x/

I attached a working application (an example I found on the net) and a makefile that compiles it successfully.


Goodluck,
Asaf Pinhassi

This thread is a year old, i think he moved on.