|CMake and Remote Eclipse Projects [message #1005770]
||Mon, 28 January 2013 16:38
| Derek Wood
Registered: January 2013
Perhaps this is a topic that should go to the folks at CMake as well, but I've been able to have CMake generate an Eclipse C++ shared library project and have Eclipse clean and build my project as well as get the integrated debugger working. However, I was restricted to use Eclipse on the system that generated the CMake project files as the paths in the project files only applied to that system.|
I would prefer to have myself work on my Windows machine and remote develop on my Linux system, but I use CMake as the build system (it generates the makefiles as well) and there are some steps in the CMake scripts that I want to execute, so I don't think I can easily transition to the Eclipse "automatic generation of makefiles" functionality. I am trying this on Juno SR1 with PTP (incl. RDT).
I've been reading up using RDT and experimenting with different methods (RSE vs. Remote Tools, dstore vs ssh, Remote GCC C/C++ Shared Library project vs Remote Makefile Project, Other Toolchain) for the last couple of days. I figured I'd first try to set up the project manually in Eclipse, and then maybe augment CMake to generate the project I end up with, if necessary. I've tried both RSE and Remote Tools and found myself getting further when using Remote Tools / SSH. After some small mishaps (like needing to point /bin/sh to /bin/bash) I was able to run the make/clean targets on my CMake generated makefile on my remote system from my local machine running Eclipse, however, there are some quirky things still so I don't consider this working:
- My manually-created remote project shows warnings in Eclipse about unresolved includes. I attempt to add the include path /usr/local/include (location on my remote system), which I can see through my remote connection in the Remote System Explorer perspective, but upon selecting "/usr/local/include" in C/C++ General -> Paths and Symbols -> GNU C++, a warning at the bottom states "The selected folder does not exist or not accessible." Is there a way to point this to
- I could not seem to be able to run CMake and make in the fashion that I wanted. I noticed in C/C++ Build if "Generate Makefiles automatically" is checked, then C/C++ Build -> Settings as more tabs available, allowing a prebuild and postbuild command to be issued. Since I have "Generate Makefiles automatically" unchecked (CMake generates them), I don't have fields for prebuild/postbuild commands and would like to use them. The prebuild command would run cmake, the post build command would be the install target, and the normal build command could then be threaded (make -j 5). Is there a way to get this to work in Eclipse?
Has anyone attempted to this before? Given a first glimpse, this seems possible, however I'm not having luck. I'm wondering if further development is needed which I may consider helping out with. Going through all of this trouble to get this working would definitely be worth it. Using nomachine or something else like that does not seem to be a good option for us at this point. Thanks.
Powered by FUDForum
. Page generated in 0.01658 seconds