andrewssobral / andrewssobral/bgslibrary

CMake issue running 'pip install pybgs' on Ubuntu

Offen
#227 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @andrewssobral Auf GitHub ansehen
waiting for validation
Vorherrschende Sprache
C++
Sterne
2.3k
Forks
735
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,

We are running into trouble when trying to pip install pybgs, getting the following error:

1.183 Collecting pybgs==3.3.0.post0
1.242 Downloading pybgs-3.3.0.post0.tar.gz (622 kB)
1.281 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 622.8/622.8 kB 17.9 MB/s eta 0
:00:00
1.351 Preparing metadata (setup.py): started
1.971 Preparing metadata (setup.py): finished with status 'done'
1.973 Building wheels for collected packages: pybgs
[2023-11-30T11:20:34.952Z]
1.975 Building wheel for pybgs (setup.py): started
4.334 Building wheel for pybgs (setup.py): finished with status 'error'
4.342 error: subprocess-exited-with-error
4.342
4.342 × python setup.py bdist_wheel did not run successfully.
4.342 │ exit code: 1
4.342 ╰─> [51 lines of output]
4.342 running bdist_wheel
4.342 running build
4.342 running build_ext
4.342 Preparing the build environment
4.342 Configuring cmake project
4.342 cmake -H/tmp/pip-install-wrej2k3c/pybgs_920fffc03ccd49dcb563bbd93116
e181 -Bbuild/temp.linux-x86_64-cpython-311 -DPYTHON_EXECUTABLE=/opt/venv/bin/pyt
hon -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTH
ON_VERSION=3.11
4.342 -- The C compiler identification is GNU 12.2.0
4.342 -- The CXX compiler identification is GNU 12.2.0
4.342 -- Detecting C compiler ABI info
4.342 -- Detecting C compiler ABI info - done
4.342 -- Check for working C compiler: /usr/bin/cc - skipped
4.342 -- Detecting C compile features
4.342 -- Detecting C compile features - done
4.342 -- Detecting CXX compiler ABI info
4.342 -- Detecting CXX compiler ABI info - done
4.342 -- Check for working CXX compiler: /usr/bin/c++ - skipped
4.342 -- Detecting CXX compile features
4.342 -- Detecting CXX compile features - done
4.342 --
4.342 -- BGS_PYTHON_SUPPORT: ON
4.342 -- BGS_PYTHON_ONLY: ON
4.342 -- BGS_CORE_STATIC: ON
4.342 -- PYTHON VERSION: 3.11
4.342 -- Found OpenCV: /usr (found version "4.6.0")
4.342 --
4.342 -- OpenCV library status:
4.342 -- version: 4.6.0
4.342 -- libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_featu
res2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;open
cv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_al
phamat;opencv_aruco;opencv_barcode;opencv_bgsegm;opencv_bioinspired;opencv_ccali
b;opencv_cvv;opencv_datasets;opencv_dnn_objdetect;opencv_dnn_superres;opencv_dpm
;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_hfs;opencv_img_hash;
opencv_intensity_transform;opencv_line_descriptor;opencv_mcc;opencv_optflow;open
cv_phase_unwrapping;opencv_plot;opencv_quality;opencv_rapid;opencv_reg;opencv_rg
bd;opencv_saliency;opencv_shape;opencv_stereo;opencv_structured_light;opencv_sup
erres;opencv_surface_matching;opencv_text;opencv_tracking;opencv_videostab;openc
v_viz;opencv_wechat_qrcode;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
4.342 -- include path: /usr/include/opencv4
4.342
4.342 -- Found PythonInterp: /opt/venv/bin/python (found suitable version
"3.11.6", minimum required is "3.11")
4.342 -- Found PythonLibs: /usr/local/lib/libpython3.11.so
4.342 -- pybind11 v2.3.dev1
4.342 --
4.342 -- Python library status:
4.342 -- executable: /opt/venv/bin/python
4.342 -- library: /usr/local/lib/libpython3.11.so
4.342 -- include path: /usr/local/include/python3.11
4.342 -- NUMPY_INCLUDE_DIR: /opt/venv/lib/python3.11/site-packages/numpy/c
ore/include
4.342
4.342 -- Bulding bgslibrary_core STATIC
4.342 --
4.342 -- The bgslibrary python package will be installed at: lib/python3.1
1/site-packages
4.342
4.342 -- Configuring done
4.342 CMake Error at CMakeLists.txt:223 (add_library):
4.342 No SOURCES given to target: bgslibrary_core
4.342
4.342
4.342 CMake Generate step failed. Build files cannot be regenerated corre
ctly.

Apparently, there are no No SOURCES given to target: bgslibrary_core.

We are using a containerized Ubuntu version. I have included our Dockerfile for reference. We have 'build-essential', 'libopencv-dev' and 'python3-opencv' installed inside of our container, so all dependencies seem to be in place.

I have attached our Dockerfile (remove the .txt before running docker build) for reference.
[Dockerfile.txt](https://github.com/andrewssobral/bgslibrary/files/13512309/Dockerfile.txt)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.