LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Problems compiling with Fedora's change to linker (https://www.linuxquestions.org/questions/fedora-35/problems-compiling-with-fedoras-change-to-linker-930323/)

fakie_flip 02-20-2012 06:22 AM

Problems compiling with Fedora's change to linker
 
I'm having problem compiling QJoyPad in Fedora 16.

I have libX11-devel. I also have the file /usr/lib64/libX11.so.6.


Code:

bull•Downloads/qjoypad-4.1.0/src» ./config [7:30:12]

Configuring QJoyPad installation...
------------------------------------------------------------

Device directory: /dev/input
-- Devices will be looked for in:
/dev/input/js0
/dev/input/js1
etc.

Prefix directory: /usr/local
-- Files to be installed in:
/usr/local/bin
/usr/local/doc
/usr/local/share/pixmaps

---------------------------------------------------------
If these settings are okay, go ahead and run 'make' and
then 'make install'.

To make changes, run ./config --help for details.

bull•Downloads/qjoypad-4.1.0/src» make [7:30:16]
g++ -Wl,-O1 -o qjoypad axis.o axis_edit.o axisw.o button.o button_edit.o buttonw.o event.o flash.o icon.o joypad.o joypadw.o joyslider.o keycode.o layout.o layout_edit.o main.o quickset.o getkey.o moc_axis.o moc_axis_edit.o moc_button.o moc_button_edit.o moc_flash.o moc_icon.o moc_joypad.o moc_joypadw.o moc_keycode.o moc_layout.o moc_getkey.o moc_layout_edit.o -L/usr/lib64 -lXtst -lQtGui -lQtCore -lpthread
/usr/bin/ld: keycode.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: *** [qjoypad] Error 1
bull•Downloads/qjoypad-4.1.0/src»

Google shows

https://fedoraproject.org/wiki/Featu...icitDSOLinking
https://fedoraproject.org/wiki/Under...gDSOLinkChange

I'm not exactly sure what all the info in the those links mean. However I am sure this issue is fedora specific. A friend compiled under Slackware without a problem. What do I need to do to make this work?

weibullguy 02-20-2012 07:34 AM

This is the same question you're asking in this thread --> http://www.linuxquestions.org/questi...7/#post4607278

Double posting is a violation of LQ Rules. Let's keep the discussion going in your original thread.


All times are GMT -5. The time now is 04:06 AM.