SoX 설치 실패(스펙트로그램 - libpng)

SoX 설치 실패(스펙트로그램 - libpng)

SoX를 설치하려고 하는데 구성이 성공적으로 진행되었지만 다음과 같은 이유로 make가 실패했습니다.

/bin/sh ../libtool --silent  --tag=CC  --silent --mode=compile gcc -DHAVE_CONFIG_H
-I.  -DLADSPA_PATH="\"/var/tmp/sox/sox14/lib/ladspa\"" -DPKGLIBDIR="\"/var/tmp/sox
/sox14/lib/sox\""    -Wconversion    -g -O2 -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-
prototypes -Wstrict-prototypes -pedantic -MT libsox_la-spectrogram.lo -MD -MP -MF 
.deps/libsox_la-spectrogram.Tpo -c -o libsox_la-spectrogram.lo `test -f 
'spectrogram.c' || echo './'`spectrogram.c
spectrogram.c: In function `stop':
spectrogram.c:593: warning: implicit declaration of function `png_set_rows'
spectrogram.c:594: warning: implicit declaration of function `png_write_png'
spectrogram.c:594: `PNG_TRANSFORM_IDENTITY' undeclared (first use in this function)
spectrogram.c:594: (Each undeclared identifier is reported only once
spectrogram.c:594: for each function it appears in.)
make[1]: *** [libsox_la-spectrogram.lo] Error 1
make[1]: Leaving directory `/var/tmp/sox/sox-14.3.1/src'
make: *** [all-recursive] Error 1

나는 이것이 스펙트럼.c의 시작이기 때문에 다른 어떤 것보다 링커/포인터 오류에 더 가깝다고 생각합니다.

#include "sox_i.h"
#include "fft4g.h"
#include "sgetopt.h"
#include <assert.h>
#include <math.h>
#include <png.h>

png.h가 포함되어 있으며 여기에서 PNG_TRANSFORM_IDENTITY가 가져와야 합니다. 내가 뭐 놓친 거 없니?

답변1

lib-png가 작동하도록 할 수 없고 실제로 필요하지 않은 경우 다음을 통해 png 지원 없이(따라서 분광계 없이) 설치를 시도하도록 지정할 수 있습니다.

./configure --without-png

이것은 나를 위해 문제를 해결했습니다. 누군가 필요할 경우를 대비해 여기에 남겨두세요!

관련 정보