1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
What is CodeLite?
====
[](https://gitter.im/eranif/codelite?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[CodeLite][1] is a free, open source, cross platform IDE specialized in C, C++, PHP and JavaScript (mainly for backend developers using Node.js) programming languages, which runs best on all major platforms (Windows, macOS and Linux).
You can download pre-built binaries for Windows, macOS and Linux from our **[Download Page][2]**.
More information can be found here:
- [Official Website][3]
- [Download Page][4]
- [Wiki][5]
----------
Building CodeLite on Linux
----
To build CodeLite on your computer you will need these packages:
- wxWidgets 3.0 or later
- The GTK development package: often called libgtk2.0-dev or wxGTK-devel, or similar
- pkg-config (which usually comes with the GTK dev package)
- The build-essential package (or the relevant bit of it: G++, Make etc)
- CMake
- Git.
You should have wxWidgets 3.0 or later built on your machine. If you don't know how to build (or you're just lazy...) you can [download wxWidgets from CodeLite's repository][6].
On Ubuntu / Debian you can install all of the above (except for wxWidgets 3.0) by typing:
sudo apt-get install libgtk2.0-dev pkg-config build-essential git cmake libssh-dev libwxbase3.0-dev libsqlite3-dev libwxsqlite3-3.0-dev
Git clone the sources:
git clone https://github.com/eranif/codelite.git
Run CMake and build CodeLite:
cd codelite
mkdir build-release
cd build-release
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install
----------
Building CodeLite on macOS
----
Prerequisites:
- wxWidgets 3.0 or later
- CMake
- Git
- Xcode
- Xcode command-line tools
- Homebrew.
Preparation:
- (Optional) Make a separate folder for building if you want to get rid of all except the .app file after building
- Install Xcode from Mac App Store
- Install Xcode command-line tools: `xcode-select --install`
- Install Homebrew:
```
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
- Update Homebrew: `brew update`
- (Optional) Upgrade Homebrew packages: `brew upgrade`
- Install Git: `brew install git`
- Install CMake: `brew install cmake`
- Install wxWidgets: `brew install wxmac --dev --use-llvm`
Clone the repo (lets assume that you have a folder `/Users/YOU/src`)
```bash
cd /Users/YOU/src
git clone https://github.com/eranif/codelite.git
```
the above will create the folder `/Users/YOU/codelite`
To build CodeLite:
```bash
cd /Users/YOU/codelite
mkdir build-release
cd build-release
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4
make install
```
You should now have an app bundle `/Users/YOU/codelite/build-release/codelite.app`
To launch CodeLite:
`open /Users/YOU/codelite/build-release/codelite.app`
----------
Building CodeLite on Windows
----
Git clone the sources:
git clone https://github.com/eranif/codelite.git
- Download CodeLite installer for Windows from our [Download Page][8]
- Download wxWidgets 3.0 installer. Also from our [Download Page][7]
- Open the workspace **LiteEditor.workspace** (located in the CodeLite's folder)
- Make sure that the project **CodeLiteIDE** is selected (the active project uses **bold** font)
- Select the **Win_x64_Release** or **Win_x86_Release** (depending if you want to build a 32 or 64 bit version of CodeLite) and hit **F7**
- When the compilation is over, close the workspace
- Next, locate the workspace **codelite_utils/codelite_utils.workspce** and open it
- Select the **Win_x64_Release** or **Win_x86_Release** (depending if you want to build a 32 or 64 bit version of CodeLite), hit **F7** and wait for the compilation to end
- Close CodeLite
- To update your installation with the new CodeLite, close CodeLite and from a cmd.exe window navigate to codelite-sources/Runtime/ and run the file **update64.bat** OR **update.bat** (again, depending on your selected arch).
[1]: https://codelite.org
[2]: https://codelite.org/support.php
[3]: https://codelite.org
[4]: https://codelite.org/support.php
[5]: http://codelite.org/LiteEditor/Documentation
[6]: http://codelite.org/LiteEditor/WxWidgets30Binaries
[7]: https://codelite.org/support.php
[8]: https://codelite.org/support.php
|