Error occurs when NxView Source code build

General Information

  • Product: NxView Source code in the SDK
  • Serial Number: any
  • Ensenso SDK Version: 4.0.1025
  • Operating System: Windows 10 Pro
  • Visual Studio 2022 community
  • Qt 5.15.2
  • OpenCV 4.10.0

Problem / Question

  • I opened “C:\Program Files\Ensenso\development\examples\C++\nxView\CMakeLists.txt” from VS2022, but the following error occurred.

  • Qt 5.15.2 was installed successfully.

  • OpenCV 4.10.0 was downloaded and unzipped and placed in “C:\opencv”.

  • What are the OpenCV-related environment variable settings required by “\examples\C++\nxView\NxView\CMakeLists.txt”?

  • I tried to set the location of OpenCVConfig.cmake in the environment variable OpenCV_DIR, but OpenCVConfig.cmake exists in two locations. Which one should I specify?
    C:\opencv\build
    C:\opencv\build\x64\vc16\lib

  • If it is better to set a path in CMAKE_PREFIX_PATH, please tell me the path to set.

  • Is there detailed manual about building and running other than following manual?
    C:\Program Files\Ensenso\development\examples\C++\nxView\Readme.txt

Warm regards,
Kenzo

Hello Kenzo,

in your case, OpenCV should be found if you set CMAKE_PREFIX_PATH=C:/opencv/build.

Thanks to your question, we found few other issues:

  • The folder NxGuiShared/include must be renamed to NxGuiShared/NxGuiShared.
  • When launching your own NxView, it might complain abouf a missing MFPlat.DLL. In that case you need to install the Windows Media Feature Pack to satisfy OpenCV dependencies.
  • We copy the necessary Qt DLLs next to the NxView binary during the build, but forget about the plugins folder, which you need to copy manually.

I have created a ticket to fix these issues[1] and another to build NxView as an example in CI[2] to catch problems ourselves in the future.

The only instructions available at present are in the README.txt.

Regards,
Raphael


  1. #5493 ↩︎

  2. #5494 ↩︎

Hi Raphael,
Thank you for your answer!
Warm regards,
Kenzo