#435 Library X11 undefined reference on fedora x64

open
nobody
None
5
2011-06-18
2011-06-18
No

All went fine after installing qt-devel and boost-devel only the last g++ linking step misses the -lX11 parameter on Fedora 14 64 bit. This is very annoying and can be fixed easily.

Discussion

  • Anonymous - 2011-06-18

    g++ -Wl,-O1 -o ../release/launchy build/main.o build/globals.o build/options.o build/catalog.o build/catalog_builder.o build/plugin_handler.o build/platform_base_hotkey.o build/icon_delegate.o build/plugin_interface.o build/catalog_types.o build/icon_extractor.o build/FileBrowserDelegate.o build/FileBrowser.o build/DropListWidget.o build/Fader.o build/CharListWidget.o build/CharLineEdit.o build/CommandHistory.o build/InputDataList.o build/FileSearch.o build/AnimationLabel.o build/SettingsManager.o build/platform_unix.o build/platform_unix_util.o build/platform_x11_hotkey.o build/moc_main.o build/moc_catalog_builder.o build/moc_options.o build/moc_icon_delegate.o build/moc_icon_extractor.o build/moc_FileBrowserDelegate.o build/moc_FileBrowser.o build/moc_DropListWidget.o build/moc_CharListWidget.o build/moc_CharLineEdit.o build/moc_Fader.o build/moc_platform_unix.o build/moc_platform_x11_hotkey.o build/moc_platform_base_hottrigger.o build/qrc_launchy.o -lQtGui -lQtNetwork -lQtCore -lpthread
    /usr/bin/ld: build/platform_x11_hotkey.o: undefined reference to symbol 'XKeycodeToKeysym'
    /usr/bin/ld: note: 'XKeycodeToKeysym' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
    /usr/lib64/libX11.so.6: could not read symbols: Invalid operation
    collect2: ld returned 1 exit status
    make[2]: *** [../release/launchy] Error 1

     

Log in to post a comment.