videolan / videolan/libspatialaudio
CMake: Static build fails linking tests
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 317
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
See this snippet from VideoLAN CI for the iOS build:
[46/46] Linking CXX executable tests/TestRenderer.app/TestRenderer
FAILED: tests/TestRenderer.app/TestRenderer
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -mios-version-min=9.0 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -Werror=partial-availability -I/Users/videolanci/builds/x7XUHK5B/0/videolan/vlc/contrib/armv7-iphoneos/include -O2 -g -DNDEBUG -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -miphoneos-version-min=9.0 -Wl,-headerpad_max_install_names -mios-version-min=9.0 -mios-version-min=9.0 -arch armv7 -L/Users/videolanci/builds/x7XUHK5B/0/videolan/vlc/contrib/armv7-iphoneos/lib tests/CMakeFiles/TestRenderer.dir/TestRenderer.cpp.o -o tests/TestRenderer.app/TestRenderer libspatialaudio.a /Users/videolanci/builds/x7XUHK5B/0/videolan/vlc/contrib/armv7-iphoneos/lib/libmysofa.a && :
Undefined symbols for architecture armv7:
"_inflate", referenced from:
_gunzip in libmysofa.a(gunzip.c.o)
"_inflateEnd", referenced from:
_gunzip in libmysofa.a(gunzip.c.o)
"_inflateInit_", referenced from:
_gunzip in libmysofa.a(gunzip.c.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
make: *** [.spatialaudio] Error 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CMake configuration for the static test target and the link command for tests/TestRenderer.cpp. Reproduce the iOS armv7 build, then trace how libmysofa.a's compression dependency is supplied. Done means the static TestRenderer target links successfully without undefined inflate symbols.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake, cpp
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100