Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Building openjpeg fails on macOS #26

Open
fredrikaverpil opened this issue Feb 1, 2019 · 3 comments
Open

Building openjpeg fails on macOS #26

fredrikaverpil opened this issue Feb 1, 2019 · 3 comments

Comments

@fredrikaverpil
Copy link
Owner

fredrikaverpil commented Feb 1, 2019

Error when building openjpeg

2019-02-01T15:33:53.3493500Z Building package openjpeg[core]:x64-osx... 
2019-02-01T15:33:53.5056390Z -- Downloading https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz...
2019-02-01T15:33:54.7427020Z -- Extracting source /Users/vsts/agent/2.144.2/work/1/s/vcpkg/downloads/uclouvain-openjpeg-v2.3.0.tar.gz
2019-02-01T15:33:54.9173170Z -- Using source at /Users/vsts/agent/2.144.2/work/1/s/vcpkg/buildtrees/openjpeg/src/v2.3.0-711dc321d0
2019-02-01T15:33:54.9190960Z -- Configuring x64-osx-dbg
2019-02-01T15:34:00.5526130Z CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
2019-02-01T15:34:00.5562140Z     Command failed: /Users/vsts/agent/2.144.2/work/1/s/vcpkg/downloads/tools/cmake-3.12.4-osx/cmake-3.12.4-Darwin-x86_64/CMake.app/Contents/bin/cmake;/Users/vsts/agent/2.144.2/work/1/s/vcpkg/buildtrees/openjpeg/src/v2.3.0-711dc321d0;-DBUILD_CODEC:BOOL=OFF;-DOPENJPEG_INSTALL_PACKAGE_DIR=share/openjpeg;-DOPENJPEG_INSTALL_INCLUDE_DIR=include;-DCMAKE_MAKE_PROGRAM=/Users/vsts/agent/2.144.2/work/1/s/vcpkg/downloads/tools/ninja-1.8.2-osx/ninja;-DCMAKE_SYSTEM_NAME=Darwin;-DBUILD_SHARED_LIBS=OFF;-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/vsts/agent/2.144.2/work/1/s/vcpkg/scripts/toolchains/osx.cmake;-DVCPKG_TARGET_TRIPLET=x64-osx;-DVCPKG_PLATFORM_TOOLSET=external;-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON;-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON;-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON;-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE;-DCMAKE_VERBOSE_MAKEFILE=ON;-DVCPKG_APPLOCAL_DEPS=OFF;-DCMAKE_TOOLCHAIN_FILE=/Users/vsts/agent/2.144.2/work/1/s/vcpkg/scripts/buildsystems/vcpkg.cmake;-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON;-DVCPKG_CXX_FLAGS=;-DVCPKG_CXX_FLAGS_RELEASE=;-DVCPKG_CXX_FLAGS_DEBUG=;-DVCPKG_C_FLAGS=;-DVCPKG_C_FLAGS_RELEASE=;-DVCPKG_C_FLAGS_DEBUG=;-DVCPKG_CRT_LINKAGE=dynamic;-DVCPKG_LINKER_FLAGS=;-DCMAKE_INSTALL_LIBDIR:STRING=lib;-DCMAKE_INSTALL_BINDIR:STRING=bin;-G;Ninja;-DCMAKE_BUILD_TYPE=Debug;-DCMAKE_INSTALL_PREFIX=/Users/vsts/agent/2.144.2/work/1/s/vcpkg/packages/openjpeg_x64-osx/debug
2019-02-01T15:34:00.5563420Z     Working Directory: /Users/vsts/agent/2.144.2/work/1/s/vcpkg/buildtrees/openjpeg/x64-osx-dbg
2019-02-01T15:34:00.5563600Z     See logs for more information:
2019-02-01T15:34:00.5565830Z       /Users/vsts/agent/2.144.2/work/1/s/vcpkg/buildtrees/openjpeg/config-x64-osx-dbg-out.log
2019-02-01T15:34:00.5567720Z       /Users/vsts/agent/2.144.2/work/1/s/vcpkg/buildtrees/openjpeg/config-x64-osx-dbg-err.log
2019-02-01T15:34:00.5567810Z 
2019-02-01T15:34:00.5568200Z Call Stack (most recent call first):
2019-02-01T15:34:00.5570610Z   scripts/cmake/vcpkg_configure_cmake.cmake:265 (vcpkg_execute_required_process)
2019-02-01T15:34:00.5571910Z   ports/openjpeg/portfile.cmake:10 (vcpkg_configure_cmake)
2019-02-01T15:34:00.5572470Z   scripts/ports.cmake:71 (include)
2019-02-01T15:34:00.5572660Z 
2019-02-01T15:34:00.5573000Z 
2019-02-01T15:34:00.5648170Z Error: Building package openjpeg:x64-osx failed with: BUILD_FAILED
2019-02-01T15:34:00.5649340Z Please ensure you're using the latest portfiles with `.\vcpkg update`, then
2019-02-01T15:34:00.5649500Z submit an issue at https://github.com/Microsoft/vcpkg/issues including:
2019-02-01T15:34:00.5650370Z   Package: openjpeg:x64-osx
2019-02-01T15:34:00.5651350Z   Vcpkg version: 2018.11.23-unknownhash

Link: https://fredrikaverpil.visualstudio.com/oiio-python/_build/results?buildId=783&view=logs&jobId=71d407c9-c576-569c-7d43-abe3f2f427cf&taskId=e77e90ae-c444-5a31-2c94-89dc8588ffbc&lineStart=157&lineEnd=174&colStart=1&colEnd=69

Error when attempting to import the built wheel

2019-02-01T15:59:15.7437810Z ============================= test session starts ==============================
2019-02-01T15:59:15.7438860Z platform darwin -- Python 3.6.5, pytest-4.2.0, py-1.7.0, pluggy-0.8.1 -- /Users/vsts/hostedtoolcache/Python/3.6.5/x64/python
2019-02-01T15:59:15.7440020Z cachedir: .pytest_cache
2019-02-01T15:59:15.7440370Z rootdir: /Users/vsts/agent/2.144.2/work/1/s/tests, inifile:
2019-02-01T15:59:15.8807100Z collecting ... collected 0 items / 1 errors
2019-02-01T15:59:15.9349240Z 
2019-02-01T15:59:15.9349930Z ==================================== ERRORS ====================================
2019-02-01T15:59:15.9355830Z ___________________ ERROR collecting test_imagedimensions.py ___________________
2019-02-01T15:59:15.9357000Z ImportError while importing test module '/Users/vsts/agent/2.144.2/work/1/s/tests/test_imagedimensions.py'.
2019-02-01T15:59:15.9357250Z Hint: make sure your test modules/packages have valid Python names.
2019-02-01T15:59:15.9357300Z Traceback:
2019-02-01T15:59:15.9357420Z test_imagedimensions.py:5: in <module>
2019-02-01T15:59:15.9357500Z     from oiio import OpenImageIO as oiio
2019-02-01T15:59:15.9358110Z E   ImportError: dlopen(/Users/vsts/hostedtoolcache/Python/3.6.5/x64/lib/python3.6/site-packages/oiio/OpenImageIO.so, 2): Symbol not found: _GifLastError
2019-02-01T15:59:15.9358730Z E     Referenced from: /Users/vsts/hostedtoolcache/Python/3.6.5/x64/lib/python3.6/site-packages/oiio/OpenImageIO.so
2019-02-01T15:59:15.9358810Z E     Expected in: flat namespace
2019-02-01T15:59:15.9359340Z E    in /Users/vsts/hostedtoolcache/Python/3.6.5/x64/lib/python3.6/site-packages/oiio/OpenImageIO.so
2019-02-01T15:59:15.9359530Z !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
2019-02-01T15:59:15.9359610Z =========================== 1 error in 0.19 seconds ============================

Link: https://fredrikaverpil.visualstudio.com/oiio-python/_build/results?buildId=783&view=logs&jobId=71d407c9-c576-569c-7d43-abe3f2f427cf&taskId=61447aba-a88d-5c82-03aa-a6e79ea00334&lineStart=50&lineEnd=68&colStart=1&colEnd=110

@fredrikaverpil
Copy link
Owner Author

fredrikaverpil commented Feb 1, 2019

Tracking this in the openjpeg-debug branch.

@fredrikaverpil
Copy link
Owner Author

From config-x64-osx-dbg-err.log:

2019-02-01T19:11:57.2614800Z CMake Error: INSTALL(EXPORT) given unknown export "OpenJPEGTargets"
2019-02-01T19:11:57.2614860Z CMake Warning:
2019-02-01T19:11:57.2615350Z   Manually-specified variables were not used by the project:
2019-02-01T19:11:57.2615530Z 
2019-02-01T19:11:57.2615590Z     CMAKE_INSTALL_BINDIR
2019-02-01T19:11:57.2615630Z     CMAKE_INSTALL_LIBDIR
2019-02-01T19:11:57.2615750Z     VCPKG_CRT_LINKAGE
2019-02-01T19:11:57.2615810Z     VCPKG_PLATFORM_TOOLSET

Link: https://fredrikaverpil.visualstudio.com/oiio-python/_build/results?buildId=799&view=logs&jobId=71d407c9-c576-569c-7d43-abe3f2f427cf&taskId=91f7f82a-96fe-52f8-aacf-eddde8b408c2&lineStart=85&lineEnd=92&colStart=1&colEnd=56

@fredrikaverpil
Copy link
Owner Author

fredrikaverpil commented Feb 2, 2019

Hm... seems libjpeg-turbo is installed by something... (don't have the time to check right now, just quickly jotting this down here)

https://fredrikaverpil.visualstudio.com/oiio-python/_build/results?buildId=890&view=logs&jobId=71d407c9-c576-569c-7d43-abe3f2f427cf&taskId=91f7f82a-96fe-52f8-aacf-eddde8b408c2&lineStart=39&lineEnd=40&colStart=1&colEnd=1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant