Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-platform Linux/OS X Development w/ SDL



It can't find the SDL and OpengGL frameworks.. You need to include "-framework framework" in your LDFLAGS


On Apr 23, 2005, at 7:53 AM, Achal Oza wrote:

<<First few lines of Makefile>>

CC = gcc
CPPFLAGS = -g -Wall -O0
SDLCFLAGS = `sdl-config --cflags`
LDSDLFLAGS = `sdl-config --libs`
LDOPENGLFLAGS = -lGLU -lGL
LDFLAGS = -L${LD_LIBRARY_PATH} ${LDSDLFLAGS} ${LDOPENGLFLAGS}

<<Output of running Makefile>>

$ make
gcc -g -Wall -O0 -c Camera.cpp `sdl-config --cflags`
/bin/sh: line 1: sdl-config: command not found

In file included from Camera.cpp:1:
Camera.h:4:19: GL/gl.h: No such file or directory

In file included from Camera.cpp:1:
Camera.h:19: error: `GLfloat' was not declared in this scope

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >Cross-platform Linux/OS X Development w/ SDL (From: Achal Oza <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.