You are not logged in.
Pages: 1
I had originally posted this in the AUR forum section, but obtained no answers. Given the fact that this is actually a problem relating to cmake, I thought to repost it here, to see if it yields better luck getting help. Here's the original post:
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 statusA 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?
Offline
Pages: 1