Code Monkey home page Code Monkey logo

Comments (6)

MartyG-RealSense avatar MartyG-RealSense commented on June 26, 2024

Hi @mrortach As you are using Visual Studio, I wonder whether you need to set up linkages to realsense2.dll. If the full RealSense SDK has been installed on Windows using the Intel.RealSense.SDK-WIN10 installer file then the SDK provides three .props property sheet files for doing this. They can be found at C: > Program Files (x86) > Intel RealSense SDK 2.0

image

Once the SDK is installed and you can access the three props files in the SDK folder, the link below has a C++ Visual Studio tutorial shared by a RealSense user for creating a starter project using the props files.

https://github.com/EduardoWang/visual-studio-real-sense-record-and-playback-project

from librealsense.

mrortach avatar mrortach commented on June 26, 2024

I tried to compile pyrealsense2 version 2.54.2.5684 for Python 3.12 using the method you suggested, but it didn't work.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 26, 2024

As the errors reference GL, I wonder whether they are occurring because -DBUILD_GRAPHICAL_EXAMPLES=TRUE is not included in your CMake build instruction. When building librealsense from source, this instruction is required in order to build the SDK with OpenGL graphics support included.

When setting -DBUILD_GRAPHICAL EXAMPLES to True, -DBUILD_EXAMPLES must also be true. So adding these two flags to your CMake build instruction would make it look like this:

cmake .. -DFORCE_RSUSB_BACKEND=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_PYTHON_BINDINGS=bool:true -DPYTHON_EXECUTABLE="C:/***/AppData/Local/Programs/Python/Python312/python.exe" -DBUILD_EXAMPLES=TRUE -DBUILD_GRAPHICAL_EXAMPLES=TRUE

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 26, 2024

Another approach to installation may be to install the 2.54.2 SDK without pyrealsense2 by using the Intel.RealSense.SDK-WIN10 installer file and de-selecting the Python wrapper component on the installer's configurartion options so that the Python 3.7 version of the wrapper is not installed.

https://github.com/IntelRealSense/librealsense/releases/tag/v2.54.2

image

Then once the 2.54.2 SDK is installed, build the Python wrapper separately from source code for Python 3.12.

from librealsense.

mrortach avatar mrortach commented on June 26, 2024

I partially did it yesterday, but today I couldn't get it done.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 26, 2024

What errors do you get when building the Python wrapper on Windows separately after the SDK is installed, please?

from librealsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.