Page 1 of 1

Edit on Mac build and run on Arch Linux

Posted: Fri Aug 14, 2015 7:01 pm
by Mook
Just what the subject says really.

I am building a project on Arch Linux but I would like to edit its source on my mac but when I build the project F7 or run the project F5 it is built and then executes on Arch Linux (maybe using X forwarding) is what I want to do possible? Or am I wasting my time?

Re: Edit on Mac build and run on Arch Linux

Posted: Fri Aug 14, 2015 7:08 pm
by eranif
You can do the edit on your mac, however, the build should be done on the remote server

Read about the workspace mirroring:
http://codelite.org/LiteEditor/SFTP#toc3

To build on the remote machine using CodeLite project over SSH, you can use the

Code: Select all

codelite-make
You will need to install CodeLite on both ArchLinux and on your OSX
Here is the command line help for codelite-make:

Code: Select all

C:\Program Files\CodeLite>codelite-make
The value for the option 'w (or workspace)' must be specified.
Usage: codelite-make [/h] /w <str> /c <str> [/d <str>] [/p <str>] [/v] [/e] [/s <str>]
  /h, --help            show this help message
  /w, --workspace=<str> codelite workspace file
  /c, --config=<str>    configuration name to generate
  /d, --command=<str>   which command to run? possible values are: build, clean or rebuild. The default is to build
  /p, --project=<str>   project to build, if non given codelite will build the active project as defined in the workspace
  /v, --verbose         Run in verbose mode and print all log lines to the stdout/stderr
  /e, --execute         Instead of printing the command line, execute it
  /s, --settings=<str>  The full path of the build_settings.xml file.
By default, codelite-make will load the compiler definitions from
%appdata%\codelite\config\build_settings.xml (or the equivalent path on
Unix systems). Passing -s|--settings will override the default search
location
A makefile generator based on codelite's workspace
An example:

Code: Select all

codelite-make --workspace=/home/eran/test/w.workspace --config=Debug --execute
Eran

Re: Edit on Mac build and run on Arch Linux

Posted: Mon Aug 17, 2015 4:02 pm
by Mook
Hi Eran,

Thanks for the reply as this is exactly what I was looking for, and works great.
--
Mook