Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Create empty project from commandline (.project and .cproject) missing
Create empty project from commandline (.project and .cproject) missing [message #1016432] Wed, 06 March 2013 07:54 Go to next message
Petr Hracek is currently offline Petr Hracek
Messages: 4
Registered: March 2013
Junior Member
Hello everyno,

I have just simple question,

My OS is: Fedora 18.

I would like to import project over command line to eclipse

My project is in directory ~/work/firstproject which were never imported into eclipse yet.

Project has directory structure like:
src/<code>.c
src/Makefile.am
Makefile.am
configure.ac

My workspace is ~/workspace

I created file ~/workspace/firstproject

I call command:
eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import ~/work/firstprojec -build all -cleanBuild all

Project: file:/home/stone/work/firstProject can't be found!

It seems that .cproject and .project files are missing.
Can it be generated automatically?

How?

Best regards
Petr
Re: Create empty project from commandline (.project and .cproject) missing [message #1016925 is a reply to message #1016432] Fri, 08 March 2013 03:43 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1927
Registered: July 2009
Senior Member
You have to create and setup the project within the Eclipse IDE firstly. Then .project and .cproject will be automatically created.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Create empty project from commandline (.project and .cproject) missing [message #1018666 is a reply to message #1016925] Thu, 14 March 2013 05:26 Go to previous message
Petr Hracek is currently offline Petr Hracek
Messages: 4
Registered: March 2013
Junior Member
One more question.

It seems that .project and .cproject can not be generated automatically, ok?
But when I have already build up project with make program
most of the files have been generated like *.o, *.la, binaries, libraries, etc.
Is there any filter in eclipse which could ignore that files?

Thank you in advance
Petr
Previous Topic:Backslash in pwd yields unsafe absolute working directory
Next Topic:GDB Hardware Debugging buttons not working
Goto Forum:
  


Current Time: Sat Apr 19 15:57:38 EDT 2014

Powered by FUDForum. Page generated in 0.01596 seconds