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...........
jsbsudhaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jsbsudhaAuthor Commented:
Thank you for your answer.......
0
jkrCommented:
You're most welcome ;o)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.