Skip to content

Building VisRTX with cmake on two machine with shared filesystem. #138

@jmb64

Description

@jmb64

Hi Jeff,

 I've been trying to build VisRTX but I'm facing this issue where the target machine has no internet access. So,
  1. On the machine with internet access I do:

export CMAKE_PREFIX_PATH=/U2/ANARI/OptiX/home/jmb001/data/ppp5/soft/U2/ANARI/ANARI-SDK/install:/U2/GLFW3/glfw-3.4/install/
export glfw3_DIR=t/U2/GLFW3/glfw-3.4/install/lib

cmake -S . -B ./build -DCMAKE_INSTALL_PREFIX=./install

/U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/.anari_deps/optix_headers/v7.7.0.zip
/U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/.anari_deps/anari_viewer_imgui_glfw/v1.91.0-docking.zip
/U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/.anari_deps/anari_viewer_nfd/v1.2.1.zip

These zip files are downloaded, extracted to their respective folders under VisRTX/build/deps/source/.

  1. Then on the target machine (ubuntu 24.04, gcc-13,g++-13, )

    cmake . in build/ folder

but cmake will try to download the zip files.

I understand there might be a way to tell cmake to use the files already available (URL_HASH) but
I don't know cmake well enough to pin point exactly where to make interventions for the 3 zip files.

I did try something for optix through:

adding a SHASUM to VisRTX/devices/rtx/CMakeLists.txt

anari_sdk_fetch_project(NAME optix_headers URL ${OPTIX_URL} b1fdf87c68b9303fe5ebc8a7a1f3142ede737ad4 )
/U2/ANARI/ANARI-SDK/install/lib/cmake/anari-0.14.0/cmake/anari_sdk_fetch_project.cmake

I would like to hear about a simple solution to do this :-)
I'm sorry. I know this has little to do with VisRTX.

Thanks,

Jean-Marc

On the target machine

cmake . in build/ folder 


-- Found glm: (internal) /U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/external/glm/lib/cmake/glm
-- Populating optix_headers
-- Configuring done (0.5s)
-- Generating done (0.1s)
-- Build files have been written to: /U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/build/devices/rtx/optix_headers-subbuild
[ 11%] Performing download step (download, verify and extract) for 'optix_headers-populate'
-- File already exists but no hash specified (use URL_HASH):
  file='t/U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/.anari_deps/optix_headers/v7.7.0.zip'
Old file will be removed and new file downloaded from URL.
-- Downloading...
   dst='/U2/ANARI/NVIDIA_VisRTX/v0.12.0/VisRTX/.anari_deps/optix_headers/v7.7.0.zip'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/NVIDIA/optix-dev/archive/refs/tags/v7.7.0.zip'

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