|
| 1 | +# codepad |
1 | 2 |
|
2 |
| -What is [CodeLite][2]? |
3 |
| -==== |
| 3 | +Maybe this is the best code editor for beginners or girlfriends. :) |
4 | 4 |
|
5 |
| -[](https://gitter.im/eranif/codelite?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 5 | +## Preview |
6 | 6 |
|
7 |
| -[CodeLite][3] is an open source, free, cross platform IDE for the C/C++ programming languages which runs on all major Platforms ( OSX, Windows and Linux ) |
| 7 | + |
8 | 8 |
|
9 |
| -You can download pre-built binaries for Windows / OSX and Linux from our main **[Download Page][4]** |
| 9 | +## Features |
10 | 10 |
|
11 |
| -More information can be found here: |
| 11 | + - No wizards, no workspaces, no projects. Just type and run |
| 12 | + - No need to save file, you can run it temporarily |
| 13 | + - Autosave opened files and unsaved contents, next-open as-is. |
| 14 | + - Very simplified interface. Looks like modern way. |
| 15 | + - Show frequent errors in Chinese (Many newbies in China didn't see the error information in English, just directly ask people around ... ) |
| 16 | + - Cross Mac/Win/Linux |
12 | 17 |
|
13 |
| - - [Official Website][5] |
14 |
| - - [Wiki][6] |
15 |
| - - [Download Page][11] |
16 |
| - |
17 |
| ----------- |
18 |
| - |
19 |
| - |
20 |
| -![Linux logo][7] Building CodeLite on Linux |
21 |
| ----- |
22 |
| - |
23 |
| -To build CodeLite on your computer you will need these packages: |
24 |
| - |
25 |
| - - wxWidgets 3.0 or later |
26 |
| - - The gtk development package: often called libgtk2.0-dev or wxGTK-devel or similar |
27 |
| - - pkg-config (which usually comes with the gtk dev package) |
28 |
| - - The build-essential package (or the relevant bit of it: g++, make etc) |
29 |
| - - git |
30 |
| - - cmake |
31 |
| - |
32 |
| -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 it install wxWidgets from CodeLite's repository][8] |
33 |
| - |
34 |
| - |
35 |
| -On Ubuntu / Debian you can install all of the above (except for wxWidgets 3.0) by typing: |
36 |
| - |
37 |
| - sudo apt-get install libgtk2.0-dev pkg-config build-essential git cmake libssh-dev |
38 |
| - |
39 |
| -Git clone the sources: |
40 |
| - |
41 |
| - git clone https://github.com/eranif/codelite.git |
42 |
| - |
43 |
| -Run cmake and build codelite: |
44 |
| - |
45 |
| - cd codelite |
46 |
| - mkdir build-release |
47 |
| - cd build-release |
48 |
| - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release .. |
49 |
| - make -j4 |
50 |
| - sudo make install |
51 |
| - |
52 |
| ----------- |
53 |
| - |
54 |
| -![Apple logo][12] Building CodeLite on OS X |
55 |
| ----- |
56 |
| -Prerequisites: |
57 |
| - |
58 |
| - - wxWidgets 3.x |
59 |
| - - CMake |
60 |
| - - HomeBrew |
61 |
| - - git |
62 |
| - - XCode |
63 |
| - - XCode command-line tools |
64 |
| - |
65 |
| -Preparation: |
66 |
| - - (Optional) Make a separate folder for building if you want to get rid of all except the .app file after building |
67 |
| - - Install XCode from Mac App Store |
68 |
| - - Install XCode command-line tools `xcode-select --install` |
69 |
| - - Install HomeBrew : |
70 |
| -``` |
71 |
| - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
72 |
| -``` |
73 |
| - - Update HomeBrew : `brew update` |
74 |
| - - (Optional) Upgrade HomeBrew packages : `brew upgrade` |
75 |
| - - Install git : `brew install git` |
76 |
| - - Install CMake : `brew install cmake` |
77 |
| - - Install wxWidgets : `brew install wxmac --dev --use-llvm` |
78 |
| - |
79 |
| - |
80 |
| -Clone the repo (lets assume that you have a folder `/Users/YOU/src`) |
81 |
| - |
82 |
| - ```bash |
83 |
| - cd /Users/YOU/src |
84 |
| - git clone https://github.com/eranif/codelite.git |
85 |
| - ``` |
86 |
| - the above will create the folder `/Users/YOU/codelite` |
87 |
| - |
88 |
| - To build CodeLite: |
89 |
| - |
90 |
| - ```bash |
91 |
| - cd /Users/YOU/codelite |
92 |
| - mkdir build-release |
93 |
| - cd build-release |
94 |
| - cmake .. -DCMAKE_BUILD_TYPE=Release |
95 |
| - make -j4 |
96 |
| - make install |
97 |
| - ``` |
98 |
| - |
99 |
| -You should now have an app bundle `/Users/YOU/codelite/build-release/Codepad.app` |
100 |
| - |
101 |
| -To launch CodeLite: |
102 |
| - |
103 |
| -`open /Users/YOU/codelite/build-release/Codepad.app` |
104 |
| - |
105 |
| -![Windows Logo][9] Building CodeLite on Windows |
106 |
| ----- |
107 |
| -Git clone the sources |
108 |
| - |
109 |
| - git clone https://github.com/eranif/codelite.git |
110 |
| - |
111 |
| - |
112 |
| - - Download codelite installer for Windows from our [Download Page][10] |
113 |
| - - Download wxWidgets 3.0 installer. Also from our [Download Page][11] |
114 |
| - - Open the workspace **LiteEditor.workspace** (located in the codelite folder) |
115 |
| - - Make sure that the project **CodeLiteIDE** is selected (the active project uses **bold** font) |
116 |
| - - 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** |
117 |
| - - When the compilation is over, close the workspace |
118 |
| - - Next, locate the workspace **codelite_utils/codelite_utils.workspce** and open it |
119 |
| - - 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 |
120 |
| - - Close CodeLite |
121 |
| - - 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 **update.bat** OR **update64.bat** (again, depending on your selected arch) |
122 |
| - |
123 |
| - |
124 |
| - [1]: http://codelite.org/images/logo.png |
125 |
| - [2]: http://codelite.org |
126 |
| - [3]: http://codelite.org |
127 |
| - [4]: http://codelite.org/support.php |
128 |
| - [5]: http://codelite.org |
129 |
| - [6]: http://wiki.codelite.org |
130 |
| - [7]: http://wxcrafter.codelite.org/img/linux.png |
131 |
| - [8]: http://www.codelite.org/LiteEditor/WxWidgets30Binaries |
132 |
| - [9]: http://wxcrafter.codelite.org/img/windows.png |
133 |
| - [10]: http://codelite.org/support.php |
134 |
| - [11]: http://codelite.org/support.php |
135 |
| - [12]: https://lh6.googleusercontent.com/-OMHi1w_3gNk/AAAAAAAAAAI/AAAAAAAAAAA/NrDEagpDUQI/s46-c-k-no/photo.jpg |
0 commit comments