User forums > Nightly builds

The 20 November 2016 build (10922) is out.

<< < (7/10) > >>

Xaviou:
Well : I think there is nothing in the project file that is "wx-3.1.0" specific.
Here is the content of the project file :

--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="CBTest1" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/CBTest1" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-g" />
</Compiler>
<ExtraCommands>
<Add after="/Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r -o $(TARGET_OUTPUT_FILE)" />
</ExtraCommands>
</Target>
<Target title="Release">
<Option output="bin/Release/CBTest1" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
<ExtraCommands>
<Add after="/Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r -o $(TARGET_OUTPUT_FILE)" />
</ExtraCommands>
</Target>
</Build>
<Compiler>
<Add option="`wx-config --cflags`" />
<Add option="-Wall" />
</Compiler>
<Linker>
<Add option="`wx-config --libs`" />
</Linker>
<Unit filename="CBTest1App.cpp" />
<Unit filename="CBTest1App.h" />
<Unit filename="CBTest1Main.cpp" />
<Unit filename="CBTest1Main.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

--- End code ---

As you can see in the screenshot, the compilation command line is a "basic" one (without any wx-config command nor result as it is specified in the project options).

Regards
Xav'

Xaviou:
Hi.

I've perhaps found the source of the problem : CB doesn't seems to have the full correct $PATH env var.

For this, I've added following "pre-build" command:

--- Code: ---echo $PATH
--- End code ---
The printed result doesn't contain "/usr/local/bin" (witch is where I've placed a copy of wx-config)

$PATH value from Code::Blocks:
/usr/bin:/usr:/bin:/usr/sbin:/sbin

$PATH value from a terminal window:
/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

The first diff (Python related) is added from my ".bash_profile", but I don't know where the "/usr/local/bin" one come from.

I've also made a test to see the content of the $PATH var in a GUI application and I've obtained a third different result :
/usr/bin:/bin:/usr/sbin:/sbin
The "/usr" part is not present.

Does someone have any idea on how to modify this env var "system wide" ?

Regards
Xav'

Jenna:

--- Quote from: Xaviou on December 24, 2016, 12:02:45 pm ---Hi.

I've perhaps found the source of the problem : CB doesn't seems to have the full correct $PATH env var.

For this, I've added following "pre-build" command:

--- Code: ---echo $PATH
--- End code ---
The printed result doesn't contain "/usr/local/bin" (witch is where I've placed a copy of wx-config)

$PATH value from Code::Blocks:
/usr/bin:/usr:/bin:/usr/sbin:/sbin

$PATH value from a terminal window:
/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

The first diff (Python related) is added from my ".bash_profile", but I don't know where the "/usr/local/bin" one come from.

I've also made a test to see the content of the $PATH var in a GUI application and I've obtained a third different result :
/usr/bin:/bin:/usr/sbin:/sbin
The "/usr" part is not present.

Does someone have any idea on how to modify this env var "system wide" ?

Regards
Xav'

--- End quote ---
If the environment-variables plugin is installed, you can set it in "Settings->Environment->Environment variables".

Xaviou:

--- Quote from: jens on December 24, 2016, 01:01:10 pm ---If the environment-variables plugin is installed, you can set it in "Settings->Environment->Environment variables".

--- End quote ---
It worked.
I've added "PATH" = "$PATH:/usr/local/bin" to the environment variables plugin, ignored the warning message saying that this variable was already set, and restarted CB and the build process worked fine.

Thank you.

Regards
Xav'

oBFusCATed:
I think this is the default behaviour of the launcher or the dock.

About the build target combo: Can you check if the auidemo in the wx works correctly on mac. I hope they have added combos in the toolbars in the demo. If they haven't you can probably easily add one.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version