Page 1 of 1
Unable to compile Codelite 17.0 on Centos 7.9
Posted: Sun May 21, 2023 10:46 am
by golodin2
Hi
I try to compile Codelite 17.0 but get error on ctags
I am using devtoolset-11 for g++
Source code: wget https://downloads.codelite.org/codelite ... 0.0.tar.gz
Compile of 17.0 using following commands
mkdir build-release
cd build-release
cmake -G "Unix Makefiles" -DCL_PREFIX=${HOME}/soft/compiled/codelite -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
make
Here are errors on some ctags
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [bin/codelite-ctags] Error 1
make[1]: *** [ctags/CMakeFiles/ctags.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Built target wxshapeframework
make: *** [all] Error 2
Could someone please help ?
Thanks
Re: Unable to compile Codelite 17.0 on Centos 7.9
Posted: Sun May 21, 2023 11:07 am
by DavidGH
Hi,
I don't use centos, so this is something of a generic answer. Still:
1) Did you get the CodeLite source from git? If so, did you remember to do:
git submodule update --init
2) For a new fedora release, I do:
dnf install ccache wxGTK-devel gcc-c++ xz-devel cmake clang-devel lldb-devel libssh-devel hunspell-devel sqlite-devel make
Not all of those will be relevant to you, and the names may be different in centos, but...
Regards,
David
Re: Unable to compile Codelite 17.0 on Centos 7.9
Posted: Sun May 21, 2023 8:51 pm
by golodin2
Hi
I download directly release version. So there is no 'git submodule' .
Can someone give me the perfect link that can compile and work for release 17.0 ? I may try
thanks
Re: Unable to compile Codelite 17.0 on Centos 7.9
Posted: Mon May 22, 2023 1:13 am
by DavidGH
As I said, I don't use Centos; I suspect not many people here do. However there is a fedora srpm for CodeLite 17.0. Even if it doesn't build on your Centos, the spec may give you some hints.