Recent Posts

Pages: 1 ... 4 5 6 7 8 [9] 10
81
Development / Re: build bot in the github, I see one nice project
« Last post by ollydbg on September 24, 2024, 03:46:57 pm »
I want to remove the hack of the dll export hack in building wxsmith plugin.

Code
# Workaround from msys2: error: definition of static data member 'wxsArrayStringEditorDlg::sm_eventTable' of dllimport'd class
# grep -rl "PLUGIN_EXPORT " src/plugins/contrib/wxSmith | xargs -i sed -i "s/PLUGIN_EXPORT //g" {}

So, I remove the hack above.

Now, I see the build error.

It looks like the dll export declaration is not defined.

But when I checked the build log, I see that:

Code
2024-09-24T11:34:32.2601440Z checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
2024-09-24T11:34:32.4010899Z checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
...
...
...
2024-09-24T12:32:02.1013349Z libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../../src/include -ID:/msys64/mingw64/lib/wx/include/msw-unicode-3.2 -ID:/msys64/mingw64/include/wx-3.2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -I../../../../../src/include -I../../../../../src/sdk/wxscintilla/include -DCB_AUTOCONF -DPIC -O2 -ffast-math -fPIC -fexceptions -MT wxsfloatproperty.lo -MD -MP -MF .deps/wxsfloatproperty.Tpo -c wxsfloatproperty.cpp  -DDLL_EXPORT -DPIC -o .libs/wxsfloatproperty.o
...
...
build failed!!!


You see, when building every plugin, the "-DDLL_EXPORT -DPIC" is defined.

But my question is: Where is the "DLL_EXPORT" get defined? I search all the C::B code git repo, and I can't find one.

When I check the cbp files, I see there is no "DLL_EXPORT" defined, instead, in the cbp file, another macro named "BUILDING_PLUGIN", this is core point, because in the

include\cbplugin.h, note this file is included in every cpp file when you need to build a plugin.

Code
#ifdef __WXMSW__
    #ifndef PLUGIN_EXPORT
        #ifdef EXPORT_LIB
            #define PLUGIN_EXPORT __declspec (dllexport)
        #else // !EXPORT_LIB
            #ifdef BUILDING_PLUGIN
                #define PLUGIN_EXPORT __declspec (dllexport)
            #else // !BUILDING_PLUGIN
                #define PLUGIN_EXPORT __declspec (dllimport)
            #endif // BUILDING_PLUGIN
        #endif // EXPORT_LIB
    #endif // PLUGIN_EXPORT
#else
    #define PLUGIN_EXPORT
#endif

So, I think we need to solve this issue.

I even checked the configure.ac file or Makefile.am file, I don't find the DLL_EXPORT definition.

Is this value a predefined string?

82
Using Code::Blocks / Re: Workspace Stopped Opening Project File
« Last post by Miguel Gimenez on September 23, 2024, 12:31:39 pm »
Probably the project was corrupted.
83
Help / Re: Codeblocks can't build and run on my macOs.
« Last post by AndrewCot on September 23, 2024, 11:04:00 am »
Use google as there is a page that has the info for fixing the issue you are seeing, BUT debugging will not work. As such you are better trying a different IDE on the MAC that support debugging and has devs that use the MAC.
84
Development / Re: build bot in the github, I see one nice project
« Last post by ollydbg on September 23, 2024, 09:07:21 am »
And in my repository, the svn revision and the wxWidgets version now can be Automatically detected.

You need to check this code for get the svn value string.

https://github.com/arnholm/codeblocks_sfmirror/blob/master/update_revision.sh

because if the git has some customized commits which does not contain the git-svn-id string, it will got empty result in your github action.

EDIT:


I think you could use:

Code
git log --graph | grep 'git-svn-id' | head -n 1 | grep -o -e "@\([0-9]*\)" | tr -d '@ '
85
Development / Re: build bot in the github, I see one nice project
« Last post by ollydbg on September 23, 2024, 08:07:48 am »
And in my repository, the svn revision and the wxWidgets version now can be Automatically detected.

Thanks for the info. My github action code for created the release package is mainly created by chatGPT, and has some flaws. I got some warning message like below:

Quote
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/create-release@v1, actions/upload-release-asset@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

I think I will use your method, and by adding some time stamp for the release.

Question: why do you add a cron section?

Code
  schedule:
    - cron: '0 0 7,14,21,28 * *'

You want to run the github action every week? (chatGPT gives me the answer: the cron expression '0 0 7,14,21,28 * *' means that the job will run at midnight on the 7th, 14th, 21st, and 28th day of every month.)
86
Help / Codeblocks can't build and run on my macOs.
« Last post by asggcw on September 23, 2024, 06:43:14 am »
Hello, How can I solve this problem? Please, please help me, anyone? I am new to CS. Could you guys help me to solve this issue: whenever I try to use CodeBlocks to Build and Run my basic "Hello world" program, it gives me this error below:

'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe '

shuilin@Shuis-MBP ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe '

zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe

shuilin@Shuis-MBP ~ %
87
Development / Re: build bot in the github, I see one nice project
« Last post by Grit Clef on September 23, 2024, 05:48:09 am »
And in my repository, the svn revision and the wxWidgets version now can be Automatically detected.
88
Using Code::Blocks / Re: Workspace Stopped Opening Project File
« Last post by Thoth on September 23, 2024, 01:49:54 am »
Hello stahta01,

Thank you for replying.

I had previously tried that. Once I saved the workspace the project that was not being opened was no longer in the workspace list.

I ended up taking a similar project, copying it to the appropriate directory, and making changes to it.

After that I was able to open the workspace normally.


=thoth=
89
Using Code::Blocks / Re: Workspace Stopped Opening Project File
« Last post by stahta01 on September 22, 2024, 09:34:41 pm »
The steps I use to fix this issue when I have it.

1. Open the CB Workspace
2. Open the CB Project
3. Reorder projects in workspace if needed
4. Save As the Workspace Edit: Save Workspace should also work

Tim S.
90
Using Code::Blocks / Workspace Stopped Opening Project File
« Last post by Thoth on September 22, 2024, 09:13:02 pm »
Hello People,

I have a workspace file that no longer opens one of the projects in the workspace.

The Code::Blocks log window shows:

Opening /SG3Data/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.cbp
Unable to open "/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.cbp" during opening workspace "/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.workspace"

Attempting to open the project file directly also fails with:
Opening /SG3Data/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.cbp
Opening file '/CodeTemp/ins_LPOCode/LPOCheck/CodeBlocks/lpo_check.cbp' failed!

I was able to open the workspace from the "Start Here" window, the recent projects item, and by double-clicking it in nemo.

I have checked the permissions of the directories and files involved and everything looks as it should.

I note there is no option to add a project to a workspace and using the open option fails.

I am using:
Name                   : Code::Blocks
Version                : svn-r13046
SDK Version            : 2.23.0
Starting Code::Blocks svn build  rev 13046 2022-12-27, 22:00:27 - wx3.2.1 - gcc 12.2.0 (Linux, unicode) - 64 bit

If anyone has any suggestions, please let me know.


=thoth=




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