Hi! First of all, thank you for writing and maintaining s2p, I'm really excited to start using it. However, I'm facing some installation issues. (I'm also still a relative newbie to python, so apologies in advance for any stupid mistakes...).
I have the dependencies installed correctly (gdal 3.6.2, fftw 3.3.10_1, and libtiff 4.6.0) but when I try to pip (or pip3) install s2p, it's unable to build the wheel. This is in a conda environment running Python 3.10, but I've also tried it in a plain old PyCharm venv with Python 3.11. My machine has an Apple M2 Max chip and is running macOS Sonoma 14.4 if any of that is helpful.
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
:8: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
Error compiling Cython file:
------------------------------------------------------------
...
bint free_context_on_error,
) except *:
"""
Setup the context for pyproj
"""
proj_log_func(context, NULL, pyproj_log_function)
^
------------------------------------------------------------
pyproj/_datadir.pyx:40:33: Cannot assign type 'void (void *, int, const char *) except *' to 'PJ_LOG_FUNCTION' (alias of 'void (*)(void *, int, const char *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'pyproj_log_function'.
Error compiling Cython file:
------------------------------------------------------------
...
proj_context_destroy(context)
raise
def pyproj_global_context_initialize():
proj_log_func(NULL, NULL, pyproj_log_function)
^
------------------------------------------------------------
pyproj/_datadir.pyx:52:30: Cannot assign type 'void (void *, int, const char *) except *' to 'PJ_LOG_FUNCTION' (alias of 'void (*)(void *, int, const char *) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of 'pyproj_log_function'.
Traceback (most recent call last):
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/opt/miniconda3/envs/s2p/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 "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-build-env-fa02o9kl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-build-env-fa02o9kl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-build-env-fa02o9kl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-build-env-fa02o9kl/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 243, in
File "", line 159, in get_extension_modules
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-build-env-fa02o9kl/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-build-env-fa02o9kl/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pyproj/_datadir.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
In the stack trace, I noticed the reference to the old pyproj version (Collecting pyproj<3.0.0,>=2.0.2 (from s2p)), so I installed an updated version of pyproj and attempted to install again, using pip install pyproj==3.4.0 s2p and got the following error. Any help in navigating this would be greatly appreciated. Thank you!
(s2p) rileymellen@A15084 s2p % pip install pyproj==3.4.0 s2p
Collecting pyproj==3.4.0
Using cached pyproj-3.4.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (27 kB)
Collecting s2p
Using cached s2p-1.0b25.tar.gz (663 kB)
Preparing metadata (setup.py) ... done
Collecting certifi (from pyproj==3.4.0)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Requirement already satisfied: numpy in /opt/miniconda3/envs/s2p/lib/python3.10/site-packages (from s2p) (1.24.2)
Collecting scipy (from s2p)
Using cached scipy-1.12.0-cp310-cp310-macosx_12_0_arm64.whl.metadata (112 kB)
Collecting rasterio>=1.0.14 (from rasterio[s3]>=1.0.14->s2p)
Using cached rasterio-1.3.9-cp310-cp310-macosx_11_0_arm64.whl.metadata (14 kB)
Collecting utm (from s2p)
Using cached utm-0.7.0-py3-none-any.whl
INFO: pip is looking at multiple versions of s2p to determine which version is compatible with other requirements. This could take a while.
Collecting s2p
Using cached s2p-1.0b24.tar.gz (2.2 MB)
Preparing metadata (setup.py) ... done
Using cached s2p-1.0b23.tar.gz (2.6 MB)
Preparing metadata (setup.py) ... done
Collecting beautifulsoup4[lxml] (from s2p)
Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)
Collecting plyfile (from s2p)
Using cached plyfile-1.0.3-py3-none-any.whl.metadata (2.1 kB)
Collecting ransac (from s2p)
Using cached ransac-1.0.4-py3-none-any.whl
Collecting rpcm>=1.4.6 (from s2p)
Using cached rpcm-1.4.10-py3-none-any.whl.metadata (4.8 kB)
Collecting requests (from s2p)
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting affine (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached affine-2.4.0-py3-none-any.whl.metadata (4.0 kB)
Collecting attrs (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting click>=4.0 (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting cligj>=0.5 (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached cligj-0.7.2-py3-none-any.whl.metadata (5.0 kB)
Collecting snuggs>=1.4.1 (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached snuggs-1.4.7-py3-none-any.whl.metadata (3.4 kB)
Collecting click-plugins (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached click_plugins-1.1.1-py2.py3-none-any.whl.metadata (6.4 kB)
Requirement already satisfied: setuptools in /opt/miniconda3/envs/s2p/lib/python3.10/site-packages (from rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p) (68.2.2)
Collecting boto3>=1.2.4 (from rasterio[s3]>=1.0.14->s2p)
Using cached boto3-1.34.64-py3-none-any.whl.metadata (6.6 kB)
Collecting geojson (from rpcm>=1.4.6->s2p)
Using cached geojson-3.1.0-py3-none-any.whl.metadata (16 kB)
Collecting srtm4>=1.0.2 (from rpcm>=1.4.6->s2p)
Using cached srtm4-1.2.4.tar.gz (2.0 MB)
Preparing metadata (setup.py) ... done
Collecting soupsieve>1.2 (from beautifulsoup4[lxml]->s2p)
Using cached soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)
Collecting lxml (from beautifulsoup4[lxml]->s2p)
Using cached lxml-5.1.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (3.5 kB)
Collecting charset-normalizer<4,>=2 (from requests->s2p)
Using cached charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests->s2p)
Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests->s2p)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting botocore<1.35.0,>=1.34.64 (from boto3>=1.2.4->rasterio[s3]>=1.0.14->s2p)
Using cached botocore-1.34.64-py3-none-any.whl.metadata (5.7 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3>=1.2.4->rasterio[s3]>=1.0.14->s2p)
Using cached jmespath-1.0.1-py3-none-any.whl.metadata (7.6 kB)
Collecting s3transfer<0.11.0,>=0.10.0 (from boto3>=1.2.4->rasterio[s3]>=1.0.14->s2p)
Using cached s3transfer-0.10.1-py3-none-any.whl.metadata (1.7 kB)
Collecting pyparsing>=2.1.6 (from snuggs>=1.4.1->rasterio>=1.0.14->rasterio[s3]>=1.0.14->s2p)
Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB)
Collecting filelock (from srtm4>=1.0.2->rpcm>=1.4.6->s2p)
Using cached filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.35.0,>=1.34.64->boto3>=1.2.4->rasterio[s3]>=1.0.14->s2p)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.35.0,>=1.34.64->boto3>=1.2.4->rasterio[s3]>=1.0.14->s2p)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached pyproj-3.4.0-cp310-cp310-macosx_11_0_arm64.whl (3.8 MB)
Using cached rasterio-1.3.9-cp310-cp310-macosx_11_0_arm64.whl (18.8 MB)
Using cached rpcm-1.4.10-py3-none-any.whl (17 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached plyfile-1.0.3-py3-none-any.whl (23 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached scipy-1.12.0-cp310-cp310-macosx_12_0_arm64.whl (31.4 MB)
Using cached boto3-1.34.64-py3-none-any.whl (139 kB)
Using cached charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl (120 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached cligj-0.7.2-py3-none-any.whl (7.1 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Using cached snuggs-1.4.7-py3-none-any.whl (5.4 kB)
Using cached soupsieve-2.5-py3-none-any.whl (36 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached affine-2.4.0-py3-none-any.whl (15 kB)
Using cached attrs-23.2.0-py3-none-any.whl (60 kB)
Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Using cached geojson-3.1.0-py3-none-any.whl (15 kB)
Using cached lxml-5.1.0-cp310-cp310-macosx_11_0_arm64.whl (4.5 MB)
Using cached botocore-1.34.64-py3-none-any.whl (12.0 MB)
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Using cached pyparsing-3.1.2-py3-none-any.whl (103 kB)
Using cached s3transfer-0.10.1-py3-none-any.whl (82 kB)
Using cached filelock-3.13.1-py3-none-any.whl (11 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: s2p, srtm4
Building wheel for s2p (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [460 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/s2p
copying s2p/sift.py -> build/lib/s2p
copying s2p/rectification.py -> build/lib/s2p
copying s2p/config.py -> build/lib/s2p
copying s2p/block_matching.py -> build/lib/s2p
copying s2p/evaluation.py -> build/lib/s2p
copying s2p/geographiclib.py -> build/lib/s2p
copying s2p/ply.py -> build/lib/s2p
copying s2p/estimation.py -> build/lib/s2p
copying s2p/__init__.py -> build/lib/s2p
copying s2p/visualisation.py -> build/lib/s2p
copying s2p/masking.py -> build/lib/s2p
copying s2p/initialization.py -> build/lib/s2p
copying s2p/cli.py -> build/lib/s2p
copying s2p/common.py -> build/lib/s2p
copying s2p/rasterization.py -> build/lib/s2p
copying s2p/fusion.py -> build/lib/s2p
copying s2p/pointing_accuracy.py -> build/lib/s2p
copying s2p/parallel.py -> build/lib/s2p
copying s2p/rpc_utils.py -> build/lib/s2p
copying s2p/triangulation.py -> build/lib/s2p
/Library/Developer/CommandLineTools/usr/bin/make -j -C 3rdparty/homography
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o main.o main.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o LibImages/LibImages.o LibImages/LibImages.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o Utilities/Utilities.o Utilities/Utilities.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o Utilities/Memory.o Utilities/Memory.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o Utilities/Parameters.o Utilities/Parameters.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o Utilities/Time.o Utilities/Time.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o LibHomography/Homography.o LibHomography/Homography.cpp
c++ -march=native -O3 `gdal-config --cflags` -std=c++11 -c -o LibHomography/Splines.o LibHomography/Splines.cpp
In file included from LibHomography/Splines.cpp:16:
In file included from LibHomography/Splines.h:8:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
In file included from LibHomography/Splines.cpp:16:
In file included from LibHomography/Splines.h:8:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:507:10: note: '__builtin_isless' declared here
return __builtin_isless((type)__x, (type)__y);
^
In file included from LibHomography/Splines.cpp:16:
In file included from LibHomography/Splines.h:8:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
__builtin_ia32_emms();
~~~~~~~~~~~~~~~~~~~~^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^ ~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from Utilities/Utilities.cpp:21:
In file included from Utilities/Utilities.h:11:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
In file included from Utilities/Utilities.cpp:21:
In file included from Utilities/Utilities.h:11:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:507:10: note: '__builtin_isless' declared here
return __builtin_isless((type)__x, (type)__y);
^
In file included from Utilities/Utilities.cpp:21:
In file included from Utilities/Utilities.h:11:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
__builtin_ia32_emms();
~~~~~~~~~~~~~~~~~~~~^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^
In file included from LibHomography/Homography.cpp:18:
In file included from LibHomography/Homography.h:10:
In file included from LibHomography/../LibImages/LibImages.h:8:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
In file included from LibHomography/Homography.cpp:18:
In file included from LibHomography/Homography.h:10:
In file included from LibHomography/../LibImages/LibImages.h:8:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:507:10: note: '__builtin_isless' declared here
return __builtin_isless((type)__x, (type)__y);
^
In file included from LibHomography/Homography.cpp:18:
In file included from LibHomography/Homography.h:10:
In file included from LibHomography/../LibImages/LibImages.h:8:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
__builtin_ia32_emms();
~~~~~~~~~~~~~~~~~~~~^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^
In file included from main.cpp:19:
In file included from ./LibImages/LibImages.h:8:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
In file included from main.cpp:19:
In file included from ./LibImages/LibImages.h:8:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:507:10: note: '__builtin_isless' declared here
return __builtin_isless((type)__x, (type)__y);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
^
In file included from main.cpp:19:
In file included from ./LibImages/LibImages.h:8:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
__builtin_ia32_emms();
~~~~~~~~~~~~~~~~~~~~^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
^
In file included from LibImages/LibImages.cpp:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
In file included from LibImages/LibImages.cpp:17:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:507:10: note: '__builtin_isless' declared here
return __builtin_isless((type)__x, (type)__y);
^
In file included from LibImages/LibImages.cpp:17:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/xmmintrin.h:17:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0
__builtin_ia32_emms();
~~~~~~~~~~~~~~~~~~~~^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
^
20 errors generated.
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
^
make[1]: *** [LibHomography/Splines.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'
return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'
return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'
return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'
return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'
return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'
return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'
return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^ ~~~~~~~~~~~~
20 errors generated.
make[1]: *** [Utilities/Utilities.o] Error 1
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'
return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
^
20 errors generated.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
make[1]: *** [LibHomography/Homography.o] Error 1
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'
return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'
return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'
return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:356:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)
return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);
^ ~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:37:5: note: '__builtin_arm_addg' declared here
__builtin_ia32_emms();
^
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/mmintrin.h:377:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)
return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);
^ ~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [main.o] Error 1
20 errors generated.
make[1]: *** [LibImages/LibImages.o] Error 1
make: *** [homography] Error 2
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-install-sryb9ron/s2p_46ce5f8027394c3786e2140bd55707e7/setup.py", line 60, in
setup(name="s2p",
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 364, in run
self.run_command("build")
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-install-sryb9ron/s2p_46ce5f8027394c3786e2140bd55707e7/setup.py", line 27, in run
subprocess.check_call("make", shell=True)
File "/opt/miniconda3/envs/s2p/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make' 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 s2p
Running setup.py clean for s2p
Building wheel for srtm4 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [66 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/srtm4
copying srtm4/download.py -> build/lib/srtm4
copying srtm4/__init__.py -> build/lib/srtm4
copying srtm4/point.py -> build/lib/srtm4
copying srtm4/raster.py -> build/lib/srtm4
running egg_info
writing srtm4.egg-info/PKG-INFO
writing dependency_links to srtm4.egg-info/dependency_links.txt
writing requirements to srtm4.egg-info/requires.txt
writing top-level names to srtm4.egg-info/top_level.txt
reading manifest file 'srtm4.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'requirements.txt'
writing manifest file 'srtm4.egg-info/SOURCES.txt'
mkdir -p bin
c++ -g -O3 -fpermissive -DNDEBUG -DDONT_USE_TEST_MAIN -c src/Geoid.cpp -o src/Geoid.o
c++ -g -O3 -fpermissive -DNDEBUG -DDONT_USE_TEST_MAIN -c src/geoid_height_wrapper.cpp -o src/geoid_height_wrapper.o
cc -std=c99 -g -O3 -DNDEBUG -DDONT_USE_TEST_MAIN -DMAIN_SRTM4 src/srtm4.c src/Geoid.o src/geoid_height_wrapper.o -lstdc++ -lz -lm -ltiff -o bin/srtm4
src/srtm4.c:9:10: fatal error: 'tiffio.h' file not found
#include
^~~~~~~~~~
1 error generated.
make: *** [bin/srtm4] Error 1
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-install-sryb9ron/srtm4_7373d2c2c18549ba9fc5508d45097ba0/setup.py", line 43, in
setup(name="srtm4",
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 364, in run
self.run_command("build")
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/opt/miniconda3/envs/s2p/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/db/_f8zythn5n924cr14jrtb5gm0000gp/T/pip-install-sryb9ron/srtm4_7373d2c2c18549ba9fc5508d45097ba0/setup.py", line 28, in run
subprocess.check_call("make", shell=True)
File "/opt/miniconda3/envs/s2p/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make' 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 srtm4
Running setup.py clean for srtm4
Failed to build s2p srtm4
ERROR: Could not build wheels for s2p, srtm4, which is required to install pyproject.toml-based projects
Hi! First of all, thank you for writing and maintaining s2p, I'm really excited to start using it. However, I'm facing some installation issues. (I'm also still a relative newbie to python, so apologies in advance for any stupid mistakes...).
I have the dependencies installed correctly (gdal 3.6.2, fftw 3.3.10_1, and libtiff 4.6.0) but when I try to pip (or pip3) install s2p, it's unable to build the wheel. This is in a conda environment running Python 3.10, but I've also tried it in a plain old PyCharm venv with Python 3.11. My machine has an Apple M2 Max chip and is running macOS Sonoma 14.4 if any of that is helpful.
(s2p) rileymellen@A15084 s2p % pip install s2p Collecting s2p Using cached s2p-1.0b25.tar.gz (663 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in /opt/miniconda3/envs/s2p/lib/python3.10/site-packages (from s2p) (1.24.2) Collecting scipy (from s2p) Using cached scipy-1.12.0-cp310-cp310-macosx_12_0_arm64.whl.metadata (112 kB) Collecting rasterio>=1.0.14 (from rasterio[s3]>=1.0.14->s2p) Using cached rasterio-1.3.9-cp310-cp310-macosx_11_0_arm64.whl.metadata (14 kB) Collecting utm (from s2p) Using cached utm-0.7.0-py3-none-any.whl Collecting pyproj<3.0.0,>=2.0.2 (from s2p) Using cached pyproj-2.6.1.post1.tar.gz (545 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [51 lines of output]