LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing software with scons but cannot locate motif library (https://www.linuxquestions.org/questions/linux-software-2/installing-software-with-scons-but-cannot-locate-motif-library-4175454456/)

budgie26 03-17-2013 07:01 PM

Installing software with scons but cannot locate motif library
 
I'm trying to install a software package that uses scons for the installation and I'm having problems. The scons config file has been set up according to the instructions I've been given and this includes the paths to the X11 and motif libraries and include files.

I'm using Ubuntu 11.10 and have motif 2.3.3-5ubuntu1 installed.

When scons tries to build the software components it fails at the code:

/usr/bin/gfortran -o build/components/contrib/test -Wl,-undefined,suppress -m64 build/components/contrib/test_main.o -L/usr/lib/X11 -L/usr/lib/ -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -Lbuild/libs -lXm -lXt -lX11 -ltest -lgfortran -lm -lstdc++

The errors I get include multiple lines of: undefined referece to '_XmStrings'. I've searched the errors and it seems to be due to failure to locate the motif libraries.

When I 'locate libXm*' the results state that these files are located at /usr/lib/. So this is what I used in the scons config file.

I'm assuming that the '-L' parameters in the code above refer to the location of various libraries, and '-l' is to do with the include files?

It appears that this is more likely a linux setup issue rather than a software issue, as others have successfully installed it without this problem.

Any advice would be appreciated!

knudfl 03-18-2013 03:03 AM

Quote:

I'm trying to install a software package
Which software ? ?

Quote:

I'm using Ubuntu 11.10 and have motif 2.3.3-5ubuntu1 installed
Required is : 'libmotif-dev'.
All libraries used at compile time must be (lib)<name>-dev.

Quote:

I'm assuming that the '-L' parameters in the code above refer to the location
of various libraries, and '-l' is to do with the include files ?
The uppercase -L : The search path to libraries.
The lowercase -l :
The particular libraries.so that you want included in the build result.
Example : -lXm means libXm.so

-

budgie26 03-18-2013 10:12 PM

The software currently has restricted use as it's in beta form so I don't think I'm in a position to say what it is. It's specialist software for a particular purpose so I don't think anyone on this forum would know it anyway.

I have libmotif-dev installed, so it should be okay.


All times are GMT -5. The time now is 08:49 PM.