You are not logged in.

#1 2012-01-28 22:52:55

gauthma
Member
Registered: 2010-02-16
Posts: 222
Website

kmediafactory PKGBUILD broken

I get this error:

/usr/bin/ld: CMakeFiles/kmediafactory.dir/toolproperties.o: undefined reference to symbol 'KIconButton::KIconButton(QWidget*)'
/usr/bin/ld: note: 'KIconButton::KIconButton(QWidget*)' is defined in DSO /usr/lib/libkio.so.5 so try adding it to the linker command line
/usr/lib/libkio.so.5: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

A little googling yielded this, which means that due to a change in the linker's default behaviour, the CMakeLists.txt has to be changed. Essentially you need to add a couple of libraries to linker line; however I tried that but without success, I'm afraid. So I added a verbose variable to the make line in the PKGBUILD, and manually ran the c++ line, where the linker is implicitly called, adding the missing  /usr/lib/libkio.so.5, and the result was that it now complained that another library was missing. So the changes to the CMakeLists.txt seem to be rather straightforward, if somewhat cumbersome. However, I tried adding a "target_link_libraries" line, but to no avail, because there's no explicit target (i.e. one declared with add_executable). I think CPack takes care of that, but then I don't know how to modify the libraries that get included. Anyone can help?

Last edited by gauthma (2012-01-29 00:18:54)

Offline

Board footer

Powered by FluxBB