| Ah, good. an mp3len opcode would be good.
Maybe it would be even better if it could be incorporated into filelen
somehow (?)
When compiling (with a clean fgens.c), I get a few of these
Engine\fgens.o(.text+0x673a): In function `gen49':
C:/msys/1.0/source/csound5/Engine/fgens.c:2716: undefined reference to
`mp3dec_init'
My custom.py has:
customLIBPATH.append('c:/msys/1.0/source/mpadec/mpadec/mpadec/libmpadec')
customCPPPATH.append('C:/msys/1.0/source/mpadec/mpadec/mpadec/include')
I was not totally sure about those, is that correct?
For more details, I've pasted the full console print below.
all best
Oeyvind
**
$ c:/python26/scripts/scons useDouble=1 useFLTK=0 bufferoverflou=1
buildInterfaces=1 buildPythonWrap
per=0 gcc3opt='pentium4' includeMP3=1
scons: Reading SConscript files ...
C S O U N D 5
SCons build file for Csound 5:
API library, plugin opcodes, utilities, and front ends.
By Michael Gogins
For custom options, run 'scons -h'.
For default options, run 'scons -H'.
If headers or libraries are not found, edit 'custom.py'.
For Linux, run in the standard shell
with standard Python and just run 'scons'.
For MinGW, run in the MSys shell
and use www.python.org WIN32 Python to run scons.
For Microsoft Visual C++, run in the Platform SDK
command shell, and use www.python.org WIN32 Python to run scons.
System platform is 'win32'.
scons: warning: The Options class is deprecated; use the Variables
class instead.
File "C:\msys\1.0\source\csound5\SConstruct", line 74, in
Using options from 'custom.py.'
Build platform is MinGW/MSYS
SCons tools on this platform: ['mingw', 'gcc', 'g++', 'gnulink',
'ar', 'gas', 'm4', 'swig', 'javac', 'jar']
CONFIGURATION DECISION: No localisation
CONFIGURATION DECISION: Using double-precision floating point for audio samples.
Checking for C header file stdio.h... yes
Checking for C library sndfile... yes
Checking for C library pthread... yes
CONFIGURATION DECISION: Building with MP3 support
CONFIGURATION DECISION: No Wiimote support
CONFIGURATION DECISION: No P5 Glove support
Checking for pthread_barrier_init(0, 0, 0) in C library pthread... yes
Checking for __sync_lock_test_and_set((int32_t *)0, 0) in C library m... no
Checking for C++ header file
frontends/CsoundVST/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h...
yes
Checking for C header file portaudio.h... yes
Checking for C header file portmidi.h... yes
Checking for C++ header file FL/Fl.H... no
Checking for C++ header file boost/any.hpp... yes
Checking for C++ header file gmm/gmm.h... no
Checking for C library asound... no
Checking for C library lo... no
Checking for MusicXML2::SXMLFile f = MusicXML2::TXMLFile::create() in
C++ library musicxml2... no
Checking for C header file jack/jack.h... no
Checking for C header file pulse/simple.h... no
Checking for C++ header file Opcodes/stk/include/Stk.h... no
Checking for C header file m_pd.h... no
Checking for C header file tcl.h... yes
Checking for C header file zlib.h... no
Checking for C++ header file funknown.h... no
Checking for C header file lua.h... no
Checking for SWIG... yes
Python Version: 2.6
Checking for C header file Python.h... yes
Checking for C++ header file jni.h... no
Checking for C header file io.h... yes
Checking for C header file fcntl.h... yes
Checking for C header file unistd.h... yes
Checking for C header file stdint.h... yes
Checking for C header file sys/time.h... yes
Checking for C header file sys/types.h... yes
Checking for C header file termios.h... no
Checking for C header file values.h... yes
Checking for C header file winsock.h... yes
Checking for C header file dirent.h... yes
Checking for libsndfile version 1.0.16 or later... yes
CONFIGURATION DECISION: Not building with new parser
CONFIGURATION DECISION: Building dynamic Csound library
CONFIGURATION DECISION: Building Csound C++ interface library.
CONFIGURATION DECISION: Not building Lua wrapper to Csound C++
interface library.
CONFIGURATION DECISION: Not building Java wrapper to Csound C++
interface library.
CONFIGURATION DECISION: Not building Python wrapper to Csound C++
interface library.
CONFIGURATION DECISION: Not generating Csound API PDF documentation.
Checking for C library png... no
CONFIGURATION DECISION: Not building image opcodes
CONFIGURATION DECISION: Not building linear algebra opcodes.
CONFIGURATION DECISION: Not building with FLTK graphs and widgets.
CONFIGURATION DECISION: Not building CoreAudio plugin.
CONFIGURATION DECISION: Not building ALSA plugin.
CONFIGURATION DECISION: Building PortAudio module.
CONFIGURATION DECISION: Not building JACK plugin.
CONFIGURATION DECISION: Building with PortMIDI.
CONFIGURATION DECISION: Not building OSC plugin.
CONFIGURATION DECISION: Not building UDP plugins.
Checking for C header file fluidsynth.h... no
CONFIGURATION DECISION: Not building fluid opcodes.
CONFIGURATION DECISION: Not building vst4cs opcodes.
CONFIGURATION DECISION: Not building DSSI plugin host opcodes.
Checking for C header file Opcodes/Loris/src/loris.h... no
CONFIGURATION DECISION: Not building Loris Python extension and Csound opcodes.
CONFIGURATION DECISION: Not building STK opcodes.
CONFIGURATION DECISION: Not building Python opcodes.
CONFIGURATION DECISION: Not building FLTK CSOUND5GUI frontend.
CONFIGURATION DECISION: Not building Csound Text Editor.
CONFIGURATION DECISION: Not building CsoundAC extension module for
Csound with algorithmic composition.
CONFIGURATION DECISION: Not building CsoundVST plugin and standalone.
CONFIGURATION DECISION: Not building Tclcsound
CONFIGURATION DECISION: Not building Winsound
CONFIGURATION DECISION: Not building OSX GUI frontend
CONFIGURATION DEFAULT: Building csLadspa.
CONFIGURATION DECISION: Not calling TAGS
scons: done reading SConscript files.
scons: Building targets ...
gcc -shared -mwindows -mno-cygwin -Wl,--enable-auto-import
-Wl,--enable-runtime-pseudo-reloc -module -o csound64.dll.5.2
Engine\auxfd.o Engine\cfgvar.o Engine\entry1.o Engine\envvar.o
Engine\express.o Engine\extract.o Engine\fgens.o Engine\insert.o
Engine\linevent.o Engine\memalloc.o Engine\memfiles.o Engine\musmon.o
Engine\namedins.o Engine\otran.o Engine\rdorch.o Engine\rdscor.o
Engine\scsort.o Engine\scxtract.o Engine\sort.o Engine\sread.o
Engine\swrite.o Engine\twarp.o InOut\libsnd.o InOut\libsnd_u.o
InOut\midifile.o InOut\midirecv.o InOut\midisend.o InOut\winascii.o
InOut\windin.o InOut\window.o InOut\winEPS.o OOps\aops.o OOps\bus.o
OOps\cmath.o OOps\diskin.o OOps\diskin2.o OOps\disprep.o OOps\dumpf.o
OOps\fftlib.o OOps\goto_ops.o OOps\midiinterop.o OOps\midiops.o
OOps\midiout.o OOps\mxfft.o OOps\oscils.o OOps\pstream.o
OOps\pvfileio.o OOps\pvsanal.o OOps\random.o OOps\remote.o
OOps\schedule.o OOps\sndinfUG.o OOps\str_ops.o OOps\ugens1.o
OOps\ugens2.o OOps\ugens3.o OOps\ugens4.o OOps\ugens5.o OOps\ugens6.o
OOps\ugrw1.o OOps\ugrw2.o OOps\vdelay.o Top\argdecode.o
Top\cscore_internal.o Top\cscorfns.o Top\csmodule.o Top\csound.o
Top\getstring.o Top\main.o Top\new_opts.o Top\one_file.o Top\opcode.o
Top\threads.o Top\utility.o -L. -L. -LC:\usr\local\lib -L. -L.
-LC:\msys\1.0\mingw\lib -LC:\msys\1.0\local\lib -LC:\msys\1.0\lib
"-LC:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib" "-LC:\Programfiler\_Microsoft Platform SDK for Windows Server
2003 R2\Lib" -LC:\msys\1.0\source\portaudio\build\msvc\Win32\Release
-LC:\msys\1.0\source\portmidi_victor
-LC:\msys\1.0\source\fltk-1.1.10rc3\lib
-LC:\msys\1.0\source\mpadec\mpadec\mpadec\libmpadec -LC:\Python26\Libs
-lsndfile -lpthread -lpthread -lsndfile -ladvapi32 -lcomctl32
-lcomdlg32 -lglu32 -lkernel32 -lmsvcrt -lodbc32 -lodbccp32 -lole32
-loleaut32 -lshell32 -luser32 -luuid -lwinmm -lwinspool -lws2_32
-lwsock32 -ladvapi32 -lcomctl32 -lcomdlg32 -lglu32 -lkernel32 -lodbc32
-lodbccp32 -lole32 -loleaut32 -lshell32 -luser32 -luuid -lwinmm
-lwinspool -lws2_32 -lwsock32 -lpthread -Wl,--out-implib,libcsound64.a
-Wl,--output-def,csound64.def
Creating library file: libcsound64.a
Engine\fgens.o(.text+0x673a): In function `gen49':
C:/msys/1.0/source/csound5/Engine/fgens.c:2716: undefined reference to
`mp3dec_init'
Engine\fgens.o(.text+0x6757):C:/msys/1.0/source/csound5/Engine/fgens.c:2720:
undefined reference to `mp3dec_configure'
Engine\fgens.o(.text+0x67a6):C:/msys/1.0/source/csound5/Engine/fgens.c:2729:
undefined reference to `mp3dec_init_file'
Engine\fgens.o(.text+0x67cb):C:/msys/1.0/source/csound5/Engine/fgens.c:2733:
undefined reference to `mp3dec_get_info'
Engine\fgens.o(.text+0x6921):C:/msys/1.0/source/csound5/Engine/fgens.c:2761:
undefined reference to `mp3dec_decode'
Engine\fgens.o(.text+0x694b):C:/msys/1.0/source/csound5/Engine/fgens.c:2778:
undefined reference to `mp3dec_decode'
Engine\fgens.o(.text+0x69d2):C:/msys/1.0/source/csound5/Engine/fgens.c:2735:
undefined reference to `mp3dec_uninit'
Engine\fgens.o(.text+0x69da):C:/msys/1.0/source/csound5/Engine/fgens.c:2736:
undefined reference to `mp3dec_error'
Engine\fgens.o(.text+0x6b14):C:/msys/1.0/source/csound5/Engine/fgens.c:2781:
undefined reference to `mp3dec_uninit'
Engine\fgens.o(.text+0x6b3c):C:/msys/1.0/source/csound5/Engine/fgens.c:2772:
undefined reference to `mp3dec_uninit'
Engine\fgens.o(.text+0x6b4d):C:/msys/1.0/source/csound5/Engine/fgens.c:2726:
undefined reference to `mp3dec_uninit'
collect2: ld returned 1 exit status
scons: *** [csound64.dll.5.2] Error 1
scons: building terminated because of errors.
2011/1/20 :
> Actually in an MP3 file there is information as to audio length. The
> mpadec library reads it and displays when the file is open. I guess an
> mp3len opcode is possible.
>
> More orried about wy the GEN in fgens.c fails to compile
> ==John ff
>
>> Oeyvind Brandtsegg wrote:
>>
>>> Should filelen return the correct length for an mp3 file?
>>> Here, it returns 12 seconds for a file that has a length of 1 minutes
>>> 35 seconds.
>>
>> If I remember correctly, for MP3 files encoded with a variable
>> bitrate, there is no way to tell the length of a file without
>> decoding the whole file.
>>
>> Erik
>> --
>> ----------------------------------------------------------------------
>> Erik de Castro Lopo
>> http://www.mega-nerd.com/
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|