Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

New Variable to support wx-config in MSys2 MinGW

<< < (5/9) > >>

stahta01:
Attached CB Project used to test building Code::Blocks using TARGET_COMPILER_UNIX_PATH macro.

The project started off as a copy of "CodeBlocks_wx30-unix.cbp" and was renamed to "CodeBlocks_wx32-msys2.cbp"
The primary purpose was to verify my msys2 mingw64 package had what was needed to build Code::Blocks.
Edit2: My only testing was running the built Code::Blocks and seeing if it could load all the core plugins without any errors.
Edit3: https://packages.msys2.org/base/mingw-w64-wxwidgets3.2

Contents of "updatemsys2.sh"

--- Code: ---#!/bin/sh
./update msys2

--- End code ---

Tim S.

ollydbg:
Hi, Tim, thanks for your work on the msys2 and wx library.

One question:

Static libraries and headers for wxWidgets 3.2 (mingw-w64)

What is the word "static" means? Do they mean the library is not dll?

EDIT:
My guess is not correct, see this page: https://packages.msys2.org/package/mingw-w64-x86_64-wxwidgets3.2-msw-libs?repo=mingw64
It contains many dll files.

ollydbg:
What is the msys2 package do we need to use this cbp?


--- Code: ---# pacman -S mingw-w64-x86_64-wxwidgets3.2-msw
# pacman -S mingw-w64-x86_64-wxwidgets3.2-msw-cb_headers

--- End code ---

Those two packages?

EDIT:

Where is the "updatemsys2.sh"?

stahta01:

--- Quote from: ollydbg on August 13, 2022, 04:00:53 pm ---What is the msys2 package do we need to use this cbp?


--- Code: ---# pacman -S mingw-w64-x86_64-wxwidgets3.2-msw
# pacman -S mingw-w64-x86_64-wxwidgets3.2-msw-cb_headers

--- End code ---

Those two packages?

--- End quote ---

Those and the depends of them should be enough.
You also need rsync


--- Quote ---EDIT:

Where is the "updatemsys2.sh"?

--- End quote ---

I pasted the entire file ( 2 lines ) in code tags.

I use below to run the script file from the proper MINGW prompt

--- Code: ---./updatemsys2.sh

--- End code ---

Edit it might make more sense just to run.

--- Code: ---./update msys2

--- End code ---

Tim S.

ollydbg:
Here are some steps I need to use Tim's cbp file:

0, use pacman to install wx library (3.2)


--- Code: ---pacman -S mingw-w64-x86_64-wxwidgets3.2-msw
pacman -S mingw-w64-x86_64-wxwidgets3.2-msw-cb_headers

--- End code ---

1, Set the compiler path to msys2's mingw 64 bit comipler, in my PC, it is


--- Code: ---F:\msys2\mingw64

--- End code ---

and put the string


--- Code: ---$(TARGET_COMPILER_DIR)../usr/bin

--- End code ---

In the "Additional Paths" option in the global Compiler setting.


2, open the cbp file(CodeBlocks_wx32-msys2.cbp), build.


3, in the msys2 mingw64's shell, run the command


--- Code: ---./update msys2

--- End code ---

Note that those tools are needed to used by the "update" script


--- Code: ---pacman -S zip
pacman -S rsync

--- End code ---


The result C::B(in the outputmsys2 folder) looks OK  :)

Note this only contains the core plugins.

BTW: it takes about 12 minutes to build the CodeBlocks_wx32-msys2.cbp on my PC, while it takes more than about 35 minutes to let the "Clangd_client" to parse all the 457 source files on my PC.  :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version