LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   building source code, getting a little lost in it (https://www.linuxquestions.org/questions/linux-newbie-8/building-source-code-getting-a-little-lost-in-it-403703/)

fognight 01-15-2006 03:35 PM

building source code, getting a little lost in it
 
Hello,

I am, obviously, a newbe with Linux and have to build the source code for a text-to-speech application (Flite). I am a member on a senior project team where the project is to assemble a handfull of applications together and then port them to a development board which is linux based so we are running the desktop with Linux to speak to the board.

Currently running Fedora

In the last step of this chain of apps we run a TTS (Flite-1.3 from CMU). Where I am getting lost is building the Flite source code into an executable program.

The documentation is pretty much limited to:
Quote:

tar zxvf flite-XXX.tar.gz
cd flite-XXX
./configure
make
So I extract the .tar.gz with ARK to a folder, open that folder and launch the terminal. In the Terminal I ran the "./configure" and then "make".

After "make" it came back with the command line and I did not see anything that explicitly looked like an error.

Now what do I do? After "make" I still need to complie right? Where should I look for the file(s) which I need to compile?

Thanks for any help

saman007uk 01-15-2006 03:40 PM

Make compiles the files. To install the program on the system run this after running "make":

Code:

make install

fognight 01-15-2006 03:50 PM

thanks saman, looks like I now have a permissions problem

came back with "cannot create directory" and "[install] Error 1" -- have to figure out how to get to the user account with that level permission

saman007uk 01-15-2006 03:55 PM

You have to become root (administrator). To do this:
Code:

su -
This will ask for the root password. If you didn't set a root password when installing Linux, run following:
Code:

sudo bash
Then you can run
Code:

make install

fognight 01-15-2006 04:08 PM

thank you again saman

now I've hit my head on the classic error, a file or directory is missing midway thru the install which stops it and returns "Error 2"

Is there a way to find out what these error messages mean?

fognight 01-15-2006 04:25 PM

I've noticed that this source code contains many folders and at least 4 of the subfolders contain makefiles. Would I need to go to each folder and run "make"?

Komakino 01-15-2006 04:48 PM

Quote:

Originally Posted by fognight
thank you again saman

now I've hit my head on the classic error, a file or directory is missing midway thru the install which stops it and returns "Error 2"

Is there a way to find out what these error messages mean?

Error 2 is a make error, the error you're interested in will be from the compiler or the linker and will appear further up. Look for something starting "In file..." that isn't immediately followed by "Warning" (we're interested in errors not warnings).

If you want, post some output here, but put it between [code ] [/code ] tags (remove the space in those)

fognight 01-15-2006 05:37 PM

Thanks Komakino, and your signature is great.

I am running the whole process again with a new download copy in a clean folder. When I configure it runs through the "checking" and ends up with a bunch of "no" returns. Mainly from my lack of a sound card.

Watching the make I saw no errors occur. There was, however, a plethora of warnings.

With make install I get:
Code:

Installing
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/include/flite
/usr/bin/install -c -m 644 include/*h /usr/local/include/flite
make: *** lib: No such file or directory. Stop.
make: *** [install] Error 2

When I tared I used
Code:

tar zxvf filename.tar.gz
I am within the folder it created when I try to run the make install

saman007uk 01-16-2006 06:45 AM

You have to run the command is the following order:
Code:

./configure
make
make install

Did you run "./configure" anbd "make" after untarring the file?

fognight 01-16-2006 10:31 AM

Yes as I understand it

all done while root
Code:

tar zxvf flite.tar.gz
cd flite
./ configure
make
make install


saman007uk 01-16-2006 10:39 AM

There is not space between "./" and "configure", but I think that a typo:)

Othrwise, it looks correct. You might need to add some configure parameters, don't know. Look at "./configure -h".

fognight 01-16-2006 11:07 AM

Yup, that space was a typo.

I dove back into the flite readme file and found that it wanted GNU make. I have no clue whether this computer is running it or what the difference is in the make that is on here so I installed the one off the GUN ftp. GNU make installed without a problem. I am now retrying the install.

Thank you all for bearing with me and my newbe questions

saman007uk 01-16-2006 01:01 PM

You already have make installed, otherwise you would not be able to run "make".


All times are GMT -5. The time now is 03:39 AM.