![]() Registered Member ![]()
|
Hi all,
I'd like to create a development environment for dolphin file manager. I get the kde-baseapps project from the git repository, then I start kdevelop and imported the project using the cmake.txt file in the dolphin directory. But when I build the project I got the error:
I'm a newbie of the kde development, so I'm probably missing something here. Moreover I noted that each time I try to open a source file of the imported file the kdevelop environment crashes:
Can anybody guide me thru the setup steps? Thanks |
![]() Administrator ![]()
|
You need to perform the configuration (with CMake) at the top level, otherwise it will fail to configure.
Please try the following:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I've got a similar problem to this, receiving the make: *** No targets etc message trying to build the 'Hello World' program using KDevelop and gcc
I tried the CODE mkdir build && cd build cmake .. END {Sorry don't know how to produce the standard format, but I think this should be clear.} and it reported that 'build' already existed. I searched and lo .../projects/test/build holds:- CMakeCCompiler.cmake, CMakeError.log, CMakeTmp, cmake.check_cache, CMakeOutput.log, CompilerIdC, CMakeDetermineComplierABI_C.bin, CMakeSystem.cmake,CompilerIdCXX I do not know enough about the compiling needs to tell whether a) The contents of the files are correct, b)whether there are any files missing. I can compile on an old system using KDevelop 3.4.1 with kde 3.5.7 release 72.11 under Suse 10.3, which doesn't use CMake, but I now need to work on a new faster machine. New system is Suse 12.1 (x86_64) Asparagus Kdevelop 4.2.3 using kde development platform 4.7.2 release 5 Cmake 2.86 using Qt 4.7.4 Don't know how to find gcc version, but I downloaded it end of August 2012. I'm using the development environment so that I don't need to worry about esoteric settings. Can anyone please advise? [BTW CMAKECCompilerId looks as if it might know something about BORLANDC. As I am wanting to convert a graphics output program from Borland TurboC is there a magic way to do this? or (as I suspect) will I have to learn to use something like ncurses or SDL?] |
![]() Global Moderator ![]()
|
Hello!
The standard process of building a KDE program using cmake is this: The first time you build it, create a "build" directory, and run "cmake .." in that directory. The ".." is the path to the root directory of the project, which must contain CMakeLists.txt. As the "build" directory is directly below that root directory, ".." is fine. Then, you can just run "make" (or "make install") to compile the program. Greetings
I'm working on the KDevelop IDE.
|
![]() Registered Member ![]()
|
Thank you for that, I was running CMake from directory in which 'build' was, not from build.
That seemed much happier, but has complained that I need to set CMAKE_CXX_COMPILER to a valid compiler path or name. It successfully located gcc. Which compiler does it need, where might I find it, and if I get it (presumably from an rpm) where will it get put so that I can tell Cmake where to look? (Or perhaps getting it will set the value, like gcc seems to have done.) Regards |
![]() Registered Member ![]()
|
Sorted!
I needed to get the GNU c++ package as well. then it worked as expected. SGC/. |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient