LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Which X11 lib under which #define ? (https://www.linuxquestions.org/questions/linux-software-2/which-x11-lib-under-which-define-704764/)

samrat_rao 02-15-2009 03:28 AM

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.

knudfl 02-16-2009 12:33 PM

Quote:

I am trying to compile a package
Which package ?

samrat_rao 02-17-2009 02:57 AM

Quote:

Originally Posted by knudfl (Post 3445756)
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?

AwesomeMachine 02-17-2009 05:23 AM

Try installing the xorg-dev package.

knudfl 02-17-2009 05:56 AM

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>'
.....

samrat_rao 02-21-2009 03:48 AM

Quote:

Originally Posted by knudfl (Post 3446750)
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.

knudfl 02-23-2009 07:23 AM

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.


samrat_rao 02-24-2009 02:41 AM

Quote:

Originally Posted by knudfl (Post 3454274)
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!)


All times are GMT -5. The time now is 08:58 AM.