![]() If you do: `wx-config -libs foobar` you'll get output like -lwx_gtk2u_foobar-3.0. ![]() wx-config is very useful, but the GIGO principle applies.There is also a -basename and -release option, which are helpful for write-once Makefiles (using the same makefile across linux and OSX and for different versions of the library like debug/nondebug unicode/non-unicode, gkt/mac).On Unix systems, wx-config may be a symlink to specific wx-config files for various wxWidgets ports/platforms (wxbase-2.5-config, wxgtk-2.5-config.This can also help keeping different configurations truly separate and may avoid some conflicts. You can then simply get the flags by calling wx-config locally . Whenever you build wxWidgets, a local wx-config will be created in the build directory. wx-config will be installed to a system-wide directory on make install, however it is not necessary to issue make install in order to use wx-config.If your IDE doesn't support backtick execution or some equivalent, here's what to do : #1 complain to whoever wrote your IDE and #2 run these commands without the backticks in a terminal and copy the output manually.From your IDE, you can simply put `wx-config -cxxflags` in compile flags and `wx-config -libs` in link flags.Type wx-config -help to know all options that are available usr/local/), you can select the right build with options like : If you have multiple wxWidgets installations in the same prefix (e.g. ` wx - config - cxx - cxxflags ` - o myapp *.
0 Comments
Leave a Reply. |