IGNF / wxfreechart

cmake-compatible version of the freechart sublibrary of the wxCode project : http://wxcode.sourceforge.net/
6 stars 7 forks source link

Compile error: wx/wxprec.h: No such file or directory #5

Open richardeigenmann opened 8 years ago

richardeigenmann commented 8 years ago

I have wxWidgets 3.0 installed and now compile this far:

[ 31%] Building CXX object src/CMakeFiles/wxfreechart.dir/xy/xyplot.cpp.o [ 34%] Building CXX object src/CMakeFiles/wxfreechart.dir/xy/xyrenderer.cpp.o [ 36%] Building CXX object src/CMakeFiles/wxfreechart.dir/xy/xysimpledataset.cpp.o [ 38%] Linking CXX shared library libwxfreechart.so [ 75%] Built target wxfreechart Scanning dependencies of target wxfreechartdemo [ 77%] Building CXX object sample/CMakeFiles/wxfreechartdemo.dir/bardemos.cpp.o In file included from /richi/Src/wxfreechart/sample/bardemos.cpp:14:0: /richi/Src/wxfreechart/sample/democollection.h:18:23: fatal error: wx/wxprec.h: No such file or directory

include <wx/wxprec.h>

                   ^

compilation terminated. sample/CMakeFiles/wxfreechartdemo.dir/build.make:62: recipe for target 'sample/CMakeFiles/wxfreechartdemo.dir/bardemos.cpp.o' failed make[2]: * [sample/CMakeFiles/wxfreechartdemo.dir/bardemos.cpp.o] Error 1 CMakeFiles/Makefile2:85: recipe for target 'sample/CMakeFiles/wxfreechartdemo.dir/all' failed make[1]: * [sample/CMakeFiles/wxfreechartdemo.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *\ [all] Error 2

My wxprec.h is here: /usr/include/wx-3.0/wx/wxprec.h

Is a FIND_PACKAGE( wxWidgets COMPONENTS core base html adv net aui xrc qa richtext REQUIRED ) or include( "${wxWidgets_USE_FILE}" )

missing somewhere?

(Note I have the samples option turned on. My OS is OpenSuse Leap with wxWidgets 3.0.2)

richardeigenmann commented 8 years ago

I notice if I comment off the add_subdirectory(sample) and add the line FIND_PACKAGE( wxWidgets COMPONENTS core base html adv net aui xrc qa richtext REQUIRED ) and the line include( "${wxWidgets_USE_FILE}" ) that make and make install start to work