Comments (9)
actually the problem is in tlRender/cmake/Modules/FindOCIO.cmake.
if(CMAKE_BUILD_TYPE MATCHES "^Debug$")
find_library(OCIO_yaml_LIBRARY NAMES libyaml-cppmdd libyaml-cpp yaml-cpp)
find_library(OCIO_pystring_LIBRARY NAMES pystring)
find_library(OCIO_expat LIBRARY NAMES expatdMD expat)
else()
find_library(OCIO_yaml_LIBRARY NAMES libyaml-cppmd libyaml-cpp yaml-cpp)
find_library(OCIO_pystring_LIBRARY NAMES pystring)
find_library(OCIO_expat LIBRARY NAMES expatMD)
endif()
the release version also needs to look for expat as an alternate name.
Yep... Adding expat my build succeeds!
from tlrender.
Ah Ok, great, I just checked in a change to add the missing "expat" name.
from tlrender.
That's odd, OCIO should build the dependencies it needs; are you building from the directions on the home page?
https://github.com/darbyjohnston/tlRender#building-on-macos
from tlrender.
1509 git clone https://github.com/darbyjohnston/tlRender.git
1510 cd tlRender
1511 mkdir build;cd build
1512 cmake ../etc/SuperBuild/ -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_PREFIX_PATH=$PWD/install
1513 cmake --build . -j 4
Perhaps you've got expat in a global path due to macports or homebrew?
from tlrender.
expat isn't in the install dir.
drwxrwxr-x nporcino gfx 1.1 KB Mon Jul 19 18:26:18 2021 .
drwxrwxr-x nporcino gfx 192 B Mon Jul 19 18:22:27 2021 ..
drwxr-xr-x nporcino gfx 128 B Mon Jul 19 18:22:25 2021 freetype2
.rw-r--r-- nporcino gfx 3.3 KB Mon Jul 19 18:22:12 2021 fseq.h
.rw-r--r-- nporcino gfx 211 KB Mon Jul 19 18:21:18 2021 glad.h
drwxr-xr-x nporcino gfx 128 B Mon Jul 19 18:22:16 2021 GLFW
.rw-r--r-- nporcino gfx 2.1 KB Mon Jul 19 18:23:17 2021 jconfig.h
.rw-r--r-- nporcino gfx 15 KB Mon Nov 16 15:38:06 2020 jerror.h
.rw-r--r-- nporcino gfx 15 KB Mon Nov 16 15:38:06 2020 jmorecfg.h
.rw-r--r-- nporcino gfx 49 KB Mon Nov 16 15:38:06 2020 jpeglib.h
drwxrwxr-x nporcino gfx 96 B Mon Jul 19 18:22:08 2021 KHR
drwxrwxr-x nporcino gfx 832 B Mon Jul 19 18:26:18 2021 libavcodec
drwxrwxr-x nporcino gfx 128 B Mon Jul 19 18:26:18 2021 libavdevice
drwxrwxr-x nporcino gfx 192 B Mon Jul 19 18:26:18 2021 libavfilter
drwxrwxr-x nporcino gfx 160 B Mon Jul 19 18:26:18 2021 libavformat
drwxrwxr-x nporcino gfx 2.8 KB Mon Jul 19 18:26:18 2021 libavutil
drwxrwxr-x nporcino gfx 160 B Mon Jul 19 18:22:27 2021 libpng16
drwxrwxr-x nporcino gfx 128 B Mon Jul 19 18:26:18 2021 libswresample
drwxrwxr-x nporcino gfx 128 B Mon Jul 19 18:26:18 2021 libswscale
drwxrwxr-x nporcino gfx 224 B Mon Jul 19 18:24:34 2021 OpenColorIO
drwxrwxr-x nporcino gfx 5.1 KB Mon Jul 19 18:23:42 2021 OpenEXR
drwxrwxr-x nporcino gfx 256 B Mon Jul 19 18:22:54 2021 opentime
drwxrwxr-x nporcino gfx 1.3 KB Mon Jul 19 18:22:54 2021 opentimelineio
.rw-r--r-- nporcino gfx 140 KB Mon Jul 19 18:22:24 2021 png.h
.rw-r--r-- nporcino gfx 22 KB Mon Jul 19 18:22:24 2021 pngconf.h
.rw-r--r-- nporcino gfx 7.4 KB Mon Jul 19 18:22:25 2021 pnglibconf.h
drwxrwxr-x nporcino gfx 96 B Mon Jul 19 18:23:07 2021 pystring
.rw-r--r-- nporcino gfx 36 KB Sat Nov 10 06:33:01 2018 tiff.h
.rw-r--r-- nporcino gfx 3.1 KB Mon Jul 19 18:23:52 2021 tiffconf.h
.rw-r--r-- nporcino gfx 23 KB Fri May 31 06:05:23 2019 tiffio.h
.rw-r--r-- nporcino gfx 1.6 KB Sun Oct 28 07:13:31 2018 tiffio.hxx
.rw-r--r-- nporcino gfx 410 B Sun Nov 3 12:11:12 2019 tiffvers.h
.rw-r--r-- nporcino gfx 72 KB Mon Nov 16 15:38:06 2020 turbojpeg.h
drwxr-xr-x nporcino gfx 672 B Mon Jul 19 18:23:06 2021 yaml-cpp
.rw-r--r-- nporcino gfx 16 KB Mon Jul 19 18:22:10 2021 zconf.h
.rw-r--r-- nporcino gfx 94 KB Sun Jan 15 09:29:40 2017 zlib.h
from tlrender.
It's definitely a flaw in someone's find algo for expat:
//The directory containing a CMake configuration file for expat.
expat_DIR:PATH=expat_DIR-NOTFOUND
//Path to a file.
expat_INCLUDE_DIR:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include
//Path to a library.
expat_LIBRARY:FILEPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/libexpat.tbd
from tlrender.
Good point about homebrew, maybe that's also what was supplying stat64
on my machine.
from tlrender.
OCIO/src/OCIO/share/cmake/modules/Findexpat.cmake
looks like no one has set it up for Mac/iOS. It's probably possible to coerce their script with expat_Root, but it seems like it's not a trivial work around.
cmake ../etc/SuperBuild/ -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_PREFIX_PATH=$PWD/install -Dexpat_ROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
expat_ROOT
no dice
from tlrender.
Interesting, not homebrew, but from Xcode; this is from the macOS GitHub action:
Found expat: /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/lib/libexpat.tbd (found suitable version "2.2.8", minimum required is "2.2.8")
I think you are right about building expat, I should probably add yaml as well. It is currently being built by OCIO as a CMake "ExternalProject_Add" but I'm getting a lot of warnings from it during linking.
I'll add the OCIO dependencies, thanks for troubleshooting this!
from tlrender.
Related Issues (20)
- Add support for saving all layers of an OpenEXR HOT 2
- [tlBake] -ffp option causes error HOT 2
- When .otio file contains a segment of an audio clip that does not start at 0, the audio plays too far into the next clip. HOT 1
- .otioz files are playing and showing without audio in latest edit branch. HOT 2
- Qt version does not display video HOT 2
- Zooming via trackpad does not work HOT 2
- Menu icons are barely visible in light mode (macOS) HOT 1
- Compare Wipe Mode is broken in edit branch HOT 1
- Add an option CmdLine.cpp and IApp.cpp to leave unparsed values in an array. HOT 1
- Bad sequence detection. HOT 2
- Add a std::future/std::promise to send I/O options to tlIO HOT 3
- Add an option to clear a single frame or frame range from the cache
- Sequence detection is failing on padded frames. HOT 1
- Caching does not begin from the current frame when refreshing cache. HOT 6
- Can glfw3 be compiled with both wayland and x11 support? HOT 4
- Image Sequences are played at trimmed (source_range?) rate instead of ImageSequence's rate() value.
- tlplay-gl.sh HEAD on Linux and mrv2 on Linux and Windows have issues memory spikes playing the current 4K mp4 movie
- tlRender build fails on osx - ZLIB_VERNUM != PNG_ZLIB_VERNUM HOT 1
- Shader Clamping in imageFragmentSource() HOT 1
- RtAudio tlRender audio enhancements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tlrender.