Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed May 10, 2024
1 parent fca9ab6 commit b9335bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_maixcam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ jobs:
git clone https://github.com/sipeed/MaixCDK --depth=1
export MAIXCDK_PATH=`pwd`/MaixCDK
cd $pwd_path
python -m pip install -U pip setuptools
python -m pip install -U pip setuptools wheel
python -m pip install -r $MAIXCDK_PATH/requirements.txt
python -m pip install pybind11-stubgen
echo "--------------------------------"
echo "-- Build MaixPy for Linux now --"
echo "--------------------------------"
sudo apt update -y
sudo apt install -y libopencv-dev libopencv-contrib-dev
sudo apt install -y libopencv-dev libopencv-contrib-dev libsdl2-dev
python setup.py bdist_wheel linux
echo "----------------------------------"
echo "-- Build MaixPy for MaixCAM now --"
Expand Down
5 changes: 5 additions & 0 deletions docs/doc/en/source_code/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ e.g.
maix_image.hpp
maix_camera.hpp
```

## /usr/bin/ld: /lib/libgdal.so.30: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30' collect2: error: ld returned 1 exit status

This issue commonly arises when building for Linux and using a conda environment, due to some libraries in the conda environment having compilation parameter problems. The solution is to not use conda, or to individually locate the problematic library within conda and replace it with the system's version or simply delete it (the system will then locate the necessary library).

5 changes: 5 additions & 0 deletions docs/doc/zh/source_code/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ Pybind11 需要你先注册 `image::Format`,然后才能在 `camera::Camera`
maix_image.hpp
maix_camera.hpp
```

## /usr/bin/ld: /lib/libgdal.so.30: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30' collect2: error: ld returned 1 exit status

一般在为 Linux 构建时并且使用 conda 环境时容易出现,conda 环境中的一些库编译参数问题,解决方法就是不用 conda 即可, 或者单独找到 conda 中的那个库,替换成系统的或者直接删掉(会从系统找)

0 comments on commit b9335bb

Please sign in to comment.