Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Development / Re: build bot in the github, I see one nice project
« Last post by ollydbg on September 28, 2024, 08:59:16 am »
Oh, when I tried your command:
The result is, first 13571 came out and then an error:
Error: Process completed with exit code 141.

The method already works in my fork, see here:

my fork's main branch

Oh, the command worked, thanks.

I see your github action failed:

https://github.com/zxunge/x86-codeblocks-builds/actions/runs/11081484299/job/30793287105

Code
+ mv '/opt/codeblocks/lib/*.dll' /opt/codeblocks/bin/
mv: cannot stat '/opt/codeblocks/lib/*.dll': No such file or directory

You should comment out this line. I have comment out already, and should solved this issue.

92
Development / Re: build bot in the github, I see one nice project
« Last post by Grit Clef on September 28, 2024, 07:15:52 am »
Oh, when I tried your command:
The result is, first 13571 came out and then an error:
Error: Process completed with exit code 141.

The method already works in my fork, see here:

my fork's main branch

Oh, the command worked, thanks.
93
Development / Re: build bot in the github, I see one nice project
« Last post by Grit Clef on September 28, 2024, 07:00:49 am »
Well, I see your patch's content is too large, and I apply it locally, and I see only two line changes:

see below:

Code
diff --git a/src/plugins/contrib/wxSmith/Makefile.am b/src/plugins/contrib/wxSmith/Makefile.am
index 38262bf..dfe9df2 100644
--- a/src/plugins/contrib/wxSmith/Makefile.am
+++ b/src/plugins/contrib/wxSmith/Makefile.am
@@ -7,7 +7,7 @@ AM_CPPFLAGS = $(WX_CXXFLAGS) \
 
 lib_LTLIBRARIES = libwxsmithlib.la
 
-libwxsmithlib_la_LDFLAGS = -version-info 0:1:0 -shared
+libwxsmithlib_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version
 
 libwxsmithlib_la_LIBADD = ../../../sdk/libcodeblocks.la \
  properties/libwxsmith_properties.la \


I think this is exactly the patch file in msys2 here:

https://github.com/msys2/MINGW-packages/blob/f47229e160e1f31f24fdc6142be7b4df99b1a4c3/mingw-w64-codeblocks/001-makefile-wxsmith-add-no-undefined.patch

Another change line is here:

Code
diff --git a/src/src/Makefile.am b/src/src/Makefile.am
index 49d5dd9..d59889b 100644
--- a/src/src/Makefile.am
+++ b/src/src/Makefile.am
@@ -75,7 +75,7 @@ codeblocks_LDADD += resources.$(OBJEXT) -lexchndl -lcomctl32
 codeblocks_DEPENDENCIES = resources.$(OBJEXT)
 codeblocks_SOURCES += associations.cpp
 resources.$(OBJEXT): resources/resources.rc resources/amd64_dpi_aware_on.manifest
- $(WINDRES) $(WX_CXXFLAGS) -DcbDPI_AWARE_ON --include-dir $(top_srcdir)/src $< $@
+ $(WINDRES) $(WX_CPPFLAGS) -DcbDPI_AWARE_ON --include-dir $(top_srcdir)/src $< $@
 endif
 
 noinst_HEADERS = app.h \

This is the command line option you changed for compiling the resource rc file. I don't see a similar patch in msys2's codeblocks folder:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-codeblocks

Another patch I see is here:
https://github.com/msys2/MINGW-packages/blob/f47229e160e1f31f24fdc6142be7b4df99b1a4c3/mingw-w64-codeblocks/005-codeblocks-plugin-fix.patch

Code
--- a/src/sdk/configmanager.cpp	(revision 13538)
+++ b/src/sdk/configmanager.cpp (working copy)
@@ -1497,7 +1497,7 @@
     if (plugin_path_global.IsEmpty())
     {
         if (platform::windows)
-            ConfigManager::plugin_path_global = app_path + _T("/../lib/codeblocks/plugins");
+            ConfigManager::plugin_path_global = app_path + _T("\\..\\lib\\codeblocks\\plugins");
         else if (platform::macosx)
             ConfigManager::plugin_path_global = data_path_global + _T("/plugins");
         else

@Tim, can you say something about this code change? If we don't change this, what will happen? I don't see this code change in my github action's code.

Thanks.

The patch is intended to solve some problems on building, especially when building a 32bit codeblocks. I have tried those patches, like those in msys2, but git always gives me an error. So, I added the all-in-one patch to my repository.
94
Using Code::Blocks / Re: can't jump to definition of std::string_view
« Last post by stahta01 on September 27, 2024, 07:47:56 pm »
I am guessing he needs to install "codeblocks-contrib" package.

Tim S.
95
Using Code::Blocks / Re: can't jump to definition of std::string_view
« Last post by ollydbg on September 27, 2024, 02:56:19 pm »

Navigate to Setting->Plugins->Manage Plugins and enable Clangd_client.

I don't have the "Clangd_client" item to enable. Is it a problem of my C::B version?

Where did you install/download the C::B? Do you build it yourself?

It is very strange that you don't have "Clangd_client" plugin installed.
96
Using Code::Blocks / Re: can't jump to definition of std::string_view
« Last post by mayaming on September 27, 2024, 01:27:40 pm »
Thanks Gimenez and ollydbg! Here's my C::B information, Build Sep 14 2024:

Name                   : Code::Blocks
Version                : svn-r13570
SDK Version            : 2.25.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : https://www.codeblocks.org
OS                     : Linux 6.8.0-45-generic x86_64
Desktop environment    : GNOME
Scaling factor         : 1.000000
Detected scaling factor: 1.000000
Display PPI            : 96x96
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxGTK port)
Version 3.2.2 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.36.


I'm using Ubuntu 22.04.5 LTS in a vmware player.

I followed the steps on https://wiki.codeblocks.org/index.php/CB_Clangd_Client. I installed clang-16:

Debian clangd version 16.0.6 (15~deb12u1)
Features: linux+grpc
Platform: x86_64-pc-linux-gnu


But I got stuck in this step:

Navigate to Setting->Plugins->Manage Plugins and enable Clangd_client.

I don't have the "Clangd_client" item to enable. Is it a problem of my C::B version?
97
Development / Re: build bot in the github, I see one nice project
« Last post by ollydbg on September 26, 2024, 05:03:00 pm »
I have applied Tim's all patches in my git repo: https://github.com/asmwarrior/codeblocks_sfmirror

and when building the C::B, it looks OK.

But when I run the "mv" command, it failed in this line:

Code
./bootstrap
./configure --disable-pch --with-contrib-plugins=all,-Valgrind --prefix=/opt/codeblocks
make -j$(nproc) install
mv /opt/codeblocks/lib/codeblocks/bin/*.dll /opt/codeblocks/bin/
mv /opt/codeblocks/lib/*.dll /opt/codeblocks/bin/

Code
2024-09-26T12:43:53.9461424Z + mv /opt/codeblocks/lib/codeblocks/bin/libwxchartctrl-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxcustombutton-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxflatnotebook-0.dll /opt/codeblocks/lib/codeblocks/bin/libwximagepanel-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxkwic-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxled-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxmathplot-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxspeedbutton-0.dll /opt/codeblocks/bin/
2024-09-26T12:43:53.9636034Z + mv '/opt/codeblocks/lib/*.dll' /opt/codeblocks/bin/
2024-09-26T12:43:53.9781662Z mv: cannot stat '/opt/codeblocks/lib/*.dll': No such file or directory
2024-09-26T12:43:53.9845301Z ##[error]Process completed with exit code 1.

It looks like there is no file: /opt/codeblocks/lib/*.dll

@Grit Clef
Maybe, this mv line should be removed?

I think you likely had an wxContribItems build error because memory says that is what plugin has dlls in that place.
Edit: Looks like your dlls went to a different place; so, removing it should be okay. Unless that is the location for the wxsmith dll.
Edit2: Find where the "libwxsmithlib.dll" is located because I think it should be in that location.

Tim S.

Thanks.

I see the "libwxsmithlib.dll" (actually the name is libwxsmithlib-0.dll) is not in the lib folder, but in the bin folder, see the log below:

Code
Line 8135: 2024-09-26T12:40:09.5700956Z libtool: install:  /usr/bin/install -c .libs/libwxsmithlib-0.dll /opt/codeblocks/lib/../bin/libwxsmithlib-0.dll

So, I just comment out the second "mv" command, and run the github action again.

BTW:

Quote
I think you likely had an wxContribItems build error because memory says that is what plugin has dlls in that place.

I don't think there is a build error.  :)


EDIT:

It looks like removing the second "mv" command solved the github action failure.
98
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by Patras on September 26, 2024, 04:40:20 pm »
Greetings everyone, I'm new here.
99
Development / Re: build bot in the github, I see one nice project
« Last post by stahta01 on September 26, 2024, 04:39:46 pm »
I have applied Tim's all patches in my git repo: https://github.com/asmwarrior/codeblocks_sfmirror

and when building the C::B, it looks OK.

But when I run the "mv" command, it failed in this line:

Code
./bootstrap
./configure --disable-pch --with-contrib-plugins=all,-Valgrind --prefix=/opt/codeblocks
make -j$(nproc) install
mv /opt/codeblocks/lib/codeblocks/bin/*.dll /opt/codeblocks/bin/
mv /opt/codeblocks/lib/*.dll /opt/codeblocks/bin/

Code
2024-09-26T12:43:53.9461424Z + mv /opt/codeblocks/lib/codeblocks/bin/libwxchartctrl-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxcustombutton-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxflatnotebook-0.dll /opt/codeblocks/lib/codeblocks/bin/libwximagepanel-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxkwic-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxled-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxmathplot-0.dll /opt/codeblocks/lib/codeblocks/bin/libwxspeedbutton-0.dll /opt/codeblocks/bin/
2024-09-26T12:43:53.9636034Z + mv '/opt/codeblocks/lib/*.dll' /opt/codeblocks/bin/
2024-09-26T12:43:53.9781662Z mv: cannot stat '/opt/codeblocks/lib/*.dll': No such file or directory
2024-09-26T12:43:53.9845301Z ##[error]Process completed with exit code 1.

It looks like there is no file: /opt/codeblocks/lib/*.dll

@Grit Clef
Maybe, this mv line should be removed?

I think you likely had an wxContribItems build error because memory says that is what plugin has dlls in that place.
Edit: Looks like your dlls went to a different place; so, removing it should be okay. Unless that is the location for the wxsmith dll.
Edit2: Find where the "libwxsmithlib.dll" is located because I think it should be in that location.

Tim S.
100
Using Code::Blocks / Re: can't jump to definition of std::string_view
« Last post by ollydbg on September 26, 2024, 03:49:01 pm »
What is your C::B version? Maybe you can try the clangd_client plugin.

Pages: 1 ... 5 6 7 8 9 [10]