Page 1 of 2

Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Thu Sep 20, 2012 12:33 am
by eranif
Hi,

With the recent commit (r5852) codelite no longer uses wxScintilla as its main editing component nor it supports wxWidgets 2.8.X
Instead it uses wxStyledTextCtrl that comes with wxWidgets 2.9.4

The main reason for this move is that wxStyledTextCtrl is now part of the official wxWidgets release + keep supporting wxWidgets 2.8.12 hold us back as 2.9.4 is a whole new world... (note that Windows & Mac are using 2.9.X for over than a year now)

For Linux, its a different story:

Most of the Linux distros (if not all them...) do not provide wx294 development binaries, this means that if you plan on building codelite on your linux box you will need to build wxwidgets locally or use the wxWidgets development packages
that DavidGH kindly took the time to package

The following wxWidgets 294 development packages are available atm:

* Ubuntu lucid through to precise
* debian squeeze and wheezy (the debian unstable)
* fedora 17
* openSUSE 12.1 and 12.2

codelite's Linux repository:
http://www.codelite.org/LiteEditor/WxWidgets29Binaries

I will update codelite's wiki page on how to build wxWidgets for those of you who choose to build their own wxWidgets

In any case, the released versions of codelite will include *all* the binaries needed to run codelite
Eran

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Mon Oct 01, 2012 2:05 pm
by evstevemd
That is great!
Let wxScintilla lie dead and have single component than multiple components that are somehow doing same thing!

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Mon Oct 01, 2012 2:10 pm
by evstevemd
Will their be any collision in multiple libraries i.e wx-config?

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Sat Oct 20, 2012 11:08 pm
by eranif
evstevemd wrote:Will their be any collision in multiple libraries i.e wx-config?
You can run from the command line:

Code: Select all

WXCONFIG=/my/wx-config ./configure 
To force usage of a specific wx-config

Eran

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Mon Nov 12, 2012 6:28 pm
by evstevemd
Hi Eran,
I use monolithic build of wx and CL seems to require the opposite.
Is there a way to specify this with configure script? In windows?
./configure --help
This is the CodeLite configure script
Usage: ./configure [OPTION]...
Available options:
--prefix=PREFIX install files into the filepath PREFIX (the default is /usr)
--plugins-dir=PLUGINSDIR install plugins into the filepath PLUGINSDIR (the default is $PREFIX/lib/codelite)
--enable-debug create a debug build (the default is disable)
--disable-asserts disallow assert messages, even in debug builds where they are normally allowed
--enable-asserts allow assert messages, even in release builds where they are normally prevented
--enable-mysql enable MySQL support in DatabaseExplorer plugin (MySQL connector sources must be installed on the system)
--enable-postgres enable PostgreSQL support in DatabaseExplorer plugin (PostgreSQL connector sources must be installed on the system)
--enable-pch generate Makefiles that use pre-compiled headers to reduce compile time
--without-clang disable clang support in codelite
--help show this help
To build with alternative C++ or C compilers, specify them in the environmental variables CXX and/or CC
Either do: CXX="foo" ./configure --<etc>
Or in that shell earlier, do: export CXX="foo"
Similarly you can put build flags e.g. "-arch i386" in the environmental variable ARCH_FLAGS

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Mon Nov 12, 2012 6:35 pm
by eranif
codelite does not require a wx built as monolithic (at least under Linux)
How did you come this conclusion? (i.e. please show me the error you got)

Eran

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Mon Nov 12, 2012 8:33 pm
by evstevemd
eranif wrote:codelite does not require a wx built as monolithic (at least under Linux)
How did you come this conclusion? (i.e. please show me the error you got)

Eran
in linking it complains missing libs (not as sing lib).
Here is the error:
/usr/bin/ld: cannot find -lwx_gtk2u_aui-2.9
/usr/bin/ld: cannot find -lwx_gtk2u_stc-2.9
collect2: ld returned 1 exit status
Sorry for late reply. I got disconnected!

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Wed Nov 14, 2012 2:24 pm
by Rosch
Hi...

There might be a little problem with it.

I am using codeLite compiled from current sources (svn rev 5945) on windows 7 64bit.
When I am doubleclicking a word in a file codelite highlights all occurances of the word in the current fiel (as before) but instead of setting the known light yellow background color it uses now a black background color which makes the selection quite unreadable...

Is this a bug or do I need to change some settings I yet haven't found?

Roland

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Wed Nov 14, 2012 3:39 pm
by eranif
Under codelite sources at:

codelite-soruces/patches/

There are 3 cpp files, copy them to:

wx-294-sources/src/stc/

Recompile your wxWidgets and the problem will be solved

Eran

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Posted: Wed Nov 14, 2012 7:01 pm
by Rosch
Hi Eran,
eranif wrote:Under codelite sources at:
codelite-soruces/patches/
There are 3 cpp files, copy them to:
wx-294-sources/src/stc/
Recompile your wxWidgets and the problem will be solved
Eran
Thanks!
That did the trick!

Roland