Excerpt from the script:
intro_msg += _T("\nVERY IMPORTANT NOTE:\n\n" +
"Code::Blocks is built with the GNU GCC compiler and links to\n" +
"the monolithic unicode wxWidgets DLL.\n" +
"This means that you must have exactly this setup to be able to\n" +
"build the generated plugin.\n" +
"You must also have defined two global variables:\n" +
" 1. $(#cb) pointing to Code::Blocks base dir (where CodeBlocks.cbp is)\n" +
" 2. $(#wx) pointing to wxWidgets base directory\n\n\n");
Excerpt from my monitor:
Code::Blocks is built with the GNU GCC compiler and links to
the monolithic unicode wxWidgets DLL.
This means that you must have exactly this setup to be able to
build the generated plugin.
You must also have defined two global variables:
Hi Miguel,
The wizzard on my 12292 shows no further than the colon. Like I quoted it above. You got your exerpt from source code but that's not how it ends up.
Also, I find the concept of a 'base dir' rather confusing. As do others, I think I once read a convoluted recipe that made me set ../sdk as the base dir.
Any toughts on the warning I mentioned in my initial post?
(You beat me to it by minutes ;o)
Can't reproduce here, but I am using wx3.1.4 (32 bits, with default debug level 1). From About -> Information:
Name : Code::Blocks
Version : svn-r12293
SDK Version : 2.6.0
Scintilla Version: 3.7.5
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
Website : http://www.codeblocks.org
wxWidgets Library (wxMSW port)
Version 3.1.4 (Unicode: wchar_t, debug level: 1),
compiled at Jul 23 2020 11:26:42
Runtime version of toolkit used is 6.1.
EDIT: looks like C::B code uses %d to print a long. In 32 bits int and long have the same length, but not in 64 bits, hence the assertion. Can you get a stack trace?
" 1. $(#cb) pointing to Code::Blocks base dir (where CodeBlocks.cbp is)\n" +
" 2. $(#wx) pointing to wxWidgets base directory\n\n\n");
I have set cb pointing to the folder trunk\src where codeblocks.cbp resides.
I have set wx, wx31 and wx31_64 pointing to \wxWidgets.
Now I create a clean Tool Plugin with a name I never used before and move to Project | Build Options | Search Directories (the plugin does not compile as is).
Search Directories | Compiler | default shows:
$(#wx31.include)
$(#wx31.lib)\gcc_dll\mswu
Search Directories | Linker | default shows:
$(#wx31.lib)\gcc_dll
$(#cb)\devel30
I change the latter to $(#cb)\devel31_64 and it builds.
The only thing realy wrong here seems the "$(#cb)\devel30" string as I have installed wx31_64.
The other issues here vanished when I had all wx-variables point to the same folder. I had figured wrongly that 'wx' was the generic variable which was going to make our lives easier when new wxWidgeds come along. I'll have to change all projects Build Options each time that happens. Bummer!