Attempting to run codeblocks from terminal to build a project with /Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks --build -ns -nc --no-log ./advertcity.workspace --target=All_Mac produces the two following errors:


The .cbp file mentioned does exist in the working directory. Specifying the .cbp file directly just produces the first error twice instead.
There is a bug in C::B in batch mode. C::B is looking for libcompiler.so instead of libcompiler.dylib
patch:
You can try my build rev10921 goo.gl/o7zjR8
but first remove config file:
rm "/Users/$USER/Library/Application Support/codeblocks/default.conf"
then run "normally":
/Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks ./advertcity.workspace
and then:
/Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks --build -ns -nc --no-log ./advertcity.workspace --target=All_Mac
regards
frankofrank
Last edit: Franko F 2016-11-16
For the record the code you've written is unreadable.
Please next time don't do it like this, but just use several if/else statements!
The goal of always using const shouldn't affect readability!
So why this was good:
svn blame src/src/compilersettingsdlg.cpp | grep compiler
6030 biplab const wxString compiler(platform::windows ?
_T("compiler.dll") : _T("libcompiler.so"));
6030 biplab if (bbplugins.Index(compiler) == wxNOT_FOUND)
6030 biplab bbplugins.Add(compiler);
Because there is a single ternary operator.
On Thu, Nov 17, 2016 at 12:36 AM, Teodor Petrov fuscated@users.sf.net
wrote:
Hmm, unreadable...
I was trying write code like You guys.
svn blame ./src/sdk/pluginmanager.cpp
Last edit: Franko F 2016-11-17
If it is written by us doesn't make it readable. :)
Next attempt, without 'const'
Don't botter with this anymore. I'll commit a cleaner version.
Fixed in rev10931.