Errors when importing projects into Eclipse

Asked By 7060 points N/A Posted on -

I used CMAKE-GUI and MinGW under Eclipse CDT to build vlmc under windows. So, I configured CMAKE to generate Eclipse project files. I then imported the projects into Eclipse and proceeded to build it. However, it suddenly stops and shows me some errors. The referenced directories and files exist. So, what should I do to resolve this? Your help would mean so much to me. You can see the errors below:

[ 3%] Generating icon.o
cd C:UsersAdminDocumentsGitvlmc-2.0-eclipsesrc && -IC:UsersAdminDocumentsGitvlmc-2.0-eclipse -iC:/Users/Admin/Documents/Git/vlmc-2.0-eclipse/cmake/icon.rc -o C:/Users/Admin/Documents/Git/vlmc-2.0-eclipse/src/icon.o
mingw32-make[2]: Leaving directory `C:/Users/Admin/Documents/Git/vlmc-2.0-eclipse'
mingw32-make[1]: Leaving directory `C:/Users/Admin/Documents/Git/vlmc-2.0-eclipse'
The filename, directory name, or volume label syntax is incorrect.
mingw32-make[2]: *** [src/icon.o] Error 1
mingw32-make[1]: *** [src/CMakeFiles/vlmc.dir/all] Error 2
mingw32-make: *** [all] Error 2

Answered By 0 points N/A #83425

Errors when importing projects into Eclipse


Go to project> properties > Java build path > Libraries. Just have a look and confirm that the JRE system library is added properly.

Also download the maven and add it to your classpath and try to run mvn eclipse:eclipse on the root folder. Now first create a simple “hello world” project and does eclipse can import that project?  If it is your first eclipse project, create “M2_REPO” variable that will refer the maven repository.

 (“user_home /.m2 / repository”).

If the error is still occurring then refresh and clean the project. Then open the pom.xml located in the root of the project and add the following plug-in:

Java build path

Login/Register to Answer

Related Questions