lagadic / visp

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

Cannot create python bindings on windows #1391

Open Brohoya opened 4 months ago

Brohoya commented 4 months ago

Hello, I followed the tutorial to create the python bindings on Windows, but I cannot get the libvisp_[...].dll files to build in my conda environment . The thing is that all the required dependencies are detected during the configuration:

Python3 bindings:              yes
    Python3 interpreter:        [user]/anaconda3/envs/visp/python.exe (ver 3.12.3)
    Pybind11:                    [user]/anaconda3/envs/visp/Library/share/cmake/pybind11 (2.12.0)
    Package version:             3.6.1
    Wrapped modules:             core dnn_tracker gui imgproc io klt me sensor ar blob robot visual_features vs vision detection mbt tt tt_mi
    Generated input config:      [...]/VISP/visp_bindings/modules/python/cmake_config.json

Does somebody know if I am missing something ?

SamFlt commented 4 months ago

Hi,

What cmake command did you use to configure the project?

On windows: it should look something like

cmake -G "Visual Studio 17 2022" -A "x64" ../visp -DCMAKE_PREFIX_PATH=%CONDA_PREFIX% -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library -DVISP_LIB_INSTALL_PATH="lib" -DVISP_BIN_INSTALL_PATH="bin" -DVISP_CONFIG_INSTALL_PATH="cmake"

If you did and ran the --target install where do the .dll files show up ?

Sam

Brohoya commented 4 months ago

Hi, Yes I exactly used this command. Then, after running this command:

cmake --build . --config Release --target install --parallel 8

There is not libvisp_[...].dll created at all in the Library/bin folder. I checked if they could be in other environments but I did not find them anywhere...

SamFlt commented 4 months ago

Are you using cmd or powershell? I know that in powershell, i'm having issues with CONDA_PREFIX.