Skip to content

Issue with building PyOptiX binding on Windows #7

@wch0x01

Description

@wch0x01

In order to build the optix Python module correctly on Windows, please modify target_link_libraries
Change CUDA::cuda_driver to CUDA::cudart
https://github.com/NVIDIA/optix-toolkit/blob/master/PyOptiX/optix/CMakeLists.txt#L42-L45

Otherwise this error occurs:
main.obj : error LNK2001: unresolved external symbol cudaFree

I used a conda environment to set things up before building.
https://github.com/NVIDIA/optix-toolkit/tree/master/PyOptiX#conda-environment

My environment:
OptiX SDK 7.5.0
CUDA Toolkit 11.8
CMake 3.24.2
Windows 10 Enterprise 21H2 64 bit
Visual Studio 2019

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions