![]() Registered Member ![]()
|
Hi all!
I have been following the tutorial hello world: http://techbase.kde.org/Development/Tutorials/First_program My program will pass through cmake but will not compile with make. I have tried to set path and tried the .build-config file. I have tried to install Qt5 and changed path to /home/marcux/Qt5.1.1/5.1.1/gcc_64/include/QtCore I have tried to compile with: g++ -I/usr/include/kde4/KDE -I/usr/include/kde4 main.cpp same error. I use Fedora 19 with kde. Can someone please guide me in the right direction? Many thanks in advance!
|
![]() Registered Member ![]()
|
You are getting errors from the linker.
It cannot find some of the objects file that define the symbols reported in the errors. Can you post the CMakeLists.txt file that you are using? You should be able to set the libraries to be linked directly in there. Anyway, your g++ attempt is wrong, you should use -L</path/to/shared/objects> -l<sharedobjectname>. For example, if you want to link against "libsupport.so" which is in /home/marcux/mylibs, you should use:
(not that "lib" and ".so" are not needed when passing the library name to the linker). |
![]() Registered Member ![]()
|
Hello!
Here is my CMakeLists.txt:
and here is my .build-config file:
It seems as if cmake finds the right paths. Here is my output from cmake:
I hope you can help me. Many thanks! |
![]() Registered Member ![]()
|
I don't understand why KDE_KDEUI_LIBS should be something other than an empty variable
![]() But maybe that's because I don't know what the kde build system is doing behind the scenes. Anyway, you can try to source your .build-config file:
then (if you have setu-up a KDE build env) try to compile again with
Also, make sure to have all the libraries installed! |
![]() Registered Member ![]()
|
I have done:
yum groupinstall 'Development Tools' I have double checked that I have : kdelibs-devel, kde-baseapps-devel I have put: source .build-config in my .bachrc file. I have followed the helloworld tutorial. I can not run kdebuild, do I need to run that to compile helloworld? I have followed the instructions in: http://techbase.kde.org/Getting_Started ... nvironment for my build environment. Do I need any more libraries? What am I missing? Many thanks! |
![]() Registered Member ![]()
|
I just tried doing the same tutorial, so I created two files, main.cpp and CMakeLists.txt, copied and pasted the content from the tutorial page, then run
and everything worked flawlessly ![]()
Note the line "Found KDE 4.12 library dir: /home/vince/kde/inst/master/lib". That path is where I have all my libraries compiled. |
![]() Administrator ![]()
|
Please post the output of the following commands:
Both these commands should be run in the directory where you invoked CMake to configure your project to build.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]