[Bug]: dlib doesnt install. says cmake is required but have installed cmake.
p3p3fr0g opened this issue · 12 comments
What Operating System(s) are you seeing this problem on?
Linux (x86-64)
dlib version
whatever pip install dlib tries to install
Python version
3.10.12
Compiler
pip install dlib
Expected Behavior
expected it to install
Current Behavior
pip install dlib
Defaulting to user installation because normal site-packages is not writeable
Collecting dlib
Using cached dlib-19.24.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running bdist_wheel
running build
running build_ext
Traceback (most recent call last):
File "/usr/local/bin/cmake", line 5, in
from cmake import cmake
ModuleNotFoundError: No module named 'cmake'
ERROR: CMake must be installed to build dlib
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib)
it says cmake must be installed
but
cmake --version
cmake version 3.30.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
so it is installed
Steps to Reproduce
i type pip install dlib and it doesnt work
i've tried sudo pip install dlib and that doesn't work
Anything else?
No response
How did you install CMake?
I'm asking because it looks like your installation is broken, how about uninstalling it completely and reinstalling it again?
I've always used the one provided by my Linux package manager and never had any problems.
i tried sudo apt remove cmake and then sudo apt install cmake again and still the same thing
I think your linux distro will install the binaries in /usr/bin/
but your current cmake
command points to /usr/local/bin/
.
Try to cleanly get rid of the one in that /usr/local/bin
.
different error now:
Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [264 lines of output]
running bdist_wheel
running build
running build_ext
Building extension for Python 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0]
Invoking CMake setup: 'cmake /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/build/lib.linux-x86_64-cpython-310 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is Clang 14.0.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- pybind11 v2.10.0
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.6")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Using CMake version: 3.22.1
-- Compiling dlib version: 19.24.4
-- SSE4 instructions can be executed by the host processor.
-- AVX instructions can be executed by the host processor.
-- Enabling AVX instructions
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Searching for JPEG XL
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0")
-- Checking for modules 'libjxl;libjxl_cms;libjxl_threads'
-- Package 'libjxl', required by 'virtual:world', not found
-- Package 'libjxl_cms', required by 'virtual:world', not found
-- Package 'libjxl_threads', required by 'virtual:world', not found
*****************************************************************************
*** No JPEG XL libraries found. ***
*** On Ubuntu 23.04 and newer you can install them by executing ***
*** sudo apt install libjxl-dev ***
*** ***
*** Otherwise, you can find precompiled packages here: ***
*** https://github.com/libjxl/libjxl/releases ***
*****************************************************************************
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Checking for module 'cblas'
-- Package 'cblas', required by 'virtual:world', not found
-- Checking for module 'lapack'
-- Package 'lapack', required by 'virtual:world', not found
-- Looking for cblas_ddot
-- Looking for cblas_ddot - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
*****************************************************************************
*** No BLAS library found so using dlib's built in BLAS. However, if you ***
*** install an optimized BLAS such as OpenBLAS or the Intel MKL your code ***
*** will run faster. On Ubuntu you can install OpenBLAS by executing: ***
*** sudo apt-get install libopenblas-dev liblapack-dev ***
*** Or you can easily install OpenBLAS from source by downloading the ***
*** source tar file from http://www.openblas.net, extracting it, and ***
*** running: ***
*** make; sudo make install ***
*****************************************************************************
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA.
-- DID NOT FIND CUDA
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
-- Searching for FFMPEG/LIBAV
-- Checking for modules 'libavdevice;libavfilter;libavformat;libavcodec;libswresample;libswscale;libavutil'
-- Package 'libavdevice', required by 'virtual:world', not found
-- Package 'libavfilter', required by 'virtual:world', not found
-- Package 'libavformat', required by 'virtual:world', not found
-- Package 'libavcodec', required by 'virtual:world', not found
-- Package 'libswresample', required by 'virtual:world', not found
-- Package 'libswscale', required by 'virtual:world', not found
-- Package 'libavutil', required by 'virtual:world', not found
*****************************************************************************
*** No FFMPEG/LIBAV libraries found. ***
*** On Ubuntu you can install them by executing ***
*** sudo apt install libavdevice-dev libavfilter-dev libavformat-dev ***
*** sudo apt install libavcodec-dev libswresample-dev libswscale-dev ***
*** sudo apt install libavutil-dev ***
*****************************************************************************
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/build/temp.linux-x86_64-cpython-310
Invoking CMake build: 'cmake --build . --config Release -- -j15'
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o
[ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
[ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o
[ 2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o
[ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o
[ 4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o
[ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o
[ 5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o
[ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o
[ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o
[ 6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o
[ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/fft/fft.cpp.o
[ 8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o
[ 9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o
[ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o
[ 10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o
[ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o
[ 11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o
[ 12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o
[ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o
[ 13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o
[ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o
[ 14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o
[ 15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o
In file included from /usr/include/features.h:486,
from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
from /usr/include/c++/11/iosfwd:38,
from /usr/include/c++/11/ios:38,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/../assert.h:7,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/../uintn.h:7,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/unicode.h:6,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/unicode.cpp:5:
In function ‘size_t mbstowcs(wchar_t*, const char*, size_t)’,
inlined from ‘const wstring dlib::convert_mbstring_to_wstring(const string&)’ at /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/unicode.cpp:100:22:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:115:10: warning: ‘size_t __mbstowcs_chk(wchar_t*, const char*, size_t, size_t)’ specified size 18446744073709551600 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
115 | return __glibc_fortify_n (mbstowcs, __len, sizeof (wchar_t),
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdlib.h:1027,
from /usr/include/c++/11/cstdlib:75,
from /usr/include/c++/11/ext/string_conversions.h:41,
from /usr/include/c++/11/bits/basic_string.h:6608,
from /usr/include/c++/11/string:55,
from /usr/include/c++/11/bits/locale_classes.h:40,
from /usr/include/c++/11/bits/ios_base.h:41,
from /usr/include/c++/11/ios:42,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/../assert.h:7,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/../uintn.h:7,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/unicode.h:6,
from /tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/unicode/unicode.cpp:5:
/usr/include/x86_64-linux-gnu/bits/stdlib.h: In function ‘const wstring dlib::convert_mbstring_to_wstring(const string&)’:
/usr/include/x86_64-linux-gnu/bits/stdlib.h:95:15: note: in a call to function ‘size_t __mbstowcs_chk(wchar_t*, const char*, size_t, size_t)’ declared with attribute ‘access (write_only, 1, 3)’
95 | extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
| ^~~~~~~~~~~~~~
[ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o
[ 16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o
[ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o
[ 17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o
[ 18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o
[ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o
[ 19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o
[ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o
[ 20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o
[ 21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o
[ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o
[ 22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o
[ 23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o
[ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o
[ 24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o
[ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o
[ 25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o
[ 26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o
[ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o
[ 27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o
[ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/cifar.cpp.o
[ 28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o
[ 29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o
[ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/svm/auto.cpp.o
[ 30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/widgets.cpp.o
[ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/drawable.cpp.o
[ 31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/canvas_drawing.cpp.o
[ 32%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/style.cpp.o
[ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/base_widgets.cpp.o
[ 33%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_1.cpp.o
[ 34%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_core/gui_core_kernel_2.cpp.o
[ 34%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/arm_init.c.o
[ 35%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/filter_neon_intrinsics.c.o
[ 36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/palette_neon_intrinsics.c.o
[ 36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/png.c.o
[ 37%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngerror.c.o
[ 37%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngget.c.o
[ 38%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngmem.c.o
[ 39%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngpread.c.o
[ 39%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngread.c.o
/tmp/pip-install-mck8ns2b/dlib_215f818090854f49a925a574c1c05171/dlib/external/libpng/pngread.c:3455:26: error: variable 'row' set but not used [-Werror,-Wunused-but-set-variable]
png_bytep row = png_voidcast(png_bytep, display->first_row);
^
1 error generated.
gmake[2]: *** [dlib_build/CMakeFiles/dlib.dir/build.make:972: dlib_build/CMakeFiles/dlib.dir/external/libpng/pngread.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:144: dlib_build/CMakeFiles/dlib.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
Traceback (most recent call last):
File "/home/REDACTED/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/REDACTED/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/REDACTED/.local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 415, in build_wheel
return self._build_with_temp_dir(
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "", line 220, in
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/init.py", line 106, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 970, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 974, in run_command
super().run_command(command)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 989, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/command/bdist_wheel.py", line 373, in run
self.run_command("build")
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 974, in run_command
super().run_command(command)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 989, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 974, in run_command
super().run_command(command)
File "/tmp/pip-build-env-_z1wagi1/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 989, in run_command
cmd_obj.run()
File "", line 130, in run
File "", line 170, in build_extension
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j15']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib)
It's failing when building libpng?
Why is the -Werror
flag enabled in your build?
i have no idea how do i disable it?
Can you try by running:
CFLAGS='' pip install dlib
?
I don't know if it will work.
It works when I git clone and run CFLAGS="" python setup.py install
Also, you're using clang, maybe you can try with CC=gcc pip install dlib
the cflags one worked, ty!
Warning: this issue has been inactive for 35 days and will be automatically closed on 2024-09-01 if there is no further activity.
If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.
Warning: this issue has been inactive for 42 days and will be automatically closed on 2024-09-01 if there is no further activity.
If you are waiting for a response but haven't received one it's possible your question is somehow inappropriate. E.g. it is off topic, you didn't follow the issue submission instructions, or your question is easily answerable by reading the FAQ, dlib's official compilation instructions, dlib's API documentation, or a Google search.
Notice: this issue has been closed because it has been inactive for 45 days. You may reopen this issue if it has been closed in error.