User forums > General (but related to Code::Blocks)

Implicit wxString to char* conversion in src/sdk/projectloader.cpp

<< < (3/4) > >>

stahta01:
I plan to add the patch files I am using to this post.
I also used the patch to src/sdk/projectloader.cpp that the OP posted. I forgot the wxcode stuff I knew it might be correct or it might not.

msys2_wx_CodeBlocks_wx32_64.cbp.patch contains a patch to modify CodeBlocks_wx32_64.cbp so it uses MSys2 MINGW64 wxwidgets 3.2 package.

MSys2 Packages that are likely needed; only tested using MINGW64 command window.

--- Code: ---pacman -S --noconfirm --needed zip;
pacman -S --noconfirm --needed rsync;
pacman -S --noconfirm --needed subversion;
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-gcc;
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-cppcheck;
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-boost;
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-drmingw;
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-wxwidgets3.2-msw;
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-wxwidgets3.2-msw-cb_headers;

--- End code ---

Commands used after CB core project CodeBlocks_wx32_64.cbp builds

--- Code: ---./update 32_msys2
cd output32_msys2
./codeblocks.exe

--- End code ---

Link to the normal build directions https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows
Note: Those directions are not correct for use with these patch files; but, they might help. And, if you have never built CB the normal way it will be hard to build it this very unusual way.

Build finished;

--- Code: ---Name                    : Code::Blocks
Version                 : svn-r13254
SDK Version             : 2.24.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : https://www.codeblocks.org
OS                      : Windows 10 (build 19045), 64-bit edition
Scaling factor          : 1.250000
Detected scaling factor : 1.250000
Display PPI             : 120x120
Display count           : 2
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1280,1024]; Primary
Display 1 (\\.\DISPLAY2): XY=[1280,0]; Size=[1920,1080];

wxWidgets Library (wxMSW port)
Version 3.2.2 (Unicode: wchar_t, debug level: 1),
compiled at Mar  8 2023 20:18:16

Runtime version of toolkit used is 10.0.

--- End code ---

Tim S.

Miguel Gimenez:
Compilation fails when wxUSE_STL == 1, this must be fixed because 1 will be the default value sooner or later.
 I will do it in a while.

ollydbg:
For me, I think the code


--- Code: ---glob.GetWildCard().mb_str()
--- End code ---

will depends on the system's Local setting. For example, either in Chinese or other languages, the mb_str() will return different byte arrays. Is that correct?

stahta01:

--- Quote from: ollydbg on April 12, 2023, 01:24:34 pm ---For me, I think the code


--- Code: ---glob.GetWildCard().mb_str()
--- End code ---

will depends on the system's Local setting. For example, either in Chinese or other languages, the mb_str() will return different byte arrays. Is that correct?

--- End quote ---

I was thinking that; but, since a different solution using c_str() was used in CB SVN the issue is moot.

Tim S.

BlueHazzard:
So suggestions to fix this?
Can someone do this? I have at the moment no time to look into this....

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version