Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to incorporate bash build scripts to an Eclipse project?
How to incorporate bash build scripts to an Eclipse project? [message #506883] Mon, 11 January 2010 04:17 Go to next message
Eclipse UserFriend
Hi there!

I am currently working in a c++ project under linux, and I use bash scripts to initiate the environment variables. I am trying to move to eclipse, but I have problems compiling my existing projects.

My project is in the folder:

/home/user/framework/app/myproject

I first need to go to

/home/user/framework/

and run locally a script setup (. ./setup)

and then I can go back to my project directory and run make (which points to make files in different directories, defined by environment variables set by the ./setup script)

Is there any way to overrule the default building rules of eclipse and add this script in the beginning in order to set the (many) environment variables automatically?

Cheers Smile
Re: How to incorporate bash build scripts to an Eclipse project? [message #506912 is a reply to message #506883] Mon, 11 January 2010 00:34 Go to previous messageGo to next message
Eclipse UserFriend
For my java project I use an 'externalToolBuilder' which is an Eclipse concept. I've never tried it for C++ but it may work too. In my case, every time I build my java project, I have this external builder also build some C code I have in that project, using make.

http://wiki.eclipse.org/FAQ_How_do_I_create_an_external_tool _builder%3F

Marc
Re: How to incorporate bash build scripts to an Eclipse project? [message #506915 is a reply to message #506883] Mon, 11 January 2010 00:42 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
Is there any way to overrule the default building rules of eclipse and add this script in the beginning in order to set the (many) environment variables automatically?

You can add an additional builder to your project (see Project Properties).
Re: How to incorporate bash build scripts to an Eclipse project? [message #507105 is a reply to message #506915] Mon, 11 January 2010 22:14 Go to previous messageGo to next message
Eclipse UserFriend
Thx a bunch Smile

It worked:-)
Re: How to incorporate bash build scripts to an Eclipse project? [message #900550 is a reply to message #507105] Tue, 07 August 2012 09:33 Go to previous message
Eclipse UserFriend
If author still look at his mail or forum Rolling Eyes , can you explain how you succeed to do this?
I try to do the same thing but i always lose variables between script and make.

Previous Topic:Compiling updated code
Next Topic:Intel tool chain for Remote C/C++ project
Goto Forum:
  


Current Time: Fri Jun 20 11:07:14 EDT 2025

Powered by FUDForum. Page generated in 0.05218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top