OpenTimelineIO / OpenTimelineIO-Swift-Bindings

Swift bindings for the OpenTimelineIO Library (http://opentimeline.io)
http://opentimeline.io
Apache License 2.0
18 stars 11 forks source link

Running tests fail #49

Closed vade closed 9 months ago

vade commented 9 months ago

Build Problem

Hi friends.

I'm working on adding some extensions to the Swift portion to enable CoreMedia and AVFoundation compatibility.

With a checkout of the project in Xcode 14.3.1 on Mac OS 13.4.1, I am unable to run tests via Xcode's built in testing framework, which appears supported given the project's structure and source.

To Reproduce

Checkout latest into a new repo

Command + U to run tests, or in the command line swift test - both result in

'any/any.hpp' file not found

Expected Behavior

Tests run (and pass)

Screenshots

image

image

Logs

vade@Attitude-Adjuster OpenTimelineIO-Swift-Bindings % swift test               
warning: 'opentimelineio-swift-bindings': Invalid Exclude '/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentime/OpentimeConfig.cmake.in': File not found.
warning: 'opentimelineio-swift-bindings': Invalid Exclude '/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/OpentimelineIOConfig.cmake.in': File not found.
Building for debugging...
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/externalReference.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/externalReference.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/mediaReference.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/clip.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/clip.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/item.h:7:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/composable.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/CORE_VERSION_MAP.cpp:13:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/typeRegistry.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/composable.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/composable.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/effect.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/effect.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
[3/49] Compiling opentime.mm
error: fatalError
vade commented 9 months ago

Im an ass, and my submodules weren't fully recursively initialized.

jminor commented 9 months ago

You're not alone! This comes up quite often, and not only with this package.

If anyone has any suggestions about how the build could check for this and give a helpful message, we'd love to hear them :)