Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: killerbot on July 02, 2007, 03:00:15 pm

Title: wxSmith only for wx28 anymore
Post by: killerbot on July 02, 2007, 03:00:15 pm
due to last nights commit for wxsToolbar, it only builds with wx28.
Is that intentional ?

If so : can all core developers live with this ?
Should we switch CB itself to wx28 only anymore ? [then we can update wxFlatNotebook]
Title: Re: wxSmith only for wx28 anymore
Post by: Morphius Faydal on July 04, 2007, 06:04:37 pm
due to last nights commit for wxsToolbar, it only builds with wx28.
Is that intentional ?

If so : can all core developers live with this ?
Should we switch CB itself to wx28 only anymore ? [then we can update wxFlatNotebook]

Considering that everyone says you HAVE to use wx 2.8.4 due to bugs in 2.6.3, I'm surprised you haven't gone 2.8-only already.
Title: Re: wxSmith only for wx28 anymore
Post by: MortenMacFly on July 04, 2007, 06:17:11 pm
Should we switch CB itself to wx28 only anymore ? [then we can update wxFlatNotebook]
Did you read this: http://forums.codeblocks.org/index.php/topic,6349.msg48732.html ?
I would have nothing against wx28 since I remained on wx26 on purpose to ensure backward compatibility. So far there was always a way to support both versions - recent non-wx26 compatible changes Byo fixed easily. So he can do with this one: only comment out the four lines in question and that's it.
I think so far one of the main drivers to keep wx26 compatibility was because wx284 (which fixes serious bugs) was not available on all (Linux) platforms. I don't know how the status is now.
With regards, Morten.
Title: Re: wxSmith only for wx28 anymore
Post by: stahta01 on July 05, 2007, 03:31:39 am
Considering that everyone says you HAVE to use wx 2.8.4 due to bugs in 2.6.3, I'm surprised you haven't gone 2.8-only already.

I think most people are saying use wx 2.8.4 because of all the bugs in wx 2.8.3.

Tim S
Title: Re: wxSmith only for wx28 anymore
Post by: Morphius Faydal on July 05, 2007, 03:33:50 am
Considering that everyone says you HAVE to use wx 2.8.4 due to bugs in 2.6.3, I'm surprised you haven't gone 2.8-only already.

I think most people are saying use wx 2.8.4 because of all the bugs in wx 2.8.3.

Tim S

I could swear I've seen a bunch that say upgrade to 2.8.4, because some things don't work right in 2.6.3
Title: Re: wxSmith only for wx28 anymore
Post by: stahta01 on July 05, 2007, 03:45:33 am
Considering that everyone says you HAVE to use wx 2.8.4 due to bugs in 2.6.3, I'm surprised you haven't gone 2.8-only already.

I think most people are saying use wx 2.8.4 because of all the bugs in wx 2.8.3.

Tim S

I could swear I've seen a bunch that say upgrade to 2.8.4, because some things don't work right in 2.6.3

There are some things that work better in wx 2.8.4, but most of them are not items considered bugs in 2.6.3.
Bugs implies they were supposed to work in 2.6.3. Many things on Macs never worked right in 2.6 branch and where never claimed to work right for Macs, that are claimed to work somewhat at least in 2.8 branch.

Tim S
Title: Re: wxSmith only for wx28 anymore
Post by: Morphius Faydal on July 05, 2007, 03:47:51 am
Considering that everyone says you HAVE to use wx 2.8.4 due to bugs in 2.6.3, I'm surprised you haven't gone 2.8-only already.

I think most people are saying use wx 2.8.4 because of all the bugs in wx 2.8.3.

Tim S

I could swear I've seen a bunch that say upgrade to 2.8.4, because some things don't work right in 2.6.3

There are some things that work better in wx 2.8.4, but most of them are not items considered bugs in 2.6.3.
Bugs implies they were supposed to work in 2.6.3. Many things on Macs never worked right in 2.6 branch and where never claimed to work right for Macs, that are claimed to work somewhat at least in 2.8 branch.

Tim S

Oh.
Title: Re: wxSmith only for wx28 anymore
Post by: byo on July 05, 2007, 01:18:21 pm
Hi
I couldn't answer ealier, have limited access to the Internet.
Sorry for breaking wx 2.6 build. I forgot about this option.
It's rather hard for me to test wx 2.6 (I compile sources using wx 2.8 in PCH and non-PCH mode which is already time-consuming), so can anybody check whether there are some other files which doesn't compile on 2.6?

BYO
Title: Re: wxSmith only for wx28 anymore
Post by: MortenMacFly on July 05, 2007, 01:41:28 pm
so can anybody check whether there are some other files which doesn't compile on 2.6?
That's the only one - I only compile in wx26, so I can easily tell... ;-)
Title: Re: wxSmith only for wx28 anymore
Post by: Alturin on July 05, 2007, 03:07:56 pm
...
I think so far one of the main drivers to keep wx26 compatibility was because wx284 (which fixes serious bugs) was not available on all (Linux) platforms. I don't know how the status is now.
With regards, Morten.

wxWidgets provides the debian/ubuntu package on their website.
Maybe we could do a poll and see how many users do not have wx provided by them by their distro?
And ofcourse we could consider providing a binary ourselves for Gentoo/FC and the other builds that we have nightlies for?
Title: Re: wxSmith only for wx28 anymore
Post by: Morphius Faydal on July 06, 2007, 08:01:47 am
...
I think so far one of the main drivers to keep wx26 compatibility was because wx284 (which fixes serious bugs) was not available on all (Linux) platforms. I don't know how the status is now.
With regards, Morten.

wxWidgets provides the debian/ubuntu package on their website.
Maybe we could do a poll and see how many users do not have wx provided by them by their distro?
And ofcourse we could consider providing a binary ourselves for Gentoo/FC and the other builds that we have nightlies for?

FC I think we can get away with... Gentoo is still wx263, you need to manually install the wx284 ebuilds... But if we provide an ebuild for the C::B nightly, then we can just point to the bugzilla.gentoo for the wx284 ebuilds... This being a development release, we can expect a gentoo user to know how to create an overlay and put in their own ebuilds, right?
Title: Re: wxSmith only for wx28 anymore
Post by: tvaster on July 06, 2007, 08:13:25 pm
Here is an error:

Suse 10.2

 g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/local/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT renderer.lo -MD -MP -MF .deps/renderer.Tpo -c src/wxFlatNotebook/renderer.cpp  -fPIC -DPIC -o .libs/renderer.o
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:75: error: invalid use of undefined type ‘struct wxDropTarget’
/usr/local/include/wx-2.8/wx/window.h:60: error: forward declaration of ‘struct wxDropTarget’       

wxWidgets-2.8.4           --enable-compat26
svn 4235 codeblocks      --enable-contrib

Fred V                                                     
Title: Re: wxSmith only for wx28 anymore
Post by: Biplab on July 06, 2007, 08:29:39 pm
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/local/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT renderer.lo -MD -MP -MF .deps/renderer.Tpo -c src/wxFlatNotebook/renderer.cpp  -fPIC -DPIC -o .libs/renderer.o
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:75: error: invalid use of undefined type ‘struct wxDropTarget’
/usr/local/include/wx-2.8/wx/window.h:60: error: forward declaration of ‘struct wxDropTarget’       

Why are you using UNIVERSAL build of wxWidgets?? :shock:

To compile C::B without any error, please configure wxWidgets as (an example)-
Code
./configure --disable-debug --enable-shared --enable-unicode --enable-monolithic --with-gtk=2

Please do not use Universal and X11 build of wxWidgets. Use wxGTK build instead.

Edit 1:
Please don't post off-topic. The error you've posted is not related with the topic that is being discussed here.
Title: Re: wxSmith only for wx28 anymore
Post by: tvaster on July 06, 2007, 09:50:02 pm
Sorry, newbie.  Where should it be posted?

Everything compiles well now.  Thanks.

However when starting C::B I get a scroll-up message stating that there is a problem with "libwxsmith.so"  and "libwxsmithcontribitems.so",
and a second scroll-up stating that wxSmith may not be of the same version. All was just compiled, including wxWidgets-2.8.4 as suggested.  I patiently waited for a Suse 10.2 RPM but now have resorted to scroll my own to use wxSmith.

Hope this one is not off-topic.

Fred V


Title: Re: wxSmith only for wx28 anymore
Post by: Biplab on July 07, 2007, 07:07:54 am
Please post such requests in "Help" section of forum. :)