Georg Claude Sonnet 4.5 commited on
Commit
0d59dc5
·
1 Parent(s): 610de19

Fix C++ standard and Eigen dependency for CUDA build

Browse files

Build Errors Fixed:
- Add libeigen3-dev for Eigen/Dense header
- Add ninja-build for faster compilation
- Patch mycuda setup.py: change -std=c++14 to -std=c++17
- PyTorch requires C++17, mycuda was hardcoded to C++14

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -29,6 +29,8 @@ RUN apt-get update && apt-get install -y \
29
  libxext6 \
30
  libxrender-dev \
31
  libgomp1 \
 
 
32
  && rm -rf /var/lib/apt/lists/*
33
 
34
  # Set python3.10 as default
@@ -52,7 +54,10 @@ RUN git clone https://github.com/NVlabs/FoundationPose.git /app/FoundationPose
52
 
53
  # Build FoundationPose C++ extensions (skip kaolin - optional dependency)
54
  WORKDIR /app/FoundationPose
55
- RUN cd bundlesdf/mycuda && pip install . --no-build-isolation
 
 
 
56
  RUN cd mycpp && python setup.py build_ext --inplace
57
 
58
  # Copy application files
 
29
  libxext6 \
30
  libxrender-dev \
31
  libgomp1 \
32
+ libeigen3-dev \
33
+ ninja-build \
34
  && rm -rf /var/lib/apt/lists/*
35
 
36
  # Set python3.10 as default
 
54
 
55
  # Build FoundationPose C++ extensions (skip kaolin - optional dependency)
56
  WORKDIR /app/FoundationPose
57
+ # Patch mycuda setup.py to use C++17 instead of C++14 (PyTorch requires C++17)
58
+ RUN cd bundlesdf/mycuda && \
59
+ sed -i 's/-std=c++14/-std=c++17/g' setup.py && \
60
+ pip install . --no-build-isolation
61
  RUN cd mycpp && python setup.py build_ext --inplace
62
 
63
  # Copy application files