Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create python bindings on windows #1391

Open
Brohoya opened this issue Apr 24, 2024 · 3 comments
Open

Cannot create python bindings on windows #1391

Brohoya opened this issue Apr 24, 2024 · 3 comments

Comments

@Brohoya
Copy link

Brohoya commented Apr 24, 2024

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
Copy link
Contributor

SamFlt commented Apr 25, 2024

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
Copy link
Author

Brohoya commented Apr 26, 2024

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
Copy link
Contributor

SamFlt commented May 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants