<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CP Editor – Installation</title><link>/docs/installation/</link><description>Recent content in Installation on CP Editor</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/installation/index.xml" rel="self" type="application/rss+xml"/><item><title>Docs: Download from Releases</title><link>/docs/installation/download-from-releases/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/installation/download-from-releases/</guid><description>
&lt;p>You need to choose a version in the
&lt;a href="https://github.com/cpeditor/cpeditor/releases" target="_blank" >Releases&lt;/a>
, then download an asset according to your OS and install it.&lt;/p>
&lt;h3 id="windows">Windows&lt;/h3>
&lt;h4 id="setup-version">Setup Version&lt;/h4>
&lt;p>The setup version needs to be installed on your machine. The setting files will be stored in the config directory on your system, and it will be visible in the list of installed programs on your system.&lt;/p>
&lt;p>Download the &lt;code>setup.exe&lt;/code> in the assets and install it.&lt;/p>
&lt;h4 id="portable-version">Portable Version&lt;/h4>
&lt;p>The portable version can be executed without installation. The setting files will be stored in the same directory as the executable file, and you won&amp;rsquo;t see it in the list of installed programs on your system.&lt;/p>
&lt;p>Download the &lt;code>portable.zip&lt;/code> in the assets and unzip it to any directory you like.&lt;/p>
&lt;h3 id="most-linux-distros">Most Linux Distros&lt;/h3>
&lt;p>Download the &lt;code>AppImage&lt;/code> in the assets, add execute permission to it (&lt;code>chmod +x &amp;lt;AppImagePath&amp;gt;&lt;/code>), then run it.&lt;/p>
&lt;h3 id="debian-based-linux-distros">Debian-based Linux Distros&lt;/h3>
&lt;p>On Debian-based Linux distributions (Ubuntu, Linux Mint, etc.) you can download the &lt;code>.deb&lt;/code> package in the assets and run the command in the terminal:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo apt install &amp;lt;path to .deb package&amp;gt;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Then type your root password and agree with the installation. You can also use &lt;code>Gdebi&lt;/code> or other graphical tools to install the &lt;code>deb&lt;/code> package. Supported: Debian 10 Buster, Ubuntu 18.04 Bionic Beaver, Linux Mint 19 Tara, and newer versions of these distributions or the ones based on them.&lt;/p>
&lt;h3 id="macos">macOS&lt;/h3>
&lt;p>Download the &lt;code>.dmg&lt;/code> file in the assets and install it.&lt;/p>
&lt;p>You may need to click &amp;ldquo;Yes&amp;rdquo; to access Filesystem several times. Apple may report that this application does not come from a recognized developer and prevent you from launching the app. Please add an exception to CP Editor from &lt;code>System Preferences -&amp;gt; Security &amp;amp; Privacy -&amp;gt; General&lt;/code>, and allow CP Editor to &lt;code>run anyways&lt;/code>&lt;/p></description></item><item><title>Docs: Use package managers</title><link>/docs/installation/use-package-managers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/installation/use-package-managers/</guid><description>
&lt;h3 id="packaging-status">Packaging status&lt;/h3>
&lt;p>
&lt;a href="https://repology.org/project/cpeditor/versions" target="_blank" >&lt;img src="https://repology.org/badge/vertical-allrepos/cpeditor.svg" alt="Packaging status">&lt;/a>
&lt;/p>
&lt;p>Some of the packages are officially maintained while most of them are maintained by the community.&lt;/p>
&lt;p>However, at present, CP Editor is not available in many package repositories. Package maintainers can contact us if any help is needed. For example, we may add some scripts in our CI/CD workflow.&lt;/p>
&lt;p>Here are a few guidelines to install the packages.&lt;/p>
&lt;h3 id="snapcraft">Snapcraft&lt;/h3>
&lt;p>You can use
&lt;a href="https://snapcraft.io" target="_blank" >Snapcraft&lt;/a>
to install
&lt;a href="https://snapcraft.io/cpeditor" target="_blank" >cpeditor&lt;/a>
, which is available on most Linux distros.&lt;/p>
&lt;p>There are two channels available: &lt;code>latest/stable&lt;/code> and &lt;code>latest/edge&lt;/code>.&lt;/p>
&lt;p>Due to technical reasons, it was published using classic confinement, so you&amp;rsquo;ll need the &lt;code>--classic&lt;/code> option to install it.&lt;/p>
&lt;p>To install the latest stable version: &lt;code>sudo snap install cpeditor --classic&lt;/code>&lt;/p>
&lt;p>To install the latest alpha version: &lt;code>sudo snap install cpeditor --classic --channel=latest/edge&lt;/code>&lt;/p>
&lt;h3 id="aur">AUR&lt;/h3>
&lt;p>If you are using
&lt;a href="https://wiki.archlinux.org/title/Arch_Linux" target="_blank" >Arch Linux&lt;/a>
, it&amp;rsquo;s recommended to install CP Editor via
&lt;a href="https://wiki.archlinux.org/title/Arch_User_Repository" target="_blank" >AUR&lt;/a>
. AUR usually also works on Arch-based distros like Manjaro, but it sometimes fails due to reasons like different main repositories.&lt;/p>
&lt;p>There are two AUR packages for CP Editor:
&lt;a href="https://aur.archlinux.org/packages/cpeditor/" target="_blank" >cpeditor&lt;/a>
for the stable version and
&lt;a href="https://aur.archlinux.org/packages/cpeditor-git/" target="_blank" >cpeditor-git&lt;/a>
for the alpha version.&lt;/p>
&lt;p>If you are unfamiliar with AUR, it&amp;rsquo;s recommended to install
&lt;a href="https://github.com/Morganamilo/paru" target="_blank" >paru&lt;/a>
and use &lt;code>paru -S cpeditor&lt;/code> to install. You can also read the wiki on
&lt;a href="https://wiki.archlinux.org/title/Arch_User_Repository#Installing_and_upgrading_packages" target="_blank" >how to manually install an AUR package&lt;/a>
or
&lt;a href="https://wiki.archlinux.org/title/AUR_helpers" target="_blank" >AUR helpers&lt;/a>
.&lt;/p>
&lt;p>After the installation, you&amp;rsquo;ll be able to run CP Editor by &lt;code>cpeditor&lt;/code> in your terminal or launch from the start menu like other apps.&lt;/p></description></item><item><title>Docs: Build from source</title><link>/docs/installation/build-from-source/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/installation/build-from-source/</guid><description>
&lt;h3 id="preparation">Preparation&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>Clone this repo and submodules:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>git clone --recurse-submodules https://github.com/cpeditor/cpeditor.git
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># or alternatively in two separate commands&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># git clone https://github.com/cpeditor/cpeditor.git&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># git submodule update --init --recursive&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> cpeditor
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Install
&lt;a href="https://www.qt.io/download" target="_blank" >Qt&lt;/a>
(5.15),
&lt;a href="https://cmake.org/download/" target="_blank" >CMake&lt;/a>
(3.12 or higher) and
&lt;a href="https://www.python.org/downloads/" target="_blank" >Python3&lt;/a>
.&lt;/p>
&lt;ul>
&lt;li>On some Linux distributions and macOS, you can install from your package manager. For example, &lt;code>sudo pacman -S qt5-base&lt;/code> on Arch Linux, &lt;code>brew install qt@5&lt;/code> on macOS.&lt;/li>
&lt;li>You can also use
&lt;a href="https://github.com/miurahr/aqtinstall" target="_blank" >aqtinstall&lt;/a>
to install Qt.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>If CMake can&amp;rsquo;t find the Qt installation path, you should set the environment variable: &lt;code>CMAKE_PREFIX_PATH=%QtPath%/%QtVersion%/%Compiler%/lib/cmake&lt;/code>. For example, on macOS, you can run something like &lt;code>export CMAKE_PREFIX_PATH=&amp;quot;/usr/local/Cellar/qt/5.15.2&amp;quot;&lt;/code>.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Install
&lt;a href="https://github.com/KDE/extra-cmake-modules" target="_blank" >Extra CMake Modules&lt;/a>
and
&lt;a href="https://github.com/KDE/syntax-highlighting" target="_blank" >KDE (kf5) Syntax Highlighting&lt;/a>
. These are &lt;strong>not&lt;/strong> bundled as submodules and must be installed on the host system before building.&lt;/p>
&lt;ul>
&lt;li>
&lt;p>On some Linux distributions and macOS, you can install from your package manager. For example, &lt;code>sudo pacman -S syntax-highlighting5&lt;/code> on Arch Linux,
&lt;a href="https://github.com/KDE/homebrew-kde" target="_blank" >Homebrew KDE&lt;/a>
and then &lt;code>brew install kde-mac/kde/kf5-syntax-highlighting&lt;/code> on macOS.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Otherwise, you can clone and build them manually:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>git clone --branch kf5 https://github.com/KDE/extra-cmake-modules.git
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> extra-cmake-modules
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake -B build -S . -DBUILD_HTML_DOCS&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF -DBUILD_MAN_DOCS&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF -DBUILD_QTHELP_DOCS&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF -DBUILD_TESTING&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake --build build --config Release --target install &lt;span style="color:#8f5902;font-style:italic"># may require sudo&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> ..
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>git clone --branch kf5 https://github.com/KDE/syntax-highlighting.git
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> syntax-highlighting
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake -B build -S . -DBUILD_HTML_DOCS&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF -DBUILD_MAN_DOCS&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF -DBUILD_QTHELP_DOCS&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF -DBUILD_TESTING&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>OFF
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake --build build --config Release --target install &lt;span style="color:#8f5902;font-style:italic"># may require sudo&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">cd&lt;/span> ..
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h3 id="build">Build&lt;/h3>
&lt;ul>
&lt;li>
&lt;p>Linux/macOS:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>cmake -S . -B build -DCMAKE_BUILD_TYPE&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>Release
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake --build build
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Windows:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bat" data-lang="bat">&lt;span style="display:flex;">&lt;span>cmake -S . -B build
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cmake --build build --config Release
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ul>
&lt;p>On Linux, you will get &lt;code>build/cpeditor&lt;/code>.&lt;/p>
&lt;p>On macOS, you will get &lt;code>build/cpeditor.app&lt;/code>.&lt;/p>
&lt;p>On Windows, you will get &lt;code>build\cpeditor.exe&lt;/code>, or &lt;code>build\Release\cpeditor.exe&lt;/code>. If DLLs are missing, you can add &lt;code>%QtPath%\%QtVersion%\%Compiler%\bin&lt;/code> (for example, &lt;code>D:\Qt\5.15.2\msvc2019_64\bin&lt;/code>) to the PATH environmental variable.&lt;/p></description></item><item><title>Docs: Use Artifacts</title><link>/docs/installation/use-artifacts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/installation/use-artifacts/</guid><description>
&lt;p>If you want to use the latest version (even later than the beta release), but don&amp;rsquo;t want to build from source, you can download Artifacts from
&lt;a href="https://github.com/cpeditor/cpeditor/actions" target="_blank" >GitHub Actions&lt;/a>
.&lt;/p>
&lt;p>However, it&amp;rsquo;s not recommended to use Artifacts, they are more unstable than beta releases, and could be a work in progress. You should read the commit logs and even the source codes before using Artifacts.&lt;/p>
&lt;p>To run it on Windows/macOS, you should install from
&lt;a href="https://github.com/cpeditor/cpeditor/releases" target="_blank" >Releases&lt;/a>
first (usually any version is OK unless something like DLL missing happens). On Windows, replace &lt;code>cpeditor.exe&lt;/code> in your install folder with the Artifact. On macOS, run &lt;code>cp path/to/Artifact cpeditor.app/Contents/MacOs&lt;/code>, where &lt;code>cpeditor.app&lt;/code> is the one already installed on your machine.&lt;/p>
&lt;p>To run it on Ubuntu 18.04, you need to install Qt. Other Linux distributions may not support binaries compiled on Ubuntu 18.04.&lt;/p></description></item></channel></rss>