Unable to compile Codelite 17.0 on Centos 7.9

CodeLite installation/troubleshooting forum
golodin2
CodeLite Curious
Posts: 6
Joined: Sun May 21, 2023 10:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Unable to compile Codelite 17.0 on Centos 7.9

Post 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

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Unable to compile Codelite 17.0 on Centos 7.9

Post 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

golodin2
CodeLite Curious
Posts: 6
Joined: Sun May 21, 2023 10:41 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Unable to compile Codelite 17.0 on Centos 7.9

Post 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

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Unable to compile Codelite 17.0 on Centos 7.9

Post 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.

Post Reply