-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"make test" fails if "make install" is not done #204
Comments
Hi!
Thank you so much for the packaging efforts!
This is expected. Many SAIL tests load codecs from the expected
installation path in /use/local/lib/sail/ so it's required to install SAIL
before running tests.
If you're compiling and running tests locally without using pbuilder, you
can always uninstall SAIL afterwards with
sudo xargs rm -v < install_manifest.txt
чт, 14 дек. 2023 г., 00:39 sudipm-mukherjee ***@***.***>:
… As part of make test, its trying to find codes in
/usr/local/lib/sail/codecs but if make test is done before make install
then the codecs are not found and the test fails.
SAIL: [D] [context_private.c:781] Initialized in 0 ms.
Error: /build/sail.n/tests/bindings/c++/load_options.cpp:45: assertion failed: codecs.size() > 0U
Error: child killed by signal 6 (Aborted)
/bindings/c++/load-options/copy [ ERROR ]
SAIL: [D] [context_private.c:58] Allocated new global context mutex
SAIL: [D] [context_private.c:206] Allocated new context 0x55b5f205e6e0
SAIL: [I] [context_private.c:710] Version: 0.9.0
SAIL: [I] [context_private.c:715] Build type: Standalone
SAIL: [I] [context_private.c:721] Static build: no
SAIL: [I] [context_private.c:727] Combine codecs: no
SAIL: [I] [context_private.c:731] Thread-safe: yes
SAIL: [I] [context_private.c:737] SAIL_THIRD_PARTY_CODECS_PATH: enabled
SAIL: [D] [context_private.c:663] SAIL_CODECS_PATH environment variable is not set. Loading codecs from '/usr/local/lib/sail/codecs'
SAIL: [D] [context_private.c:164] SAIL_THIRD_PARTY_CODECS_PATH environment variable is not set. Not loading codecs from it
SAIL: [D] [context_private.c:352] Optional LIB directory '/usr/local/lib/sail/codecs/lib' doesn't exist, so not updating LD_LIBRARY_PATH with it
SAIL: [D] [context_private.c:462] Enumerating codecs in '/usr/local/lib/sail/codecs'
SAIL: [E] [context_private.c:518] Failed to list files in '/usr/local/lib/sail/codecs': No such file or directory
SAIL: [E] [context_private.c:705]
*** No codecs were found. You could try the following: ***
*** - Inspect the error messages printed in stderr. ***
*** - Check the installation directory. ***
Steps to reproduce:
1. cmake -DSAIL_BUILD_APPS=OFF -DSAIL_BUILD_EXAMPLES=OFF
2. make
3. make test
—
Reply to this email directly, view it on GitHub
<#204>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGDS3RMR727D5YSHJ6OWL3YJIN7TAVCNFSM6AAAAABAT25TNWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DANJQG4ZDAOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Few points:
Anyways, I have now disabled running Also, fyi (not related to this issue) - I have excluded the debian folder while importing the source and have almost rewritten it. Only taken the library names and part of description. |
For (2) the path is not hardcoded and is configurable with |
For (1) as a workaround it's possible to combine codecs into a single library with |
As part of
make test
, its trying to find codes in/usr/local/lib/sail/codecs
but ifmake test
is done beforemake install
then the codecs are not found and the test fails.Steps to reproduce:
The text was updated successfully, but these errors were encountered: