Skip to main content


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 12:54 Go to next message
Petr Hracek is currently offline Petr HracekFriend
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 08:43 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
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 09:26 Go to previous messageGo to next message
Petr Hracek is currently offline Petr HracekFriend
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
Re: Create empty project from commandline (.project and .cproject) missing [message #1804996 is a reply to message #1018666] Thu, 04 April 2019 12:15 Go to previous message
Vikky Patil is currently offline Vikky PatilFriend
Messages: 6
Registered: February 2019
Junior Member
Hi Petr,

I am also trying to do the same thing. But I couldn't get anything.

Were you able to generate the .cproject and .project for C, C++ existing make file code?

Regards,
Vikky
Previous Topic:There is no frame number in debug window
Next Topic:Application compiles but I see errors in Problems Tab
Goto Forum:
  


Current Time: Thu Apr 25 03:48:23 GMT 2024

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

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

Back to the top