This forum has been archived. All content is frozen. Please use KDE Discuss instead.

help setting up development environment

Tags: None
(comma "," separated)
fluca1978
Registered Member
Posts
81
Karma
0
OS
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:

Code: Select all
/sviluppo/cpp/kde-baseapps/dolphin/build> make
make: *** No targets specified and no makefile found.  Stop.
*** Failed ***


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:

Code: Select all
QFileSystemWatcher: failed to add paths: /home/luca/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Object::disconnect: No such slot KDirOperator::_k_slotDoubleClicked(const QModelIndex&)
KCrash: Application 'kdevelop.bin' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/luca/.kde/socket-fluca-laptop/kdeinit4__0
QSocketNotifier: Invalid socket 24 and type 'Read', disabling...
QSocketNotifier: Invalid socket 34 and type 'Read', disabling...


Can anybody guide me thru the setup steps?

Thanks
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to perform the configuration (with CMake) at the top level, otherwise it will fail to configure.

Please try the following:
Code: Select all
cd /sviluppo/cpp/kde-baseapps
mkdir build && cd build
cmake ..
cd dolphin
make


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
SGC
Registered Member
Posts
4
Karma
0
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?]
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
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.
SGC
Registered Member
Posts
4
Karma
0
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
SGC
Registered Member
Posts
4
Karma
0
Sorted!

I needed to get the GNU c++ package as well. then it worked as expected.

SGC/.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient