lagadic / visp

Open Source Visual Servoing Platform
https://visp.inria.fr/
GNU General Public License v2.0
725 stars 286 forks source link

Can't find visp_mbt361.dll, visp_io361.dll, visp_core361.dll, visp_gui361.dll on Windows10 based on c++ install. #1477

Closed LeonFight closed 1 month ago

LeonFight commented 1 month ago

I have installed VISP from source for Windows 10 with Visual C++ 2022 (vc17), following all the steps of the website and try to get started. But when I tried to run tutorial-viewer example %VISP_WS%\image\build\> tutorial-viewer.exe monkey.pgm It cames errors of can't find visp_mbt361.dll, visp_io361.dll, visp_core361.dll, visp_gui361.dll.

The sames errors also appeared when I tried "Advanced getting started".

0

fspindle commented 1 month ago

This is because you didn't set PATH env var with the location of visp DLLs as explained in the tutorial.

LeonFight commented 1 month ago

I think I did set VISP_DIR as the tutorial according to the CMake? 1

fspindle commented 1 month ago

VISP_DIR is the env var to help cmake to find ViSP. You have also to set PATH env var adding the path to ViSP DLLs folder location. In you case you should run something like:

setx PATH %PATH%;"E:\gkl\visp-ws\visp-build-vc17\x64\vc17\bin

Now the following should work

tutorial-viewer ..\..\monkey.ppm 

If this is not the case, open a fresh cmd terminal and try again

LeonFight commented 1 month ago

I ran:

setx VISP_WINDOWS_DLL_PATH "%VISP_WS%\visp-build-vc17\x64\vc17\bin

Then close the cmd and open a fresh cmd ran tutorial-viewer ..\..\monkey.ppm. However it does not work.

I agree that this path sould be added to ViSP path env, but wondering what's the exact path name of it.

LeonFight commented 1 month ago

This issue is solved. I changed the env name Path to PATH then it works.