IDE Setup: Difference between revisions
No edit summary |
|||
Line 28: | Line 28: | ||
/home/doebel/src/tudos/src/build/include/contrib/lwip | /home/doebel/src/tudos/src/build/include/contrib/lwip | ||
/home/doebel/src/tudos/src/build/include/contrib/zlib | /home/doebel/src/tudos/src/build/include/contrib/zlib | ||
== VIM / YouCompleteMe == | |||
VIM's excellent [https://github.com/Valloric/YouCompleteMe YouCompleteMe] plugin provides C/C++ completion and works for L4Re with some tweaks. You will need to define your own customization for YCM by putting a ''.ycm_extra_conf.py'' file in your l4/pkg directory. Start with a copy of the original file that ships with YCM (''.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py''). | |||
Set the ''flags'' array to contain a list of the L4Re compile flags that should be passed to Clang for compilation. You can get those flags by doing a | |||
$> make VERBOSE=1 | |||
for any of your L4Re packages and copying the flags from there. | |||
[[Category: Knowledge Base]] | [[Category: Knowledge Base]] |
Revision as of 14:11, 6 September 2013
Eclipse
If you want to use Eclipse to work on the ComplexLab, you need to tell Eclipse where the include files are located and provide them in the correct order.
To simplify that task, you can import this project-settings using File -> Import -> C/C++ Project Settings. Afterwards you need to rebuild the index at <Your project> -> Index -> Rebuild. Note that this settings are specific for the ComplexLab and the x86 architecture.
This is a work in progress, so don't expect it to be perfect :-)
KDevelop
KDevelop requires you to set up an index file using absolute paths. This file is called .kdev_include_paths and should reside in the root directory of your L4Re checkout. Mine looks like this:
/home/doebel/src/tudos/src/build/include/x86 /home/doebel/src/tudos/src/build/include/x86/l4f /home/doebel/src/tudos/src/build/include /home/doebel/src/tudos/src/build/include/l4f /home/doebel/src/tudos/src/build/include/uclibc /home/doebel/src/tudos/src/build/include/contrib/acpica /home/doebel/src/tudos/src/build/include/contrib/ankh_lwip /home/doebel/src/tudos/src/build/include/contrib/boost-1_39-lite /home/doebel/src/tudos/src/build/include/contrib/libiniparser /home/doebel/src/tudos/src/build/include/contrib/libio-direct /home/doebel/src/tudos/src/build/include/contrib/libio-io /home/doebel/src/tudos/src/build/include/contrib/libpng /home/doebel/src/tudos/src/build/include/contrib/libstdc++-v3 /home/doebel/src/tudos/src/build/include/contrib/libudis86 /home/doebel/src/tudos/src/build/include/contrib/lua /home/doebel/src/tudos/src/build/include/contrib/lwip /home/doebel/src/tudos/src/build/include/contrib/zlib
VIM / YouCompleteMe
VIM's excellent YouCompleteMe plugin provides C/C++ completion and works for L4Re with some tweaks. You will need to define your own customization for YCM by putting a .ycm_extra_conf.py file in your l4/pkg directory. Start with a copy of the original file that ships with YCM (.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py).
Set the flags array to contain a list of the L4Re compile flags that should be passed to Clang for compilation. You can get those flags by doing a
$> make VERBOSE=1
for any of your L4Re packages and copying the flags from there.