|
Registered Member
|
I'm trying to build the latest version of semantik (0.7.4), the successor of kdissert.
After adding several rpm-packages (ocam, qt, qt-devel, qt-webkit, qt-webkit-devel, python-devel, cmake-fedora cmake-gui, kdelibs-devel) everything compiles without problems but while linking I get these errors: [62/62] cxx_link: out/default/src/browser_4.o out/default/src/canvas_flag_4.o out/default/src/canvas_item_4.o out/default/src/canvas_link_4.o out/default/src/canvas_sort_4.o out/default/src/canvas_view_4.o out/default/src/color_scheme_4.o out/default/src/config_dialog_4.o out/default/src/data_control_4.o out/default/src/data_item_4.o out/default/src/data_view_4.o out/default/src/doc_dialog_4.o out/default/src/fig/box_item_4.o out/default/src/fig/box_link_4.o out/default/src/fig/box_view_4.o out/default/src/flag_scheme_4.o out/default/src/generator_dialog_4.o out/default/src/image_view_4.o out/default/src/linear_container_4.o out/default/src/linear_view_4.o out/default/src/main_4.o out/default/src/pre_view_4.o out/default/src/semantik_4.o out/default/src/sembind_4.o out/default/src/sembind_py_4.o out/default/src/table_dialog_4.o out/default/src/table_view_4.o out/default/src/template_entry_4.o out/default/src/text_view_4.o out/default/src/vars_view_4.o out/default/src/aux.o out/default/camlprog.o -> out/default/src/semantik /usr/bin/ld: cannot find -lkdecore /usr/bin/ld: cannot find -lkio /usr/bin/ld: cannot find -lkdeui /usr/bin/ld: cannot find -lkhtml collect2: ld gaf exit-status 1 terug Waf: Leaving directory `/home/bengbers/Src/semantik-0.7.4/semantik-0.7.4/out' Build failed -> task failed (err #1): {task: cxx_link browser_4.o,canvas_flag_4.o,canvas_item_4.o,canvas_link_4.o,canvas_sort_4.o,canvas_view_4.o,color_scheme_4.o,config_dialog_4.o,data_control_4.o,data_item_4.o,data_view_4.o,doc_dialog_4.o,box_item_4.o,box_link_4.o,box_view_4.o,flag_scheme_4.o,generator_dialog_4.o,image_view_4.o,linear_container_4.o,linear_view_4.o,main_4.o,pre_view_4.o,semantik_4.o,sembind_4.o,sembind_py_4.o,table_dialog_4.o,table_view_4.o,template_entry_4.o,text_view_4.o,vars_view_4.o,aux.o,camlprog.o -> semantik} As far as I can see, the linker can't find libraries kdecore, kio, kdeui, khml. When I try [bengbers@BEL001 semantik-0.7.4]$ ldconfig -p | grep kde | grep kdecore, I get: libkdecore.so.5 (libc6) => /usr/lib/libkdecore.so.5 libkdecore.so.4 (libc6) => /usr/lib/libkdecore.so.4 Similar results can be obtained for the other libraries. What can I do so that the linker finds the missing libraries? Ben |
|
Administrator
|
You are likely missing either the appropriate development package, or the build system for semantik failed to find kdelibs and other components properly.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
|
Registered Member
|
As far as I know, I have installed all the needed packages. I have even added PyKDE-devel. The linker however still misses kdecore, kio, kdeui and khtml.
running ldconfig didn't make any difference. Semantik uses waf/cmake to build the application. In the wscript I have found some lines that might give a clue: os.environ['LD_LIBRARY_PATH'] = env['LIBPATH_KDECORE']+':'+os.environ.get('LD_LIBRARY_PATH', '') => Neither LD_LIBRARY_PATH nor LIBPATH_KDECORE are defined. To which directory should they point? ibj.install_path = '${KDE4_LIB_INSTALL_DIR}/ => KDE4_LIB_INSTALL_DIR is not defined. Should I first configure cmake? Ben |
|
Registered Member
|
After getting aid from Thomas Nagy, it proved that I had to change two lines in default.cache.py.
Line 111: LIBPATH_CAML = ['/usr/lib/ocaml/', '/usr/lib/kde4/devel/'] Line 113: LIBPATH_OCAML = ['/usr/lib/ocaml/', '/usr/lib/kde4/devel/'] ./waf clean, ./waf and ./waf install resulted in a working installation. Thomas says that the path /usr/lib/kde4/devel/ cannot be found anywhere in the file KDELibsDependencies.cmake but this meas nothing (yet) to me. Ben |
|
Registered Member
|
What's exactly your problem? Ben |
|
Administrator
|
The problem was that he/she's a spambot. The user has now been banned and all posts removed.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]