Horde3D http://horde3d.org/forums/ |
|
Probleme after compilation http://horde3d.org/forums/viewtopic.php?f=2&t=947 |
Page 1 of 1 |
Author: | GeogeoZ [ 14.09.2009, 21:57 ] |
Post subject: | Probleme after compilation |
Hello. Excuse me, I use an automatic translator. I have a problem concerning SDK beta 4 and ubuntu 9.04 I initially recovered by SVN as explained in the wiki. Then, Cd home/to use/Horde3D/Cmake then, cmake. and finally make. All this master key correctly. But after, do I have to make? I want to be able to compile my project with codeblock and GCC. Thank you. |
Author: | Siavash [ 15.09.2009, 12:25 ] |
Post subject: | Re: Probleme after compilation |
First you should get CMake (gui) and CodeBlocks (use ubuntus add/remove or apt-get) then open the Cmake and select CodeBlocks workspace to generate. After configuring and generating the CodeBlocks workspace, open it with CodeBlocks and compile the Horde3D happily Regards |
Author: | GeogeoZ [ 15.09.2009, 17:47 ] |
Post subject: | Re: Probleme after compilation |
Ok! But what i don't understand, It's after compile Horde 3D. What do i make? Because, if I try to compile a sample code in codeblocks (the project is located on the desktop) I have many errors as "glfw.h" not found etc... |
Author: | Siavash [ 15.09.2009, 18:40 ] |
Post subject: | Re: Probleme after compilation |
Similar problems here with Sabayon Linux, but I didn't have any problems in ubuntu. [ using CodeBlocks 8.02 ] I'm getting these warnings too : [appears in an info box] Code: Can't create object output directory /Horde3D/Dependencies/Source/glfw/ Can't create object output directory /Horde3D/Dependencies/Source/glfw/x11/ Can't create object output directory /Horde3D/Samples/Chicago/ Can't create object output directory /Horde3D/Samples/Knight/ Can't create object output directory /Horde3D/Source/ColladaConverter/ Can't create object output directory /Horde3D/Source/Horde3DEngine/ Can't create object output directory /Horde3D/Source/Horde3DUtils/ Can't create object output directory /Horde3D/Source/Shared/ and I'm getting these errors in the end : Code: /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|68|error: platform.h: No such file or directory| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|125|error: expected ‘)’ before ‘*’ token| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|126|error: expected ‘)’ before ‘*’ token| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|138|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_glfwPlatformCreateThread’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|139|error: expected ‘)’ before ‘ID’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|140|error: expected ‘)’ before ‘ID’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|141|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_glfwPlatformGetThreadID’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|142|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_glfwPlatformCreateMutex’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|143|error: expected ‘)’ before ‘mutex’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|144|error: expected ‘)’ before ‘mutex’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|145|error: expected ‘)’ before ‘mutex’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|146|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_glfwPlatformCreateCond’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|147|error: expected ‘)’ before ‘cond’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|148|error: expected ‘)’ before ‘cond’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|149|error: expected ‘)’ before ‘cond’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|150|error: expected ‘)’ before ‘cond’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|191|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|192|error: expected ‘)’ before ‘*’ token| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|193|error: expected ‘)’ before ‘*’ token| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|196|error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/internal.h|207|error: expected declaration specifiers or ‘...’ before ‘GLFWimage’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwEnableMouseCursor’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|46|error: ‘_glfwWin’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|46|error: (Each undeclared identifier is reported only once| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|46|error: for each function it appears in.)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|57|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|72|error: ‘GL_FALSE’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwDisableMouseCursor’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|81|error: ‘_glfwWin’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|94|error: ‘GL_TRUE’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwEnableStickyKeys’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|105|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwDisableStickyKeys’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|112|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|115|error: ‘GLFW_KEY_LAST’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwEnableStickyMouseButtons’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|132|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwDisableStickyMouseButtons’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|139|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|142|error: ‘GLFW_MOUSE_BUTTON_LAST’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwEnableSystemKeys’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|159|error: ‘_glfwWin’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|167|error: ‘GL_FALSE’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwDisableSystemKeys’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|172|error: ‘_glfwWin’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|180|error: ‘GL_TRUE’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwEnableKeyRepeat’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|191|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwDisableKeyRepeat’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|196|error: ‘_glfwInput’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwEnableAutoPollEvents’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|207|error: ‘_glfwWin’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c||In function ‘_glfwDisableAutoPollEvents’:| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|212|error: ‘_glfwWin’ undeclared (first use in this function)| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|225|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’| /Horde3D_SDK_1.0.0_Beta4/Horde3D/Dependencies/Source/glfw/enable.c|263|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’| ||=== Build finished: 44 errors, 0 warnings ===| BTW, it compiles all of binaries and libraries and they are working. |
Author: | GeogeoZ [ 15.09.2009, 20:09 ] |
Post subject: | Re: Probleme after compilation |
When the horde3d is compiled in home/user/Horde3D What i must do in codeblock? Do I transfer a folder into another? Include. etc... ? Thank you. |
Author: | Siavash [ 16.09.2009, 10:01 ] |
Post subject: | Re: Probleme after compilation |
Sorry, I can't understand your problem. If you want to run the compiled demos [compiles along horde3d compilation process] , you should go to the horde3d/bin/linux/ then type this in the terminal to run the demos : "./Chicago" or "./Knight" to run them. If you are going to use Horde3D in your existing project, make sure that you have included all of horde3d bindings and libs + glfw if you are going to use that. |
Author: | GeogeoZ [ 16.09.2009, 20:44 ] |
Post subject: | Re: Probleme after compilation |
yeah I want use horde3d in my project Can you tell me how configure codeblock? With the path of each directory to include etc... ? |
Author: | Orm [ 29.09.2009, 19:49 ] |
Post subject: | Re: Probleme after compilation |
You have to go into the projects makefiles and make sure that they are all pointing to the correct resources. If glfw.h is one of them, then you need to make sure that the compiler knows where to find it, otherwise it will throw those errors back at you. This is why I don't like IDE's. They obscure too much stuff from you so when something goes wrong, you dont know how to fix it. Notepad++ and mingw (or gedit and gcc, if that's the case), are all I ever need. |
Author: | GeogeoZ [ 04.10.2009, 21:02 ] |
Post subject: | Re: Probleme after compilation |
Finally, it's OK! I'm just quite a noob: In codeblock: project=>build options=> -linker setting: Add: Horde3D/Horde3D/Source/Horde3DUtils/libHorde3DUtils.so Horde3D/Horde3D/Source/Horde3DEngine/libHorde3D.so Horde3D/Horde3D/Dependencies/Source/glfw/libglfw.a After that: search directories=> compiler :add: Horde3D/Horde3D/Bindings/C++ and: Horde3D/Horde3D/Dependencies/Include It's cool i can start now! Thanks. |
Author: | Hannofcart [ 07.11.2009, 16:12 ] |
Post subject: | Re: Probleme after compilation |
I'm just starting off with Horde3D and I found this thread useful. I just wanted to add one more heads-up to anyone else starting off like me. While using CodeBlocks in addition to the instructions described in the previous post you will need libxrandr-dev and libpthread-dev linked as well. CodeBlocks usually does this automatically if one uses the GLFW project template. If not, you might need to add it. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |