ShellAlbert / GunSight

GNU General Public License v3.0
2 stars 1 forks source link

cross compile openCV4.0 for RK3399 #3

Open ShellAlbert opened 5 years ago

ShellAlbert commented 5 years ago

CMake Error at cmake/OpenCVCompilerOptimizations.cmake:460 (message): Required baseline optimization is not supported: VFPV3 (CPU_BASELINE_REQUIRE=;NEON;VFPV3) Call Stack (most recent call first): cmake/OpenCVCompilerOptions.cmake:268 (include) CMakeLists.txt:556 (include)

ShellAlbert commented 5 years ago

-- General configuration for OpenCV 4.0.0 ===================================== -- Version control: unknown -- -- Extra modules: -- Location (extra): /home/zhangshaoyan/MyWork/opencv4.0/opencv_contrib-4.0.0/modules -- Version control (extra): unknown -- -- Platform: -- Timestamp: 2019-01-17T01:02:09Z -- Host: Linux 4.4.140-62-default x86_64 -- Target: Linux 1 aarch64 -- CMake: 3.5.2 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/gmake -- Configuration: Release -- -- CPU/HW features: -- Baseline: NEON FP16 -- required: NEON -- disabled: VFPV3 -- -- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /opt/FriendlyARM/toolchain/6.4-aarch64/bin/aarch64-linux-gnu-g++ (ver 6.4.0) -- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -flto -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -flto -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG -- C Compiler: /opt/FriendlyARM/toolchain/6.4-aarch64/bin/aarch64-linux-gnu-gcc -- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -flto -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -flto -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG -- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO -- Precompiled headers: NO -- Extra dependencies: dl m pthread rt -- 3rdparty dependencies: -- -- OpenCV modules: -- To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python_bindings_generator reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto -- Disabled: world -- Disabled by dependency: - -- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 python3 sfm viz -- Applications: tests perf_tests apps -- Documentation: NO -- Non-free algorithms: YES -- -- GUI: -- -- Media I/O: -- ZLib: build (ver 1.2.11) -- JPEG: libjpeg-turbo (ver 1.5.3-62) -- WEBP: build (ver encoder: 0x020e) -- PNG: build (ver 1.6.35) -- TIFF: build (ver 42 - 4.0.9) -- JPEG 2000: build (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- HDR: YES -- SUNRASTER: YES -- PXM: YES -- PFM: YES -- -- Video I/O: -- DC1394: NO -- FFMPEG: NO -- avcodec: NO -- avformat: NO -- avutil: NO -- swscale: NO -- avresample: NO -- GStreamer: NO -- v4l/v4l2: linux/videodev2.h -- -- Parallel framework: TBB (ver 2018.0 interface 10001) -- -- Trace: YES (built-in) -- -- Other third-party libraries: -- Lapack: NO -- Custom HAL: YES (carotene (ver 0.0.1)) -- Protobuf: build (3.5.1) -- -- OpenCL: YES (no extra features) -- Include path: /home/zhangshaoyan/MyWork/opencv4.0/opencv-4.0.0/3rdparty/include/opencl/1.2 -- Link libraries: Dynamic load -- -- Python (for build): /usr/local/bin/python2.7 -- -- Install to: /home/zhangshaoyan/MyWork/opencv4.0/install


-- -- Configuring done -- Generating done -- Build files have been written to: /home/zhangshaoyan/MyWork/opencv4.0/build

ShellAlbert commented 5 years ago

[ 98%] Linking CXX shared library ../../lib/libopencv_videostab.so ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Header::~Header()’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::hasChromaticities(Imf::Header const&)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::InputFile::readPixels(int, int)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::OutputFile::setFrameBuffer(Imf::FrameBuffer const&)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Header::Header(int, int, float, Imath::Vec2 const&, float, Imf::LineOrder, Imf::Compression)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::InputFile::setFrameBuffer(Imf::FrameBuffer const&)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::OutputFile::~OutputFile()’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::OutputFile::writePixels(int)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::globalThreadCount()’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::InputFile::InputFile(char const, int)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::FrameBuffer::insert(char const, Imf::Slice const&)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::FrameBuffer::end()’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Slice::Slice(Imf::PixelType, char, unsigned long, unsigned long, int, int, double, bool, bool)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::OutputFile::OutputFile(char const, Imf::Header const&, int)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::InputFile::header() const’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Header::channels()’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Header::dataWindow() const’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::FrameBuffer::begin()’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::ChannelList::insert(char const, Imf::Channel const&)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Header::channels() const’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::chromaticities(Imf::Header const&)’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::ChannelList::findChannel(char const) const’未定义的引用 ../../lib/libopencv_imgcodecs.so.4.0.0:对‘Imf::Chromaticities::Chromaticities(Imath::Vec2 const&, Imath::Vec2 const&, Imath::Vec2 const&, Imath::Vec2 const&)’未定义的引用