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

The linker cannot find some libraries #1449

Open
Joelcgx opened this issue Nov 29, 2024 · 0 comments
Open

The linker cannot find some libraries #1449

Joelcgx opened this issue Nov 29, 2024 · 0 comments

Comments

@Joelcgx
Copy link

Joelcgx commented Nov 29, 2024

i have ffmpeg 2.8.12
I'm trying to cross-compile for Android from Ubuntu x86_64, when linking the libraries it fails (sorry for my bad English), I've been trying for over a week and I can't, I would appreciate it if you could help me, maybe I'm doing something wrong.

joel@joel-Ubuntu:~/Escritorio/essentia$ CC=aarch64-linux-android30-clang CXX=aarch64-linux-android30-clang++ python3 waf configure --cross-compile-android --lightweight=libsamplerate --fft=KISS --prefix=/home/joel/Escritorio/joel
/home/joel/Escritorio/essentia/wscript:211: SyntaxWarning: invalid escape sequence '\w'
  """
Setting top to                           : /home/joel/Escritorio/essentia 
Setting out to                           : /home/joel/Escritorio/essentia/build 
→ configuring the project in /home/joel/Escritorio/essentia
→ Building in release mode
→ Cross-compiling for Android ARM
Checking for program 'clang'             : aarch64-linux-android30-clang 
Checking for program 'clang++'           : aarch64-linux-android30-clang++ 
Checking for 'g++' (C++ compiler)        : not found 
Checking for 'clang++' (C++ compiler)    : aarch64-linux-android30-clang++ 
Checking for 'gcc' (C compiler)          : not found 
Checking for 'clang' (C compiler)        : aarch64-linux-android30-clang 

=======================Lightweight Mode : Ignoring ALL libraries except ['', 'libsamplerate'] =======================

→ Searching *.pc pkg-config files for dependencies in /usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/lib/pkgconfig: and default paths
Checking for program 'pkg-config'        : /bin/pkg-config 
Checking for 'eigen3'                    : yes 
Checking for 'samplerate'                : yes 

================================ CONFIGURATION SUMMARY ================================
- using KISS for FFT

- FFmpeg (or LibAv on debian/ubuntu) seems to be missing.
  The following algorithms will be ignored: ['AudioLoader', 'MonoLoader', 'EqloudLoader', 'EasyLoader', 'MonoWriter', 'AudioWriter']

- libsamplerate (SRC) detected!
  The following algorithms will be included: ['Resample']

- TagLib seems to be missing.
  The following algorithms will be ignored: ['MetadataReader', 'MusicExtractor', 'FreesoundExtractor']

- libyaml seems to be missing.
  The following algorithms will be ignored: ['YamlInput', 'YamlOutput']

- Essentia is configured without Gaia2.
  The following algorithms will be ignored: ['GaiaTransform', 'MusicExtractorSVM']
  Examples requiring Gaia2 will be ignored

- Essentia is configured without Chromaprint.
  The following algorithms will be ignored: ['Chromaprinter']
- Essentia is configured without Tensorflow.
  The following algorithms will be ignored: ['TensorflowPredict', 'TensorflowPredictMusiCNN', 'TensorflowPredictVGGish', 'TensorflowPredictTempoCNN', 'TensorflowPredictCREPE', 'PitchCREPE', 'TempoCNN', 'TensorflowPredictEffnetDiscogs', 'TensorflowPredict2D', 'TensorflowPredictFSDSINet', 'TensorflowPredictMAEST']
Building all the algorithms
Ignoring the following algorithms: FFTWComplex, IFFTA, TensorflowPredict, TensorflowPredict2D, EqloudLoader, IFFTWComplex, MusicExtractor, TensorflowPredictCREPE, YamlInput, TensorflowPredictEffnetDiscogs, FFTA, TempoCNN, YamlOutput, TensorflowPredictTempoCNN, TensorflowPredictMAEST, MonoWriter, PitchCREPE, IFFTAComplex, MetadataReader, EasyLoader, AudioLoader, TensorflowPredictFSDSINet, FFTAComplex, GaiaTransform, Chromaprinter, TensorflowPredictVGGish, MusicExtractorSVM, TensorflowPredictMusiCNN, FFTW, FreesoundExtractor, IFFTW, AudioWriter, MonoLoader
Created algorithms registration file

---------------------------------------------------------------------------------------
- Building shared library
=======================================================================================

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
```bash
joel@joel-Ubuntu:~/Escritorio/essentia$ CC=aarch64-linux-android30-clang CXX=aarch64-linux-android30-clang++ python3 waf configure --cross-compile-android --lightweight=libsamplerate,libav --fft=KISS --prefix=/home/joel/Escritorio/joel
/home/joel/Escritorio/essentia/wscript:211: SyntaxWarning: invalid escape sequence '\w'
  \"""
Setting top to                           : /home/joel/Escritorio/essentia 
Setting out to                           : /home/joel/Escritorio/essentia/build 
→ configuring the project in /home/joel/Escritorio/essentia
→ Building in release mode
→ Cross-compiling for Android ARM
Checking for program 'clang'             : aarch64-linux-android30-clang 
joel@joel-Ubuntu:~/Escritorio/essentia$ python3 waf build -p -j8
/home/joel/Escritorio/essentia/wscript:211: SyntaxWarning: invalid escape sequence '\w'
  \"""
Waf: Entering directory `/home/joel/Escritorio/essentia/build'
→ building from /home/joel/Escritorio/essentia
→ building from /home/joel/Escritorio/essentia/src
Building all the algorithms
Ignoring the following algorithms: GaiaTransform, MusicExtractorSVM, TensorflowPredictEffnetDiscogs, FFTA, FFTWComplex, TensorflowPredictMAEST, TensorflowPredict2D, PitchCREPE, TensorflowPredictFSDSINet, Chromaprinter, MetadataReader, TensorflowPredict, YamlOutput, IFFTW, TensorflowPredictMusiCNN, FreesoundExtractor, IFFTAComplex, TensorflowPredictTempoCNN, FFTW, MusicExtractor, YamlInput, FFTAComplex, TensorflowPredictVGGish, TensorflowPredictCREPE, IFFTA, TempoCNN, IFFTWComplex
Created algorithms registration file
[299/299][100%][-][========================================================================================================>][3m32.774s]ld.lld: error: unable to find library -lXv
ld.lld: error: unable to find library -lXext
ld.lld: error: unable to find library -lva-x11
ld.lld: error: unable to find library -lva
ld.lld: error: unable to find library -lxcb
ld.lld: error: unable to find library -lxcb-shm
ld.lld: error: unable to find library -lxcb-xfixes
ld.lld: error: unable to find library -lxcb-shape
ld.lld: error: unable to find library -lX11
ld.lld: error: unable to find library -lsndio
ld.lld: error: unable to find library -lasound
ld.lld: error: unable to find library -llzma
ld.lld: error: unable to find library -lXv
ld.lld: error: unable to find library -lXext
ld.lld: error: unable to find library -lva-x11
ld.lld: error: unable to find library -lva
ld.lld: error: unable to find library -lxcb
ld.lld: error: unable to find library -lxcb-shm
ld.lld: error: unable to find library -lxcb-xfixes
ld.lld: error: unable to find library -lxcb-shape
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

[299/299][100%][\][========================================================================================================>][3m32.832s]
Waf: Leaving directory `/home/joel/Escritorio/essentia/build'
Build failed
 -> task in 'essentia' failed with exit status 1 (run with -v to display more information)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant