Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

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

Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby eranif » Thu Sep 20, 2012 12:33 am

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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby evstevemd » Mon Oct 01, 2012 2:05 pm

That is great!
Let wxScintilla lie dead and have single component than multiple components that are somehow doing same thing!
CodeLite 12.x
CodeLite is awesome, I just Love it!
evstevemd
CodeLite Guru
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby evstevemd » Mon Oct 01, 2012 2:10 pm

Will their be any collision in multiple libraries i.e wx-config?
CodeLite 12.x
CodeLite is awesome, I just Love it!
User avatar
eranif
CodeLite Plugin
Posts: 5767
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby eranif » Sat Oct 20, 2012 11:08 pm

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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby evstevemd » Mon Nov 12, 2012 6:28 pm

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
CodeLite 12.x
CodeLite is awesome, I just Love it!
User avatar
eranif
CodeLite Plugin
Posts: 5767
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby eranif » Mon Nov 12, 2012 6:35 pm

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
Make sure you have read the HOW TO POST thread
evstevemd
CodeLite Guru
Posts: 329
Joined: Sun Nov 29, 2009 7:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby evstevemd » Mon Nov 12, 2012 8:33 pm

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!
CodeLite 12.x
CodeLite is awesome, I just Love it!
User avatar
Rosch
CodeLite Enthusiast
Posts: 24
Joined: Fri Nov 02, 2012 4:28 pm
Genuine User: Yes
IDE Question: C++
Location: Germany
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby Rosch » Wed Nov 14, 2012 2:24 pm

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
User avatar
eranif
CodeLite Plugin
Posts: 5767
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby eranif » Wed Nov 14, 2012 3:39 pm

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
Make sure you have read the HOW TO POST thread
User avatar
Rosch
CodeLite Enthusiast
Posts: 24
Joined: Fri Nov 02, 2012 4:28 pm
Genuine User: Yes
IDE Question: C++
Location: Germany
Contact:

Re: Dropping wxScintilla for wxStyledTextCtrl + Moving to wx294

Postby Rosch » Wed Nov 14, 2012 7:01 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest