Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Using wx-config in CDT 8.1.1 using Eclipse' build mechanism?
Using wx-config in CDT 8.1.1 using Eclipse' build mechanism? [message #940092] Thu, 11 October 2012 05:51 Go to next message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
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 Go to previous messageGo to next message
A Hoyle
Messages: 22
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 #1021785 is a reply to message #1021653] Wed, 20 March 2013 13:15 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1949
Registered: July 2009
Senior Member
Did you try this plugin http://marketplace.eclipse.org/content/pkg-config-support-eclipse-cdt#.UUnurbhBvrF ?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
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 Go to previous messageGo to next message
A Hoyle
Messages: 22
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!!

Re: Using wx-config in CDT 8.1.1 using Eclipse' build mechanism? [message #1135643 is a reply to message #1060290] Sun, 13 October 2013 05:36 Go to previous message
Eugenio Gonzato is currently offline Eugenio Gonzato
Messages: 1
Registered: October 2013
Junior Member
I have the same probleme.
I researched a lot in the web a solution but I didn't foud any solution.

Were is possible to fund an clear axplination to how to set up eclipse in order to use the wxWidgets library?

I try several on line tutorial


but is not coplete, the is not a complete explination of all the setting ?

Thanks for your patience
Previous Topic:Eclipse+gdb JTAG
Next Topic:Environment variable for each project
Goto Forum:
  


Current Time: Fri Aug 01 18:42:30 EDT 2014

Powered by FUDForum. Page generated in 0.01631 seconds