Author Topic: build bot in the github, I see one nice project  (Read 49086 times)

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 107
  • Where there is a will, there is a way.
Re: build bot in the github, I see one nice project
« Reply #90 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:
Code
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.
« Last Edit: October 06, 2024, 05:28:35 am by Grit Clef »
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #91 on: October 06, 2024, 09:52: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:
Code
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.

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 107
  • Where there is a will, there is a way.
Re: build bot in the github, I see one nice project
« Reply #92 on: October 06, 2024, 04:13:13 pm »
I see, Thank you. Trying.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 107
  • Where there is a will, there is a way.
Re: build bot in the github, I see one nice project
« Reply #93 on: October 07, 2024, 04:50:51 pm »
FortranProject build failed:
Code
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
Code
-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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #94 on: October 07, 2024, 05:13:41 pm »
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.

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 107
  • Where there is a will, there is a way.
Re: build bot in the github, I see one nice project
« Reply #95 on: October 08, 2024, 05:45:47 am »
OK. Thank you.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline reckless

  • Regular
  • ***
  • Posts: 349
Re: build bot in the github, I see one nice project
« Reply #96 on: October 09, 2024, 12:24:46 pm »
latest one seems to build no problem in msys2  :D even the 32 bit version works.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7682
    • My Best Post
Re: build bot in the github, I see one nice project
« Reply #97 on: October 09, 2024, 04:19:50 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.
« Last Edit: October 09, 2024, 04:21:58 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline reckless

  • Regular
  • ***
  • Posts: 349
Re: build bot in the github, I see one nice project
« Reply #98 on: October 10, 2024, 12:02:09 am »
aye just built it  8) so far all seems in order.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #99 on: October 10, 2024, 12:45:31 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7682
    • My Best Post
Re: build bot in the github, I see one nice project
« Reply #100 on: October 10, 2024, 05:41:48 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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #101 on: October 16, 2024, 01:21:46 am »
Code
 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.

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 107
  • Where there is a will, there is a way.
Re: build bot in the github, I see one nice project
« Reply #102 on: October 16, 2024, 06:19:43 am »
Now it might work; my hope.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline Михаил Агарков

  • Multiple posting newcomer
  • *
  • Posts: 16
  • Highly sensitive programmer. ☮☯
    • Website
Re: build bot in the github, I see one nice project
« Reply #103 on: October 16, 2024, 11:27:22 pm »
Can this build bot work outside of GitHub (e.g. Gitea Runner, Woodpecker CI)?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #104 on: October 17, 2024, 12:45:45 am »
Now it might work; my hope.

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

Code
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.

Code
D:/msys64/opt/boost_1_86_0/

So, do you have a folder named below?

Code
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.