kytulendu / wowmodelviewer

Automatically exported from code.google.com/p/wowmodelviewer
1 stars 0 forks source link

Linux Compilation issue (64-bit) #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Trying to run make

What is the expected output? What do you see instead?
Expected to see that the linking and compilation of wowmodelviewer would 
complete. This did not happen.

What version of the product are you using? On what operating system?
Running this on Kubuntu 11.10 64-bit

Appears to mostly be OpenGL/Glew related, but I have all listed dependencies, 
so I'm not sure what's going on.
------------------------------------------------------------------------
~/wowmodelviewer/src$ make
[ 11%] Built target cximage
[ 84%] Built target storm
Linking CXX executable wowmodelviewer
CMakeFiles/wowmodelviewer.dir/video.cpp.o: In function 
`VideoSettings::ResizeGLScene(int, int)':
/home/skrulladams/wowmodelviewer/src/video.cpp:684: undefined reference to 
`gluPerspective'
CMakeFiles/wowmodelviewer.dir/modelviewer.cpp.o: In function 
`ModelViewer::OnAbout(wxCommandEvent&)':
/home/skrulladams/wowmodelviewer/src/modelviewer.cpp:2365: undefined reference 
to `wxAboutBox(wxAboutDialogInfo const&)'
CMakeFiles/wowmodelviewer.dir/app.cpp.o: In function 
`WowModelViewApp::OnInit()':
/home/skrulladams/wowmodelviewer/src/app.cpp:76: undefined reference to 
`wxSplashScreen::wxSplashScreen(wxBitmap const&, long, int, wxWindow*, int, 
wxPoint const&, wxSize const&, long)'
CMakeFiles/wowmodelviewer.dir/maptile.cpp.o: In function `MapTile::draw()':
/home/skrulladams/wowmodelviewer/src/maptile.cpp:812: undefined reference to 
`gluLookAt'
CMakeFiles/wowmodelviewer.dir/model.cpp.o: In function 
`ModelCamera::setup(unsigned long)':
/home/skrulladams/wowmodelviewer/src/model.cpp:1987: undefined reference to 
`gluPerspective'
/home/skrulladams/wowmodelviewer/src/model.cpp:1996: undefined reference to 
`gluLookAt'
CMakeFiles/wowmodelviewer.dir/camera.cpp.o: In function `CCamera::Setup()':
/home/skrulladams/wowmodelviewer/src/camera.cpp:30: undefined reference to 
`gluLookAt'
CMakeFiles/wowmodelviewer.dir/modelcanvas.cpp.o: In function 
`ModelCanvas::RenderLight(Light*)':
/home/skrulladams/wowmodelviewer/src/modelcanvas.cpp:840: undefined reference 
to `gluNewQuadric'
/home/skrulladams/wowmodelviewer/src/modelcanvas.cpp:841: undefined reference 
to `gluQuadricNormals'
/home/skrulladams/wowmodelviewer/src/modelcanvas.cpp:858: undefined reference 
to `gluSphere'
CMakeFiles/wowmodelviewer.dir/modelcanvas.cpp.o: In function 
`ModelCanvas::RenderBackground()':
/home/skrulladams/wowmodelviewer/src/modelcanvas.cpp:973: undefined reference 
to `gluOrtho2D'
collect2: ld returned 1 exit status
make[2]: *** [wowmodelviewer] Error 1
make[1]: *** [CMakeFiles/wowmodelviewer.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by skrullad...@yahoo.com on 24 Oct 2011 at 7:34

GoogleCodeExporter commented 9 years ago
Hi,

on linux, you can use freeglut. Depending on your linux distribution (debian 
like, red hat like, etc.), already build packages should be available.

Original comment by jeromn...@gmail.com on 24 Oct 2011 at 11:34

GoogleCodeExporter commented 9 years ago
Already had freeglut and the freeglut-dev. If no one figures it out, I'll try 
to play with it some and retry the compile. 

I've had semi-decent luck running the 32 bit version through WINE, but I really 
would love to be able to run this natively.

Original comment by skrullad...@yahoo.com on 24 Oct 2011 at 11:54

GoogleCodeExporter commented 9 years ago
Your problem is clearly a linking one, so headers for free glut have been found 
on your system, but not libraries (I don't know your skills in developement, 
that's why I try basics things). Is your LD_LIBRARY_PATH ok ( = contains your 
freeglut libs path) ? Can you post Makefile (from cmake generation here), in 
order to see if freeglut is searched in a particular folder ?

Original comment by jeromn...@gmail.com on 24 Oct 2011 at 4:24

GoogleCodeExporter commented 9 years ago
After having a few check on CMakeLists.txt, it seems that glut isn't included 
directly. On windows platform, it is probably because glew include it, but in 
your case, you modified CMakeLists.txt file (remove find_package(GLEW) ) in 
order to successfully pass cmake generation step ?
I can't test anything for the moment, I am at work at this moment, and haven't 
a WMV dev environement available...

Original comment by jeromn...@gmail.com on 24 Oct 2011 at 4:28

GoogleCodeExporter commented 9 years ago
Oh my god, I am really tired... Glew isn't windows specific... so there is 
nothing to do to have a successfull cmake process on linux. Sorry.
Can you post your Makefile, in order to see where glut is supposed to be ?

Original comment by jeromn...@gmail.com on 24 Oct 2011 at 4:36

GoogleCodeExporter commented 9 years ago
You can also try a "make VERBOSE=1" instead of giving us your Makefile. It 
should help to understand what is done on your computer, and why it fails.

Original comment by jeromn...@gmail.com on 25 Oct 2011 at 9:31

GoogleCodeExporter commented 9 years ago
I am currently switching build process to cmake / gcc, on all platforms. Done 
under windows, next step is Linux. 
You can follow project here :
http://apoklipse.org:8080/browse/WMV#selectedTab=com.atlassian.jira.plugin.syste
m.project%3Aroadmap-panel

Original comment by jeromn...@gmail.com on 22 Nov 2011 at 3:53