Page 1 of 1

Compiling codelite on RHEL 7.2

Posted: Fri Aug 12, 2016 2:00 pm
by ebofr016
Hello,

I am trying to compile codelite under Red Hat Entreprise Linux 7.2. RH is not supporting codelite.

I download sources from code from Git and I have this error message :
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
-- SQLITE3_INCLUDE_DIR: /usr/include
-- SQLITE3_LIBRARY: /usr/lib64/libsqlite3.so
-- BUILD_DIRECTORY is set to /home/eboudrand/dev/codelite/build-release
-- OS name Linux
-- wx-config used is: /usr/local/bin/wx-config
-- wxWidgets version is: 3.0.2
-- gtk version is: 2
**** NOTICE: Install libssh-dev and try again
CMake Error at CMakeLists.txt:201 (message):
-- Could not find libssh


-- Configuring incomplete, errors occurred!

Red Hat is using libssl2 and openssl-dev. Which library is required for compiling ?

Regards

Re: Compiling codelite on RHEL 7.2

Posted: Fri Aug 12, 2016 4:44 pm
by DavidGH
Hi,

I have no redhat experience. FWIW the 'build-requires' in the fedora spec are (apart from wxWidgets):
cmake clang-devel lldb-devel libssh-devel hunspell-devel sqlite-devel

If there is a libssh-devel in redhat 7.2, install it. If not, cmake tests for the presence of that package by searching for the file libssh.h, so install whatever supplies that. If it exists but has a different name, you could try symlinking, or else alter CodeLite's main CMakeLists.txt to check for the correct name.

Regards,

David

Re: Compiling codelite on RHEL 7.2

Posted: Fri Aug 12, 2016 6:27 pm
by ebofr016
Hi,

I made another attempt to compile codelite. I downloaded libssh from https://www.libssh.org/get-it/ because RHEL only supports libssh2. I compiled and installed it. I have another issue. I cannot run make
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
-- SQLITE3_INCLUDE_DIR: /usr/include
-- SQLITE3_LIBRARY: /usr/lib64/libsqlite3.so
-- BUILD_DIRECTORY is set to /home/eric/dev/codelite/build-release
-- OS name Linux
-- wx-config used is: /usr/local/bin/wx-config
-- wxWidgets version is: 3.0.2
-- gtk version is: 2
-- LIBSSH_LIB is set to /usr/local/lib/libssh.so
-- PLUGINS_DIR is set to /usr/lib64/codelite
-- Using wxAuiNotebook
-- Building in Release mode
-- CMAKE_INSTALL_DO_STRIP is TRUE
-- Executables will be written into /home/eric/dev/codelite/build-release/bin
-- Shared Objects will be written into /home/eric/dev/codelite/build-release/lib
-- Adding -DNDEBUG to definitions
-- CPACK_SYSTEM_NAME --x86_64
-- OS_CODENAME is set to
-- ARCH 64
-- ARCH_NAME x86_64
-- *** NOTICE ***: clang code completion support is disabled
-- *** NOTICE ***: On Ubuntu / Debian you might want to install libclang-3.4-dev package
-- USE_SFTP is set to 1
-- Flex support is disabled
**
** NOTICE ** Could not locate libhunspell. SpellChecker plugin will not be build
** NOTICE ** Try installing libhunspell-dev package
**
**** NOTICE: lldb is not available. You could try installing the lldb-3.4-dev (or equivalent) package
-- Internal Web Browser is disabled
-- CL_SRC_ROOT is set to /home/eric/dev/codelite
-- Adding Valgrind Plugin
-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to /home/eric/dev/codelite
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eric/dev/codelite
$ make
make: *** Pas de cible spécifiée et aucun makefile n'a été trouvé. Arrêt.

There is no Makefile in the build directory

Re: Compiling codelite on RHEL 7.2

Posted: Fri Aug 12, 2016 7:59 pm
by DavidGH
For release builds I use the following aliases (ordinary and with make clean), amended to match your situation:

Code: Select all

alias CLReleasebuild='(\cd build-release/ && cmake -G "Unix Makefiles" VERBOSE=1 -DCMAKE_BUILD_TYPE=Release -DWITH_PCH=1  .. && make -j8)'                                                                
alias CLReleasecleanbuild='(\cd build-release/ && make clean && rm -f CMakeCache.txt &&  cmake -G "Unix Makefiles" VERBOSE=1 -DCMAKE_BUILD_TYPE=Release -DWITH_PCH=1  .. && make -j8)'   
Note that I do everything in the build-release dir. I don't think you did, and I suspect your Makefile isn't in the dir where you're currently running 'make'.