Re: [Freewheeling-user] fweelin compiling error
Status: Beta
Brought to you by:
jpmercury
From: JP M. <sw...@st...> - 2006-01-24 21:28:46
|
On Sat, 21 Jan 2006 20:27:35 +0100, conrad berh=F6rster wrote > Hello,=20 > i have some compiling errors while building fweelin=20 > do i have missed something=20 > thanks c~ Dear Conrad, This issue has appeared once before. Here's a quick fix: > > > As per the output you sent me, > > > your g++ seems to be rejecting constants that I have defined in-cla= ss. ... > > > A quick fix for this issue is to replace the constant definitions w= ith > > > compiler #define's. Here's an example: > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:638 > > > > > >: undefined reference to `RootProcessor::LIMITER_ATTACK_LENGTH' > > > > > > Find the definition for 'LIMITER_ATTACK_LENGTH'. In this case it is= in > > > fweelin_core_dsp.h: > > > > > > const static float LIMITER_ATTACK_LENGTH =3D 1024, > > > > > > Replace with: > > > > > > #define LIMITER_ATTACK_LENGTH 1024 > > > > > > Do this for each of the variables which are causing problems, and F= W > > > should compile and run. > > > > > > All the Best, > > > -Mercury Cheers, Mercury > > > > > > > > > g++ -g -O2 -I. -g -Wall -D_REENTRANT -DPTHREADS -DNDEBUG > > > -DFWEELIN_DATADIR=3D\"/usr/local/share/fweelin\" > > > -DADDON_DIR=3D\"/usr/local/lib/jack\" -I/usr/include/freetype2 > > > -I/usr/include/libxml2 -funroll-loops -finline-functions > > > -fomit-frame-pointer -ffast-math -fexpensive-optimizations > > > -fstrict-aliasing -falign-loops=3D2 -falign-jumps=3D2 -falign-funct= ions=3D2 > > > -g -O2 -o fweelin fweelin.o > > > fweelin_datatypes.o fweelin_event.o fweelin_config.o fweelin_browse= r.o > > > fweelin_audioio.o fweelin_keyio.o fweelin_midiio.o fweelin_videoio.= o > > > fweelin_core.o fweelin_mem.o fweelin_block.o fweelin_core_dsp.o > > > fweelin_fluidsynth.o -L/usr/X11R6/lib -lSM -lICE -lX11 > > > /usr/lib/libvorbisenc.so /usr/lib/libvorbisfile.so > > > /usr/lib/libvorbis.so /usr/lib/libjack.so /usr/lib/libasound.so -lm > > > /usr/lib/libxml2.so /usr/lib/libSDL_ttf.so /usr/lib/libSDL_gfx.so > > > /usr/lib/libfreetype.so -ldl -lssl /usr/lib/libfluidsynth.so -L/usr= /lib > > > /usr/lib/libSDL.so -lpthread fweelin_core_dsp.o: In function > > > `ResetLimiter': > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:395 > > > > > >: undefined reference to `RootProcessor::LIMITER_START_AMP' > > > > > > fweelin_core_dsp.o: In function `RootProcessor::process(char, unsig= ned > > > int, AudioBuffers*)': > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:638 > > > > > >: undefined reference to `RootProcessor::LIMITER_ATTACK_LENGTH' > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:503 > > > > > >: undefined reference to `Processor::MIN_VOL' > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:509 > > > > > >: undefined reference to `Processor::MIN_VOL' > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:702 > > > > > >: undefined reference to `RootProcessor::LIMITER_ATTACK_LENGTH' > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:500 > > > > > >: undefined reference to `Processor::MIN_VOL' > > > > > > fweelin_core_dsp.o: In function `ResetLimiter': > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:395 > > > > > >: undefined reference to `RootProcessor::LIMITER_START_AMP' > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:395 > > > > > >: undefined reference to `RootProcessor::LIMITER_START_AMP' > > > > > > fweelin_core_dsp.o: In function `Pulse': > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:260 > > > > > >: undefined reference to `Pulse::METRONOME_INIT_VOL' > > > > > > /home/john/Documents/nondeb-src/fweelin-0.5pre4/src/fweelin_core_ds= p.cc > > >:260 > > > > > >: undefined reference to `Pulse::METRONOME_INIT_VOL' > > > > > > collect2: ld returned 1 exit status > > > make[1]: *** [fweelin] Error 1 > > > make[1]: Leaving directory > > > `/home/john/Documents/nondeb-src/fweelin-0.5pre4/src' make: *** > > > [all-recursive] Error 1 > > > > ------------------- schnipp --------------- >=20 > 2 -I. -g -Wall -D_REENTRANT -DPTHREADS -DNDEBUG=20 > -DFWEELIN_DATADIR=3D\"/usr/local/share/fweelin\"=20 > -DADDON_DIR=3D\"/usr/local/lib/jack\" -I/usr/include/freetype2=20 > -I/usr/include/libxml2 -funroll-loops -finline-functions -fomit- > frame-pointer -ffast-math -fexpensive-optimizations -fstrict- > aliasing -falign-loops=3D2 -falign-jumps=3D2 -falign-functions=3D2 -g -= O2 - > o fweelin fweelin.o fweelin_datatypes.o fweelin_event.o=20 > fweelin_config.o fweelin_browser.o fweelin_audioio.o fweelin_keyio.o=20 > fweelin_midiio.o fweelin_videoio.o fweelin_core.o fweelin_mem.o=20 > fweelin_block.o fweelin_core_dsp.o fweelin_fluidsynth.o =20 > -L/usr/X11R6/lib -lSM -lICE /usr/lib/libvorbisenc.so=20 > /usr/lib/libvorbisfile.so /usr/lib/libvorbis.so /usr/lib/libogg.so=20 > /usr/lib/libjack.so -lrt /usr/lib/libasound.so /usr/lib/libxml2.so=20 > /usr/lib/libSDL_ttf.so -L/usr/lib /usr/lib/libSDL_gfx.so=20 > -L/usr/local/lib /usr/lib/libfreetype.so -lz -lssl=20 > /usr/lib/libSDL.so /usr/lib/libstdc++.so -lc -lgcc_s -ldl -lXext=20 > /usr/lib/libaa.so -lslang -lm -lX11 -lgpm -lpthread=20 > fweelin_core_dsp.o: In function `ResetLimiter':=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:395:=20 > undefined reference to `RootProcessor::LIMITER_START_AMP'=20 > fweelin_core_dsp.o: In function `RootProcessor::process(char, > unsigned int, AudioBuffers*)': /home/conrad/Desktop/sw/fweelin- > 0.5pre4/src/fweelin_core_dsp.cc:503: undefined reference to `Processor:= :MIN_VOL' > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:509:=20 > undefined reference to `Processor::MIN_VOL'=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:638:=20 > undefined reference to `RootProcessor::LIMITER_ATTACK_LENGTH'=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:702:=20 > undefined reference to `RootProcessor::LIMITER_ATTACK_LENGTH'=20 > fweelin_core_dsp.o: In function `RootProcessor':=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:395:=20 > undefined reference to `RootProcessor::LIMITER_START_AMP'=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:395:=20 > undefined reference to `RootProcessor::LIMITER_START_AMP'=20 > fweelin_core_dsp.o: In function `Pulse':=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:260:=20 > undefined reference to `Pulse::METRONOME_INIT_VOL'=20 > /home/conrad/Desktop/sw/fweelin-0.5pre4/src/fweelin_core_dsp.cc:260:=20 > undefined reference to `Pulse::METRONOME_INIT_VOL' collect2: ld=20 > returned 1 exit status make[1]: *** [fweelin] Fehler 1 make[1]:=20 > Leaving directory `/home/conrad/Desktop/sw/fweelin-0.5pre4/src'=20 > make: *** [all-recursive] Fehler 1 |