• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1223
  • Last Modified:

GLUT Libraries c++ opengl

I have done a c++ opengl program by installing  GLUT libraries and GLE libraries in my  computer , If I want to run the same  application n program in some other computer where the libraries are not installed... Which is the better way to pack the libraries so that the application runs in all computers where libraries are not installed...........
0
jsbsudha
Asked:
jsbsudha
  • 9
  • 6
  • 4
1 Solution
 
Infinity08Commented:
When using DLL's, just package the DLL's with the program. When the OpenGL and GLUT libraries are linked in statically, there's no problem.
0
 
jsbsudhaAuthor Commented:
I installed DLL files , LIB files and header files to use  in the program...Tell me the good way to pack all or the one that is necessary and how to do
0
 
Infinity08Commented:
Again, it depends how you linked your program against the OpenGL libraries. Did you do that statically or dynamically ?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jsbsudhaAuthor Commented:
I think statically
any way I have no proper idea  about what is statically or dynamically...please explain me........

0
 
Infinity08Commented:
If the OpenGL libraries are linked in statically, then you don't have to provide the libraries - everything is in the executable.
If the OpenGL libraries are linked in dynamically, then you have to provide the DLL's for the executable to run.

Can you show your linker settings ?
0
 
jsbsudhaAuthor Commented:
u can see  my settings
pic1.bmp
0
 
jkrCommented:
You can use the Dependency Walker (www.dependencywalker.com) to find out which DLLs are required to run your app. See also http://www.cs.csustan.edu/%7ersc/SDSU/GLUTinstall.html - basically, you will need

- glut.dll
- glut32.dll

For your convenience, you will find the whole package at http://www.xmission.com/~nate/glut.html (or http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip respectively)
0
 
Infinity08Commented:
Everything seems to be properly linked statically, so there's no need to transfer anything else than the executable.

Give it a try ... Just transfer the executable to another machine, and run it.
0
 
jsbsudhaAuthor Commented:
fatal error C1083: Datei (Include) kann nicht geöffnet werden: "GL\glut.h": No such file or directory
0
 
jkrCommented:
Um, Where does your GLUT installation live? Make sure the path is given in the Project Settings. Click on "Project", "Properties", "Configuration Properties", "C/C++", "General". The directory should be listed under "Additional Include Directories", add it there if not.
0
 
jsbsudhaAuthor Commented:
Additional include Directories  is blank .... so Do I have to add the path of the Directory where header files are there in my computer?  all the Header files are in one GL folder .....

 
0
 
jkrCommented:
Well, add the directory where 'GL' is in, that should be enough.
0
 
jsbsudhaAuthor Commented:
ok I will try that and inform you
0
 
jsbsudhaAuthor Commented:
jkr
I  have done what you told and try to open that application tomorrow in my office computer and  then accept your solution.... Mean while I have another doubt in GLUT opengl with rotate function......
I have drawn some objects in the opengl window and I want to rotate  the objects  without rotating the axis.........
glrotatef(90,1,0,0)
glutpostredisplay();

if I  follow the above statements   axis is also rotating.........

can u give me a solution........
0
 
jkrCommented:
Have you tried to use 'glPushMatrix()' and 'glPopMatrix()' to store/restore the coordinate system for that? (found that on http://developer.3dlabs.com/documents/GLmanpages/glrotate.htm)
0
 
jsbsudhaAuthor Commented:
I have not used pushmatrix andn popmatrix....... I will read your article and  give  you message... meanwhile I tried to  run the application in my office computer now it asks for gled.lib.... where I have used gle.h in my program  and installed gled.lib  in my computer
0
 
jkrCommented:
As in you other question - you need to add it to your project also, just using the header file is not enough. Add 'gled.lib' (presumably the debug version) to your project using either

#pragma comment(lib,"gled.lib")

or go to "Project", "Add Existing Item", change teh extension to "*.lib", navigate to gled.lib and select it
0
 
jsbsudhaAuthor Commented:
Thank you for your answer.......
0
 
jkrCommented:
You're most welcome ;o)
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 9
  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now