News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

The 10 June 2019 build (11730) is out.

Started by killerbot, June 10, 2019, 09:21:01 AM

Previous topic - Next topic

stahta01

Untested patch

From 2aeec896382ffafad6a57e08e1adf66b0e4017ad Mon Sep 17 00:00:00 2001
From: Tim Stahlhut <stahta01@gmail.com>
Date: Tue, 11 Jun 2019 08:39:53 -0400
Subject: Change wxCHECK_VERSION guard to 3.1.2

---
src/sdk/globals.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sdk/globals.cpp b/src/sdk/globals.cpp
index 5f9198e83..9083cf456 100644
--- a/src/sdk/globals.cpp
+++ b/src/sdk/globals.cpp
@@ -1174,11 +1174,11 @@ double cbGetContentScaleFactor(wxWindow &window)
// For other platforms the value returned by GetContentScalingFactor seems adequate.
double cbGetActualContentScaleFactor(wxWindow &window)
{
-#if wxCHECK_VERSION(3, 1, 0)
+#if wxCHECK_VERSION(3, 1, 2)
     wxDisplay display(wxDisplay::GetFromWindow(&window));
     const wxSize ppi = display.GetPPI();
     return ppi.y / 96.0;
-#else // wxCHECK_VERSION(3, 1, 0)
+#else // wxCHECK_VERSION(3, 1, 2)
     // This code is the simplest version which works in the most common case.
     // If people complain that multi-monitor setups behave strangely, this should be revised with
     // direct calls to GTK/GDK functions.
@@ -1195,7 +1195,7 @@ double cbGetActualContentScaleFactor(wxWindow &window)
     // My guess is that smaller scaling factor would look better. Probably it has effect only in
     // multi monitor setups where there are monitors with different dpi.
     return std::min(ppiX / 96.0, ppiY /96.0);
-#endif // wxCHECK_VERSION(3, 1, 0)
+#endif // wxCHECK_VERSION(3, 1, 2)
}
#else // __WXGTK__
double cbGetActualContentScaleFactor(wxWindow &window)
--


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

trivia21

#16
Quote from: Miguel Gimenez on June 11, 2019, 02:40:44 PM
Did you apply the change to the guard in globals.cpp before compilation with wx3.1.1?. If yes, can you post the error message?
Sorry, I mean compilation was successful, but I still can't modify key bindings.

killerbot

Quote from: oBFusCATed on June 10, 2019, 08:10:42 PM
Quote from: Miguel Gimenez on June 10, 2019, 02:40:00 PM
Quote from: killerbot on June 10, 2019, 09:21:32 AM
the size has doubled of the zip file, I did not check why.

Because commit 11729 "moved all generated static libs to devel* folders" and update.bat copies them to the output folder. The zip has a lot of *.a files that shouldn't be there.
This is 100% deliberate decision.
The libs must be in the zip file. This would make it possible for third parties to build plugins for cb night builds without the need to build incompatible version of CB. This is the first step. Next steps would be to copy the includes and after that all the stuff related to wxwidgets also needs to be copied.

If some windows dev is interested to do the work I'd be happy to help.
If the size increase is too much we could probably make two separate zip files, but I don't 24mb is unbearable in 2019.

Also if someone wants to move bzip2 in a separate project I'd be happy to help with reviewing. I'm a bit tired of these cbp changes.

indeed, 24 MB , who cares these days.
But on the other hand is there a public out there for this use case ?

oBFusCATed

I don't know if there are really people which want to do this, but other editors thrive around plugins. C::B is pretty poor in this regard.

There are some plugins which would become easier to build/ship if we're providing proper sdk. Like python plugins, cbsystemview, the fortran stuff could be removed from svn-external and be built easily separately.
Also this would be a preparation for shipping working sdk with the next release.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Xaviou

Hi.

Linux build has been repaired and is working fine with wx-3.0

Rev 11738 for Debian Stretch (32 and 64 bits) can be installed from my repo.

Regards
Xav'
My wxWidgets's stuff : [url="https://wxstuff.xaviou.fr/"]https://wxstuff.xaviou.fr/[/url]

airc


Pecan

Quote from: trivia21 on June 11, 2019, 01:16:22 PM
On startup I get warning messages about conflicting key bindings. My custom keybindigs seem to be lost.
So I try to set them up again, but I'm not able to change key bindings in the editor settings. When clicking 'Add' I get the message 'KeyBinding file corrupted. Please delete'. I deleted the keybindig files from the config folder, but I still get the same error.

Ubuntu 18.04, wxWidgets 3.1.2 (in the op there is 3.1.1 but CB uses wxDisplay::GetPPI which was included in 3.1.2 so it didn't compile).

@trivia21
Would you please zip up your CodeBlocks config folder and attach it here so I have something to help debug your cbKeyBinder problem.
Thanks, Pecan

BlueHazzard

building latest svn on linux with wx28:
libtool: compile:  ccache g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/root/wxInstall/wx28/lib/wx/include/gtk2-unicode-debug-2.8 -I/root/wxInstall/wx28/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXDEBUG__ -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/sdk/wxscintilla/include -DCB_AUTOCONF -DCB_PRECOMP -DPIC -I../../../../src/include/tinyxml -DTIXML_USE_STL=YES -Wno-unused-local-typedefs -O2 -ffast-math -Winvalid-pch -fPIC -fexceptions -MT menuutils.lo -MD -MP -MF .deps/menuutils.Tpo -c menuutils.cpp  -fPIC -DPIC -o .libs/menuutils.o
In file included from /root/wxInstall/wx28/include/wx-2.8/wx/defs.h:521:0,
                 from /root/wxInstall/wx28/include/wx-2.8/wx/wxprec.h:13,
                 from menuutils.cpp:18:
menuutils.cpp: In member function 'virtual void wxMenuShortcutWalker::DeleteData(void*)':
menuutils.cpp:942:13: error: invalid operands of types 'const wxChar* {aka const wchar_t*}' and 'const wchar_t [56]' to binary 'operator+'
             + _T("\nwxMenuShortcutWalker does not use the 'data' parameter") // English for me too.
/root/wxInstall/wx28/include/wx-2.8/wx/debug.h:132:71: note: in definition of macro 'wxASSERT_MSG'
           wxOnAssert(__TFILE__, __LINE__, __WXFUNCTION__, wxT(#cond), msg)


It seems that we have quite some building problems lately  :) (mea culpa too )

sodev

Why do you translate assert messages? This is really nothing that a user should see during normal usage, and if he does, makes google much more easier if it's in english :). And don't use _T() in new code, use the successor wxT().

Pecan

Quote from: sodev on June 14, 2019, 12:48:59 AM
Why do you translate assert messages? This is really nothing that a user should see during normal usage, and if he does, makes google much more easier if it's in english :). And don't use _T() in new code, use the successor wxT().

You are most welcome to use what you like. And I will do the same.


Pecan

Quote from: trivia21 on June 11, 2019, 01:16:22 PM
On startup I get warning messages about conflicting key bindings. My custom keybindigs seem to be lost.
So I try to set them up again, but I'm not able to change key bindings in the editor settings. When clicking 'Add' I get the message 'KeyBinding file corrupted. Please delete'. I deleted the keybindig files from the config folder, but I still get the same error.

Ubuntu 18.04, wxWidgets 3.1.2 (in the op there is 3.1.1 but CB uses wxDisplay::GetPPI which was included in 3.1.2 so it didn't compile).
Fixed Head rev 11741

Frank_CB

#27
Hello,

I've built a 64-bit version of C::B from SVN 11742 source on Windows 10 using the 11730 build. When I execute it (11742), i get debug asserts.  Images are attached.

The wxWidgets libraries that I'm using are version 3.1.2.  11730 uses version 3.1.1.

Does anyone know if this might be the reason for the asserts?

Regards

oBFusCATed

Frank_CB: Can you run CB with a debugger and when an assert happens to press the stop button? Then post the backtrace/callstack. These error messages aren't really helpful without a callstack or a way to reproduce.

Note1: Please make sure that you're running the correct update.bat script after you've built CB from CB.
Note2: 3.1.2 has some bugs that affected CB badly, probably you're better of using wx-master.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Frank_CB

@oBFusCATed Thanks for responding!  I'm curious as to what is causing the asserts. Since these only just occur when C::B's IDE is opening, I can't visualize how it couuld be debugged. I'll just continue ignoring them. Hopefully, they aren't problematic? You referenced wx-master - what is it and how can I acquire that?

Regards