Convert gcc command line into Eclipse CDT project file -


i have remote, cross build , manually take gcc command line makefile build, , use setup eclipse cdt project file include paths , preprocessor definitions. how can this?

the usual way using build output parser.

  • create makefile project
  • enable build output parser in project properties | c/c++ general | preprocessor include paths, macros etc. | providers tab (in might enabled).

    • configure if necessary (e.g. "compiler command pattern" may need adjusted match cross-compiler's name.)
  • make sure can build project within eclipse. if necessary, configure make target name , invocation directory in project properties | c/c++ build.

  • invoke build within eclipse.

    • the build output parser run automatically @ end of build, parse compiler commands in build output, , configure project's include paths , preprocessor defines based on commands.

note: work, build output needs contain raw compiler commands. sometimes, e.g. cmake-generated makefiles, doesn't default there option enable - if so, sure "build command" specified in project properties | c/c++build contains option.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -