LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-17-2013, 07:01 PM   #1
budgie26
LQ Newbie
 
Registered: Nov 2012
Posts: 17

Rep: Reputation: Disabled
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!
 
Old 03-18-2013, 03:03 AM   #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'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

-
 
Old 03-18-2013, 10:12 PM   #3
budgie26
LQ Newbie
 
Registered: Nov 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
configure: error: can't find Xm (motif) library MilanK Linux - Newbie 7 05-24-2015 04:35 PM
motif has been released as Open Source Software Under LGPL v2.1 qunying Slackware 1 10-25-2012 05:00 PM
python scons/scons.py install Aquarius_Girl Linux - General 5 02-11-2010 02:24 AM
Installing ffmpeg2theora with scons can't find libavcodec Smax Linux - Software 7 11-12-2008 06:38 PM
g++ compiler cannot locate its library in my fedora machine khandielas Linux - Newbie 2 03-02-2008 11:46 AM

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

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