HoerTech-gGmbH / tascar

GNU General Public License v2.0
34 stars 4 forks source link

Failing unit-test #11

Closed vpKumaravel closed 7 months ago

vpKumaravel commented 7 months ago

Hello!

I have installed tascar on my macOS Sonoma 14.2.1. When I ran the unit-tests to ensure everything works well, I get the following error:

clang:error: no such file or directory: '.../libtascar/build/libtascar.so'

It seems like the format issue (between .so and .dylib files) but I look forward to your feedback on this.

Thanks!

Cheers, Velu

ps: here is the command terminal history

$ make unit-tests
/Library/Developer/CommandLineTools/usr/bin/make -C libtascar
echo '#define TASCARVER "'0.230.1.3-4b182f7'"' > build/tascarver.h
/Library/Developer/CommandLineTools/usr/bin/make -C external_libs googlemock
git clone https://github.com/google/googletest
Cloning into 'googletest'...
remote: Enumerating objects: 27328, done.
remote: Counting objects: 100% (367/367), done.
remote: Compressing objects: 100% (194/194), done.
remote: Total 27328 (delta 223), reused 211 (delta 153), pack-reused 26961
Receiving objects: 100% (27328/27328), 12.85 MiB | 5.45 MiB/s, done.
Resolving deltas: 100% (20253/20253), done.
(cd googletest && git checkout 31eb5e9b873af4b509be2f77616113007fa0de9d)
Note: switching to '31eb5e9b873af4b509be2f77616113007fa0de9d'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 31eb5e9b chore:  Update version to latest release
mkdir -p build/lib
touch build/lib/.directory
mkdir -p build/include
touch build/include/.directory
echo -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS
-Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include -I/opt/homebrew/include -DISMACOS
cd googletest/googlemock/make && /Library/Developer/CommandLineTools/usr/bin/make
c++ -isystem ../../googletest/include -isystem ../include -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS -g -Wall -Wextra -pthread -c ../test/gmock_test.cc
c++ -isystem ../../googletest/include -isystem ../include -I../../googletest -I.. -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS -g -Wall -Wextra -pthread \
            -c ../src/gmock-all.cc
c++ -isystem ../../googletest/include -isystem ../include -I../../googletest -I.. -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS -g -Wall -Wextra -pthread \
            -c ../../googletest/src/gtest-all.cc
c++ -isystem ../../googletest/include -isystem ../include -I../../googletest -I.. -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS -g -Wall -Wextra -pthread \
            -c ../src/gmock_main.cc
ar rv gmock_main.a gmock-all.o gtest-all.o gmock_main.o
ar: creating archive gmock_main.a
a - gmock-all.o
a - gtest-all.o
a - gmock_main.o
c++ -isystem ../../googletest/include -isystem ../include -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS -g -Wall -Wextra -pthread -lpthread gmock_test.o gmock_main.a -o gmock_test
cp googletest/googlemock/make/gmock_main.a build/lib/libgmock_main.a
cp -a googletest/googletest/include/gtest build/include/
cp -a googletest/googlemock/include/gmock build/include/
touch build/googlemock.is_installed
/Library/Developer/CommandLineTools/usr/bin/make -C libtascar unit-tests
if test -n "src/audiochunks_unit_tests.cc src/calibsession_unit_tests.cc src/coordinates_unit_tests.cc src/delayline_unit_tests.cc src/fft_unit_tests.cc src/filterclass_unit_tests.cc src/hoa_unit_tests.cc src/ola_unit_tests.cc src/optim_unit_tests.cc src/osc_helper_unit_tests.cc src/scene_unit_tests.cc src/session_reader_unit_tests.cc src/tascar_os_unit_tests.cc src/tscconfig_unit_tests.cc"; then c++ -Wall -Wextra -Wdeprecated-declarations -std=c++17 -pthread -ggdb -fno-finite-math-only -I../external_libs/build/include  -I/opt/homebrew/include -DISMACOS -O3  "-DGTKMM30"   -fpic -I./build -I./include `pkg-config --cflags jack liblo sndfile fftw3f gsl eigen3 samplerate xerces-c` -I../libtascar/src -I../libtascar/build --coverage -o build/unit-test-runner src/audiochunks_unit_tests.cc src/calibsession_unit_tests.cc src/coordinates_unit_tests.cc src/delayline_unit_tests.cc src/fft_unit_tests.cc src/filterclass_unit_tests.cc src/hoa_unit_tests.cc src/ola_unit_tests.cc src/optim_unit_tests.cc src/osc_helper_unit_tests.cc src/scene_unit_tests.cc src/session_reader_unit_tests.cc src/tascar_os_unit_tests.cc src/tscconfig_unit_tests.cc  -L/opt/homebrew/lib -L./ -L../libtascar/build  ../libtascar/build/libtascar.so -L../external_libs/build/lib  `pkg-config --libs jack liblo sndfile fftw3f gsl eigen3 samplerate xerces-c` -ldl -lgmock_main -lpthread; fi
clang: error: no such file or directory: '../libtascar/build/libtascar.so'
make[1]: *** [build/unit-test-runner] Error 1
make: *** [libtascar-subdir-unit-tests] Error 2
gisogrimm commented 7 months ago

This is fixed with commit 417b13d6a11ec04efb452ef7aad6e527d14a8135