Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-17-2012, 07:37 AM
|
#1
|
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,496
Rep:
|
Problem compiling QJoyPad in Fedora 16
I have libX11-devel. I also have the file /usr/lib64/libX11.so.6.
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»
|
|
|
02-17-2012, 09:30 AM
|
#2
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
|
|
|
02-20-2012, 04:27 AM
|
#3
|
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,496
Original Poster
Rep:
|
I did Google the errors. I didn't see any of the links you posted.
The information in those sites looks greek to me. Does it mean there is a solution or isn't one?
Last edited by fakie_flip; 02-20-2012 at 06:23 AM.
|
|
|
02-20-2012, 07:31 AM
|
#4
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
Those were the first two links in Google. Yes, the solution should be in the second link. You're going to need to modify the Makefile for qjoypad and add -lX11. There is probably some variable in the Makefile that contains linker flags.
|
|
1 members found this post helpful.
|
02-20-2012, 12:20 PM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Ref. your duplicate thread from today ..
http://www.linuxquestions.org/questi...linker-930323/
.. and post #4 by @weibullguy :
""modify the Makefile for qjoypad and add -lX11""
That's line 19 in qjoypad-4.1.0/src/Makefile :
Code:
LIBS = $(SUBLIBS) -L/usr/lib64 -lXtst -lQtGui -lQtCore -lpthread -lX11
.
|
|
|
All times are GMT -5. The time now is 03:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|