Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Development / Re: RFC about pane translation
« Last post by Miguel Gimenez on November 25, 2023, 01:57:19 pm »
I have (sort of) fixed this issue restoring the english captions if no translation is active. As described in r13399, to unlock the captions properly the steps are:

1.- If you want to go back to english, disable I18n (in Environment/View), reopen C::B and save the perspective.
2.- If you want to change from one translation to another, switch to english (see 1) and then reenable I18n with the new translation.

Thanks to those who commented.
52
Help / Re: Trying to get wxWidgets 3.2 to work with CB...
« Last post by wtfisgoingoff on November 25, 2023, 01:19:34 pm »
you might want to read this guide for building wxWidgets and using it in CodeBlocks.
https://github.com/PBfordev/wxpbguide
This repositoriy also has a new CodeBlocks wizard for wxWidgets project.
53
Help / Re: Trying to get wxWidgets 3.2 to work with CB...
« Last post by Miguel Gimenez on November 25, 2023, 01:02:59 pm »
The wizard looks if "$(#wx)/include/wx/wx.h" exists, check if your wx vaiable points to the correct folder (where include and lib reside).

BTW, you must add "$(#wx.INCLUDE)" to the compiler search path.
54
Help / Re: Trying to get wxWidgets 3.2 to work with CB...
« Last post by Sephiroth on November 25, 2023, 08:19:07 am »
Sorry, I have been unavailable for over a month. Life was keeping me from my hobby.

With that said, I unzipped wxWidgets 3.2.2.1 into "C:\Program Files\CodeBlocks\wxWidgets-3.2.2.1", setup the search paths in the compiler options "$(#wx.LIB)\gcc_lib\mswu" and "mswud", setup the global "wx" variable pointing to the correct places, and went in and built both debug and release builds of wxWidgets using a command-prompt as follows.
Code
cd "Program Files\CodeBlocks\wcWidgets-3.2.2.1\build\msw
mingw32-make -f makefile.gcc SHARED=0 MONOLITHIC=0 UNICODE=1 BUILD=debug
mingw32-make -f makefile.gcc SHARED=0 MONOLITHIC=0 UNICODE=1 BUILD=release
I then changed to the "samples/minimal" directory and built that project. It builds and runs flawlessly. However, I can never finish the wizard due to it erroring out at the end, telling me it can't find matching debug or release builds. I do intend on using wxWidgets in my project so I can build it under Linux as well.

I saw the suggestion to use a nightly CB build. It's been almost four years since the last release. Is there ever going to be another stable release or at least a patch release to bring 20.03 up to current-day library support for things like wxWidgets? I despise what MSVS has become (I am NOT creating a damn account just to use an IDE!) and CB has been my go-to since around 2010. I just wish it was up-top-date.
55
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by sodev on November 25, 2023, 12:17:13 am »
To prove that you are not a bot, use code tags.

To prove that you aren't visiting elementary school, don't use using namespace std;.
56
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by mdt01 on November 24, 2023, 09:53:03 pm »
#include <iostream>
using namespace std;
int main(); {
     cout<<"To err is human \n";
     return 0;
}
57
Help / Re: WxWidgets not compiling
« Last post by omlk on November 24, 2023, 06:45:36 pm »
I installed Codeblocks on a OSX computer with version 13.6 Ventura. Codeblocks version is 20.03 with Wxwidgets 3.2 installed. I did many tests in order to compile a simple Wxwidgets program. Just create a new project with WxSmith Frame Based.
Please provide a link from where we can download your zipped (my_project.zip) project to see what and how you have configured in code::blocks. Also, screenshots would be a good addition, on which you show and sign with a marker what and where you do not understand. People on the forum are not telepaths, and not everyone has macOS.
Ask the user @Xaviou for help, maybe he will tell you something.
58
Help / Re: WxWidgets not compiling
« Last post by stahta01 on November 24, 2023, 03:57:56 pm »
Not a Mac user; but, this is how I would try to troubleshoot the issue.

1. Run wx-config from command prompt
Edit: No idea if step 2 will work under Mac/OSX
2. Add `wx-config --cflags` to the CB Pre-build steps to see if it works.
    NOTE: Under Windows, I had to use "echo `sh.exe wx-config --cflags`" without double quotes
3. Build the wxWidgets minimal sample

Edit2: You need to reports results if you cannot understand the cause after the above 3 steps.

Edit3: See also https://forums.wxwidgets.org/viewtopic.php?f=19&t=50872
59
Development / Re: C::B dark mode in Windows
« Last post by gd_on on November 24, 2023, 03:47:33 pm »
Don't forget that dark mode for Windows is only supported by wxWidgets 3.3, still a beta version, and until now no provisionnal date has been given for its release.
The only date given is for wxWidgets 3.2.5, in april 2024. v3.2.4 has just been released. So, C::B will certainly not officially support this dark mode for Windows until official wxWidgets 3.3 release.
But of course, you can try it. There are several discussions on this subject on github forums, at least this one : https://github.com/wxWidgets/wxWidgets/pull/23028.
The simplest way to obtain this dark mode (without modifying C::B code), is of course to first compile and link C::B with wxWidgets 3.3.0 under Windows and simply launch it by adding a command line in a batch file like :
set WX_MSW_DARK_MODE=2
codeblocks.exe

Background and standard text colors are set inside wxWidgets. Some others are set by Windows itself. It's also possible to adjust a few colors, but not everything.
60
Help / WxWidgets not compiling
« Last post by rartigas on November 24, 2023, 09:47:12 am »
Hi

I installed Codeblocks on a OSX computer with version 13.6 Ventura. Codeblocks version is 20.03 with Wxwidgets 3.2 installed. I did many tests in order to compile a simple Wxwidgets program. Just create a new project with WxSmith Frame Based. When building, the "build log" dialog shows the following:

g++ -Wall -g  -c /Users/artigas/Downloads/testCodeBlocks/test/test2/test2App.cpp -o obj/Debug/test2App.o
g++ -Wall -g  -c /Users/artigas/Downloads/testCodeBlocks/test/test2/test2Main.cpp -o obj/Debug/test2Main.o
g++  -o bin/Debug/test2 obj/Debug/test2App.o obj/Debug/test2Main.o 

which is missing the 'wx-config --cflags`and `wx-config --libs`already set by default in the Build Options  "other compiler options" and "linker settings".

If I set up the installation folder of the WxWidgets search directories, then it tries to compile, but there are more than 40 errors and the build message end with:

 error "No Target! You should use wx-config program for compilation flags!"

I tried with CodeBlocks 17, with WxWidgets compiled and installed from source, also with WxWidgets installed from Brew. Whatever I do is not able to compile any project with WxWidgets.

Any help will be wellcome
Roger
Pages: 1 2 3 4 5 [6] 7 8 9 10