Skip to content

Commit

Permalink
Fix build for Jetson platform (#2512)
Browse files Browse the repository at this point in the history
- as libclang overwrites clang default path and library name when clang is installed as the last one it will change back what libclang did. This change makes sure that libclang is installed as the last one
- adds a default constructor to RLEMask class to make QNX compiler happy

Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL committed Dec 1, 2020
1 parent 0268713 commit 96c4775
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dali/operators/reader/loader/coco_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ inline bool HasSavePreprocessedAnnotationsDir(const OpSpec &spec) {
struct RLEMask : public UniqueHandle<RLE, RLEMask> {
DALI_INHERIT_UNIQUE_HANDLE(RLE, RLEMask)

constexpr inline RLEMask() : UniqueHandle() {}

RLEMask(siz h, siz w, siz m) {
rleInit(&handle_, h, w, m, nullptr);
}
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.build.aarch64-linux
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-get install -y python3.9 python3.9-dev && \
rm -rf /var/lib/apt/lists/* && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && rm get-pip.py && \
pip install clang libclang && \
# decouple libclang and clang installation so libclang changes are not overriden by clang
pip install clang && pip install libclang && \
rm -rf /root/.cache/pip/ && \
cd /tmp && git clone https://github.com/NixOS/patchelf && cd patchelf && \
./bootstrap.sh && ./configure --prefix=/usr/ && make -j install && cd / && rm -rf /tmp/patchelf && \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.build.aarch64-qnx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && \
ln -s /usr/bin/python3 /usr/bin/python && \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python get-pip.py && rm get-pip.py && \
pip install clang libclang && \
# decouple libclang and clang installation so libclang changes are not overriden by clang
pip install clang && pip install libclang && \
rm -rf /root/.cache/pip/

COPY --from=qnx_cuda_tools /qnx /qnx
Expand Down

0 comments on commit 96c4775

Please sign in to comment.