| Using wx-config in CDT 8.1.1 using Eclipse' build mechanism? [message #940092] |
Thu, 11 October 2012 05:51  |
Joost Kraaijeveld Messages: 154 Registered: July 2009 |
Senior Member |
|
|
Hi,
Is it possible to use "wx-config --cppflags" and "wx-config --libs"
somehow, instead of always doing a very tedious setting of the
configuration?
I have tries adding `wx-config --cppflags` (with backticks) to the
"miscellaneous" compiler settings but it does not expand properly. The
same for the linker.
TIA
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
|
|
|
| Re: Using wx-config in CDT 8.1.1 using Eclipse' build mechanism? [message #1021653 is a reply to message #940092] |
Wed, 20 March 2013 09:10   |
A Hoyle Messages: 21 Registered: November 2010 |
Junior Member |
|
|
Hi
I am having the same problem.
So far I have found that it works if:-
I set the GCC C++ Compiler / Command to g++ `wx-config --cxxflags` (with backticks)
I add `wx-config --libs` -Wl,--rpath /usr/local/lib/ to the end of the linker miscellaneous option.
I also move the link ${FLAG} to the end of the command line.
For more detail see http://wiki.wxwidgets.org/Compiling_and_getting_started
This works if I use the external build (GNU Make Builder). But if I try to use the CDT internal builder I get a no such file error. Is there anyway to get the internal builder to pass the backtick options to the compiler without it trying to interpret them. I have tried wrapping it in quotes single and double but that doesn't seem to work. Is it possible, is this a bug?
13:02:37 **** Rebuild of configuration Debug for project LinuxSayHello ****
Info: Internal Builder is used for build
g++ `wx-config --cxxflags` -O0 -g3 -Wall -c -fmessage-length=0 -o source/minimal.o ../source/minimal.cpp
g++: error: `wx-config: No such file or directory
g++: error: unrecognized command line option '--cxxflags`'
13:02:37 Build Finished (took 95ms)
I am using Eclipse 4.2.2, CDT 8.1.2, G++ 4.7.2 on Linux Mint 14
|
|
|
|
| Re: Using wx-config in CDT 8.1.1 using Eclipse' build mechanism? [message #1060290 is a reply to message #1021785] |
Thu, 23 May 2013 18:35  |
A Hoyle Messages: 21 Registered: November 2010 |
Junior Member |
|
|
Hi Axel
I had a look at the pkg-config plug-in but it looks like it is hard-wired to pkg-config and I can't see anyway to get it to work with wx-config. While pkg-config and wx-config do similar jobs I don't think they are compatible.
I might have to re-write a widget version of that plug-in, if only I had the time!!
|
|
|
Powered by
FUDForum. Page generated in 0.01790 seconds