Page 1 of 1

[SOLVED]: Building CodeLite from sources on Linux

Posted: Thu Jan 03, 2019 10:38 pm
by ONEEYEMAN
Hi,
My Linux machine crashed and I had to redo the install of GNOME3.
Now tonight I downloaded the source code for CodeLite - latest stable version and tried to build it by following the instructions found here.

However I got this:

Code: Select all

igor@IgorReinCloud ~/codelite-12.0/build-debug $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DWITH_MYSQL=1 -DPREFIX=/home/igor/codelite/
CMake Error: The source directory "/home/igor/codelite-12.0/build-debug" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Any idea on how to work around?

Also, it looks like the pinned thread in this forum has a broken URL for the WiKi.

Thank you.

Re: Building CodeLite from sources on Linux

Posted: Thu Jan 03, 2019 11:23 pm
by DavidGH
Hi,

If your paste is accurate, you missed the terminal '..' from the cmake command. CMakeLists.txt is in the parent dir.
Also, it looks like the pinned thread in this forum has a broken URL for the WiKi.
Thanks, it was a broken link pointing to the recently-broken wiki. Now fixed.

Regards,

David

Re: Building CodeLite from sources on Linux

Posted: Fri Jan 04, 2019 12:21 am
by ONEEYEMAN
Thank you, David.
For some reason, I missed those - maybe I was in a hurry.

One more thing - this page does not list DbExplorer as available plugin. Or it is intentional because there is no documentation on it?

Thank you.

Re: Building CodeLite from sources on Linux

Posted: Fri Jan 04, 2019 12:35 am
by eranif
It is just missing the documentation.
Working with the DB explorer plugin is pretty straightforward:
Open a connection to the database and you will have the DB / schema layout in the DbExplorer tab.
Double click a table and it will open a SQL panel where you can type any SQL command and execute them

Re: Building CodeLite from sources on Linux

Posted: Fri Jan 04, 2019 1:29 am
by ONEEYEMAN
Hi, Eran,
Maybe some basic stuff.
DbExplorer is a plugin that let you do this and this.
It does support such and such databases version X and Y.

Otherwise not many people will know about it - especially newcomers.
Maybe even a screenshot somewhere on its usage inside the CodeLite...

Thank you.

Re: Building CodeLite from sources on Linux

Posted: Fri Jan 04, 2019 6:01 am
by ONEEYEMAN
Hi, guys,
I just tried to do the build.
That's what II received:
igor@IgorReinCloud ~/codelite-12.0/build-debug $ PATH=/home/igor/wxWidgets/buildGTK:$PATH cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DWITH_MYSQL=1 -DPREFIX=/home/igor/codelite/ ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
**** Setting -DPREFIX is deprecated. Please use -DCL_PREFIX in future
-- SQLITE3_INCLUDE_DIR: /usr/include
-- SQLITE3_LIBRARY: /usr/lib/libsqlite3.so
-- BUILD_DIRECTORY is set to /home/igor/codelite-12.0/build-debug
-- OS name Linux
-- wx-config used is: /home/igor/wxWidgets/buildGTK/wx-config
-- wxWidgets version is: 3.1.1
-- gtk version is: 3
**** NOTICE: Install libssh-dev and try again
CMake Error at CMakeLists.txt:220 (message):
-- Could not find libssh


-- Configuring incomplete, errors occurred!
See also "/home/igor/codelite-12.0/build-debug/CMakeFiles/CMakeOutput.log".
See also "/home/igor/codelite-12.0/build-debug/CMakeFiles/CMakeError.log".
1. Why does it needs libssh? Can I turn it off?
2. If not - what package is required: libssh or libssh2? Or just one of them?

Thank you.

Re: Building CodeLite from sources on Linux

Posted: Fri Jan 04, 2019 12:10 pm
by eranif
CodeLite requires libssh for the SFTP plugin
The package needed is libssh-dev not libssh2

Re: Building CodeLite from sources on Linux

Posted: Fri Jan 04, 2019 12:25 pm
by eranif
You can disable it by passing:

Code: Select all

-DENABLE_SFTP=0
to CMake