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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6038
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #120 on: October 19, 2024, 04:56:18 pm »
Another common problem is:
Code
g++.exe -shared  -L..\..\..\devel32 -LD:/msys64/opt/wxwidgets3.2/lib -LD:/msys64/opt/wxwidgets3.2/lib\gcc_dll ..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\DoxyBlocksLogger.o ..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\ExtractDocs.o ..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\AutoDoc.o ..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\DoxyBlocks.o 
                                                                                     ∧∧∧∧∧∧
..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\DoxyBlocks.o ..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\ConfigPanel.o ..\\..\\..\\.objs32\\plugins\\contrib\\DoxyBlocks\\Config.o  -o ..\\..\\..\\devel32\\share\\CodeBlocks\\plugins\\DoxyBlocks.dll  -Wl,--enable-auto-import -mthreads  -lcodeblocks -lwxmsw32u
D:/msys64/opt/mingw32/bin/../lib/gcc/i686-w64-mingw32/14.2.0/../../../../i686-w64-mingw32/bin/ld.exe: ..\..\..\.objs32\plugins\contrib\DoxyBlocks\DoxyBlocks.o:DoxyBlocks.cpp:(.text+0x0): multiple definition of `DoxyBlocks::GetEventTable() const'; ..\..\..\.objs32\plugins\contrib\DoxyBlocks\DoxyBlocks.o:DoxyBlocks.cpp:(.text+0x0): first defined here
D:/msys64/opt/mingw32/bin/../lib/gcc/i686-w64-mingw32/14.2.0/../../../../i686-w64-mingw32/bin/ld.exe: ..\..\..\.objs32\plugins\contrib\DoxyBlocks\DoxyBlocks.o:DoxyBlocks.cpp:(.text+0x10): multiple definition of `DoxyBlocks::GetEventHashTable() const'; ..\..\..\.objs32\plugins\contrib\DoxyBlocks\DoxyBlocks.o:DoxyBlocks.cpp:(.text+0x10): first defined here
...........
There are multiple same object files provided.

You mean there are 2 "DoxyBlocks.o" in the build options when linking?

I think the cb2make plugin should have some ways to remove those duplicated linking objects.
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: 7703
    • My Best Post
Re: build bot in the github, I see one nice project
« Reply #121 on: October 19, 2024, 05:32:10 pm »
Code
$ pacman -Qo /mingw64/bin/repstopdf.exe
/mingw64/bin/repstopdf.exe is owned by mingw-w64-x86_64-texlive-core 2023.20230404-1

Some places use "repstopdf" instead of "epstopdf"

Edit: But, it did not work for me.
Code
C:\msys64\mingw64\bin\runscript.tlu:922: C:\msys64\mingw64\bin\runscript.tlu:853: no appropriate script or program found
: epstopdf

${MINGW_PACKAGE_PREFIX}-ghostscript should have missing scripts.

But, I still could not find script

Tim S.

Got it.

Code
$ pacman -Qo /mingw64/bin/epstopdf.exe
/mingw64/bin/epstopdf.exe is owned by mingw-w64-x86_64-texlive-font-utils 2023.20230404-1

Now this works
Code
$ epstopdf --version
epstopdf ($Id: epstopdf.pl 66407 2023-03-06 23:44:49Z karl $) 2.31
Copyright 2009-2023 Karl Berry et al.
Copyright 2002-2009 Gerben Wierda et al.
Copyright 1998-2001 Sebastian Rahtz et al.
License RBSD: Revised BSD <http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

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 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 #122 on: October 19, 2024, 06:33:07 pm »
The first codeblocks build with partial plugins is out.
See https://github.com/zxunge/winstyle-codeblocks-bins/actions/runs/11418689815 .
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6038
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #123 on: October 20, 2024, 02:19:33 pm »
The first codeblocks build with partial plugins is out.
See https://github.com/zxunge/winstyle-codeblocks-bins/actions/runs/11418689815 .

The latest one should be here: Update main.yml zxunge/winstyle-codeblocks-bins@c608334

There are two packages, which one is the final result zip file?

Why do you have a "update.exe" in your code repo?
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 #124 on: October 20, 2024, 04:22:30 pm »
codeblocks32_output.zip is the final; update.exe was converted from update.bat use an online tool, for use inside MSYS2 shell.(I first used winpty, but it just succeeded on my PC, failed on GitHub CI Server. So I tried that; although it was not perfect as the exe couldn't copy CbLauncher.exe to the output32 directory.)
-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 #125 on: October 24, 2024, 06:18:51 am »
CodeBlocks was built partially, but it can't be put in use. Assertion failed on startup.
« Last Edit: October 24, 2024, 06:20:54 am by Grit Clef »
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6038
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: build bot in the github, I see one nice project
« Reply #126 on: October 24, 2024, 10:04:58 am »
CodeBlocks was built partially, but it can't be put in use. Assertion failed on startup.

You may start the C::B without any plugins to see whether it is caused by the host exe file, or by loading the plugins files.

It looks like some toolbar buttons images are not correctly copied?
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 #127 on: October 26, 2024, 06:36:40 am »
No, it is not about plugins but codeblocks itself. Strange.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

MichaelAgarkov

  • Guest
Re: build bot in the github, I see one nice project
« Reply #128 on: November 06, 2024, 03:14:33 pm »
I got access to ci.codeberg.org, I will try to make the automated build system to work with Woodpecker CI.
https://codeberg.org/MichaelAgarkov/x86-codeblocks-builds