User forums > Nightly builds

The 06 July 2019 build (11781) is out.

<< < (5/6) > >>

oBFusCATed:
Yes, but it is annoying and there is a chance to mess this up.

Frank_CB:
@Miguel Gimenez
Are you sure that that setup header needs to have had the change applied before building wx3.1.2? If I rebuild again after my change, it'll get restored to what it was previously. I'll have to determine the correct setup.h header to apply the change to.  I know it's there somewhere!  Anyway, that's a nice little exercise.
 




i

Miguel Gimenez:
The setup.h under lib is copied from the main setup.h if it not exists, but left untouched otherwise.

From wxWidgets instructions at https://github.com/wxWidgets/wxWidgets/blob/master/docs/msw/install.md

--- Quote ---Notice that this file is later copied into a directory under lib for each of the build configurations which allows to have different build options for different configurations too if you edit any configuration-specific file.
--- End quote ---

On my machines I deleted the setup.h under lib and edited the one under include\wx\msw, so the change is applied to all configurations afterwards.

Frank_CB:
@Miguel Gimenez
Thanks.  The information that you provided is very informative!

Xaviou:
Hi.

On OSX, the default command used by C::B to run a console program doesn't work.
This command is :

--- Code: ---osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script quoted form of "$SCRIPT"' -e 'end tell'
--- End code ---

I have tested with a newly created small C++ console project, and here is the result:
First, the content of the "Build log" output tab in C::B :

--- Code: ----------------- Run: Debug in cbTest (compiler: GNU GCC Compiler)---------------

Checking for existence: /Users/xavier/dev/cbTest/bin/Debug/cbTest
Set variable: DYLD_LIBRARY_PATH=.:
Executing: osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script quoted form of "/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/xavier/dev/cbTest/bin/Debug/cbTest "' -e 'end tell'  (in /Users/xavier/dev/cbTest/.)
Process terminated with status 0 (0 minute(s), 3 second(s))
--- End code ---
And then, the output displayed by the Terminal window:

--- Code: ---'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/xavier/dev/cbTest/bin/Debug/cbTest '
-bash: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/xavier/dev/cbTest/bin/Debug/cbTest : No such file or directory
--- End code ---

Note that if I change the default command by the following, it works fine (I've just removed the "quoted form of" part):

--- Code: ---osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'
--- End code ---
Here is the output:

--- Code: ---/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/xavier/dev/cbTest/bin/Debug/cbTest
Hello world!

Process returned 0 (0x0)   execution time : 0.007 s
Press ENTER to continue.

--- End code ---

Regards
Xav'

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version