Bumpy.
On the Mac, 10.5.8, ppc, I cannot find “sdl-config” in the official distribution of SDL.
Specifying -FSDL to the compiler is not enough to let it find the SDL framework.
Code:
Kleiman-ibook:23 michael$ ls /Library/Frameworks/
total 0
0 Adobe AIR.framework/ 0 SDL_ttf.framework/
0 HPDeviceModel.framework/ 0 SFML.framework/
0 HPPml.framework/ 0 WOComponentElements.framework/
0 HPSMART.framework/ 0 WOComponentExamples.framework/
0 HPServicesInterface.framework/ 0 WOExamplesHarness.framework/
0 HPSmartPrint.framework/ 0 WOSessionStoreExample.framework/
0 JavaBusinessLogic.framework/ 0 iMoviePluginAPI.framework/
0 JavaMonitorSupport.framework/ 0 sfml-audio.framework/
0 JavaRealEstate.framework/ 0 sfml-graphics.framework/
0 PetStoreWOModel.framework/ 0 sfml-network.framework/
0 SDL.framework/ 0 sfml-system.framework/
0 SDL_image.framework/ 0 sfml-window.framework/
0 SDL_mixer.framework/ 0 sndfile.framework/
0 SDL_net.framework/
Kleiman-ibook:23 michael$ make
- [UFO] src/client/cl_console.c
In file included from src/client/client.h:32,
from src/client/cl_console.c:30:
src/client/cl_renderer.h:34:17: error: SDL.h: No such file or directory
Code:
Kleiman-ibook:23 michael$ egrep CFLAG Makefile
CFLAGS= -I/opt/local/include -arch i386 -arch ppc
SDL_CFLAGS=-FSDL
Naturally, the <SDL/SDL.h> version works, but apparently that’s a no-no (odd, as lots of packages seem to like being packaged inside a directory). Do I really need to add 5 -I statements for the 5 frameworks for SDL to work?
Also: Should the include statement be
#include "SDL.h"
or
#include <SDL.h>
Somehow, I thought that quotes were for your local project includes and the angle brackets for system includes.------------------------
(placeholder)