Edit on Mac build and run on Arch Linux

General questions regarding the usage of CodeLite
Mook
CodeLite Enthusiast
Posts: 17
Joined: Sat Jul 04, 2015 4:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Edit on Mac build and run on Arch Linux

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Edit on Mac build and run on Arch Linux

Post 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
Make sure you have read the HOW TO POST thread
Mook
CodeLite Enthusiast
Posts: 17
Joined: Sat Jul 04, 2015 4:21 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Edit on Mac build and run on Arch Linux

Post by Mook »

Hi Eran,

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