LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling a program called praat (https://www.linuxquestions.org/questions/slackware-14/compiling-a-program-called-praat-802659/)

dumdadum 04-18-2010 04:09 AM

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

dumdadum 04-18-2010 05:12 AM

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

andrew.46 04-18-2010 05:37 AM

1 Attachment(s)
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

mrclisdue 04-18-2010 06:11 AM

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,

dumdadum 04-18-2010 06:32 AM

Quote:

Originally Posted by andrew.46 (Post 3939162)
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

dumdadum 04-18-2010 06:36 AM

Quote:

Originally Posted by mrclisdue (Post 3939188)
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

dumdadum 04-18-2010 07:11 AM

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

andrew.46 04-18-2010 07:30 AM

Hi dumdum,

Quote:

Originally Posted by dumdadum (Post 3939218)
Now, where is my build?

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

Andrew

dumdadum 04-18-2010 04:51 PM

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

dumdadum 04-18-2010 04:52 PM

Quote:

Originally Posted by andrew.46 (Post 3939228)
Hi dumdum,



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

Andrew

Correct, it was there (=

Thanks,
Dumdadum


All times are GMT -5. The time now is 02:15 AM.