Skip to content
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

[Issue] Unable to build on debian. #106

Open
apoorv569 opened this issue Feb 12, 2024 · 3 comments
Open

[Issue] Unable to build on debian. #106

apoorv569 opened this issue Feb 12, 2024 · 3 comments
Labels
Bug Something isn't working

Comments

@apoorv569
Copy link

Trying to build on Debian 12 using the CMake build system instead of Just, I get error.

Here is the command I run and the output (error),

$ cmake -Bbuild -DJUCE_BUILD_EXAMPLES=OFF -DJUCE_BUILD_EXTRAS=ON
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:10 (find_package):
  Could not find a package configuration file provided by "JUCE" with any of
  the following names:

    JUCEConfig.cmake
    juce-config.cmake

  Add the installation prefix of "JUCE" to CMAKE_PREFIX_PATH or set
  "JUCE_DIR" to a directory containing one of the above files.  If "JUCE"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/apoorv/repos/PeakEater/build/CMakeFiles/CMakeOutput.log".

After cloning the repo I did run git submodule update --init --recursive.

@apoorv569 apoorv569 added the Bug Something isn't working label Feb 12, 2024
@derkrasseleo
Copy link

derkrasseleo commented Feb 27, 2024

I tried building it with cmake on my arch system and it failed at Linking CXX executable VERSION_artefacts/Standalone/VERSION

Full Log

cmake --build .
[  2%] Built target clap_juce_extensions
[ 11%] Built target AudioPluginData
[ 62%] Built target VERSION
[ 63%] Linking CXX executable VERSION_artefacts/Standalone/VERSION
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacReader::FlacReader(juce::InputStream*)':
juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0xac): undefined reference to `FLAC__stream_decoder_new'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x105): undefined reference to `FLAC__stream_decoder_init_stream'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x13b): undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x17f): undefined reference to `FLAC__stream_decoder_process_until_end_of_stream'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x1a6): undefined reference to `FLAC__stream_decoder_reset'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x1b6): undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacReader::~FlacReader()':
juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderD2Ev[_ZN4juce10FlacReaderD5Ev]+0x26): undefined reference to `FLAC__stream_decoder_delete'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacReader::readSamples(int* const*, int, int, long long, int)::{lambda(long long)#1}::operator()(long long) const':
juce_audio_formats.cpp:(.text._ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx]+0x106): undefined reference to `FLAC__stream_decoder_seek_absolute'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx]+0x150): undefined reference to `FLAC__stream_decoder_process_single'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacWriter::FlacWriter(juce::OutputStream*, double, unsigned int, unsigned int, int)':
juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0xd9): undefined reference to `FLAC__stream_encoder_new'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x10a): undefined reference to `FLAC__stream_encoder_set_compression_level'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x12c): undefined reference to `FLAC__stream_encoder_set_do_mid_side_stereo'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x14e): undefined reference to `FLAC__stream_encoder_set_loose_mid_side_stereo'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x167): undefined reference to `FLAC__stream_encoder_set_channels'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x18e): undefined reference to `FLAC__stream_encoder_set_bits_per_sample'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x1b0): undefined reference to `FLAC__stream_encoder_set_sample_rate'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x1c5): undefined reference to `FLAC__stream_encoder_set_blocksize'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x1da): undefined reference to `FLAC__stream_encoder_set_do_escape_coding'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x210): undefined reference to `FLAC__stream_encoder_init_stream'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacWriter::~FlacWriter()':
juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterD2Ev[_ZN4juce10FlacWriterD5Ev]+0x32): undefined reference to `FLAC__stream_encoder_finish'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterD2Ev[_ZN4juce10FlacWriterD5Ev]+0x6f): undefined reference to `FLAC__stream_encoder_delete'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacWriter::write(int const**, int)':
juce_audio_formats.cpp:(.text._ZN4juce10FlacWriter5writeEPPKii[_ZN4juce10FlacWriter5writeEPPKii]+0x1aa): undefined reference to `FLAC__stream_encoder_process'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::OggReader(juce::InputStream*)':
juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x13c): undefined reference to `ov_open_callbacks'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x162): undefined reference to `ov_info'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x17b): undefined reference to `ov_comment'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x29c): undefined reference to `ov_pcm_total'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::~OggReader()':
juce_audio_formats.cpp:(.text._ZN4juce9OggReaderD2Ev[_ZN4juce9OggReaderD5Ev]+0x26): undefined reference to `ov_clear'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::addMetadataItem(juce::OggVorbisNamespace::vorbis_comment*, char const*, char const*)':
juce_audio_formats.cpp:(.text._ZN4juce9OggReader15addMetadataItemEPNS_18OggVorbisNamespace14vorbis_commentEPKcS5_[_ZN4juce9OggReader15addMetadataItemEPNS_18OggVorbisNamespace14vorbis_commentEPKcS5_]+0x3c): undefined reference to `vorbis_comment_query'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::readSamples(int* const*, int, int, long long, int)::{lambda(long long)#1}::operator()(long long) const':
juce_audio_formats.cpp:(.text._ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx]+0xad): undefined reference to `ov_pcm_tell'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx]+0xe5): undefined reference to `ov_pcm_seek'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx]+0x136): undefined reference to `ov_read_float'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::OggWriter(juce::OutputStream*, double, unsigned int, unsigned int, int, juce::StringPairArray const&)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0xd2): undefined reference to `vorbis_info_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x13a): undefined reference to `vorbis_encode_init_vbr'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x15c): undefined reference to `vorbis_comment_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x2ba): undefined reference to `vorbis_analysis_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x2e0): undefined reference to `vorbis_block_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x304): undefined reference to `ogg_stream_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x33d): undefined reference to `vorbis_analysis_headerout'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x35a): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x374): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x38e): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x3b2): undefined reference to `ogg_stream_flush'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::~OggWriter()':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x47): undefined reference to `ogg_stream_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x59): undefined reference to `vorbis_block_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x6b): undefined reference to `vorbis_dsp_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x7d): undefined reference to `vorbis_comment_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x8f): undefined reference to `vorbis_info_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0xc2): undefined reference to `vorbis_info_clear'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::write(int const**, int)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriter5writeEPPKii[_ZN4juce9OggWriter5writeEPPKii]+0x4e): undefined reference to `vorbis_analysis_buffer'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::writeSamples(int)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x23): undefined reference to `vorbis_analysis_wrote'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x3f): undefined reference to `vorbis_analysis'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x51): undefined reference to `vorbis_bitrate_addblock'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x74): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x92): undefined reference to `ogg_stream_pageout'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x12f): undefined reference to `ogg_page_eos'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x161): undefined reference to `vorbis_bitrate_flushpacket'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x18e): undefined reference to `vorbis_analysis_blockout'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::addMetadata(juce::StringPairArray const&, char const*, char const*)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriter11addMetadataERKNS_15StringPairArrayEPKcS5_[_ZN4juce9OggWriter11addMetadataERKNS_15StringPairArrayEPKcS5_]+0x95): undefined reference to `vorbis_comment_add_tag'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [CMakeFiles/VERSION_Standalone.dir/build.make:216: VERSION_artefacts/Standalone/VERSION] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:964: CMakeFiles/VERSION_Standalone.dir/all] Fehler 2
make: *** [Makefile:146: all] Fehler 2

@apoorv569
Copy link
Author

I tried building it with cmake on my arch system and it failed at Linking CXX executable VERSION_artefacts/Standalone/VERSION
Full Log

cmake --build .
[  2%] Built target clap_juce_extensions
[ 11%] Built target AudioPluginData
[ 62%] Built target VERSION
[ 63%] Linking CXX executable VERSION_artefacts/Standalone/VERSION
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacReader::FlacReader(juce::InputStream*)':
juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0xac): undefined reference to `FLAC__stream_decoder_new'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x105): undefined reference to `FLAC__stream_decoder_init_stream'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x13b): undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x17f): undefined reference to `FLAC__stream_decoder_process_until_end_of_stream'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x1a6): undefined reference to `FLAC__stream_decoder_reset'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderC2EPNS_11InputStreamE[_ZN4juce10FlacReaderC5EPNS_11InputStreamE]+0x1b6): undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacReader::~FlacReader()':
juce_audio_formats.cpp:(.text._ZN4juce10FlacReaderD2Ev[_ZN4juce10FlacReaderD5Ev]+0x26): undefined reference to `FLAC__stream_decoder_delete'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacReader::readSamples(int* const*, int, int, long long, int)::{lambda(long long)#1}::operator()(long long) const':
juce_audio_formats.cpp:(.text._ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx]+0x106): undefined reference to `FLAC__stream_decoder_seek_absolute'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce10FlacReader11readSamplesEPKPiiixiENKUlxE_clEx]+0x150): undefined reference to `FLAC__stream_decoder_process_single'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacWriter::FlacWriter(juce::OutputStream*, double, unsigned int, unsigned int, int)':
juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0xd9): undefined reference to `FLAC__stream_encoder_new'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x10a): undefined reference to `FLAC__stream_encoder_set_compression_level'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x12c): undefined reference to `FLAC__stream_encoder_set_do_mid_side_stereo'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x14e): undefined reference to `FLAC__stream_encoder_set_loose_mid_side_stereo'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x167): undefined reference to `FLAC__stream_encoder_set_channels'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x18e): undefined reference to `FLAC__stream_encoder_set_bits_per_sample'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x1b0): undefined reference to `FLAC__stream_encoder_set_sample_rate'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x1c5): undefined reference to `FLAC__stream_encoder_set_blocksize'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x1da): undefined reference to `FLAC__stream_encoder_set_do_escape_coding'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterC2EPNS_12OutputStreamEdjji[_ZN4juce10FlacWriterC5EPNS_12OutputStreamEdjji]+0x210): undefined reference to `FLAC__stream_encoder_init_stream'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacWriter::~FlacWriter()':
juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterD2Ev[_ZN4juce10FlacWriterD5Ev]+0x32): undefined reference to `FLAC__stream_encoder_finish'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce10FlacWriterD2Ev[_ZN4juce10FlacWriterD5Ev]+0x6f): undefined reference to `FLAC__stream_encoder_delete'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::FlacWriter::write(int const**, int)':
juce_audio_formats.cpp:(.text._ZN4juce10FlacWriter5writeEPPKii[_ZN4juce10FlacWriter5writeEPPKii]+0x1aa): undefined reference to `FLAC__stream_encoder_process'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::OggReader(juce::InputStream*)':
juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x13c): undefined reference to `ov_open_callbacks'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x162): undefined reference to `ov_info'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x17b): undefined reference to `ov_comment'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggReaderC2EPNS_11InputStreamE[_ZN4juce9OggReaderC5EPNS_11InputStreamE]+0x29c): undefined reference to `ov_pcm_total'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::~OggReader()':
juce_audio_formats.cpp:(.text._ZN4juce9OggReaderD2Ev[_ZN4juce9OggReaderD5Ev]+0x26): undefined reference to `ov_clear'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::addMetadataItem(juce::OggVorbisNamespace::vorbis_comment*, char const*, char const*)':
juce_audio_formats.cpp:(.text._ZN4juce9OggReader15addMetadataItemEPNS_18OggVorbisNamespace14vorbis_commentEPKcS5_[_ZN4juce9OggReader15addMetadataItemEPNS_18OggVorbisNamespace14vorbis_commentEPKcS5_]+0x3c): undefined reference to `vorbis_comment_query'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggReader::readSamples(int* const*, int, int, long long, int)::{lambda(long long)#1}::operator()(long long) const':
juce_audio_formats.cpp:(.text._ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx]+0xad): undefined reference to `ov_pcm_tell'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx]+0xe5): undefined reference to `ov_pcm_seek'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx[_ZZN4juce9OggReader11readSamplesEPKPiiixiENKUlxE_clEx]+0x136): undefined reference to `ov_read_float'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::OggWriter(juce::OutputStream*, double, unsigned int, unsigned int, int, juce::StringPairArray const&)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0xd2): undefined reference to `vorbis_info_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x13a): undefined reference to `vorbis_encode_init_vbr'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x15c): undefined reference to `vorbis_comment_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x2ba): undefined reference to `vorbis_analysis_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x2e0): undefined reference to `vorbis_block_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x304): undefined reference to `ogg_stream_init'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x33d): undefined reference to `vorbis_analysis_headerout'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x35a): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x374): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x38e): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterC2EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE[_ZN4juce9OggWriterC5EPNS_12OutputStreamEdjjiRKNS_15StringPairArrayE]+0x3b2): undefined reference to `ogg_stream_flush'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::~OggWriter()':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x47): undefined reference to `ogg_stream_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x59): undefined reference to `vorbis_block_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x6b): undefined reference to `vorbis_dsp_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x7d): undefined reference to `vorbis_comment_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0x8f): undefined reference to `vorbis_info_clear'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriterD2Ev[_ZN4juce9OggWriterD5Ev]+0xc2): undefined reference to `vorbis_info_clear'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::write(int const**, int)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriter5writeEPPKii[_ZN4juce9OggWriter5writeEPPKii]+0x4e): undefined reference to `vorbis_analysis_buffer'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::writeSamples(int)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x23): undefined reference to `vorbis_analysis_wrote'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x3f): undefined reference to `vorbis_analysis'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x51): undefined reference to `vorbis_bitrate_addblock'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x74): undefined reference to `ogg_stream_packetin'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x92): undefined reference to `ogg_stream_pageout'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x12f): undefined reference to `ogg_page_eos'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x161): undefined reference to `vorbis_bitrate_flushpacket'
/usr/bin/ld: juce_audio_formats.cpp:(.text._ZN4juce9OggWriter12writeSamplesEi[_ZN4juce9OggWriter12writeSamplesEi]+0x18e): undefined reference to `vorbis_analysis_blockout'
/usr/bin/ld: VERSION_artefacts/libVERSION_SharedCode.a(juce_audio_formats.cpp.o): in function `juce::OggWriter::addMetadata(juce::StringPairArray const&, char const*, char const*)':
juce_audio_formats.cpp:(.text._ZN4juce9OggWriter11addMetadataERKNS_15StringPairArrayEPKcS5_[_ZN4juce9OggWriter11addMetadataERKNS_15StringPairArrayEPKcS5_]+0x95): undefined reference to `vorbis_comment_add_tag'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [CMakeFiles/VERSION_Standalone.dir/build.make:216: VERSION_artefacts/Standalone/VERSION] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:964: CMakeFiles/VERSION_Standalone.dir/all] Fehler 2
make: *** [Makefile:146: all] Fehler 2

Hi, I maintain an AUR package for PeakEater which also doesn't build. Could you share the steps/commands you followed to get where you are?

Apparently it also compainls about PROJECT_VERSION.

@derkrasseleo
Copy link

derkrasseleo commented Feb 28, 2024

Just noticed you're the same person as on the aur :)

I just went through the build steps provided in the 0.6.2 branch/tag of this repo..
https://github.com/vvvar/PeakEater/tree/v0.6.2?tab=readme-ov-file#build

Also, using that tag, the version builds fine. (without the checking out step)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants