xiph / opus

Modern audio compression for the internet.
https://opus-codec.org/
Other
2.29k stars 611 forks source link

ctest can not run well #245

Closed dttlgotv closed 2 years ago

dttlgotv commented 2 years ago

I got the neweset opus code and want to run in window. Building is well, but ctest can not run well.

  1. cmake .. -A Win32 -DOPUS_BUILD_TESTING=ON fatal: No names found, cannot describe anything. CMake Warning at cmake/OpusPackageVersion.cmake:61 (message): Could not get package version. Call Stack (most recent call first): CMakeLists.txt:5 (get_package_version)

-- Opus project version: 0 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.17763. -- Performing Test VLA_SUPPORTED -- failed to compile -- Check SIMD support by compiler -- The following features have been enabled:

-- The following OPTIONAL packages have been found:

-- The following features have been disabled:

  1. cmake --build . 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642 版权所有(C) Microsoft Corporation。保留所有权利。

    Checking Build System Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt opus.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\opus.lib Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_api.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_api.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_decode.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_decode.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_encode.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_encode.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt test_opus_padding.vcxproj -> C:\AiAudio\eeo_opus\build\Debug\test_opus_padding.exe Building Custom Rule C:/AiAudio/eeo_opus/CMakeLists.txt

  2. ctest Test project C:/AiAudio/eeo_opus/build Start 1: test_opus_decode Test not available without configuration. (Missing "-C "?) 1/4 Test #1: test_opus_decode .................Not Run 0.00 sec Start 2: test_opus_padding Test not available without configuration. (Missing "-C "?) 2/4 Test #2: test_opus_padding ................Not Run 0.00 sec Start 3: test_opus_api Test not available without configuration. (Missing "-C "?) 3/4 Test #3: test_opus_api ....................Not Run 0.00 sec Start 4: test_opus_encode Test not available without configuration. (Missing "-C "?) 4/4 Test #4: test_opus_encode .................Not Run 0.00 sec

0% tests passed, 4 tests failed out of 4

Total Test time (real) = 0.02 sec

The following tests FAILED: 1 - test_opus_decode (Not Run) 2 - test_opus_padding (Not Run) 3 - test_opus_api (Not Run) 4 - test_opus_encode (Not Run) Errors while running CTest Output from these tests are in: C:/AiAudio/eeo_opus/build/Testing/Temporary/LastTest.log Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

LastTest.log is Start testing: Feb 21 16:04 ?D1ú±ê×?ê±??

Test not available without configuration. (Missing "-C "?) 1/4 Testing: test_opus_decode 1/4 Test: test_opus_decode Command: "NOT_AVAILABLE" Directory: C:/AiAudio/eeo_opus/build "test_opus_decode" start time: Output:

Test time = 0.00 sec ---------------------------------------------------------- Test Passed. "test_opus_decode" end time: Feb 21 16:04 ?D1ú±ê×?ê±?? "test_opus_decode" time elapsed: 00:00:00 ---------------------------------------------------------- Test not available without configuration. (Missing "-C "?) 2/4 Testing: test_opus_padding 2/4 Test: test_opus_padding Command: "NOT_AVAILABLE" Directory: C:/AiAudio/eeo_opus/build "test_opus_padding" start time: Output: ---------------------------------------------------------- Test time = 0.00 sec ---------------------------------------------------------- Test Passed. "test_opus_padding" end time: Feb 21 16:04 ?D1ú±ê×?ê±?? "test_opus_padding" time elapsed: 00:00:00 ---------------------------------------------------------- Test not available without configuration. (Missing "-C "?) 3/4 Testing: test_opus_api 3/4 Test: test_opus_api Command: "NOT_AVAILABLE" Directory: C:/AiAudio/eeo_opus/build "test_opus_api" start time: Output: ---------------------------------------------------------- Test time = 0.00 sec ---------------------------------------------------------- Test Passed. "test_opus_api" end time: Feb 21 16:04 ?D1ú±ê×?ê±?? "test_opus_api" time elapsed: 00:00:00 ---------------------------------------------------------- Test not available without configuration. (Missing "-C "?) 4/4 Testing: test_opus_encode 4/4 Test: test_opus_encode Command: "NOT_AVAILABLE" Directory: C:/AiAudio/eeo_opus/build "test_opus_encode" start time: Output: ---------------------------------------------------------- Test time = 0.00 sec ---------------------------------------------------------- Test Passed. "test_opus_encode" end time: Feb 21 16:04 ?D1ú±ê×?ê±?? "test_opus_encode" time elapsed: 00:00:00 ---------------------------------------------------------- End testing: Feb 21 16:04 ?D1ú±ê×?ê±??
xnorpx commented 2 years ago

For multiconfig builds you need to specify which config you built.

Example:

cd opus mkdir build cd build cmake .. -DOPUS_BUILD_TESTING=ON cmake --build . -j 8 --config Debug ctest -C Debug -j 4

Relevant issue, https://gitlab.kitware.com/cmake/cmake/-/issues/20283

dttlgotv commented 2 years ago

For multiconfig builds you need to specify which config you built.

Example:

cd opus mkdir build cd build cmake .. -DOPUS_BUILD_TESTING=ON cmake --build . -j 8 --config Debug ctest -C Debug -j 4

Relevant issue, https://gitlab.kitware.com/cmake/cmake/-/issues/20283

Got! Thanks a lot.