Package Details: lib32-chromaprint 1.5.1-2

Git Clone URL: https://aur.archlinux.org/lib32-chromaprint.git (read-only, click to copy)
Package Base: lib32-chromaprint
Description: Library for extracting fingerprints from any audio source (32-bit)
Upstream URL: https://acoustid.org/chromaprint
Licenses: MIT, LGPL2.1
Submitter: orumin
Maintainer: rodrigo21
Last Packager: rodrigo21
Votes: 7
Popularity: 0.000000
First Submitted: 2016-06-06 07:13 (UTC)
Last Updated: 2023-03-22 00:25 (UTC)

Latest Comments

1 2 Next › Last »

MarsSeed commented on 2023-07-17 18:13 (UTC)

This package is not used anymore by any dependents.

The lib32 gstreamer packages have dropped support, as there isn't any existing use case (no bin32-only application wants to create an acoustic fingerprint for music identification).

So I suggest this package is safe to delete.

Arbyste commented on 2023-02-18 17:41 (UTC)

@VeryNotOrange you shouldn't be removing the endif(). Line 40 is unchanged, I just included it in my code below for completeness. Essentially, all you're doing is changing all instances of "11" to "14" in that section.

This is in the CMakeLists.txt file in the root directory.

VeryNotOrange commented on 2023-02-09 04:36 (UTC) (edited on 2023-02-09 04:57 (UTC) by VeryNotOrange)

@scatherinch, how did you actually patch it with what Arbyste posted? There are two CMakeList.txt files: one in the main directory, and another in the tests directory. Whichever one I look at it seems that Arbyste's code couldn't replace lines 37 to 40 without creating a syntax error with the endif() it removes.

scatherinch commented on 2023-02-09 04:14 (UTC)

alright, patching it works. thanks for the advice @Arbyste

scatherinch commented on 2023-02-09 03:23 (UTC)

how can i build this? i need it for something and i'm getting errors spat at at me. i used to be able to build it but something has clearly been broken.

Arbyste commented on 2023-02-04 14:07 (UTC)

If you don't want to skip the tests, you can fix this by patching CMakeLists.txt. You need to replace lines 37 to 40 with:

check_cxx_compiler_flag("-std=c++14" COMPILER_SUPPORTS_CXX14)
if(COMPILER_SUPPORTS_CXX14)
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif()

If you're not sure how to make a patch, this should help: https://wiki.archlinux.org/title/Patching_packages

glorantv commented on 2023-01-31 03:02 (UTC)

@zfkerr, I got around that issue by disabling building the tests.

SenileAnimal commented on 2023-01-27 00:18 (UTC)

Install fails for me. Issues look a lot like zfkerr's. Errors: https://pastebin.com/B3k8WHvU Full: https://pastebin.com/nAsLwD9q

Tried re-installing all depends, but no joy.

zfkerr commented on 2023-01-23 09:18 (UTC) (edited on 2023-01-23 09:22 (UTC) by zfkerr)

In file included from /usr/include/gtest/gtest-printers.h:115,
             from /usr/include/gtest/gtest-matchers.h:48,
             from /usr/include/gtest/internal/gtest-death-test-internal.h:47,
             from /usr/include/gtest/gtest-death-test.h:43,
             from /usr/include/gtest/gtest.h:65:
/usr/include/gtest/internal/gtest-internal.h:636:58: error: wrong number of template arguments (0, should be 1)
  636 |   typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
  |                                                          ^
In file included from /usr/include/c++/12.2.1/string:48,
             from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
             from /usr/include/c++/12.2.1/bits/ios_base.h:41,
             from /usr/include/c++/12.2.1/iomanip:40,
             from /usr/include/gtest/gtest.h:54:
/usr/include/c++/12.2.1/bits/stl_function.h:403:12: note: provided for ‘template<class _Tp> struct std::less’
  403 |     struct less : public binary_function<_Tp, _Tp, bool>
  |            ^~~~
/usr/include/gtest/internal/gtest-internal.h:636:59: error: template argument 3 is invalid
  636 |   typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
  |                                                           ^~
/usr/include/gtest/internal/gtest-internal.h: In member function ‘bool testing::internal::TypedTestSuitePState::AddTestName(const char*, int, const char*, const char*)’:
/usr/include/gtest/internal/gtest-internal.h:613:23: error: request for member ‘insert’ in ‘((testing::internal::TypedTestSuitePState*)this)->testing::internal::TypedTestSuitePState::registered_tests_’, which is of non-class type ‘testing::internal::TypedTestSuitePState::RegisteredTestsMap’ {aka ‘int’}
613 |     registered_tests_.insert(
  |                       ^~~~~~
/usr/include/gtest/internal/gtest-internal.h: In member function ‘bool testing::internal::TypedTestSuitePState::TestExists(const std::string&) const’:
/usr/include/gtest/internal/gtest-internal.h:619:30: error: request for member ‘count’ in ‘((const testing::internal::TypedTestSuitePState*)this)->testing::internal::TypedTestSuitePState::registered_tests_’, which is of non-class type ‘const testing::internal::TypedTestSuitePState::RegisteredTestsMap’ {aka ‘const int’}
  619 |     return registered_tests_.count(test_name) > 0;
  |                              ^~~~~
/usr/include/gtest/internal/gtest-internal.h: In member function ‘const testing::internal::CodeLocation& testing::internal::TypedTestSuitePState::GetCodeLocation(const std::string&) const’:
/usr/include/gtest/internal/gtest-internal.h:623:40: error: qualified-id in declaration before ‘it’
  623 |     RegisteredTestsMap::const_iterator it = registered_tests_.find(test_name);
  |                                        ^~
/usr/include/gtest/internal/gtest-internal.h:624:5: error: ‘it’ was not declared in this scope; did you mean ‘int’?
  624 |     GTEST_CHECK_(it != registered_tests_.end());
  |     ^~~~~~~~~~~~
/usr/include/gtest/internal/gtest-internal.h:624:5: error: request for member ‘end’ in ‘((const testing::internal::TypedTestSuitePState*)this)->testing::internal::TypedTestSuitePState::registered_tests_’, which is of non-class type ‘const testing::internal::TypedTestSuitePState::RegisteredTestsMap’ {aka ‘const int’}
  624 |     GTEST_CHECK_(it != registered_tests_.end());
  |     ^~~~~~~~~~~~
/usr/include/gtest/internal/gtest-internal.h:625:12: error: ‘it’ was not declared in this scope; did you mean ‘int’?
  625 |     return it->second;
  |            ^~
      |            int
In file included from /usr/src/googletest/src/gtest-all.cc:48:
/usr/src/googletest/src/gtest-typed-test.cc: In member function ‘const char* testing::internal::TypedTestSuitePState::VerifyRegisteredTestNames(const char*, const char*, int, const char*)’:
/usr/src/googletest/src/gtest-typed-test.cc:61:46: error: qualified-id in declaration before ‘RegisteredTestIter’
   61 |   typedef RegisteredTestsMap::const_iterator RegisteredTestIter;
  |                                              ^~~~~~~~~~~~~~~~~~
/usr/src/googletest/src/gtest-typed-test.cc:77:27: error: request for member ‘count’ in ‘((testing::internal::TypedTestSuitePState*)this)->testing::internal::TypedTestSuitePState::registered_tests_’, which is of non-class type ‘testing::internal::TypedTestSuitePState::RegisteredTestsMap’ {aka ‘int’}
   77 |     if (registered_tests_.count(name) != 0) {
  |                           ^~~~~
/usr/src/googletest/src/gtest-typed-test.cc:85:8: error: ‘RegisteredTestIter’ was not declared in this scope; did you mean ‘RegisteredTestsMap’?
   85 |   for (RegisteredTestIter it = registered_tests_.begin();
  |        ^~~~~~~~~~~~~~~~~~
  |        RegisteredTestsMap
/usr/src/googletest/src/gtest-typed-test.cc:86:8: error: ‘it’ was not declared in this scope; did you mean ‘Lt’?
   86 |        it != registered_tests_.end(); ++it) {
  |        ^~
  |        Lt
/usr/src/googletest/src/gtest-typed-test.cc:86:32: error: request for member ‘end’ in ‘((testing::internal::TypedTestSuitePState*)this)->testing::internal::TypedTestSuitePState::registered_tests_’, which is of non-class type ‘testing::internal::TypedTestSuitePState::RegisteredTestsMap’ {aka ‘int’}
   86 |        it != registered_tests_.end(); ++it) {
      |                                ^~~
cd /tmp/makepkg/lib32-chromaprint/src/chromaprint-1.5.1/build/src && /usr/bin/cmake -E cmake_symlink_library libchromaprint.so.1.5.1 libchromaprint.so.1 libchromaprint.so
make[2]: Leaving directory '/tmp/makepkg/lib32-chromaprint/src/chromaprint-1.5.1/build'
[ 45%] Built target chromaprint
make[2]: *** [tests/CMakeFiles/gtest.dir/build.make:76: tests/CMakeFiles/gtest.dir/usr/src    /googletest/src/gtest-all.cc.o] Error 1
make[2]: Leaving directory '/tmp/makepkg/lib32-chromaprint/src/chromaprint-1.5.1/build'
make[1]: *** [CMakeFiles/Makefile2:227: tests/CMakeFiles/gtest.dir/all] Error 2
make[1]: Leaving directory '/tmp/makepkg/lib32-chromaprint/src/chromaprint-1.5.1/build'
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/tmp/makepkg/lib32-chromaprint/src/chromaprint-1.5.1/build'
==> ERROR: A failure occurred in build().
Aborting...

misharash commented on 2022-01-05 10:20 (UTC) (edited on 2022-01-05 10:58 (UTC) by misharash)

If you fail to build with issues like that:

/usr/bin/ld: warning: libvpx.so.6, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib32/libavcodec.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libx264.so.161, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib32/libavcodec.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib32/libavcodec.so: undefined reference to `vpx_codec_decode'

try reinstalling lib32-libffmpeg which owns the shared object.