Emuforums.com

Go Back   Emuforums.com > Miscellaneous Emulation > SDLEmu Official Discussion
Register FAQ Members List Calendar Mark Forums Read

Login to remove all ads!
Reply
 
LinkBack Thread Tools Display Modes
Old May 12th, 2004   #1 (permalink)
_Em
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"?
_Em is offline   Reply With Quote
Old May 14th, 2004   #2 (permalink)
Emu author
 
Shamus's Avatar
 
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_
to
Code:
	SYSTYPE="__GCCUNIX__ -D_OSX_"
and see what happens.

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.
Shamus is offline   Reply With Quote
Old May 14th, 2004   #3 (permalink)
Emu author
 
Shamus's Avatar
 
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"
That should come before the lines that say
Code:
echo
echo -n "*** Compiling Virtual Jaguar for "

# Check the OS type...
Let me know how it goes! If it works out, the changes will go into CVS quickly.
Shamus is offline   Reply With Quote
Old May 29th, 2004   #4 (permalink)
Emu author
 
nwagenaar's Avatar
 
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!
nwagenaar is offline   Reply With Quote
Old May 31st, 2004   #5 (permalink)
Emu author
 
Shamus's Avatar
 
Join Date: Jul 2003
Posts: 130
Sent.
Shamus is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 02:15.


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5