Statistics | We have 1675 registered users The newest registered user is dejo123
Our users have posted a total of 30851 messages in 1411 subjects
|
Who is online? | In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests None Most users ever online was 443 on Sun Mar 17, 2013 5:41 pm |
Latest topics | » THIS FORUM IS NOW OBSOLETE by NickTheNick Sat Sep 26, 2015 10:26 pm
» To all the people who come here looking for thrive. by NickTheNick Sat Sep 26, 2015 10:22 pm
» Build Error Code::Blocks / CMake by crovea Tue Jul 28, 2015 5:28 pm
» Hello! I can translate in japanese by tjwhale Thu Jul 02, 2015 7:23 pm
» On Leave (Offline thread) by NickTheNick Wed Jul 01, 2015 12:20 am
» Devblog #14: A Brave New Forum by NickTheNick Mon Jun 29, 2015 4:49 am
» Application for Programmer by crovea Fri Jun 26, 2015 11:14 am
» Re-Reapplication by The Creator Thu Jun 25, 2015 10:57 pm
» Application (programming) by crovea Tue Jun 23, 2015 8:00 am
» Achieving Sapience by MitochondriaBox Sun Jun 21, 2015 7:03 pm
» Microbe Stage GDD by tjwhale Sat Jun 20, 2015 3:44 pm
» Application for Programmer/ Theorist by tjwhale Wed Jun 17, 2015 9:56 am
» Application for a 3D Modeler. by Kaiju4u Wed Jun 10, 2015 11:16 am
» Presentation by Othithu Tue Jun 02, 2015 10:38 am
» Application of Sorts by crovea Sun May 31, 2015 5:06 pm
» want to contribute by Renzope Sun May 31, 2015 12:58 pm
» Music List Thread (Post New Themes Here) by Oliveriver Thu May 28, 2015 1:06 pm
» Application: English-Spanish translator by Renzope Tue May 26, 2015 1:53 pm
» Want to be promoter or project manager by TheBudderBros Sun May 24, 2015 9:00 pm
» A new round of Forum Revamps! by Oliveriver Wed May 20, 2015 11:32 am
|
|
| Build Error Code::Blocks / CMake | |
| | Author | Message |
---|
tfrago01 Newcomer
Posts : 6 Reputation : 0 Join date : 2015-06-25
| Subject: Build Error Code::Blocks / CMake Wed Jul 01, 2015 11:43 pm | |
| Hey guys,
I posted in the Slack channel a few days ago but haven't got any response. Here is the message.
In this step: * If you didn't install to C:\MinGW, Code::Blocks will probably complain about not being able to find the compiler. If it asks you for a default compiler, select "Gnu GCC Compiler". Then goto "Settings -> Compiler" and select the tab "Toolchain Executables". Point it to your installation directory. Note that you may have to remove the mingw-32 prefix from the default executables (EXCEPT mingw32-make). I have changed the Toolchain Executables to not include the mingw-32 prefix. Not sure what the issue is. Any idea? I keep getting this error.
CMakeFiles/ThriveLib.dir/src/game.cpp.obj: C:/Users/Home/Desktop/Thrive/master/src/game.cpp $(CMAKE_COMMAND) -E cmake_progress_report C:\Users\Home\Desktop\Thrive\Builds\CMakeFiles $(CMAKE_PROGRESS_1) @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Building CXX object CMakeFiles/ThriveLib.dir/src/game.cpp.obj" C:\mingw\bin\g++.exe $(CXX_DEFINES) $(CXX_FLAGS) -Werror -Wall -Wextra -Wcast-align -Wcast-qual -Wdisabled-optimization -Wfloat-equal -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wpointer-arith -Wredundant-decls -Wstrict-overflow=5 -Wswitch-default -Wswitch-enum -Wundef -Wunreachable-code -Wctor-dtor-privacy -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -o CMakeFiles\ThriveLib.dir\src\game.cpp.obj -c C:\Users\Home\Desktop\Thrive\master\src\game.cpp
Also the error in the build log is as follow: ||=== Build: all in Thrive (compiler: GNU GCC Compiler) ===| Users\Home\Desktop\Thrive\master\contrib\googletest\include||No such file or directory [-Werror]| CMakeFiles\ThriveLib.dir\build.make|54|recipe for target `CMakeFiles/ThriveLib.dir/src/game.cpp.obj' failed| CMakeFiles\Makefile2|129|recipe for target `CMakeFiles/ThriveLib.dir/all' failed| C:\Users\Home\Desktop\Thrive\Builds\Makefile|115|recipe for target `all' failed| ||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 5 second(s)) ===| | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Thu Jul 02, 2015 8:03 pm | |
| Hello and sorry for the late reply! It looks like it is complaining about googletest not existing which should be an easy fix, just follow this step from the readme: "Remember to get the luabind and google test submodules with git submodule update --init --recursive" If you're using tortoise git then that is just hitting the "git submodule update" button! If you have any further issues just post again! | |
| | | tfrago01 Newcomer
Posts : 6 Reputation : 0 Join date : 2015-06-25
| Subject: Re: Build Error Code::Blocks / CMake Fri Jul 03, 2015 11:29 am | |
| Hey that got me pass another hurdle but here is another one. ||=== Build: all in Thrive (compiler: GNU GCC Compiler) ===| ld.exe||cannot find -lgtest_main| ld.exe||cannot find -lluabind| CMakeFiles\RunTests.dir\build.make|265|recipe for target `RunTests.exe' failed| CMakeFiles\Makefile2|59|recipe for target `CMakeFiles/RunTests.dir/all' failed| C:\Users\Home\Desktop\Thrive\Builds\Makefile|115|recipe for target `all' failed| ||=== Build failed: 5 error(s), 0 warning(s) (12 minute(s), 5 second(s)) ===|
| |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Fri Jul 03, 2015 8:32 pm | |
| Hmrm, try deleting all your build files and recreating the codeblocks project with cmake, and then at the dropdown at the top of codeblocks select "install" instead of "all" | |
| | | tfrago01 Newcomer
Posts : 6 Reputation : 0 Join date : 2015-06-25
| Subject: Re: Build Error Code::Blocks / CMake Fri Jul 10, 2015 10:47 am | |
| Thanks, Crovea.
Its building now. Yay. But as soon as I open the .exe it gives me a black screen lol but hey atleast everytime i have a problem we get further. So any guess at what it might be? It just stays on the back screen or crashes. Getting keen to play test what there is and actually get some coding done! | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Sun Jul 12, 2015 5:55 pm | |
| Sounds good! What you need to do is delete your ogre.cfg file in build/dist/bin and re-run the game. When the ogre dialog pops up, you need to select a non-0 value for FSAA and the black screen should be solved!
The crashes I'm not so sure about but perhaps you can get more information when you can see the game Perhaps it's the alt-F4 crash which is back
The black screen issues occurred when we upgraded to ogre 2.0 recently and we haven't been able to identify the problem so for now we're forcing FSAA anti-aliasing. I'm current in the process of replacing the default ogre dialog with in-game graphics settings which will force FSAA for now!
| |
| | | tfrago01 Newcomer
Posts : 6 Reputation : 0 Join date : 2015-06-25
| Subject: Re: Build Error Code::Blocks / CMake Wed Jul 15, 2015 3:22 am | |
| So i tried changing FSAA to a non-0 value, in this case the only other option was 4, and im still getting a black screen. No sound or nothing. I tried a windows update as well as a long shot but nothing there either. I'm still just getting a black screen and nothing happens.
Any more ideas as to what it may be? | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Thu Jul 16, 2015 6:31 pm | |
| I don't think I've heard of that issue before. What windows are you running? Did you download the build requirements from mega? Could you pastebin for me, the output of cmake when generating a build and a full build log when compiling and the console output when the game starts Also zipping me your dist folder to see if it works on my end One thing that has a chance of possibly helping the issue could be to delete/rename/move your existing c:\mingw and run the mingw_setup\setup-logged.ps1 which would take a while.
EDIT: Seems like sourceforge changed something, so the mingw scripts are having some trouble downloading atm. I'll get them updated soon | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Wed Jul 22, 2015 7:56 pm | |
| I've been making some changes on a branch and run into the same issue as yours, with a black screen and only sound playing. This could be because I've been making some significant changes to the gui system on this branch but I haven't been able to figure out what's going on, and it seems coincidental that you are having the same issues. Just to make sure, I tried rebuilding the master branch that you should be on, and it still works fine there. Something is funky....
EDIT: Okay by painstakingly disabling CEGUI completely I managed to get a non-black screen in my case. This might be something we can try if we have trouble with your issue to narrow the issue down. | |
| | | tfrago01 Newcomer
Posts : 6 Reputation : 0 Join date : 2015-06-25
| Subject: Re: Build Error Code::Blocks / CMake Wed Jul 22, 2015 10:40 pm | |
| And how would I go about doing that? | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Thu Jul 23, 2015 3:48 pm | |
| I found and easier way. Replace your scripts/main_menu/setup.lua with this: - Code:
-
local function setupBackground() local entity = Entity("background") local skyplane = SkyPlaneComponent() skyplane.properties.plane.normal = Vector3(0, 0, 2000) skyplane.properties.materialName = "background/blue_01" skyplane.properties:touch() entity:addComponent(skyplane) end
local function setupCamera() local entity = Entity(CAMERA_NAME .. "2") -- Camera local camera = OgreCameraComponent("camera2") camera.properties.nearClipDistance = 5 camera.properties:touch() entity:addComponent(camera) -- Scene node local sceneNode = OgreSceneNodeComponent() entity:addComponent(sceneNode) -- Workspace local workspaceEntity = Entity() -- TODO: could create a workspace without shadows local workspaceComponent = OgreWorkspaceComponent("thrive_default") workspaceComponent.properties.cameraEntity = entity workspaceComponent.properties.position = 0 workspaceComponent.properties:touch() workspaceEntity:addComponent(workspaceComponent) end
local function setupSound() -- Background music local ambientEntity = Entity("main_menu_ambience") local soundSource = SoundSourceComponent() soundSource.ambientSoundSource = true soundSource.autoLoop = true soundSource.volumeMultiplier = 0.8 ambientEntity:addComponent(soundSource) soundSource:addSound("main-menu-theme-1", "main-menu-theme-1.ogg") soundSource:addSound("main-menu-theme-2", "main-menu-theme-2.ogg") -- Gui effects local guiSoundEntity = Entity("gui_sounds") soundSource = SoundSourceComponent() soundSource.ambientSoundSource = true soundSource.autoLoop = false soundSource.volumeMultiplier = 1.0 guiSoundEntity:addComponent(soundSource) -- Sound soundSource:addSound("button-hover-click", "soundeffects/gui/button-hover-click.ogg") end
local function createMainMenu(name) return Engine:createGameState( name, { -- Graphics OgreAddSceneNodeSystem(), OgreUpdateSceneNodeSystem(), OgreCameraSystem(), MainMenuHudSystem(), OgreLightSystem(), SkySystem(), OgreWorkspaceSystem(), OgreRemoveSceneNodeSystem(), RenderSystem(), -- Other SoundSourceSystem(), }, function() setupBackground() setupCamera() setupSound() end, "MainMenu" ) end
GameState.MAIN_MENU = createMainMenu("main_menu")
Engine:setCurrentGameState(GameState.MAIN_MENU)
This adds a sky background to the main menu, so if your issue is (as i suspect) that the gui isn't showing at all, then you would get a blue background instead of just black. Also replace build/dist/scripts/main_menu/setup.lua the same way. If you're still getting black screen after that I'd be back to not knowing the issue and would ask you to give me the stuff I posted above: - Quote :
- What windows are you running? Did you download the build requirements from mega?
Could you pastebin for me, the output of cmake when generating a build and a full build log when compiling and the console output when the game starts Also zipping me your dist folder to see if it works on my end | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Build Error Code::Blocks / CMake Tue Jul 28, 2015 5:28 pm | |
| Okay nvm that above. It has turned out that FSAA doesn't always and possibly only rarely fixes the issue, so we'll have to get to the bottom of it. Stay tuned! | |
| | | Sponsored content
| Subject: Re: Build Error Code::Blocks / CMake | |
| |
| | | | Build Error Code::Blocks / CMake | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |