[ LINUX / MAC ] codelite is moving to cmake

Post here any ideas/problems/suggestions you have regarding CodeLite's Subversion (SVN) plugin
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

[ LINUX / MAC ] codelite is moving to cmake

Post by eranif »

Hi,

This post is relevant for Linux / Windows developers who are building codelite from git

codelite is now using cmake as its primary build system.
To build codelite from git, please follow the instructions here:

Building codelite with cmake

Windows build remains the same

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by petah »

just a FYI, I know the cmake transition is still in progress.

see attached error on Debian Wheezy x64 with no root-installed wx.

-DWX_CONFIG isn't getting picked up in ./sdk/wxsqlite3/CMakeLists.txt and possibly more places. It fetches any installed wx instead.

I started looking at cmake's find_package syntax but found no quick fix (huge cmake cache beats my poor cmake-fu).

thx!

-- p
You do not have the required permissions to view the files attached to this post.
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by eranif »

I am aware of this bug.
I removed the WX_CONFIG option from the cmake build since the only way to make it work is to hack cmake wxWidgets support, which I don't want to do...

I updated the documentation about this, check the tip at the end of the page that explains how to use a different wx-config tool

http://codelite.org/Developers/Linux

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by petah »

ok thx.

btw I'm not sure if I get the DMAKE_DEB comment:

"When set, a new make target is created, package. By running make package cmake will generate a .deb file for installation "

Assuming cmake produces the makefie which will produce the deb, would something like this make more sense?

"When set, a new make target is created by cmake, called package. Running make package thereafter will generate a .deb file for installation".

thx!

-- p
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by eranif »

You are correct, fixed

Eran
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by evstevemd »

Is there a way to tell it to use monolithic version instead of multilib?

Code: Select all

/usr/bin/ld: cannot find -lwx_gtk2u_aui-2.9
/usr/bin/ld: cannot find -lwx_gtk2u_propgrid-2.9
/usr/bin/ld: cannot find -lwx_gtk2u_stc-2.9
collect2: error: ld returned 1 exit status
make[2]: *** [lib_debug/libplugin.so] Error 1
make[1]: *** [Plugin/CMakeFiles/plugin.dir/all] Error 2
make: *** [all] Error 2

CodeLite 15.x
CodeLite is awesome, I just Love it!

evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by evstevemd »

Installed wxWidgets libraries from codelite repos and tried to recompile and here is what I get

Code: Select all

[ 29%] Building CXX object Plugin/CMakeFiles/plugin.dir/tagsmanagementconf.cpp.o
Linking CXX shared library ../lib/libplugin.so
/usr/bin/ld: cannot find -lwx_gtk2u_aui-2.9
/usr/bin/ld: cannot find -lwx_gtk2u_propgrid-2.9
/usr/bin/ld: cannot find -lwx_gtk2u_stc-2.9
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libplugin.so] Error 1
make[1]: *** [Plugin/CMakeFiles/plugin.dir/all] Error 2
make: *** [all] Error 2
I just did

Code: Select all

cmake .
And then just

Code: Select all

make

CodeLite 15.x
CodeLite is awesome, I just Love it!

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

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by eranif »

Looks like that your wx-config is still the old one

The output of codelite's repo wxWidgets should be like this:

Code: Select all

eran@eran-linux:~$ wx-config --libs
-L/usr/lib/x86_64-linux-gnu -pthread   -lwx_gtk2u_unofficial_xrc-2.9 -lwx_gtk2u_unofficial_webview-2.9 -lwx_gtk2u_unofficial_html-2.9 -lwx_gtk2u_unofficial_qa-2.9 -lwx_gtk2u_unofficial_adv-2.9 -lwx_gtk2u_unofficial_core-2.9 -lwx_baseu_unofficial_xml-2.9 -lwx_baseu_unofficial_net-2.9 -lwx_baseu_unofficial-2.9
Note that our wx build contains the 'unofficial' string
You should use update-alternatives command to make sure that your wx-config is pointing to the correct wx-config (for me its /usr/lib/wx/config/gtk2-unicode-2.9-unofficial )
evstevemd wrote:I just did
CODE: SELECT ALL
cmake .

And then just
CODE: SELECT ALL
make
When using cmake, its advised not to pollute the source tree, but rather build in a subdirectory

A typical build should be (assuming you are in the codelite source tree root folder):

Code: Select all

mkdir build-release
cd build-release
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make -j4
You can read more about this here:
http://codelite.org/Developers/Linux#toc3

Eran
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 350
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by evstevemd »

Thanks Eran.
My CodeLite repos installation is quiet unstable and crashing (no error just telling me it crashed and running under debugger fails) and so I wanted to check the git version if have the issue fixed (I can run debug version and see the issue).
So this post comes as saver!

CodeLite 15.x
CodeLite is awesome, I just Love it!

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

Re: [ LINUX / MAC ] codelite is moving to cmake

Post by eranif »

miniboy wrote:Failed to locate gdb! at '/usr/bin/gdb '

/usr/bin/gdb has been installed successfully
But why are you hijacking the announcement thread and change its title??

This bug was already fixed see here for workaround:

https://github.com/eranif/codelite/issues/670
Make sure you have read the HOW TO POST thread
Post Reply