error during building sources

Post Reply
Bobby
Posts: 6
Joined: Sat Apr 12, 2014 1:00 pm

error during building sources

Post by Bobby »

Hi,

I download the Bullet 2.82.zip and try to compile with cmake-gui

I have this message :

Code: Select all

glu32opengl32
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Could NOT find GLUT (missing:  GLUT_glut_LIBRARY GLUT_INCLUDE_DIR) 
GLUT NOT FOUND not found, trying to use MINGW glut32
GLUT NOT FOUND
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Could NOT find GLUT (missing:  GLUT_INCLUDE_DIR)
I ignore it, and generate a codeblock projet.
In C::B, i launch the compilation for building the demo but i have a message :

Code: Select all

error: 'GLUquadricObj' was not declared in this scope
error: 'quadObj' was not declared in this scope
error: 'gluNewQuadric' was not declared in this scope
etc...
So I must link Glut ?

My configuration
Mingw 4.8.1
Win7 x64
C::B 13.12
bwelch
Posts: 48
Joined: Thu Dec 12, 2013 4:04 pm

Re: error during building sources

Post by bwelch »

You don't *need* glut to build many of the demos. You probably left the Use Glut box checked when you didn't have it. You can either re-build and leave the box unchecked, or get freeglut.
Bobby
Posts: 6
Joined: Sat Apr 12, 2014 1:00 pm

error during building sources

Post by Bobby »

I decide to use Freeglut. I download source from http://www.transmissionzero.co.uk/compu ... ith-mingw/

But when i link it in Cmake, and re-tape configure the 2 entry disapears :s

Codeblocks doesn't find the glut.h
Attachments
freeglut cmake.jpg
freeglut cmake.jpg (273.48 KiB) Viewed 9356 times
Bobby
Posts: 6
Joined: Sat Apr 12, 2014 1:00 pm

error during building sources

Post by Bobby »

Bump

I follow this tuto http://irrlicht.sourceforge.net/forum/v ... =5&t=49094, but now I have another error.

Code: Select all

fatal error: d3dx11.h: No such file or directory|
I must download Dirextx11 sdk ?
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: error during building sources

Post by Basroil »

Bobby wrote:I must download Dirextx11 sdk ?
Only if you are using the DirectCompute cloth code or want to use Bullet with DX11. If not just disable the DX11 cloth demo and DX11 options in cmake/ your IDE
Bobby
Posts: 6
Joined: Sat Apr 12, 2014 1:00 pm

error during building sources

Post by Bobby »

I delete every thing and I restart.

I uncheck Glut in cmake

Code: Select all

OPENGL FOUND
glu32opengl32
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Configuring done
Generating done
But in Codeblock, I have the same errors...
Bobby
Posts: 6
Joined: Sat Apr 12, 2014 1:00 pm

error during building sources

Post by Bobby »

Bump !

Nobody knows how to link freeglut ?
bwelch
Posts: 48
Joined: Thu Dec 12, 2013 4:04 pm

Re: error during building sources

Post by bwelch »

I installed freeglut a few months ago out of curiosity because I wanted to see the ForkLiftDemo work. I don't need glut with Bullet for my purposes, so I'm afraid I don't remember the details of the setup. But upon examining my file structure, it looks like I have freeglut installed right on my C: drive, separate from Bullet, which leads me to believe that I just pointed Bullet to the location of the freeglut files upon building, like you seem to have done. I'm using Visual Studio rather than Code::Blocks, but that doesn't seem like it would make a difference. I don't remember encountering much trouble getting it to work, though, so it must be something simple. Are you sure the filepaths you fed to Cmake are correct?
Bobby
Posts: 6
Joined: Sat Apr 12, 2014 1:00 pm

error during building sources

Post by Bobby »

Ok, after many try, Cmake give me this message :

Code: Select all

OPENGL FOUND
glu32opengl32
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Found GLUT: C:/Users/Ludovic/Desktop/Doze/Jeu/Source/freeglut/lib/x64/libfreeglut_static.a  
GLUT FOUND
C:/Users/Ludovic/Desktop/Doze/Jeu/Source/freeglut/lib/x64/libfreeglut_static.a
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Configuring done
Generating done
So, I compile the C::B projet but CC1plus crashs.
I installed gcc 4.9, all is allright until this error...

Code: Select all

fatal error: GL/glut.h: No such file or directory
When i click right, I can open the file in Bullet/Glut/GL repertory.
I replace the glut.h by the glut.h from freeglut repertory with the other .h but I have the same error :s
Post Reply