|
Re: verify build setup [message #789859 is a reply to message #789729] |
Fri, 03 February 2012 13:54 |
Robert Pavel Messages: 3 Registered: August 2010 |
Junior Member |
|
|
Not 100% sure what you mean by "set up variables"
If you mean include and library paths, I suggest taking a look at your compiler's documentation for how to specify this at the command line.
Either way: Just include it in the rule of the Makefile. It is generally frowned upon in my experience, but it works. It may take some trial and error to make sure the commands are for the right shell (I forget if make temporarily uses a different shell), but that is no problem.
Then, instead of needing to call ./build.sh, you just type "make build" (and, obviously, tell Eclipse to use the rule "build" or whatever you name your rule). You can even recursively call make from make (for subdirectories).
Or, if you are REALLY lazy, try and just have the rule call your existing script.
That being said, I suggest looking into cmake. I suspect it does what you want AND it is a much more automated process (that even allows for portability across platforms in many cases).
|
|
|
Re: verify build setup [message #791994 is a reply to message #789729] |
Mon, 06 February 2012 13:49 |
Axel Mueller Messages: 1973 Registered: July 2009 |
Senior Member |
|
|
You can use whatever command you like to build your project. There is no need to use make.
Does your build script give any output on the build console in Eclipse?
Did it actually build something in the first try? (clean everything and build from within Eclipse)
Did you specfiy the correct build path in Project Properties->C/C++ Build: Build lcoation
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
Powered by
FUDForum. Page generated in 0.04437 seconds