LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-15-2009, 03:28 AM   #1
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Rep: Reputation: 16
Which X11 lib under which #define ?


Hi,
I am trying to compile a package that uses X11 libraries and headers. The package has a file that has these (macros?) lines:
Quote:
#define XToolLibrary
#define XLibrary
I am unable to figure out which X11 libraries should be under the #defines, in particular under which #defines must the following libs be:

-lXt -lSM -lICE -lXpm -lX11 -lXext -lXaw -lXm -lXmu

Thanks.
 
Old 02-16-2009, 12:33 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I am trying to compile a package
Which package ?
 
Old 02-17-2009, 02:57 AM   #3
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by knudfl View Post
Which package ?
It is called NCL (NCAR Command Language). I am trying to compile for my openSUSE 11.0. The instructions say that i need these libraries:
Quote:
X11, Xaw, Xext, Xm, Xmu, Xt
.Is there any method to identify which of the libs:
Quote:
-lXt -lSM -lICE -lXpm -lX11 -lXext -lXaw -lXm -lXmu
fall under which of the #defines?

Last edited by samrat_rao; 02-17-2009 at 03:00 AM.
 
Old 02-17-2009, 05:23 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try installing the xorg-dev package.
 
Old 02-17-2009, 05:56 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You will need these installed :

xorg-x11-devel ( also provides lXaw = libXaw.. )
xorg-x11-libICE-devel
xorg-x11-libSM-devel
xorg-x11-libXext-devel
xorg-x11-libXmu-devel
xorg-x11-libXpm-devel
xorg-x11-libXt-devel
openmotif-devel ( provides lXm = libXm.. )

If you need more, they can be searched with # 'zypper se <name>'
.....
 
Old 02-21-2009, 03:48 AM   #6
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by knudfl View Post
You will need these installed :

xorg-x11-devel ( also provides lXaw = libXaw.. )
xorg-x11-libICE-devel
xorg-x11-libSM-devel
xorg-x11-libXext-devel
xorg-x11-libXmu-devel
xorg-x11-libXpm-devel
xorg-x11-libXt-devel
openmotif-devel ( provides lXm = libXm.. )

If you need more, they can be searched with # 'zypper se <name>'
.....
Hi,
I already have all these devel packages installed. Maybe i was not being specific enough. The instructions for compiling the package NCL says that:
Quote:
At a minimum, you should have the following libraries (and associated include files) installed on your system: X11, Xaw, Xext, Xm, Xmu, Xt
But the libs under the macros are:
Code:
#define XToolLibrary    -lXt -lSM -lICE
#define XLibrary      -lX11 -lXext
So i am wondering about the other libs pertaining to Xm, Xmu, Xaw, Xt, Xext ie which of them need to be added to the respective #defines. I am not sure if the compilation is unsuccessful because of these libs.
The other error(s) i am getting during the compilation are like:
Quote:
sed: -e expression #3, char 404: unknown option to `s'
make[4]: *** [nhlf77] Error 1
I did a grep search for 'sed' in the respective directory but did not find sed being used. Due to this some shell scripts are not being made.
 
Old 02-23-2009, 07:23 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Are you quite sure you will not use an already compiled
and ready NCL binary ? ?
That is what is recommended :

http://www.ncl.ucar.edu/Download/bui...ildEnvironment
Quote:
We highly recommend that you use a precompiled NCL binary rather
than attempting a build from source code, unless you really like
this kind of thing. If you tried a precompiled binary and ran
into problems, you can post your problem to the ncl-install
email list.
 
Old 02-24-2009, 02:41 AM   #8
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by knudfl View Post
Are you quite sure you will not use an already compiled
and ready NCL binary ? ?
That is what is recommended :
Yes, i am aware of that. I wanted to compile for myself, just to see if i can. Out of some 1970 files that are in the precompiled binary, i managed to get 1960, and the basic tests are working (excluding those related to the missing files). The 10 missing files are in the directory bin and 9 of these are just shell scripts. So i thought that there could be some minor problems which i am unable to identify, like sed not working etc. But if you suggest that i stick to the precompiled binary i shall do so (at least for the time being!)

Last edited by samrat_rao; 02-24-2009 at 02:42 AM.
 
  


Reply



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
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy defa0009 Linux - General 5 03-02-2014 07:57 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 11:10 AM
Using aa-lib with X11 Exeis Linux - Software 0 12-12-2006 12:26 PM
gtk2.10.6 configure script/X11 devel lib georgekirby Linux - Software 1 11-29-2006 09:32 AM
Couldn't open RGB_DB ' /usr/X11R6/lib/X11/rgb lilohatea Debian 2 01-30-2006 07:57 PM

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

All times are GMT -5. The time now is 03:02 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