I’ve set up a build system for OF in Sublime Text according to a tutorial I found here in the forums. The build system works, I can create projects and build them from within ST3. Now I need Auto Completion so I installed https://github.com/niosus/EasyClangComplete - I’ve then created a .clang_complete file with the following contents to point to the headers. Then I get errors saying ofMain.h can’t be found etc. so I guess it’s not reading the header files correctly. Can anyone help?
Hey, I am the guy behind EasyClangComplete. I see two issues with your setup.
- .clang_complete does not support
*. It includes all the files in the folder, though.
-Isystem looks strange. What exactly do you mean by this entry?
Also, if you find an issue with the plugin, feel free to open an issue on GitHub.
Hi @niosus thanks for your support. How would you recommend to set up EasyClangComplete for OF generally? The -Isystem I just took from another tutorial, it might not be needed at all.
I don’t know much about OF, but can give some general tips. First of all, consider to use CMake for your project (if possible). This way, you will need no manual setup at all. In case this is not an option, here is what you can do:
- I am pretty sure that the
Isystem line is not needed.
- remove the stars from the paths, so
- it seems that you also add folders with libraries - there is no need to do it. You only need the locations of headers for autocompletion. Are you sure these are the folders that contain OF headers?
- make sure to include
Unfortunately, I have never worked with OF, so I can’t give you anything more specific.
hi, I just wanted to give EasyClangComplete a try, too.
however it’s not finding any of the oF types or from my own header files. – am I missing something, here?