安装DLP ALC SDK过程中遇到问题

我按照dlpu042.pdf安装,在安装OpenCV时遇到问题如下

CMake Warning (dev) at cmake/OpenCVUtils.cmake:203 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "WIN32" will no longer be dereferenced when the
policy is set to NEW. Since the policy is not set the OLD behavior will be
used.
Call Stack (most recent call first):
CMakeLists.txt:136 (OCV_OPTION)
This warning is for project developers. Use -Wno-dev to suppress it.


我的系统是64位win10,Cmake 3.8.2

请问如何解决?

10 个回复

  • 您好。

    这个警告并不影响编译,您可以先按照手册继续往下操作。

  • 回复 Kevin Shi:

    按照手册继续,中间又出现了大量warning,执行到section8 时出现了错误如图,无法继续下去了。SDK安装完成后没有看到EXE文件。

    CMake Error at CMakeLists.txt:343 (file):
    file COPY cannot find
    "C:/TexasInstruments-DLP/DLP-ALC-LIGHTCRAFTER-SDK-2.0/DLP-ALC-LIGHTCRAFTER-SDK/PG_FLYCAP_BIN_DIR-NOTFOUND/FlyCapture2.dll".

    CMake Error at CMakeLists.txt:344 (file):
    file COPY cannot find
    "C:/TexasInstruments-DLP/DLP-ALC-LIGHTCRAFTER-SDK-2.0/DLP-ALC-LIGHTCRAFTER-SDK/PG_FLYCAP_BIN_DIR-NOTFOUND/FlyCapture2_C.dll".

    CMake Error at CMakeLists.txt:345 (file):
    file COPY cannot find
    "C:/TexasInstruments-DLP/DLP-ALC-LIGHTCRAFTER-SDK-2.0/DLP-ALC-LIGHTCRAFTER-SDK/PG_FLYCAP_BIN_DIR-NOTFOUND/libiomp5md.dll".

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
    Please set them or make sure they are set and tested correctly in the CMake files:

  • 回复 jinya ma:

    您好。

    这里需要指定PG_Flycapture的安装路径请参考

  • 回复 Kevin Shi:

    我的电脑上找不到这些文件,该怎么办?

  • 回复 jinya ma:

    您好。

    请从下面链接中下载完整版的摄像头SDK程序。

    https://www.ptgrey.com/support/downloads

  • 回复 Kevin Shi:

    报错出现缺少FlyCapture2_C.dll

    我下载的版本都没有这个文件,如下,这是为什么

    而且dlpu042.pdf中没有这个下载flycapture的步骤,

  • 回复 user5510877:

    您好!
    请下载上述回复中的版本的软件,使用x86的版本
  • 回复 Kevin Shi:

    Kevin Shi ,

          我从FLIR网站站,没有找到FlyCapture完整软件包,是不是网站关闭了??

          有没有其他地方能下载到FlyCapture完整软件包?

  • 回复 Kevin Shi:

    我找到了FLY库了。
    但我按TI文档来编译SDK,生成EXE时,最后一步出错了,请指点下?
    [ 94%] Built target point_cloud_viewer
    Scanning dependencies of target camera_view_pg_flycap2_c
    [ 96%] Building CXX object CMakeFiles/camera_view_pg_flycap2_c.dir/examples/came
    ra_view_pg_flycap2_c.cpp.obj
    [ 97%] Linking CXX executable bin\camera_view_pg_flycap2_c.exe
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x710): undefined
    reference to `_imp__fc2DestroyImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0xa73): undefined
    reference to `_imp__fc2CreateContext'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0xb46): undefined
    reference to `_imp__fc2GetNumOfCameras'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0xe37): undefined
    reference to `_imp__fc2GetCameraFromIndex'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0xf1a): undefined
    reference to `_imp__fc2Connect'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x1016): undefine
    d reference to `_imp__fc2GetCameraInfo'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x163e): undefine
    d reference to `_imp__fc2GetFormat7Info'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x1c58): undefine
    d reference to `_imp__fc2ValidateFormat7Settings'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x1f04): undefine
    d reference to `_imp__fc2ValidateFormat7Settings'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x21c4): undefine
    d reference to `_imp__fc2SetFormat7Configuration'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x241c): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x2583): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x2735): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x289c): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x2c07): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x2d6e): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x3079): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x31e0): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x345e): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x35c5): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x3843): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x39aa): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x3bfb): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x3d62): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x3fd4): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x413b): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x4379): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x44e0): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x4766): undefine
    d reference to `_imp__fc2SetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x48cd): undefine
    d reference to `_imp__fc2GetProperty'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x4a7f): undefine
    d reference to `_imp__fc2GetTriggerMode'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x4ec5): undefine
    d reference to `_imp__fc2SetTriggerMode'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x5136): undefine
    d reference to `_imp__fc2ReadRegister'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x54fd): undefine
    d reference to `_imp__fc2SetTriggerDelay'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x5664): undefine
    d reference to `_imp__fc2GetTriggerDelay'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x5831): undefine
    d reference to `_imp__fc2GetStrobe'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x5b11): undefine
    d reference to `_imp__fc2SetStrobe'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x7438): undefine
    d reference to `_imp__fc2StopCapture'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x74af): undefine
    d reference to `_imp__fc2Disconnect'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x769e): undefine
    d reference to `_imp__fc2CreateImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x76b2): undefine
    d reference to `_imp__fc2ConvertImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x76fa): undefine
    d reference to `_imp__fc2DestroyImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x78db): undefine
    d reference to `_imp__fc2DestroyImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x79ce): undefine
    d reference to `_imp__fc2StartCaptureCallback'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x7ddc): undefine
    d reference to `_imp__fc2CreateImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x7e19): undefine
    d reference to `_imp__fc2ConvertImageTo'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x7e97): undefine
    d reference to `_imp__fc2ConvertImageTo'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x7f04): undefine
    d reference to `_imp__fc2DestroyImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x7f11): undefine
    d reference to `_imp__fc2DestroyImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x8030): undefine
    d reference to `_imp__fc2CreateImage'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x806d): undefine
    d reference to `_imp__fc2ConvertImageTo'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x80eb): undefine
    d reference to `_imp__fc2ConvertImageTo'
    lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj):pg_flycap2_c.cpp:(.text+0x814e): undefine
    d reference to `_imp__fc2DestroyImage'
    D:/Qt/Qt5.3.2/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../.
    ./i686-w64-mingw32/bin/ld.exe: lib/libDLP_SDK.a(pg_flycap2_c.cpp.obj): bad reloc
    address 0x16 in section `.text$_ZStoRRSt13_Ios_FmtflagsS_[__ZStoRRSt13_Ios_Fmtf
    lagsS_]'
    collect2.exe: error: ld returned 1 exit status
    CMakeFiles\camera_view_pg_flycap2_c.dir\build.make:106: recipe for target 'bin/c
    amera_view_pg_flycap2_c.exe' failed
    mingw32-make[2]: *** [bin/camera_view_pg_flycap2_c.exe] Error 1
    CMakeFiles\Makefile2:440: recipe for target 'CMakeFiles/camera_view_pg_flycap2_c
    .dir/all' failed
    mingw32-make[1]: *** [CMakeFiles/camera_view_pg_flycap2_c.dir/all] Error 2
    Makefile:82: recipe for target 'all' failed
    mingw32-make: *** [all] Error 2

    困惑中。。。。
  • 回复 Zh Vic:

    您好!
    感谢使用TI的DLP产品。
    请问是在执行Compiling the 3D Machine Vision Reference Designs from Source这个步骤吗?
    前一个步骤的configuration是否正确完成?
    谢谢!