Closed twinfishxixi closed 4 years ago
问题还是filesystem,-lstdc++fs不需要自行添加,CMake已经做了判断了,clone下来用gcc 8编译就好了。
你也可以直接用gcc9甚至gcc10编译,Ubuntu18.04的test库里应该是已经有gcc9了。
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-9 g++-9
i have the same problem with gcc8, gcc9 will solve the issue
非常感谢,今天才有时间再做安装,通过安装gcc9,貌似已经编译成功了:
twinfish@Twinfish-PC:/media/data2/download/software/design/Anime4KCPP$ cmake . -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done
No CMAKE_BUILD_TYPE selected, defaulting to Release
-- Found OpenCV: /usr/local (found version "4.3.0") -- Looking for CL_VERSION_2_2 -- Looking for CL_VERSION_2_2 - found -- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.2") -- [download 100% complete] -- [download 0% complete] -- [download 7% complete] -- [download 14% complete] -- [download 21% complete] -- [download 28% complete] -- [download 35% complete] -- [download 43% complete] -- [download 50% complete] -- [download 57% complete] -- [download 64% complete] -- [download 71% complete] -- [download 78% complete] -- [download 85% complete] -- [download 92% complete] -- [download 99% complete] -- [download 100% complete] -- Configuring done -- Generating done -- Build files have been written to: /media/data2/download/software/design/Anime4KCPP
但是make
过程中看到一大片,差点崩溃!
twinfish@Twinfish-PC:/media/data2/download/software/design/Anime4KCPP$ make Scanning dependencies of target Anime4KCPPCore [ 4%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/ACNet.cpp.o [ 8%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/ACNetHDN.cpp.o [ 12%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/Anime4K.cpp.o [ 16%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/Anime4KCPP.cpp.o [ 20%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/Anime4KCPU.cpp.o [ 25%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/Anime4KCPUCNN.cpp.o [ 29%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/Anime4KGPU.cpp.o /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp: In static member function ‘static void Anime4KCPP::Anime4KGPU::initOpenCL()’: /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:577:73: warning: ‘_cl_command_queue clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int)’ is deprecated [-Wdeprecated-declarations] 577 | commandQueue = clCreateCommandQueue(context, device, 0, &err); | ^ In file included from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/include/Anime4KGPU.h:11, from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:3: /usr/include/CL/cl.h:1443:1: note: declared here 1443 | clCreateCommandQueue(cl_context / context /, | ^
~~~~~~~ /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:577:73: warning: ‘_cl_command_queue clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int)’ is deprecated [-Wdeprecated-declarations] 577 | commandQueue = clCreateCommandQueue(context, device, 0, &err); | ^ In file included from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/include/Anime4KGPU.h:11, from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:3: /usr/include/CL/cl.h:1443:1: note: declared here 1443 | clCreateCommandQueue(cl_context / context /, | ^~~~~~~~ [ 33%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/Anime4KGPUCNN.cpp.o /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp: In static member function ‘static void Anime4KCPP::Anime4KGPUCNN::initOpenCL(Anime4KCPP::CNNType)’: /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:643:73: warning: ‘_cl_command_queue clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int)’ is deprecated [-Wdeprecated-declarations] 643 | commandQueue = clCreateCommandQueue(context, device, 0, &err); | ^ In file included from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/include/Anime4KGPUCNN.h:11, from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3: /usr/include/CL/cl.h:1443:1: note: declared here 1443 | clCreateCommandQueue(cl_context / context /, | ^~~~~~~~ /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:643:73: warning: ‘_cl_command_queue clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int)’ is deprecated [-Wdeprecated-declarations] 643 | commandQueue = clCreateCommandQueue(context, device, 0, &err); | ^ In file included from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/include/Anime4KGPUCNN.h:11, from /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3: /usr/include/CL/cl.h:1443:1: note: declared here 1443 | clCreateCommandQueue(cl_context / context /, | ^~~~~~~~ [ 37%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/CNN.cpp.o [ 41%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/CNNProcessor.cpp.o [ 45%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/VideoIO.cpp.o [ 50%] Building CXX object Anime4KCore/CMakeFiles/Anime4KCPPCore.dir/src/filterprocessor.cpp.o [ 54%] Linking CXX shared library ../bin/libAnime4KCPPCore.so [ 54%] Built target Anime4KCPPCore Scanning dependencies of target Anime4KCPP_CLI [ 58%] Building CXX object CLI/CMakeFiles/Anime4KCPP_CLI.dir/src/main.cpp.o [ 62%] Linking CXX executable ../bin/Anime4KCPP_CLI [ 62%] Built target Anime4KCPP_CLI Scanning dependencies of target Anime4KCPP_GUI_autogen [ 66%] Automatic MOC and UIC for target Anime4KCPP_GUI [ 66%] Built target Anime4KCPP_GUI_autogen [ 70%] Automatic RCC for src/logo.qrc [ 75%] Generating src/Anime4KCPP_GUI_zh_CN.ts Scanning directory '/media/data2/download/software/design/Anime4KCPP'... /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:675: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:954: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPU.cpp:954: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:930: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:932: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1024: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1024: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1025: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1126: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1127: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1155: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1244: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1245: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1285: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1319: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1319: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1324: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1360: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1361: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1558: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1558: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1559: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1754: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1754: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1755: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1950: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1950: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:1951: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2146: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2146: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2147: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2342: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2342: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2343: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2538: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2538: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2539: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2734: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2734: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2735: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2931: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2931: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2932: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2986: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2986: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:2989: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3025: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3026: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3223: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3223: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3224: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3419: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3419: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3420: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3615: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3615: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3616: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3811: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3811: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:3812: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4007: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4007: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4008: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4203: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4203: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4204: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4399: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4399: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4400: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4595: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4595: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4596: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4650: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4650: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4653: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4689: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4690: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4887: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4887: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:4888: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5083: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5083: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5084: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5279: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5279: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5280: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5475: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5475: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5476: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5671: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5671: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5672: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5867: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5867: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:5868: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6063: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6063: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6064: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6260: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6260: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6261: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6315: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6315: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6318: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6354: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6355: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6552: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6552: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6553: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6748: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6748: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6749: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6944: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6944: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:6945: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7140: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7140: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7141: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7336: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7336: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7337: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7532: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7532: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7533: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7728: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7728: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7729: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7925: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7925: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7926: Unterminated C++ string /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7980: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7980: Unterminated C++ string /usr/include/boost/type_traits/type_with_alignment.hpp:209: Parenthesis/brace mismatch between #if and #else branches; using #if branch Updating 'src/Anime4KCPP_GUI_zh_CN.ts'... Found 156 source text(s) (0 new and 156 already existing) Scanning dependencies of target Anime4KCPP_GUI [ 79%] Building CXX object GUI/CMakeFiles/Anime4KCPP_GUI.dir/Anime4KCPP_GUI_autogen/mocs_compilation.cpp.o [ 83%] Building CXX object GUI/CMakeFiles/Anime4KCPP_GUI.dir/src/communicator.cpp.o [ 87%] Building CXX object GUI/CMakeFiles/Anime4KCPP_GUI.dir/src/main.cpp.o [ 91%] Building CXX object GUI/CMakeFiles/Anime4KCPP_GUI.dir/src/mainwindow.cpp.o [ 95%] Building CXX object GUI/CMakeFiles/Anime4KCPP_GUI.dir/Anime4KCPP_GUI_autogen/UVLADIE3JM/qrc_logo.cpp.o [100%] Linking CXX executable ../bin/Anime4KCPP_GUI [100%] Built target Anime4KCPP_GUI
不过还好,100%了! 接下来开始试用!
那一堆类似这种:
/media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7980: Excess closing parenthesis in C++ code (or abuse of the C++ preprocessor) /media/data2/download/software/design/Anime4KCPP/Anime4KCore/src/Anime4KGPUCNN.cpp:7980: Unterminated C++ string
应该是Qt MOC编译器的问题,不认识C++11的原始字符串,应该不影响,但还是建议升级Qt版本
经过简单的测试好像已经能用了,但通过GUI菜单来看有语言的选项,不过选择中文后用户界面并没有改变,不知道是否因为目前暂未定义中文内容的原因?
另外Ubuntu 18.04 搞 Qt 有点头疼,暂时缓一缓
用Qt Liguist编译源码的Anime4KCPP_GUI_zh_CN.ts文件得到qm文件,放到可执行文件同级目录的language文件夹(自己创建)下,即可切换中文
非常感谢!已经成功切换到中文!
经过测试,发现放大后的图像效果并不是特别理想,比如线条出现波纹或者模糊,如果开启降噪,则处理后的图像出现了过度平滑——类似于变成大块色块状,不知道是否参数设置的问题,借用Waifu2x例图测试如下:
Waifu2x样图原图 2D动漫图片 480x300:
Waifu2x样图 8x放大, 3级降噪和压缩后 3840x2400
Anime4KCPP 开启ACNet 默认设置情况 8x放大
可以明显看到线条边缘的模糊及波浪状,还请大婶指点!谢谢!~
关于降噪,HDN2 和3基本是为了某些极端情况设计的(含有大量振铃或者jpeg噪点的图像,jpeg质量低于50%),尤其是HDN3,对正常图像启用,会抹除很多细节,并可能破坏边缘和导致图像模糊。一般用HDN 0或者1就行。
还有就是多次放大,因为模型是针对2x放大设计,8x放大实际上是放大三次,放大太多次就会给人一种涂抹感。
最后是算法本身的限制,ACNet模型是为实时处理设计的,速度是首位,其参数量只有waifu2x的1/100,效果肯定是比不上waifu2x的,尤其是图像修复能力,ACNet会更依赖原图的质量。
好像确实开启了HDN,设置值为1,回头我再把所有参数的组合再挨个测试一遍。 另外,不知道本工具是否能够完成对照片的放大处理?以及对动漫图片作降噪修正,类似于: 当然,这是采用了Waifu2x-NCNN-Vulkan Engine
不好意思,后面的内容跟本条issue标题偏题了,如果有必要的话,另外开个issue讨论使用过程中的各种问题吧!
不知道本工具是否能够完成对照片的放大处理
对三次元照片不建议使用。
对动漫图片作降噪修正
这种图片的降噪就可以开启HDN3了。
如果你需要的是修复线条,建议使用Waifu2x。
好的,终于搞清楚细节了,非常感谢! Waifu2x也想用啊,但现在都是发的win系统的包,Linux还没法搞啊……
g++8的编译问题已被修复,现已可使用g++8直接编译。
g++8的编译问题已被修复,现已可使用g++8直接编译。
怎样修改的用g++8直接编译
机器环境:Ubuntu 18.04 git clone 的最新的 v.2.3.0,参考了Cannot make,升级到了g++8,并在
CMakeLists.txt
中设置了-lstdc++fs
cmake.
信息:make
信息:看起来好像一大堆定义出错,求助大婶,谢谢!~