[SOLVED]: Building CodeLite from sources on Linux

CodeLite installation/troubleshooting forum
ONEEYEMAN
CodeLite Curious
Posts: 8
Joined: Fri Jul 15, 2016 5:56 am
Genuine User: Yes
IDE Question: C++
Contact:

[SOLVED]: Building CodeLite from sources on Linux

Post by ONEEYEMAN » Thu Jan 03, 2019 10:38 pm

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.
Last edited by ONEEYEMAN on Fri Jan 04, 2019 8:38 pm, edited 1 time in total.

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

Re: Building CodeLite from sources on Linux

Post by DavidGH » Thu Jan 03, 2019 11:23 pm

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

ONEEYEMAN
CodeLite Curious
Posts: 8
Joined: Fri Jul 15, 2016 5:56 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite from sources on Linux

Post by ONEEYEMAN » Fri Jan 04, 2019 12:21 am

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.

User avatar
eranif
CodeLite Plugin
Posts: 5924
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite from sources on Linux

Post by eranif » Fri Jan 04, 2019 12:35 am

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
Make sure you have read the HOW TO POST thread

ONEEYEMAN
CodeLite Curious
Posts: 8
Joined: Fri Jul 15, 2016 5:56 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite from sources on Linux

Post by ONEEYEMAN » Fri Jan 04, 2019 1:29 am

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.

ONEEYEMAN
CodeLite Curious
Posts: 8
Joined: Fri Jul 15, 2016 5:56 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite from sources on Linux

Post by ONEEYEMAN » Fri Jan 04, 2019 6:01 am

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.

User avatar
eranif
CodeLite Plugin
Posts: 5924
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite from sources on Linux

Post by eranif » Fri Jan 04, 2019 12:10 pm

CodeLite requires libssh for the SFTP plugin
The package needed is libssh-dev not libssh2
Make sure you have read the HOW TO POST thread

User avatar
eranif
CodeLite Plugin
Posts: 5924
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Building CodeLite from sources on Linux

Post by eranif » Fri Jan 04, 2019 12:25 pm

You can disable it by passing:

Code: Select all

-DENABLE_SFTP=0
to CMake
Make sure you have read the HOW TO POST thread

Post Reply