Skip to content

Commit

Permalink
wip linux opengl stuff (it doesn't work)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 13, 2023
1 parent 520debc commit d1b63fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion swig/conda/pyflamegpu_vis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fi
mkdir -p build && cd build

# Configure CMake
cmake .. -DCMAKE_BUILD_TYPE=Release -DFLAMEGPU_BUILD_PYTHON=ON -DFLAMEGPU_BUILD_PYTHON_VENV=OFF -DFLAMEGPU_BUILD_ALL_EXAMPLES=OFF -DFLAMEGPU_BUILD_PYTHON_CONDA=ON $build_arch $swig_exe $swig_dir $CMAKE_ARGS -DPython3_FIND_VIRTUALENV=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH -DPython3_ROOT_DIR="$BUILD_PREFIX" -DPython3_EXECUTABLE="$PYTHON" -DFLAMEGPU_VISUALISATION=ON
cmake .. -DCMAKE_BUILD_TYPE=Release -DFLAMEGPU_BUILD_PYTHON=ON -DFLAMEGPU_BUILD_PYTHON_VENV=OFF -DFLAMEGPU_BUILD_ALL_EXAMPLES=OFF -DFLAMEGPU_BUILD_PYTHON_CONDA=ON $build_arch $swig_exe $swig_dir $CMAKE_ARGS -DPython3_FIND_VIRTUALENV=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH -DPython3_ROOT_DIR="$BUILD_PREFIX" -DPython3_EXECUTABLE="$PYTHON" -DFLAMEGPU_VISUALISATION=ON -DOpenGL_GL_PREFERENCE:STRING=LEGACY

# Build Python wheel
cmake --build . --target pyflamegpu --parallel $build_threads
Expand Down
4 changes: 4 additions & 0 deletions swig/conda/pyflamegpu_vis/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ requirements:
build:
- {{ compiler('cxx') }}
- {{ compiler('cuda') }}
- {{ cdt('libglvnd') }} # [linux]
- {{ cdt('libglvnd-opengl') }} # [linux]
- sysroot_{{ target_platform }} 2.17 # [linux]
#- {{ cdt('mesa-libgl-devel') }} # [linux] # works but super old?
- cuda-cudart-dev # [linux]
- cuda-nvrtc-dev # [linux]
- libcurand-dev # [linux]
Expand Down
8 changes: 8 additions & 0 deletions swig/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash


[[ -z "$FLAMEGPU_CONDA_CUDA_ARCHITECTURES" ]] && build_arch="" || build_arch="-DCMAKE_CUDA_ARCHITECTURES=$FLAMEGPU_CONDA_CUDA_ARCHITECTURES"

echo "${build_arch}"
echo ${build_arch}
echo $build_arch

0 comments on commit d1b63fd

Please sign in to comment.