Remote Development: Compile on local machine instead of remote machine

Answered

I use "Remote Development" described here: https://www.jetbrains.com/help/clion/remote-development.html

I code with CLion on a windows desktop and the code is automatically transferred to and compiled on a aarch64 dev board (Coral/Google TPU board).

Compile time is really slow on the dev board so I'd like to compile on my 5GHz windows machine instead. (I don't use any of the remote debugging features anyway.)

Is it possible to have the libraries on the desktop only, compile on the desktop, and transfer the binary + any static libs to the dev baord? Or is that asking for trouble in terms of build or maintenance issues?

3 comments
Comment actions Permalink

Hello!

You can just build the project locally (if such cross-compilation is technically possible in your case) and upload the necessary files to the remote machine manually or using CLion (https://www.jetbrains.com/help/clion/uploading-and-downloading-files.html). 

0
Comment actions Permalink

Cross-sompilation may work out for all of the various libraries, but I think another problem would be dependency resolution on the windows machine. The other requirement is that CLion has to still resolve dependencies correctly, using whatever libraries exist on the dev board. So CLion would still look at what's installed on the dev board for syntax highlighting, etc, but I would build on Windows. I guess that would be the most efficient development cycle, assuming cross-compilation will work for all dependencies.

0
Comment actions Permalink

You either need to build the project on the remote machine using the Full remote mode and in this case headers and dependencies from the remote machine will be used, or you need to cross-compile on the local machine and in this case headers and dependencies from the local machine should be used. Just in case, here is CMake Wiki about сross compiling: https://cmake.org/Wiki/CMake_Cross_Compiling.

0

Please sign in to leave a comment.