just tried to build the Emulator but got errors *solved it*

The Uzebox now have a fully functional emulator! Download and discuss it here.
Post Reply
mrpixels0
Posts: 30
Joined: Mon Aug 17, 2009 8:08 am

just tried to build the Emulator but got errors *solved it*

Post by mrpixels0 »

I am running Mac OS X 10.5.6 and have the following tools installed:

Xcode Dev tools

SDL 1.2.x.x installed from the SDL home page downloads area

Emulator source code

used the following command line to attempt a build:

gcc -O3 -DGUI=1 -I /usr/local/include/SDL avr8.cpp -L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -lstdc++ -o uzem

and got the following result from the terminal:

ld: library not found for -lSDLmain
collect2: ld returned 1 exit status

I am a recent covert to the macintosh so I maybe setting up the build environment incorrectly, that and the last programming language I ever used was Turbo Pascal and it builds things a lot diffrently.

thanks for any help you may be able to give me.


Edit: got it working just had to go to library/frameworks/ and rename SDLmain to SDL and it compiled just fine.

Russ
Post Reply