Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


HPL wont compile
keen Offline
Junior Member

Posts: 6
Threads: 3
Joined: Aug 2010
Reputation: 0
#1
HPL wont compile

urgg. I'm having a bit of trouble compiling the HPL.

Here's a snippet of the problems. If you need more info, i can post the whole thing.

/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10012: error: ‘Display’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10012: error: ‘dpy’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10012: error: expected primary-expression before ‘int’
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10012: error: expected primary-expression before ‘int’
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10012: error: expected primary-expression before ‘int’
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10012: error: expected primary-expression before ‘void’
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10013: error: ‘PFNGLXQUERYHYPERPIPENETWORKSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10014: error: ‘PFNGLXHYPERPIPECONFIGSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10015: error: ‘PFNGLXQUERYHYPERPIPECONFIGSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10016: error: ‘PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10017: error: ‘PFNGLXBINDHYPERPIPESGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10018: error: ‘PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10019: error: ‘PFNGLXHYPERPIPEATTRIBSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10020: error: ‘PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10055: error: ‘GLboolean’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10056: error: ‘GLint’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/../dependencies/include/GL/GLee.h:10059: error: ‘GLboolean’ does not name a type
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp: In member function ‘virtual void hpl::cGLStateTwoUnits_ATIDiffuse::InitData()’:
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:70: error: ‘pglGenFragmentShadersATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:73: error: ‘pglBindFragmentShaderATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:77: error: ‘pglSampleMapATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:82: error: ‘pglSetFragmentShaderConstantATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:83: error: ‘GL_NONE’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:85: error: ‘pglColorFragmentOp2ATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:88: error: ‘pglAlphaFragmentOp2ATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp: In destructor ‘virtual hpl::cGLStateTwoUnits_ATIDiffuse::~cGLStateTwoUnits_ATIDiffuse()’:
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:101: error: ‘pglDeleteFragmentShaderATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp: In member function ‘virtual void hpl::cGLStateTwoUnits_ATIDiffuse::Bind()’:
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:106: error: ‘glEnable’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:107: error: ‘pglBindFragmentShaderATI’ was not declared in this scope
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp: In member function ‘virtual void hpl::cGLStateTwoUnits_ATIDiffuse::UnBind()’:
/home/andrew/Desktop/source/HPL1Engine/sources/graphics/Material_Fallback02_BaseLight.cpp:112: error: ‘glDisable’ was not declared in this scope
make[2]: *** [CMakeFiles/HPL.dir/sources/graphics/Material_Fallback02_BaseLight.cpp.o] Error 1
make[1]: *** [CMakeFiles/HPL.dir/all] Error 2
make: *** [all] Error 2
andrew@andrew-desktop:~/Desktop/source/HPL1Engine$

I have a sneaking suspicion that it might be the same problem that steviebob had with the GLee.h file. But, I'm not sure. And even more clueless on how to fix it. I tried replacing the GLee.h file and recompiling, but i didnt seem to help.

Any insight would be helpful and appreciated. Smile thanks.
08-07-2010, 11:04 AM
Find
keen Offline
Junior Member

Posts: 6
Threads: 3
Joined: Aug 2010
Reputation: 0
#2
RE: HPL wont compile

haha, nevermind. I figured it out.

I didnt have the sdl stuff installed.

i got it working after installing the following.

sudo aptitude install libsdl1.2-dev libsdl-image1.2-dev libalut-dev libopenal-dev libvorbis-dev libguichan0-dev libglu1-mesa-dev bcp

cool. so it compiled. Smile ...now to compile the rest.....

Quote:[ 43%] Building CXX object CMakeFiles/HPL.dir/sources/sound/SoundEntityData.cpp.o
[ 43%] Building CXX object CMakeFiles/HPL.dir/sources/sound/Sound.cpp.o
[ 44%] Building C object CMakeFiles/HPL.dir/sources/impl/GLee.c.o
Linking CXX static library libHPL.a
[100%] Built target HPL

...so now i have a problem with -lOALWrapper.... it's probably something utterly simple...

andrew@andrew-desktop:~/Desktop/source/PenumbraOverture$ make
[ 79%] Built target HPL
Linking CXX executable overture.bin
/usr/bin/ld: cannot find -lOALWrapper
collect2: ld returned 1 exit status
make[2]: *** [overture.bin] Error 1
make[1]: *** [CMakeFiles/Overture.dir/all] Error 2
make: *** [all] Error 2

EDIT:

okay.. I figured that one out too. I just needed to add a missing parenthesis after ".cpp" in the CMakeList.txt file in the OALWrapper folder. Apparently it wont build without this. I originally put the parentasis at the very end because it told me it was missing one, but that didnt work right...

this is how it looked before

Quote:${CMAKE_CURRENT_SOURCE_DIR}/sources/*.cpp

this is how it looked after.

Quote:${CMAKE_CURRENT_SOURCE_DIR}/sources/*.cpp)
08-07-2010, 07:37 PM
Find




Users browsing this thread: 1 Guest(s)