scintilla build error

Discussion about CodeLite development process and patches
lurscher
CodeLite Enthusiast
Posts: 11
Joined: Wed Oct 31, 2012 4:34 pm
Genuine User: Yes
IDE Question: c++
Contact:

scintilla build error

Post by lurscher »

Hi,

I want to run a custom plugin inside codelite, i presume that i need to build codelite for this to work as explained in here: http://www.codelite.org/LiteEditor/CreatingNewPlugin

I did all changes, and when i do configure && make i get this error
In file included from sdk/wxscintilla/src/ScintillaWX.h:30:0,
from sdk/wxscintilla/src/ScintillaWX.cpp:17:
./sdk/wxscintilla/src/scintilla/include/ScintillaWidget.h:17:21: fatal error: gtk/gtk.h: No such file or directory
compilation terminated.
I have already installed libwxgtk-2.8-dev, but this header seems to be a dependence of a separate library (gtkmm). What version should i install for codelite? ubuntu 12.04 repos have by default 2.4 and 3.0, but i want to be sure of installing the right one
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: scintilla build error

Post by eranif »

lurscher wrote:I have already installed libwxgtk-2.8-dev
trunk version of codelite no longer uses wx28 but rather requires wx294 or greater
lurscher wrote:I want to run a custom plugin inside codelite
so why don't you build codelite from svn?

http://codelite.org/Developers/Linux
You should note that codelite no longer uses wxScintilla for internal usage, but rather uses the wxStyledTextCtrl that comes with wxWidgets 2.9.4

Eran
Make sure you have read the HOW TO POST thread
lurscher
CodeLite Enthusiast
Posts: 11
Joined: Wed Oct 31, 2012 4:34 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: scintilla build error

Post by lurscher »

I'm using the 4.1.5770 tarball. I prefer avoid chasing if possible the 2.9.4 as it is not packaged yet for ubuntu 12.04.

I managed to get it to build installing gtkmm-2.4.dev, so it works now
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: scintilla build error

Post by eranif »

lurscher wrote:I prefer avoid chasing if possible the 2.9.4 as it is not packaged yet for ubuntu 12.04.
and it will never be packaged for 2.9.4 as it is "development" branch of wxWidgets (odd numbers are 2.9, 2.7 etc are considered "Development" while even numbers 2.6, 2.8, 3.0 are stable) and from what I know
Ubuntu only packages stable versions. Note that codelite is moving to 294 in anycase.

You can get a pre-built of wxWidgets 2.9.4 from codelite's repository:
http://www.codelite.org/LiteEditor/WxWidgets29Binaries

Eran
Make sure you have read the HOW TO POST thread
Post Reply