| Unable to build project with jam (or make) [message #536659] |
Sat, 29 May 2010 08:55  |
salvatore Messages: 3 Registered: May 2010 |
Junior Member |
|
|
Hi,
I'm trying to use eclipse-cdt to cross-compile a project that uses jam as build system.
I managed to import the project through the SVN plugin, but I'm unable to build the project.
From the project properties I unchecked the "use default build command" option, and replaced with jam. I also unchecked the "Generates makefile automatically".
When I try to build system I get.
(Cannot run program "jam": Unknown reason)
but jam is correctly install
emitrax@xartimequad:~$ jam -v
Jam 2.5-haiku-20090626. OS=LINUX. Copyright 1993-2002 Christopher Seiwald.
emitrax@xartimequad:~$ which jam
/usr/local/bin/jam
emitrax@xartimequad:~$
and the path of the binary is in the PATH variable of the eclipse enviroment
Project -> Properties -> C/C++ build -> environment
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/bin/
I googled a bit and someone suggest to disable the "use parallel build option", but it didn't solve my problem.
I also tried to replace jam with the make command to see if the message would be different, but I still get the useless "Cannot run program "jam": Unknown reason" message.
Any idea how to solve this?
Thanks in advance.
S.
|
|
|
| Re: Unable to build project with jam (or make) [message #537043 is a reply to message #536659] |
Tue, 01 June 2010 03:26   |
Axel Mueller Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
| Quote: | When I try to build system I get.
(Cannot run program "jam": Unknown reason)
|
Does jam need any special shared libs that it cannot find when started within Eclipse? Can you check your LD_LIBRARY_PATH (or ldd jam)?
| Quote: | I also tried to replace jam with the make command to see if the message would be different, but I still get the useless "Cannot run program "jam": Unknown reason" message.
|
That is weird. Are you sure that you substituted jam with the make command only in Project Properties->C/C++ Build "build command"? Can you grep for jam in your .cproject file (it is hidden in the project folder)?
BTW, which Eclipse/CDT version are you using?
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
| Re: Unable to build project with jam (or make) [message #537259 is a reply to message #536659] |
Tue, 01 June 2010 13:34  |
salvatore Messages: 3 Registered: May 2010 |
Junior Member |
|
|
And so it worked!
I went to check the dependencies as you suggested and he gave me a weird "no permission error". Weird because apparently it got installed with the execution permission but not the reading one.
A simple chmod +r to the binary fixed my problem.
Thanks again.
S.
|
|
|
Powered by
FUDForum. Page generated in 0.01730 seconds