Any way to install CodeLite on Clear Linux?

Hi there, I’m new to Clear Linux and wanted to install CodeLite for programming with.

According to their site they have Linux versions but I don’t know how I would get any of these to work with Clear Linux. They have releases for Debian, Fedora and Arch but most can only be installed through the terminal in those systems. Latest - CodeLite Documentation

Any help would be appreciated,

Thanks.

I tried to build codelite from source following https://docs.codelite.org/build/build_from_sources/#linux and got this error [Bug]: build error on latest master using GCC 14.1.1 · Issue #3363 · eranif/codelite · GitHub

.../codelite/dtl/dtl/Diff.hpp:168:27: error: assignment of member ‘trivial’ in read-only object
  168 |             this->trivial = true;
      |             ~~~~~~~~~~~~~~^~~~~~
[ 38%] Building CXX object Plugin/CMakeFiles/plugin.dir/clDataViewListCtrl.cpp.o
[ 38%] Building CXX object Plugin/CMakeFiles/plugin.dir/clDebuggerTerminal.cpp.o
make[2]: *** [Plugin/CMakeFiles/plugin.dir/build.make:2589: Plugin/CMakeFiles/plugin.dir/clDTL.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1403: Plugin/CMakeFiles/plugin.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

CL version: 41720
The reporter was able to get around this issue by using clang instead of gcc so you can try that

Building with clang harder than it looks
Dependencies

sudo swupd bundle-add c-basic-static devpkg-llvm devpkg-wxWidgets devpkg-libssh devpkg-hunspell devpkg-glib devpkg-at-spi2-core devpkg-gdk-pixbuf devpkg-gtk3 devpkg-pango flex

Clone the repo and setup for building

git clone https://github.com/eranif/codelite.git --recursive
cd codelite
git checkout 17.10.0 #(latest release at time of writing)
mkdir build
cd build

build time

export GCC_IGNORE_WERROR=1
export CC=clang
export CXX=clang++
export LD=ld.gold
export CFLAGS='-O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -Wno-error -march=westmere -fno-lto'
export CXXFLAGS='-O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -Wno-error -march=westmere -fno-lto'
cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
make -j$(nproc)
sudo make install

CL version: 41850

Notes: 17.0.0 stable doesnt build with clang 17 or gcc 14, so autospec fails
The dependencies are taken directly from autospec, so I might be missing a few. Let me know if you get any errors

UPDATED deps in bundle-add command with pkgconfig requires

1 Like

I get this error. Had a search for it but I’m not sure what’s happening.

sorry about that, here you go

sudo swupd bundle-add devpkg-glib devpkg-at-spi2-core devpkg-gdk-pixbuf devpkg-gtk3 devpkg-pango flex

lets see how it goes now
NOTE: If you want to reset your build in case your cmake not acting nicely, just delete the build folder and try again

cd codelite
rm -rf build
mkdir build
cd build