#ifdef GL_ARB_multisample, defined in OpenGL/glext.h
Richard SchreyerOn Dec 10, 2003, at 4:40 AM, Sam Lantinga wrote:
It’s defined in older versions of the code, so I assumed that the
version
would be updated. The API’s used for multisampling are not
available in
MacOS X 10.1 I’d deprecate 10.1, except I don’t have a later
version of
MacOS X.
If it’ll get 10.1 deprecated, I’ll buy you a copy of Panther out of icculus.org’s developer fund.
Well, there’s money in the SDL developer fund. I should probably just
bite
the bullet and buy the next OSX release.
In the meantime, is there any way at compile time to see whether the
APIs
are supported?
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
I don’t know enough about Eclipse to give you step by step instuctions, but
you need to tell it to link in the SDL and SDL_main librarys.
Since you mentioned something about MinGW, I’ll assume Eclipse uses MinGW’s
g++, so you might look through it’s configuration stuff for “-lmingw32”
(possibly without the “-l”) – which most IDE’s for MinGW seem to link in by
default. You’ll need to add “-lsdl” and “-lsdl_main” (again, possibly
without the “-l”'s, and you might experiment with seperating them with
commas, semi-colons, or spaces).
that might help, some friend told me to add -lsdl to the compiling
parameters.
i ll have to find out how to do that in managed make files within
eclipse, or i have to create a nonmanaged project,
what would an example make file look like (if comments in make files are
possible, short comments would be great so that i actually understand
what i ll be doing in future)?–
regards
ionas
here, I attached an example makefile that works for me.
i use msys/mingw like you do, i hope this helps (:> ----- Original Message -----
From: mail@jonas-hartmann.com (Jonas Hartmann)
To:
Sent: Sunday, December 07, 2003 6:20 AM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie
John Silicon (2003-12-06 10:39):
I don’t know enough about Eclipse to give you step by step instuctions,
but
you need to tell it to link in the SDL and SDL_main librarys.
Since you mentioned something about MinGW, I’ll assume Eclipse uses
MinGW’s
g++, so you might look through it’s configuration stuff for “-lmingw32”
(possibly without the “-l”) – which most IDE’s for MinGW seem to link
in by
default. You’ll need to add “-lsdl” and “-lsdl_main” (again, possibly
without the “-l”'s, and you might experiment with seperating them with
commas, semi-colons, or spaces).
that might help, some friend told me to add -lsdl to the compiling
parameters.
i ll have to find out how to do that in managed make files within
eclipse, or i have to create a nonmanaged project,
what would an example make file look like (if comments in make files are
possible, short comments would be great so that i actually understand
what i ll be doing in future)?
here, I attached an example makefile that works for me.
i use msys/mingw like you do, i hope this helps (:
thanks for your help!
it help a bit, still i get an error;
first of all i had to change the make file and add all and clean
sections. (without those sections it didnt run at all); further i added
a .exe to first: main.o because else it didnt find the target.
this is the makefile:---------------------
SDL_CFLAGS := $(shell sdl-config --cflags)
SDL_LDFLAGS := $(shell sdl-config --libs)
The error happens because when you compile main.cpp, it doesn’t have the
correct #define for “main”=“SDL_main” – the CFLAGS should contain this, and
it looks like it does from the output of make. Try adding a ${SDL_CFLAGS}
to the main.cpp-compile line, so it looks like this:
g++ -c -o main.o main.cpp ${SDL_CFLAGS}
Good luck
Silicon> ----- Original Message -----
From: jonashartmann@gmx.de (Jonas Hartmann)
To:
Sent: Sunday, December 14, 2003 10:00 AM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie
Alan Wolfe (2003-12-13 10:03):
here, I attached an example makefile that works for me.
i use msys/mingw like you do, i hope this helps (:
thanks for your help!
it help a bit, still i get an error;
first of all i had to change the make file and add all and clean
sections. (without those sections it didnt run at all); further i added
a .exe to first: main.o because else it didnt find the target.
In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.
make is not run out of MSYS but out of Eclipse,
tomorrow i ll try running make out of msys (directly via command line)
maybe then it works fine.
well this is probly obvious but the reason you get these errors:
rm: cannot remove main.o': No such file or directory rm: cannot removefirst.exe’: No such file or directory
is because the files arent there yet.
did you know you can just do make all or just make?
whats the -k doing in your make statement? maybe im a newb but not sure what
that does (:> ----- Original Message -----
From: jonashartmann@gmx.de (Jonas Hartmann)
To:
Sent: Sunday, December 14, 2003 9:00 AM
Subject: Re: [SDL] Eclipse/MinGW/MSys/SDL Newbie
Alan Wolfe (2003-12-13 10:03):
here, I attached an example makefile that works for me.
i use msys/mingw like you do, i hope this helps (:
thanks for your help!
it help a bit, still i get an error;
first of all i had to change the make file and add all and clean
sections. (without those sections it didnt run at all); further i added
a .exe to first: main.o because else it didnt find the target.
In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.
make is not run out of MSYS but out of Eclipse,
tomorrow i ll try running make out of msys (directly via command line)
maybe then it works fine.
In function console_main': /home/hercules/release/SDL-1.2.6/src/main/SDL_main.c:251: undefined reference toSDL_main’
make: *** [first.exe] Error 1
make: Target `all’ not remade because of errors.
Just wondering if there was any word as to the progress of this?
It’d be nice having this feature restored again.
Thanks a bunch,
Derek Arndt
/* http://www.derekarndt.comgame development is just my forte
*/On Dec 10, 2003, at 12:13 PM, Richard Schreyer wrote:
#ifdef GL_ARB_multisample, defined in OpenGL/glext.h
Richard Schreyer
On Dec 10, 2003, at 4:40 AM, Sam Lantinga wrote:
It’s defined in older versions of the code, so I assumed that the
version
would be updated. The API’s used for multisampling are not
available in
MacOS X 10.1 I’d deprecate 10.1, except I don’t have a later
version of
MacOS X.
If it’ll get 10.1 deprecated, I’ll buy you a copy of Panther out of icculus.org’s developer fund.
Well, there’s money in the SDL developer fund. I should probably just
bite
the bullet and buy the next OSX release.
In the meantime, is there any way at compile time to see whether the
APIs
are supported?
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Just wondering if there was any word as to the progress of this?
We currently have no way at compile time to detect whether or not the
required API is available. Until we find a way, or until we drop MacOS X
10.1 support, this will be disabled by default.
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
What about in this message from Richard dated back in December 2003?
Am I wrong in assuming this is tells us if it’s supported or not?
#ifdef GL_ARB_multisample, defined in OpenGL/glext.h
Richard SchreyerOn Dec 10, 2003, at 4:40 AM, Sam Lantinga wrote:
It’s defined in older versions of the code, so I assumed that the
version
would be updated. The API’s used for multisampling are not
available in
MacOS X 10.1 I’d deprecate 10.1, except I don’t have a later
version of
MacOS X.
If it’ll get 10.1 deprecated, I’ll buy you a copy of Panther out of icculus.org’s developer fund.
Well, there’s money in the SDL developer fund. I should probably just
bite
the bullet and buy the next OSX release.
In the meantime, is there any way at compile time to see whether the
APIs
are supported?
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment