1
Using Code::Blocks / Re: How to add pre/post build steps by script in Code::Blocks? AddCommandsAfterBuild
« Last post by Miguel Gimenez on Today at 08:37:50 am »Spam reported to moderator.
Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!
What is base in the first example?
Do you see any errors in the script console?
Have you tried to execute your scripts in the script console to debug them?
Have you added some prints to debug what is going on?
AddCommandsAfterBuild is the correct function/method to call if you want to add post build commands.
There are very few APIs which work only in wizards. Most of the APIs work everywhere. moviesda
Thanks for the fix and sorry for not responding earlier, but got distracted by day job ...When working on builds for Fedora (https://copr.fedorainfracloud.org/coprs/sharkcz/danny/build/10959184/, details are in the builder-live.log files), I have noticed that libtool version 2.6.2 present in Rawhide fails the build of the codesnippets plugin after the tinyxml LIBADD was removed from its Makefile.am in revision 13996. System tinyxml library is used in the builds. I have confirmed that with libtool downgraded to 2.5.4 the build runs OK. AFAICT other plugins still use the LIBADD mechanism. Likely some change in libtool is causing this ...
Thanks for the report.
Fixed svn r14017
Hi @ollydbg,
Could you please try below patch? I could see compiler auto-detection dialogue when I tested build via command line in Ubuntu, below patch avoided it.Codediff --git a/src/sdk/compilerfactory.cpp b/src/sdk/compilerfactory.cpp
index f36e2beb9..87f2eb5ae 100644
--- a/src/sdk/compilerfactory.cpp
+++ b/src/sdk/compilerfactory.cpp
@@ -288,7 +288,7 @@ void CompilerFactory::LoadSettings()
}
// auto-detect missing compilers
- if (needAutoDetection)
+ if (needAutoDetection && !Manager::IsBatchBuild())
{
AutoDetectCompilers adc(Manager::Get()->GetAppWindow());
PlaceWindow(&adc);
diff --git a/src/sdk/compilerfactory.cpp b/src/sdk/compilerfactory.cpp
index f36e2beb9..87f2eb5ae 100644
--- a/src/sdk/compilerfactory.cpp
+++ b/src/sdk/compilerfactory.cpp
@@ -288,7 +288,7 @@ void CompilerFactory::LoadSettings()
}
// auto-detect missing compilers
- if (needAutoDetection)
+ if (needAutoDetection && !Manager::IsBatchBuild())
{
AutoDetectCompilers adc(Manager::Get()->GetAppWindow());
PlaceWindow(&adc);
Check out "headless" search in the sourceforge tickets as there may be a better option that you may not have spotted, but I could be wrong.
There may be other keywords to see if there is a CI/CD patch.
Try this:
https://github.com/stahta01/CodeBlocks_Unofficial_Testing/blob/master/src/tools/cbp2make/Makefile.am