0

I have eclipse installed on windows and use cygwin to develop programs for linux. I compile using the cygwin toolchain and I also do my tests on cygwin.

Now I would like to compile my program also with the native linux toolchain and I also would like to debug it from the windows machine.

Is something possible with Indigo SR2? What is the best way to accomplish this?

I found this but then I would have two projects one for windows and one for linux. I would like to have just one project for both platforms to avoid syncrhonizing the sources back and forth.

Thanks.

Community
  • 1
  • 1
schoetbi
  • 12,009
  • 10
  • 54
  • 72
  • The tools in Linux are just the same as in Cygwin (more or less), and Eclipse CDT should use those standard tool on Linux. – Some programmer dude Apr 20 '12 at 10:15
  • I don't have eclipse installed on the linux side. How would it be possible to transfer the sources from windows to linux and execute a make via ssh? – schoetbi Apr 20 '12 at 10:17
  • 1
    you may share a single source pool between 2 projects, in this case there are no need to synchronize sources. Just use filesystem links or eclipse virtual folders. Windows+Linux+VirtualBox on your host machine seem to solve your problem without Windows/Linux cross-compilation – user396672 Apr 20 '12 at 10:31
  • If it's enough to just type `make` in a Cygwin terminal, you should just be able copy the files (with e.g. `scp`) build it the same on the Linux host. If you use special libraries, then they might have to be installed on the Linux host as well. – Some programmer dude Apr 20 '12 at 10:38

1 Answers1

0

I guess you want a cross platform development environment.

There are various tools for the job, but my choice would be CMake. Basically, you will write CMakelists.txt file instead of Eclipse .classpath and .project files, and generate those files with cmake executable. But in details, you will need to overcome some difficulties which are inherent in cross platform development.

I have successfully created more than one project with these tools, and they currently under a heavy load.

Community
  • 1
  • 1
b10y
  • 839
  • 9
  • 19