User forums > Using Code::Blocks

How to tell Code::Blocks where wxWidgets is?

<< < (2/4) > >>

BlueHazzard:
The project file won't help because we do not have your build environment. Please post a full rebuild log described here:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Also remember to restart codeblocks if you change something in your build chain. For example if you replace your wx-config you have to restart codeblocks, because cb caches the output of wx-config....

BlueHazzard:

--- Quote ---In the included cbp file I changed the apostrophe back to the back tick.
--- End quote ---
not everywhere:

--- Code: ---<Target title="Debug">
<Option output="bin/Debug/TIA Designer" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="&apos;wx-config --cxxflags&apos;" />
<Add option="-g" />
</Compiler>
<Linker>
<Add option="`wx-config --libs`" />
</Linker>
</Target>

--- End code ---

spflanze:
The build log:

--- Code: ----------------- Clean: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------

Cleaned "TIA Designer - Debug"

-------------- Build: Debug in TIA Designer (compiler: GNU GCC Compiler)---------------

g++ -Wall -I/usr/local/lib/wx/include/gtk2-unicode-static-3.0 -I/usr/local/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -pthread 'wx-config --cxxflags' -g -g -I../Libraries/cminpack-1.3.6 -Iinclude -c "/home/me/Engineering Software/Libraries/cminpack-1.3.6/cpp/dpmpar.cpp" -o obj/Debug/Libraries/cminpack-1.3.6/cpp/dpmpar.o
g++: error: wx-config: No such file or directory
g++: fatal error: no input files
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))

--- End code ---

stahta01:

--- Code: ---'wx-config --cxxflags'
--- End code ---

And, why did you not change these to back ticks?

Tim S.

spflanze:
Because on page:
https://wiki.wxwidgets.org/Wx-Config
It is the back tick that is used. Changing to the apostrophe was an experiment that failed to get it compiled, although the error was different.

I used the back tick in the flags, but I see in the build log enclosing apostrophes in the -pthread option's parameter. Should that be?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version