User forums > Using Code::Blocks

[RESOLVED][MacOSX 10.15] Build CB

<< < (3/4) > >>

Suryavarman:
I have try my modification of wxscustombuttom.cpp under Mageia7 with gcc8, wx 3.0.4 and CB commit: 12281 .

wxART_ORTHER_C is not a wxString but a const char [14].

--- Code: ---wxthings/wxscustombutton.cpp: Dans la fonction membre « virtual void wxsCustomButton::OnBuildCreatingCode() »:
wxthings/wxscustombutton.cpp:126:98: error: requête du membre « wx_str » dans « ("wxART_OTHER_C") », lequel est de type non classe « const char [14] »
             Codef(_T("%C(%W,%I,%t,%i,%P,%S,%s,%V,%N);\n"),m_Label.wx_str(),&m_Bitmap,wxART_OTHER.wx_str(),Style.wx_str());
                                                                                                  ^~~~~~
wxthings/wxscustombutton.cpp:130:86: error: requête du membre « wx_str » dans « ("wxART_OTHER_C") », lequel est de type non classe « const char [14] »
                 Codef(_T("%ASetBitmapSelected(%i);\n"),&m_BitmapSelected,wxART_OTHER.wx_str());
                                                                                      ^~~~~~
wxthings/wxscustombutton.cpp:135:82: error: requête du membre « wx_str » dans « ("wxART_OTHER_C") », lequel est de type non classe « const char [14] »
                 Codef(_T("%ASetBitmapFocus(%i);\n"),&m_BitmapFocused,wxART_OTHER.wx_str());
                                                                                  ^~~~~~
wxthings/wxscustombutton.cpp:140:86: error: requête du membre « wx_str » dans « ("wxART_OTHER_C") », lequel est de type non classe « const char [14] »
                 Codef(_T("%ASetBitmapDisabled(%i);\n"),&m_BitmapDisabled,wxART_OTHER.wx_str());
                                                                                      ^~~~~~
make[4]: *** [Makefile:902: wxthings/wxscustombutton.lo] Error 1


--- End code ---

oBFusCATed:
It will require wxCHECK_VERSION marcos I suppose. Or it is something broken in wx and they should fix it.
But it must be investigated first.

Can you post the exact commit hash of wxWidgets you're using and it needs this change?
You tried to post it before, but you post was really confusing.

Suryavarman:

I use wxWidgets v3.1.4

git clone https://github.com/wxWidgets/wxWidgets.git wxwidgets-code
cd wxwidgets-code
git checkout "tags/v3.1.4"
git submodule update --init --recursive

git log


--- Code: ---commit 6cdaedd42ba59331b3dc4ead50e0bac76ae14c19 (HEAD, tag: v3.1.4)
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date:   Wed Jul 22 19:20:06 2020 +0200

    Fill in the binaries SHA-1 checksums


--- End code ---

Suryavarman:
If you want to try my building process. Here my script.

1- Put the script in a new folder

2- (OPTIONAL) Open the script and uncomment the line 75 to install my dependencies choices.BUT BE AWARE CAN BE DANGEROUS FOR YOUR OWN CB building process.

3- Open a terminal

4- run the script

5- and follow the instructions.

At the end you will have the same Codeblocks.app as me.

Suryavarman:
I have use the same script on Mageia7. I have remove the macos references.
And all work perfectly.

gcc version:
gcc (Mageia 8.4.0-1.mga7) 8.4.0
g++ (Mageia 8.4.0-1.mga7) 8.4.0


wxwidgets version:

--- Code: ---commit 6cdaedd42ba59331b3dc4ead50e0bac76ae14c19 (HEAD, tag: v3.1.4)
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date:   Wed Jul 22 19:20:06 2020 +0200

    Fill in the binaries SHA-1 checksums

--- End code ---

Codeblocrs build info:

--- Code: ---Name             : Code::Blocks
Version          : svn-r12286
SDK Version      : 2.6.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxGTK port)
Version 3.1.4 (Unicode: wchar_t, debug level: 0),
compiled at Jan  7 2021 23:30:48

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.8.

--- End code ---



Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version