LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-26-2003, 03:28 PM   #1
lljxh
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
can not find lX11 problem


when i tried to compile a program, i always got the error message:

/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status


The makefile is like that:


LIBSG = -lglut -lGLU -lGL -lXmu -lX11 -lm


I revised the makefile by changing it to the real directory of X11.a file. SO it is like this now:
LIBSG = -L /usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lX11 -lm


Unfortunately, it still didn't work. Checked this forum. People got this similar problrm solved this problem just by revising the makefile as I did. Why it didn't wok for me? Please help. Thank you very much.
 
Old 08-26-2003, 03:40 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Dou you have XFree86-devel (or similar) package installed?
 
Old 08-26-2003, 08:17 PM   #3
lljxh
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
sorry, i am a newbie. could you please tell me how to check it?
 
Old 08-26-2003, 10:59 PM   #4
lljxh
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Original Poster
Rep: Reputation: 0
just check. the XFree86-devel is installed
 
Old 08-27-2003, 12:58 AM   #5
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
visit following site

http://www.xfree86.org/

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
g++ : ld cannot find -lX11 infinitycool Slackware 5 09-23-2004 04:48 PM
Problem with find jowid Linux - Newbie 3 10-09-2003 04:37 PM
Linker problem -lX11 Flibble Linux - Software 1 06-16-2003 01:39 AM
ld -lX11 can not find -lX11 Alexop Linux - Newbie 1 08-18-2002 07:01 PM
ld -lX11 can not find -lX11 Alexop Linux - General 1 08-18-2002 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration