使用 CMake,我可以使用 CodeBlocks(20) 和 MinW64 编译器构建 libwxPDFView.a 库但是构建 C:/wxPDFView-1.0/samples/simple 我有问题。Pdfium 库位于 c:\repo\Libraries\pdfium\lib\lib 和 bin 谢谢。吉姆
[ 87%] 构建目标 wxPDFView C:/PROGRA~1/CODEBL~1/MinGW/bin/mingw32-make.exe -f CMakeFiles\wxPDFViewSimpleSample.dir\build.make CMakeFiles/wxPDFViewSimpleSample.dir/depend mingw32-make.exe [3]:进入目录'C:/wxPDFView-1.0/samples/simple/out' "C:\Program Files\CMake\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\wxPDFView-1.0\samples \simple C:\wxPDFView-1.0\samples\simple C:\wxPDFView-1.0\samples\simple\out C:\wxPDFView-1.0\samples\simple\out C:\wxPDFView-1.0\samples\simple\out\CMakeFiles \wxPDFViewSimpleSample.dir\DependInfo.cmake --color= Dependee "C:\wxPDFView-1.0\samples\simple\out\CMakeFiles\wxPDFViewSimpleSample.dir\DependInfo.cmake" 比依赖者 "C:/wxPDFView-1.0/samples" 更新/simple/out/CMakeFiles/wxPDFViewSimpleSample.dir/depend.internal”。依赖者“C:/wxPDFView-1. 0\samples\simple\Simple.cpp mingw32-make.exe[3]: *** 没有规则来制作目标 'pdfium-NOTFOUND','wxPDFViewSimpleSample.exe' 需要。停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒) cpp mingw32-make.exe[3]: *** 没有规则来制作目标 'pdfium-NOTFOUND','wxPDFViewSimpleSample.exe' 需要。停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒) cpp mingw32-make.exe[3]: *** 没有规则来制作目标 'pdfium-NOTFOUND','wxPDFViewSimpleSample.exe' 需要。停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒) *** 没有规则来制作“wxPDFViewSimpleSample.exe”所需的目标“pdfium-NOTFOUND”。停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒) *** 没有规则来制作“wxPDFViewSimpleSample.exe”所需的目标“pdfium-NOTFOUND”。停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒) 停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒) 停止。mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:114: CMakeFiles/wxPDFViewSimpleSample.dir/all] 错误 2 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:121: CMakeFiles/ wxPDFViewSimpleSample.dir/rule] 错误 2 mingw32-make.exe: *** [C:/wxPDFView-1.0/samples/simple/out/Makefile:136: wxPDFViewSimpleSample] 错误 2 mingw32-make.exe[3]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[2]: 离开目录 'C:/wxPDFView-1.0/samples/simple/out' mingw32-make.exe[1]: 离开目录'C:/wxPDFView-1.0/samples/simple/out' 进程以状态 2 终止(1 分钟,43 秒)3 个错误,0 个警告(1 分钟, 43 秒)