Talk:Compiling and getting started

From WxWiki
Jump to navigation Jump to search

g++ `wx-config --cppflags` widgetTest.cpp `wx-config --libs`

cleanup after make

After installation to a local path (configure option --prefix) the directory is filled with *.o files (maybe its the same after running make install). I think it would be useful to add the proper way to clean up those files. I delete them with rm, but I guess there is a better way... --Tigerbeard

The proper way is to use "make clean". --VZ (talk) 05:22, 22 September 2018 (MDT)
Then I have a very strange Linux, because its doing something else: after "make clean" my lib files are gone, too (just tried it out). That is not what is intended. rm -rf *.o only removes the unused object files and leaved the binaries in place . --Tigerbeard
OK, sorry, should have been more clear. "make clean" is supposed to clean everything, so you should do it after "make install" for example. --VZ (talk) 06:23, 22 September 2018 (MDT)
Right, but what about the use case of a local prefix install? Any make clean option for that? --Tigerbeard

Samples with Cmake

The listed mechanism for building samples doesn't seem to apply from 3.1.1 onwards, with the Cmake build system.

I did this to build a sample:

cd gtk-build
cmake -DwxBUILD_SAMPLES=ALL ..
make cube

I'm not sure in what circumstances the samples makefiles (e.g. Makefile.in, makefile.gcc, makefile.vc, etc) are used, so I'm not sure how to update this section. Jjbeard (talk) 08:13, 18 March 2019 (MDT)