How to compile Git Repo with Eclipse

How to compile Git Repo with Eclipse

Postby wanher » 18 May 2014, 02:28

Hello,

I am just getting starting and trying to compile my repository (git repo) using eclipse in ubuntu 12.04. It fails with the following error :

/usr/bin/cmake -E echo "#ifndef VERSION_H" > /home/ME/SperTuxworkspace/supertux-build/version.h.tmp
/usr/bin/cmake -E echo "#define VERSION_H" >> /home/ME/SperTuxworkspace/supertux-build/version.h.tmp
/usr/bin/cmake >> /home/ME/SperTuxworkspace/supertux-build/version.h.tmp -E echo_append "#define PACKAGE_VERSION \"0.3.4-GIT commit "
/usr/bin/git rev-parse --sq HEAD >> /home/ME/SperTuxworkspace/supertux-build/version.h.tmp
fatal: Not a git repository (or any of the parent directories): .git
make[2]: *** [CMakeFiles/gitversion] Error 128

Has anyone been able to successfully use eclipse to build a git repo or are the instructions on the wiki only specific to a SVN repo. i follow the instructions below and created a build folder as instructed on the wiki page:
[[[
run cmake inside that build directory using the eclipse generator:
cmake -G"Eclipse CDT4 - Unix Makefiles" /path/to/source
now open eclipse and select File -> import -> general -> existing project into workspace
Select your build directory as root directory and click finish.
]]]

Note: i was able to build fine from the commad line.

Thanks
User avatar
wanher
 
Posts: 5
Joined: 23 Sep 2013, 02:23

Who is online

Users browsing this forum: No registered users and 1 guest