wx-config is in my path.
I also tried 'Other complier options' and 'other linker options', still without success.
The build log shows that the flags doesnot effect, where I should see the flags in g++'s option, but there is none.
The build log is shown as below
-------------- Build: Debug in demo (compiler: GNU GCC Compiler)---------------
g++ -Wall -g -I../../../../../opt/wxWidgets/include/wx-3.0 -c /home/schoenberg/work/wxWidgets/demo/demoApp.cpp -o obj/Debug/demoApp.o
In file included from ../../../../../opt/wxWidgets/include/wx-3.0/wx/defs.h:27:0,
from ../../../../../opt/wxWidgets/include/wx-3.0/wx/event.h:14,
from ../../../../../opt/wxWidgets/include/wx-3.0/wx/app.h:19,
from /home/schoenberg/work/wxWidgets/demo/demoApp.h:13,
from /home/schoenberg/work/wxWidgets/demo/demoApp.cpp:10:
../../../../../opt/wxWidgets/include/wx-3.0/wx/platform.h:183:10: fatal error: wx/setup.h: 没有那个文件或目录
#include "wx/setup.h"
^~~~~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))