first, HI
I got the git version today, I compil, install. Then I tried to run a sample, but it failed. I give you all commands I used and all outputs I got :
Code:
[user@motorhead gits]$ git clone https://github.com/horde3d/Horde3D
Clonage dans 'Horde3D'
remote: Counting objects: 621, done.
remote: Compressing objects: 100% (396/396), done.
remote: Total 621 (delta 231), reused 586 (delta 202)
Receiving objects: 100% (621/621), 6.60 MiB | 5.70 MiB/s, done.
Resolving deltas: 100% (231/231), done.
Checking connectivity... done
[user@motorhead gits]$ cd Horde3D/
[user@motorhead Horde3D]$ cmake .
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for strncpy_s
-- Looking for strncpy_s - not found
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found OpenGL: /usr/lib/libGL.so
-- Looking for glXGetProcAddressARB
-- Looking for glXGetProcAddressARB - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Projects/gits/Horde3D
[user@motorhead Horde3D]$ make
Scanning dependencies of target Horde3DTerrain
[ 1%] Building CXX object Extensions/Terrain/Source/CMakeFiles/Horde3DTerrain.dir/extension.o
[ 3%] Building CXX object Extensions/Terrain/Source/CMakeFiles/Horde3DTerrain.dir/terrain.o
Linking CXX static library libHorde3DTerrain.a
[ 3%] Built target Horde3DTerrain
Scanning dependencies of target glfw
[ 5%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/enable.o
[ 6%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/fullscreen.o
[ 8%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/glext.o
[ 10%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/image.o
[ 11%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/init.o
[ 13%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/input.o
[ 15%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/joystick.o
[ 16%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/stream.o
[ 18%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/tga.o
[ 20%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/thread.o
[ 22%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/time.o
[ 23%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/window.o
[ 25%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_enable.o
[ 27%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_fullscreen.o
[ 28%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_glext.o
[ 30%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_init.o
[ 32%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_joystick.o
[ 33%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_keysym2unicode.o
[ 35%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_thread.o
[ 37%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_time.o
[ 38%] Building C object Horde3D/Samples/glfw/CMakeFiles/glfw.dir/lib/x11/x11_window.o
/home/user/Projects/gits/Horde3D/Horde3D/Samples/glfw/lib/x11/x11_window.c: In function ‘translateKey’:
/home/user/Projects/gits/Horde3D/Horde3D/Samples/glfw/lib/x11/x11_window.c:227:5: attention : ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
key = XKeycodeToKeysym( _glfwLibrary.display, keycode, 1 );
^
/home/user/Projects/gits/Horde3D/Horde3D/Samples/glfw/lib/x11/x11_window.c:249:5: attention : ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
key = XKeycodeToKeysym( _glfwLibrary.display, keycode, 0 );
^
Linking C static library libglfw.a
[ 38%] Built target glfw
Scanning dependencies of target Horde3D
[ 40%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egAnimatables.o
[ 42%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egAnimation.o
[ 44%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egCamera.o
[ 45%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egCom.o
[ 47%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egExtensions.o
[ 49%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egGeometry.o
[ 50%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egLight.o
[ 52%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egMain.o
[ 54%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egMaterial.o
[ 55%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egModel.o
[ 57%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egModules.o
[ 59%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egParticle.o
[ 61%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egPipeline.o
[ 62%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egPrimitives.o
[ 64%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egRendererBase.o
[ 66%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egRenderer.o
[ 67%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egResource.o
[ 69%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egScene.o
[ 71%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egSceneGraphRes.o
[ 72%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egShader.o
[ 74%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/egTexture.o
[ 76%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/utImage.o
[ 77%] Building CXX object Horde3D/Source/Horde3DEngine/CMakeFiles/Horde3D.dir/utOpenGL.o
Linking CXX shared library libHorde3D.so
[ 77%] Built target Horde3D
Scanning dependencies of target Horde3DUtils
[ 79%] Building CXX object Horde3D/Source/Horde3DUtils/CMakeFiles/Horde3DUtils.dir/main.o
Linking CXX shared library libHorde3DUtils.so
[ 79%] Built target Horde3DUtils
Scanning dependencies of target Terrain
[ 81%] Building CXX object Extensions/Terrain/Sample/CMakeFiles/Terrain.dir/app.o
[ 83%] Building CXX object Extensions/Terrain/Sample/CMakeFiles/Terrain.dir/main.o
Linking CXX executable Terrain
[ 83%] Built target Terrain
Scanning dependencies of target ColladaConv
[ 84%] Building CXX object Horde3D/Source/ColladaConverter/CMakeFiles/ColladaConv.dir/converter.o
[ 86%] Building CXX object Horde3D/Source/ColladaConverter/CMakeFiles/ColladaConv.dir/daeMain.o
[ 88%] Building CXX object Horde3D/Source/ColladaConverter/CMakeFiles/ColladaConv.dir/main.o
[ 89%] Building CXX object Horde3D/Source/ColladaConverter/CMakeFiles/ColladaConv.dir/optimizer.o
[ 91%] Building CXX object Horde3D/Source/ColladaConverter/CMakeFiles/ColladaConv.dir/utils.o
Linking CXX executable ../../Binaries/Linux/ColladaConv
[ 91%] Built target ColladaConv
Scanning dependencies of target Chicago
[ 93%] Building CXX object Horde3D/Samples/Chicago/CMakeFiles/Chicago.dir/app.o
[ 94%] Building CXX object Horde3D/Samples/Chicago/CMakeFiles/Chicago.dir/crowd.o
[ 96%] Building CXX object Horde3D/Samples/Chicago/CMakeFiles/Chicago.dir/main.o
Linking CXX executable ../../Binaries/Linux/Chicago
[ 96%] Built target Chicago
Scanning dependencies of target Knight
[ 98%] Building CXX object Horde3D/Samples/Knight/CMakeFiles/Knight.dir/app.o
[100%] Building CXX object Horde3D/Samples/Knight/CMakeFiles/Knight.dir/main.o
Linking CXX executable ../../Binaries/Linux/Knight
[100%] Built target Knight
[user@motorhead Horde3D]$ su
Mot de passe : AngelaMerkelIsSoHot
[root@motorhead Horde3D]# make install
[ 3%] Built target Horde3DTerrain
[ 38%] Built target glfw
[ 77%] Built target Horde3D
[ 79%] Built target Horde3DUtils
[ 83%] Built target Terrain
[ 91%] Built target ColladaConv
[ 96%] Built target Chicago
[100%] Built target Knight
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/include/horde3d/Horde3DTerrain.h
-- Installing: /usr/local/lib/libHorde3D.so
-- Installing: /usr/local/lib/libHorde3DUtils.so
-- Removed runtime path from "/usr/local/lib/libHorde3DUtils.so"
-- Installing: /usr/local/include/horde3d/Horde3D.h
-- Installing: /usr/local/include/horde3d/Horde3DUtils.h
[root@motorhead Horde3D]# exit
[user@motorhead Horde3D]$ cd Horde3D/Binaries/Linux/
[user@motorhead Linux]$ ls
Chicago ColladaConv Knight
[user@motorhead Linux]$ ./Chicago
Unable to initalize engine
Make sure you have an OpenGL 2.0 compatible graphics card[user@motorhead Linux]$
[user@motorhead Linux]$ format c:\
take a drink my friend, this is not windows!
n.b. : adding a "\n" at the end of "Make sure you have an OpenGL 2.0 compatible graphics card" make it more sexy!
I also tried to compil some "small pieces of code" see at different places,
from here :
http://www.horde3d.org/wiki/index.php5? ... ng_Horde3D when I compil :
Code:
#include"glfw.h"
#include"Horde3D.h"
#include"Horde3DUtils.h"
int main()
{
glfwInit();
if(!glfwOpenWindow(640,480,8,8,8,8,24,8,GLFW_WINDOW))
{
glfwTerminate();
return 1;
}
h3dInit();
h3dRelease();
glfwCloseWindow();
glfwTerminate();
}
I got several troubles,
- first the include are with
"" instead of
<> I think...
- second I don't have
glfw.h installed on my system, I think when I do the make install, it doesn't install files related to glfw. Even if I set the path to
glfw.h to the one downloaded by git
(...)/Horde3D/Horde3D/Samples/glfw/glfw.h I got a link error :
main.cc:(.text+0x70): référence indéfinie vers « h3dutLoadResource (in english
undefined reference...)
- third : still on that page you gave the line command to compil :
Code:
gcc -o app main.cpp -lGL -lHorde3D
sound odd, because gcc is for C and g++ is for C++...
- fourth,
<Horde3D.h> and
<Horde3DUtils.h> in the way to be included properly need
<horde3d/Horde3D.h> and
<horde3d/Horde3DUtils.h>I wasn't able to compile the code from
http://www.horde3d.org/docs/html/_tutorial.html , we should first focus on the code above.
the computer I'm using is old, very old... the video card is an XPRESS 220M, but (!) Opengl is working...
« nothing epic in short post »