LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2010, 04:09 AM   #1
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Rep: Reputation: 15
Unhappy Compiling a program called praat


Today I tried compiling a program called praat. I did say try, cause it didnt work. I got this error:

gcc: /usr/local/lib/libXm.a: No such file or directory

So I did this command:

find / -name libXm.a

Its not even on my hard drive. So I went on the pragram's web page. Seems I need Motif. So I entered this command:

slapt-get --search motif

Result was that package lesstif-0.95.0-i486-5 came up as installed. Description of the package: a free replacement for OSF/Motif(R). Replacement. So I figured I needed another package. So I went on slackbuilds.org. Looked for the word "motif". Two packages came up: xlt (11.1.11) and openmotif (2.3.0). So I first removed lesstif, compiled both packages from slackbuilds.org, installed them, and ran the make of praat again: same error. So I went on Alien Bob's place. Found a newer version of openmotif. Still, that didnt do it. So I googled libXm.a. I just cant seem to find wich package includes that file.

Can anyone help? I really need this praat software to compile.

Thanks,
Dumdadum

Last edited by dumdadum; 04-18-2010 at 04:11 AM.
 
Old 04-18-2010, 05:12 AM   #2
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Thumbs down Found the libXm.a file

Ok so I found the libXm.a file. I did the following command:

find / -name libXm*

Turns out its in /usr/lib/. So I did the following command:

ln -s /usr/lib/libXm.a /usr/local/lib/libXm.a

Now I'm getting all sorts of errors, mainly undefined references to files in the /tmp/build/tmp-openmotif/openmotif-2.3.2/lib/Xm/ folder. It talks about openmotif. And openmotif is installed.

Anyone has something that can help me? I'll try emailing the authors of the program see what they have to say...

Dumdadum
 
Old 04-18-2010, 05:37 AM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 970

Rep: Reputation: 235Reputation: 235Reputation: 235
Hi dumdadum,

As you have mentioned on a full install of Slackware 13.0 the correct path is:

Code:
root@skamandros~# find /usr -iname 'libXm.a'
/usr/lib/libXm.a
Possibly an easier way than making a link from /usr/local/lib is to simply alter the makefile.defs file that you created by running:

Code:
cp makefiles/makefile.defs.linux.motif ./makefile.defs
before compiling? Following this the program compiled cleanly on my system with no extra libraries installed. You ran make clean between attempts?

Andrew
Attached Thumbnails
Click image for larger version

Name:	praat.png
Views:	14
Size:	34.0 KB
ID:	3368  
 
1 members found this post helpful.
Old 04-18-2010, 06:11 AM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.2
Posts: 1,097

Rep: Reputation: 217Reputation: 217Reputation: 217
I downloaded the *binary* straight from the website, and it ran with no errors (gtk style, no fonts with motif)...

edit...and, as andrew.46 has indicated, the source compiles fine, as long as the instructions on the website are followed....


cheers,

Last edited by mrclisdue; 04-18-2010 at 06:23 AM.
 
1 members found this post helpful.
Old 04-18-2010, 06:32 AM   #5
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Lightbulb

Quote:
Originally Posted by andrew.46 View Post
Hi dumdadum,

As you have mentioned on a full install of Slackware 13.0 the correct path is:

Code:
root@skamandros~# find /usr -iname 'libXm.a'
/usr/lib/libXm.a
Possibly an easier way than making a link from /usr/local/lib is to simply alter the makefile.defs file that you created by running:

Code:
cp makefiles/makefile.defs.linux.motif ./makefile.defs
before compiling? Following this the program compiled cleanly on my system with no extra libraries installed. You ran make clean between attempts?

Andrew
So I have to run "make clean"? I didnt know that. Also I will look into the makefile.defs that I created and I think you might be right I might have to modify it. I just thought that it was gona compile without any modifs. I'll work on it and post any other questions I might have.

Thanks,
Dumdadum
 
Old 04-18-2010, 06:36 AM   #6
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by mrclisdue View Post
I downloaded the *binary* straight from the website, and it ran with no errors (gtk style, no fonts with motif)...

edit...and, as andrew.46 has indicated, the source compiles fine, as long as the instructions on the website are followed....


cheers,
Seems I didnt follow the instructions correctly. Thanks for trying it for me. I'm thinking that praat ran from the executable that is on the website, but that it might have bugs, since I cant compile it from source. So I will look into modifying the defs file and try to get a zero errors compile from the source. That way I'll be sure that my roomate wont encouter problems when he will be using it.

Thanks again,
Dumdadum
 
Old 04-18-2010, 07:11 AM   #7
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Cool Case closed

Ok, fixed the makefile.defs, now it points at the right folders. Uninstalled openmotif, reinstalled lesstif, complete build, zero errors.

Now, where is my build? Its all nice that its done, but where is the file it created? I'll go look for it. Thanks again people, you've been very helpfull. I appreciate alot, and so will my roomate.

Cheers,
Dumdadum
 
Old 04-18-2010, 07:30 AM   #8
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 970

Rep: Reputation: 235Reputation: 235Reputation: 235
Hi dumdum,

Quote:
Originally Posted by dumdadum View Post
Now, where is my build?
You have probably already found the executable 'praat' in the root directory of the source .

Andrew
 
1 members found this post helpful.
Old 04-18-2010, 04:51 PM   #9
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Question Reply from the author

I don't know if anyone can second this, but the author says that praat compiled by them with motif will run better than praat compiled with lesstif and png because lesstif and png are filled with bugs. Is that true?

Dumdadum
 
Old 04-18-2010, 04:52 PM   #10
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1 64 bits
Posts: 238

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by andrew.46 View Post
Hi dumdum,



You have probably already found the executable 'praat' in the root directory of the source .

Andrew
Correct, it was there (=

Thanks,
Dumdadum
 
  


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
What is the debian update program called ? wearetheborg Debian 13 11-08-2007 11:35 AM
shell scripts ...--can it be called with in a c program narendra.pant Linux - Newbie 2 08-17-2006 07:43 AM
How do I use the program called '*lit' ? rrsc16954 Mandriva 3 02-05-2006 11:04 AM
Debugging C++ so called from java program exitsfunnel Programming 3 10-12-2005 03:01 PM
Do YOu Know a program Called SIG? benmay05 Linux - Software 2 06-27-2005 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration