|
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2004
Posts: 23
|
Compiling CVS on OS X
Well, I figured I'd go another round with a "newbie compile" of virtual jaguar on OS X (only following the instructions, not tweaking the script, etc.) and see what I got:
Here's the result: ./compile *** Compiling Virtual Jaguar for Mac OS X./compile: line 35: -D_OSX_: command not found ... gcc -Wall -Wno-switch -Wno-non-virtual-dtor -O2 -D -fomit-frame-pointer `sdl-config --cflags` -I. -Isrc -Isrc/include -I/usr/local/include -I/usr/include -c src/anajoy.cpp -o obj/anajoy.o /bin/sh: line 1: sdl-config: command not found <command line>:6:1: macro names must be identifiers make: *** [obj/anajoy.o] Error 1 --as you can see, I did a few no-no's like not compiling the latest sdl first, just to see how it would handle things. Maybe we should have it trap those errors and return an informational message "Please install the SDL Library version xxx or later, found at www.xxx.com before running this script"? |
|
|
|
|
|
#2 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2003
Posts: 130
|
I'm glad to see that the new compile script is working on OS X (seeing as how I don't have access to it at the moment). It would be great if you could help out in ironing out the bugs.
![]() For the first error message, try changing the "compile" script line that says Code:
SYSTYPE=__GCCUNIX__ -D_OSX_ Code:
SYSTYPE="__GCCUNIX__ -D_OSX_" As far as needing to compile SDL, I don't think that's necessary--I believe you only have to install the development libraries (Adam? care to weigh in on this?). But you're right, there should be a check in the script. I'll post something shortly.
|
|
|
|
|
|
#3 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jul 2003
Posts: 130
|
OK, here's the check for SDL:
Code:
echo echo -n "*** Checking compilation environment... " # Check for SDL if [ "`which sdl-config`" = "" ]; then echo echo echo "It seems that you don't have the SDL development libraries installed. If you" echo "have installed them, make sure that the sdl-config file is somewhere in your" echo "path and is executable." exit 1 fi echo -n "OK" Code:
echo echo -n "*** Compiling Virtual Jaguar for " # Check the OS type...
|
|
|
|
|
|
#4 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2001
Location: The Netherlands
Posts: 114
|
Shamus,
could you please e-mail me (personal xs4all address) with the status of the SDLemu related projects? Since I was gone for a couple of months (no ****) I lost track of you So e-mail me please
__________________
Better a penguin that rox than Windows that often locks! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|