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 is 1 user online :: 0 Registered, 0 Hidden and 1 Guest :: 1 Bot 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
|
|
| Development troubleshooting | |
|
+6benjamin71113 utikawa HariboTer Nimbal SuperLala Seregon 10 posters | |
Author | Message |
---|
crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Development troubleshooting Thu May 29, 2014 5:46 am | |
| Missed your reply sorry, our uni project is due in a couple of days so I'm busy these days Yeah it must have been some dependency =/ You can try following the doc I made as closely as possible: https://docs.google.com/document/d/1FGMzODYC8fRpW9uTvpN7YJ8vPJitA3GBuo998efgxJk/edit
| |
| | | moopli Developer
Posts : 318 Reputation : 56 Join date : 2013-09-30 Age : 29 Location : hanging from the chandelier
| Subject: Re: Development troubleshooting Sun Jun 08, 2014 10:50 pm | |
| So I shrunk some partitions to make some space for a 14.04 install of ubuntu, and following the doc to a t, I ran into issues with CEGUI not compiling with freetype for some reason. the first time I built CEGUI, I did notice that it couldn't find freetype, but then after setting some more variables it found it. However, after rebuilding CEGUI and Thrive, I still get asserts firing telling me that CEGUI was compiled without freetype support. | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Development troubleshooting Tue Jun 10, 2014 2:11 pm | |
| Ah yes, I had those issues as well, forgot to add them to the doc, sorry, hope you didn't spend too much time on it!
The problem is you have a dynamic library for freetype (.so) and CEGUI, when compiled, expects a static one (.a) to compile correctly. I ended up trying lots of stuff like removing freetype from ubuntu (without removing dependencies, be careful) and reinstalling, I also tried recompiling freetype with flags for static library but didn't work.
I did manage with some help to get a static version, I think it simply involved installing it with "sudo apt-get install libfreetype6" without -dev at the end, as I was told that the dev part means dynamic libraries usually. After obtaining the static version, recompile and reinstall CEGUI and remember to do the renaming thing again.
I'm not sure if my previous attempts (that involved uninstalling freetype) may have helped CEGUI find the .a file i eventually created, so you might need to do something like that.
If it doesn't work I can look further into my installation and ask the guy who was helping me what we did.
You're close to have everything working! Â
btw letting you know that this is my exam week and that my activity is a bit lower these days, but i try to check the forums/github atleast once a day and I try to work on some issues when I can. | |
| | | moopli Developer
Posts : 318 Reputation : 56 Join date : 2013-09-30 Age : 29 Location : hanging from the chandelier
| Subject: Re: Development troubleshooting Wed Jun 11, 2014 1:01 pm | |
| That's odd, libfreetype6-dev should install the static library, at least, according to the package details. After some looking, it seems that libfreetype.a does exist, it's just not directly in /usr/lib. So perhaps what's needed is to hardlink it in.
Edit: Okay I tried that and it didn't help. I did notice, however, that Ogre apparently compiled without freetype, so I'm recompiling Ogre right now, and then I'll try CEGUI and Thrive again.
Edit: Oh, don't worry -- we all know you're busy, so we plan accordingly. Nobody's upset (as far as I can tell :P) that you have more important matters to attend to.
Edit: Well, that didn't help, CEGUI is still complaining of missing freetype. I don't understand why it's designed like this, shouldn't it be complaining at compile time? After all, this is a compile-time issue. Ah well, we'll have to work around it I guess. | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Development troubleshooting Wed Jun 11, 2014 5:21 pm | |
| - Quote :
- I don't understand why it's designed like this, shouldn't it be complaining at compile time?
Freetype is optional for CEGUI, so since it can't find it, it just assumes you don't want it compiled with it, while Thrive depends on CEGUI having freetype. You can take the potentially easy route and add a flags to the CEGUI compilation, the flags can be found here: http://static.cegui.org.uk/docs/0.8.2/build_options.html If you add -DCEGUI_HAS_FREETYPE=True to your cmake command, I imagine it would give you a compile error while not finding freetype as you expected it to, you could then add -DFREETYPE_H_DIR=/usr/include/myfreetypelocation or whatever variables it should be complaining about. On my VM where I managed to get thrive running I have libfreetype.a inside /usr/lib/x86_64-linux-gnu/ which is not exactly a location I remember using, but again, I don't entirely remember the traumatic experience of getting it to work all that well. If you decide not to use the flags option, or if it doesn't work out, you could check the FindFreetype.cmake script that CEGUI comes with, and see where it expects the freetype library and header files to be. It is possible you CEGUI is finding your dynamic library first (which it fails on, it thinks it can use dynamic library but that requires a whole lot more headache). If that is the problem, you could try as I did: "sudo dpkg -r --force-depends libfreetype-dev" with or without the dev part, I'm not sure, to remove ubuntus freetype (without removing any dependencies). Then later when things are working, just reinstall freetype with apt-get | |
| | | moopli Developer
Posts : 318 Reputation : 56 Join date : 2013-09-30 Age : 29 Location : hanging from the chandelier
| Subject: Re: Development troubleshooting Wed Jun 11, 2014 6:32 pm | |
| Thanks I removed libfreetype6-dev as you suggested, but then the headers disappeared too, so i reinstalled it. Then, after editing the cmakelists to set the freetype library paths to the static paths, running cmake with some added settings (-DFREETYPE_H_PATH_ft2build=/usr/include/freetype2 -DFREETYPE_H_PATH_ftconfig=/usr/include/freetype2 -DCEGUI_HAS_FREETYPE=True) succeeded, and the CEGUI build succeeded. But then I built Thrive and I'm in the same old bind.
Oh chute I didn't make install.
Edit: And one make install later, we are back to square one.
Edit: This time I've removed libfreetype6 but not dev, leaving headers and stuff intact. Let's see if that works.
Edit: It didn't, I got linker errors since Ogre expects a dynamic freetype library and CEGUI links against Ogre. Could you try looking through your bash history?
Last edited by moopli on Wed Jun 11, 2014 9:07 pm; edited 6 times in total (Reason for editing : aaugh) | |
| | | moopli Developer
Posts : 318 Reputation : 56 Join date : 2013-09-30 Age : 29 Location : hanging from the chandelier
| Subject: Re: Development troubleshooting Wed Jun 11, 2014 9:52 pm | |
| Glorious news worthy of a double post: We have liftoff :D! - liftoff:
But I see ugly stuff going on with stretching: - stretchy:
Anyway that's nothing compared to getting it all working yay :D! As for how I got it working, I think I may have neglected to ldconfig one of the last times I rebuilt CEGUI, or so my garbled bash history tells me. Needless to say, I figured that out after an ldconfig prompted a relinking of Thrive and RunTests Oh yes, I also edited the CMakeCache directly to change the libfreetype path from .so to .a. That would more likely have been the solution.
Last edited by moopli on Wed Jun 11, 2014 10:12 pm; edited 5 times in total (Reason for editing : yay yay happy yay :D) | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Development troubleshooting Thu Jun 12, 2014 4:43 am | |
| Great to see!
Could you perhaps add some troubleshooting tips to the ubuntu build document for potential future installers? You probably have a better idea how to get it worked now
The stretching isn't perfect, and it's very possible to add some bounds for the displayed text if thats what you're mostly bothered about, but obviously at those dimensions things aren't going to look great | |
| | | crovea Programming Team lead
Posts : 310 Reputation : 59 Join date : 2013-10-07 Age : 34 Location : Denmark
| Subject: Re: Development troubleshooting Mon Jan 05, 2015 9:37 am | |
| - AwesomeSiebren wrote:
- I encountered a problem when I was setting up CMake, and haven't found a solution.
- Code:
-
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Warning (dev) at CMakeLists.txt:108 (add_subdirectory): The source directory
C:/Users/Siebren/Desktop/Thrive/Thrive-master/contrib/googletest
does not contain a CMakeLists.txt file.
CMake does not support this case but it used to work accidentally and is being allowed for compatibility.
Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run "cmake --help-policy CMP0014" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY BULLET_SOFTBODY_LIBRARY) Call Stack (most recent call first): C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE) cmake_modules/FindBullet.cmake:72 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:121 (find_package) Hrmm It looks like you might have missed a step or two from the setup of the pre-build environment https://github.com/Revolutionary-Games/Thrive/blob/master/mingw_setup/readme.txt are you sure you did the necessary git submodule update and ran the powershell script? The powershell script should be replaceable by downloading this file: directory: mega.co.nz #!pAJgCADK!JZrwB4a2dw-3TBXGj_AImOysEazeVWXm_F_lfxUr7_Q although one person has reported an issue with that I have not yet looked into. Reallly if all you wanted to mess with initially is lua specific stuff (as is what we discussed on github) then you could simply just get an up to date build and simply copy scripts over (I even have a batch script for that you can have)! Lemme know! | |
| | | untrustedlife Regular
Posts : 252 Reputation : 19 Join date : 2013-03-26 Location : [Classified]
| Subject: Re: Development troubleshooting Mon Feb 02, 2015 11:33 pm | |
| keep getting this error when I try to build thrive after following all directions ||=== Build: install in Thrive (compiler: GNU GCC Compiler) ===| Users\bount_000\Desktop\Thrive\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|131|recipe for target `CMakeFiles/ThriveLib.dir/all' failed| C:\Users\bount_000\Desktop\Thrive\build\Makefile|116|recipe for target `all' failed| ||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 50 second(s)) ===|
| |
| | | timlyo Newcomer
Posts : 19 Reputation : 0 Join date : 2013-09-04 Age : 29 Location : England
| Subject: Re: Development troubleshooting Tue Feb 17, 2015 4:26 pm | |
| You'll need to run git submodule init and git submodule update to pull in the googletest dependencies. Assuming that you're running command line that is. | |
| | | untrustedlife Regular
Posts : 252 Reputation : 19 Join date : 2013-03-26 Location : [Classified]
| Subject: Re: Development troubleshooting Tue Feb 17, 2015 5:00 pm | |
| - timlyo wrote:
- You'll need to run git submodule init and git submodule update to pull in the googletest dependencies. Assuming that you're running command line that is.
Figured it out ages ago. Thanks though. | |
| | | Sponsored content
| Subject: Re: Development troubleshooting | |
| |
| | | | Development troubleshooting | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |