News:

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

Main Menu

build bot in the github, I see one nice project

Started by ollydbg, August 16, 2024, 03:20:16 PM

Previous topic - Next topic

Grit Clef

#90
Good news: I had just forgotten to use some shell commands to change the Makefile so that it can work under MSYS2 zip. The following commands can change all back-slashes to forward-slashes and do other necessary modification:

sed '/zip -jq9*/ s/\\/\//g' Makefile_core -i
sed -i '85 s/LIB_SDK = $(LIB) -lshfolder -ltxml -lwxscintilla_cb -lsquirrel -lgdi32/LIB_SDK = -lshfolder -ltxml -lwxscintilla_cb $(LIB) -lsquirrel -lgdi32/' Makefile_core
sed 's/$(DEP_.*//g' Makefile_core -i

A successful action can be found at https://github.com/zxunge/winstyle-codeblocks-bins/actions/runs/11192814700
So now maybe we can use a automatical winstyle build.

I'm now wondering if cbp2make can convert .workspace files.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

ollydbg

Quote from: Grit Clef on October 06, 2024, 05:22:58 AM
Good news: I had just forgotten to use some shell commands to change the Makefile so that it can work under MSYS2 zip. The following commands can change all back-slashes to forward-slashes and do other necessary modification:

sed '/zip -jq9*/ s/\\/\//g' Makefile_core -i
sed -i '85 s/LIB_SDK = $(LIB) -lshfolder -ltxml -lwxscintilla_cb -lsquirrel -lgdi32/LIB_SDK = -lshfolder -ltxml -lwxscintilla_cb $(LIB) -lsquirrel -lgdi32/' Makefile_core
sed 's/$(DEP_.*//g' Makefile_core -i

A successful action can be found at https://github.com/zxunge/winstyle-codeblocks-bins/actions/runs/11192814700
So now maybe we can use a automatical winstyle build.

I'm now wondering if cbp2make can convert .workspace files.

Very nice work!

I looked at the file:
https://github.com/zxunge/winstyle-codeblocks-bins/blob/main/.github/workflows/main.yml

and you just download all the wx header files and compilers used by nightly build?

If you looked at the
https://github.com/mirai-computing/cbp2make

You see that cbp2make also works for workspaces files.

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Grit Clef

-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Grit Clef

FortranProject build failed:

g++.exe  -Wall -std=gnu++11  -pipe -mthreads -fmessage-length=0 -fexceptions -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DwxUSE_UNICODE  -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -ID:/msys64/opt/wxwidgets3.2/include -ID:/msys64/opt/wxwidgets3.2/lib\gcc_dll\msw -c projectdependencies.cpp -o ..\\..\\..\\.objs32\\plugins\\contrib\\FortranProject\\projectdependencies.o
In file included from D:/msys64/opt/wxwidgets3.2/include/wx/defs.h:45,
                 from D:/msys64/opt/wxwidgets3.2/include/wx/wxprec.h:12,
                 from ..\..\..\include/sdk_common.h:24,
                 from ..\..\..\include/sdk.h:14,
                 from projectdependencies.h:13,
                 from projectdependencies.cpp:10:
D:/msys64/opt/wxwidgets3.2/include/wx/platform.h:159:10: fatal error: wx/setup.h: No such file or directory
  159 | #include "wx/setup.h"
      |          ^~~~~~~~~~~~
compilation terminated.
mingw32-make[1]: ***

I think it's because

-ID:/msys64/opt/wxwidgets3.2/lib\gcc_dll\msw

Why there's no 'u' after 'gcc_dll\msw'??
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

ollydbg

Maybe, you can exclude this plugin first from workspace.

If I remember correctly, this plugin's souce code is not in our svn.

Ask this plugin's author for some help. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Grit Clef

-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

reckless

latest one seems to build no problem in msys2  :D even the 32 bit version works.

stahta01

#97
Quote from: reckless on October 09, 2024, 12:24:46 PM
latest one seems to build no problem in msys2  :D even the 32 bit version works.

msys2 added the FORTRAN plugin [as a separate package], also.

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]

reckless

aye just built it  8) so far all seems in order.

ollydbg

Quote from: reckless on October 10, 2024, 12:02:09 AM
aye just built it  8) so far all seems in order.

Which method did you use?

The configure/make or cb2make.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

stahta01

Quote from: ollydbg on October 10, 2024, 12:45:31 AM
Quote from: reckless on October 10, 2024, 12:02:09 AM
aye just built it  8) so far all seems in order.

Which method did you use?

The configure/make or cb2make.

He likely talking about this https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-codeblocks-fortranproject

And, he likely built it the standard MSys2 Mingw package way.

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]

ollydbg


cmd /c if not exist ..\..\..\devel32\share\codeblocks\plugins mkdir ..\..\..\devel32\share\codeblocks\plugins
cmd /c if exist ./clangd_client.zip del ./clangd_client.zip
zip -jq9 ./clangd_client.zip  src/resources/manifest.xml  src/resources/*.xrc src/resources/*.cbp
cmd /c "cd src/resources && zip -rq9 ../../clangd_client.zip images && cd ../.."
'esources' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make[1]: *** [clangd_client_wx32.cbp.mak:62: after_default] Error 1
mingw32-make[1]: Leaving directory 'D:/a/winstyle-codeblocks-bins/winstyle-codeblocks-bins/codeblocks_sfmirror/src/plugins/contrib/clangd_client'
mingw32-make: *** [Makefile_plugins:56: plugins_contrib_clangd_client_clangd_client_wx32] Error 2
Error: Process completed with exit code 2.


I see this: main32 zxunge/winstyle-codeblocks-bins@e9dcd79

It looks like the batch command line error when building clangd_client plugin.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Grit Clef

-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

MichaelAgarkov

Can this build bot work outside of GitHub (e.g. Gitea Runner, Woodpecker CI)?

ollydbg

Quote from: Grit Clef on October 16, 2024, 06:19:43 AM
Now it might work; my hope.

In the latest error message from github action, I see this:

g++.exe -std=gnu++11  -pipe -mthreads -fmessage-length=0 -fexceptions -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DwxUSE_UNICODE -DBOOST_SYSTEM_NO_DEPRECATED  -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -ID:/msys64/opt/wxwidgets3.2/include -ID:/msys64/opt/wxwidgets3.2/lib\gcc_dll\mswu -ID:/msys64/opt/boost_1_86_0/boost -c CParser.cpp -o ..\\..\\..\\.objs32\\plugins\\contrib\\NassiShneiderman\\CParser.o
CParser.cpp:5:10: fatal error: boost/spirit/include/classic.hpp: No such file or directory
    5 | #include <boost/spirit/include/classic.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make[1]: *** [NassiShneiderman_wx32.cbp.mak:108: ..\\..\\..\\.objs32\\plugins\\contrib\\NassiShneiderman\\CParser.o] Error 1
mingw32-make[1]: Leaving directory 'D:/a/winstyle-codeblocks-bins/winstyle-codeblocks-bins/codeblocks_sfmirror/src/plugins/contrib/NassiShneiderman'
mingw32-make: *** [Makefile_plugins:40: plugins_contrib_nassishneiderman_nassishneiderman_wx32] Error 2
Error: Process completed with exit code 2.


You have already installed the header files from the boost library?
Maybe you need to tweak the compiler search paths of the boost, as I can see that this search path is already included.

D:/msys64/opt/boost_1_86_0/

So, do you have a folder named below?

D:/msys64/opt/boost_1_86_0/boost/spirit/include/classic.hpp

Maybe, as a workaround, you can exclude this plugin from the workspace to makefile generation.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.