histoire que ça se retrouve indexé dans les moteurs de recherche je vais continuer en anglais...
Progress so far:
I've been able to have configure pass the GLEW tests (without cheating), it requires to change the compilation lines so that the glut window was first opened. It won't work unless done inside an xterm under X11.
Then I had some troubles with OpenAL, this one was pretty simple. It's a base framework, and the path is not the standard one. I just had to change the includes from AL/al.h to OpenAL/al.h and replace the link configuration from -lopenal to "-framework OpenAL".
I'm currently installing ALUT which is missing in osx, but I haven't finished yet because compilation fails by default. This is next thing I'm gonna solve, but it's bed time for now. To be continued...
this is a diff to the default configure, it also integrates the modifications done by Carnaby
Code:
95c96
< wget -O raydium/ode.tar.gz http://freeway.raydium.org/data/stable_mirror
s/ode.tar.gz
---
> #wget -O raydium/ode.tar.gz http://freeway.raydium.org/data/stable_mirro
rs/ode.tar.gz
101c102,103
< tar xzf ode.tar.gz
---
> #tar xzf ode.tar.gz
> #tar xzf ode.zip
283c285
< test_build "OpenGL" "$file" "-L/usr/X11R6/lib/ -lGL"
---
> test_build "OpenGL" "$file" "-L/usr/X11R6/lib/ -I/usr/X11R6/include/ -lGL" #
macos fix
290c292
< test_build "GLU" "$file" "-L/usr/X11R6/lib/ -lGL -lGLU"
---
> test_build "GLU" "$file" "-L/usr/X11R6/lib/ -L/usr/X11R6/include/ -I/usr/X11R6
/include/ -lGL -lGLU" #macos fix
322c324
< test_build "GL/GLU hardware support" "$file" "-L/usr/X11R6/lib/ -lGL -lGLU
"
---
> test_build "GL/GLU hardware support" "$file" "-L/usr/X11R6/lib/ -I/usr/X11
R6/include/ -lGL -lGLU -lX11 -bind_at_load" #macos fix
331,334c333,340
< #include <GL/gl.h>
< #include <GL/glu.h>
< int main(void) { glewInit(); return 0; }'
< test_build "GLEW" "$file" "-L/usr/X11R6/lib/ -lGL -lGLU -lGLEW"
---
> #include <GL/glut.h>
> int main(int argc, char** argv) { glutInit(&argc, argv);
> glutCreateWindow("window");
> GLenum err = glewInit();
>
> return 0;
> }'
> test_build "GLEW" "$file" "-L/usr/X11R6/lib/ -I/usr/X11R6/include/ -L/opt/loca
l/lib/ -I/opt/local/include/ -lGLUT -lGLEW" #macos fix
340,342c346,347
< #include <AL/al.h>
< #include <AL/alc.h>
< #include <AL/alut.h>
---
> #include <OpenAL/al.h>
> #include <OpenAL/alc.h>
356c361
< test_build "OpenAL" "$file" "-lopenal"
---
> test_build "OpenAL" "$file" "-framework OpenAL"
361,363c366,368
< #include <AL/al.h>
< #include <AL/alc.h>
< #include <AL/alut.h>
---
> #include <OpenAL/al.h>
> #include <OpenAL/alc.h>
> //#include <AL/alut.h>
380c385
< test_build "OpenAL 1.1 and ALUT" "$file" "-lopenal -lalut"
---
> test_build "OpenAL 1.1 and ALUT" "$file" "-framework OpenAL"