karmic x64 el no compile-o

Help
2010-04-30
2013-04-24
  • I've been trying to compile smasher under Karmic x64 to no avail. The standard 1.1.6 source gives me this error:

    g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"smasher\" -DVERSION=\"1.1.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SNDFILE=1 -DUSE_DOUBLE=1 -I.   -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -g -O2 -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -MT replace.o -MD -MP -MF .deps/replace.Tpo -c -o replace.o replace.cpp
    replace.cpp: In static member function ‘static int Replace::run(std::string&, const std::string&, const std::string&, bool)’:
    replace.cpp:17: error: ‘BUFSIZ’ was not declared in this scope
    make: ***  Error 1
    make: Leaving directory `/home/dan/src/smasher-1.1.6/src'
    make: ***  Error 1

    As has been pointed out elsewhere, this error is fixed by adding '#include <cstdio>' to replace.cpp, then I get this error:

    g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"smasher\" -DVERSION=\"1.1.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SNDFILE=1 -DUSE_DOUBLE=1 -I.   -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -g -O2 -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -MT wrapcsound.o -MD -MP -MF .deps/wrapcsound.Tpo -c -o wrapcsound.o wrapcsound.cpp
    wrapcsound.cpp:3:29: error: csound/csound.hpp: No such file or directory
    wrapcsound.cpp: In member function ‘bool WrapCSound::perform(std::vector<double, std::allocator<double> >*, std::vector<double, std::allocator<double> >*)’:
    wrapcsound.cpp:131: warning: comparison between signed and unsigned integer expressions
    make: ***  Error 1
    make: Leaving directory `/home/dan/src/smasher-1.1.6/src'
    make: ***  Error 1

    I've got all the ubuntu csound dev packages installed but theres no csound.hpp

    So I tried svn and it gets as far as:

    g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"smasher\" -DVERSION=\"1.1.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_SNDFILE=1 -DUSE_DOUBLE=1 -I.   -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -g -O2 -Wall -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -MT smasherMain.o -MD -MP -MF .deps/smasherMain.Tpo -c -o smasherMain.o smasherMain.cpp
    smasherMain.cpp:45:37: error: slicedeclicktransformer.h: No such file or directory
    smasherMain.cpp:47:38: error: slicedelaypantransformer.h: No such file or directory
    smasherMain.cpp:52:37: error: sliceenhancetransformer.h: No such file or directory
    smasherMain.cpp:53:32: error: sliceeqtransformer.h: No such file or directory
    In file included from smasherMain.cpp:56:
    slicefftwindowedtransformer.h:13:34: error: slicecliptransformer.h: No such file or directory
    smasherMain.cpp:66:33: error: slicebpmtransformer.h: No such file or directory
    In file included from smasherMain.cpp:56:
    slicefftwindowedtransformer.h: In member function ‘void SliceFFTWindowedTransformer<T>::transform(std::vector<T, std::allocator<_CharT> >*, std::vector<T, std::allocator<_CharT> >*)’:
    slicefftwindowedtransformer.h:147: error: ‘SliceClipTransformer’ was not declared in this scope
    slicefftwindowedtransformer.h:147: error: expected primary-expression before ‘>’ token
    slicefftwindowedtransformer.h:147: error: there are no arguments to ‘sct’ that depend on a template parameter, so a declaration of ‘sct’ must be available
    slicefftwindowedtransformer.h:147: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
    slicefftwindowedtransformer.h:148: error: ‘sct’ was not declared in this scope
    smasherMain.cpp: In member function ‘void smasherFrame::addTransformers(Wav16Smash*, std::vector<long unsigned int, std::allocator<long unsigned int> >&)’:
    smasherMain.cpp:3142: error: expected type-specifier before ‘SliceDelayPanTransformer’
    smasherMain.cpp:3142: error: expected ‘;’ before ‘SliceDelayPanTransformer’
    smasherMain.cpp:3467: error: expected type-specifier before ‘SliceDeclickTransformer’
    smasherMain.cpp:3467: error: expected ‘;’ before ‘SliceDeclickTransformer’
    smasherMain.cpp:3479: error: expected type-specifier before ‘SliceEnhanceTransformer’
    smasherMain.cpp:3479: error: expected ‘;’ before ‘SliceEnhanceTransformer’
    smasherMain.cpp:3511: error: expected type-specifier before ‘SliceEqTransformer’
    smasherMain.cpp:3511: error: expected ‘;’ before ‘SliceEqTransformer’
    smasherMain.cpp:3622: error: expected type-specifier before ‘SliceBpmTransformer’
    smasherMain.cpp:3622: error: expected ‘;’ before ‘SliceBpmTransformer’
    In file included from smasherMain.cpp:56:
    slicefftwindowedtransformer.h: In member function ‘void SliceFFTWindowedTransformer<T>::transform(std::vector<T, std::allocator<_CharT> >*, std::vector<T, std::allocator<_CharT> >*) ’:
    smasherMain.cpp:4428:   instantiated from here
    slicefftwindowedtransformer.h:147: error: ‘sct’ was not declared in this scope
    make: ***  Error 1
    make: Leaving directory `/home/dan/src/smasher/src'
    make: ***  Error 1

    Can't wait to try smasher - thanks for your help!

     
  • e loeliger
    e loeliger
    2010-04-30

    hi danboid,

    i'm really sorry about smasher's linux issues! at the moment i'm in the middle of exam preparation, so no time to look into it right now. 09/10 ubuntu disabled my laptop's wifi, so i was really waiting for 10/04 to come out, will look into 10/04 and smasher in 4 weeks time.

    i did not quite get where you tried svn though - was that for csound or smasher? if you want to try to get smasher to compile, it's best to use the tarball https://sourceforge.net/projects/smasher/files/smasher/1.1.6/smasher-1.1.6-source.tar.gz/download. svn might not be up to date.

    if you want to give smasher a try though, give the windows version a try maybe.

    cheers,
    esther

     
  • Hi Esther!

    Thanks for the quick response! I was aware that I could try smasher under wine or win, but thats just not cool is it? ;)

    Of course 10.04 is here now with is greatly improved boot time so its a shame you've got exams. Speaking of 'buntu, I filed a 'needs-packaging' request for smasher not only coz it'd be cool for it be in the repos but mainly because I couldn't compile it.

    When I said svn I meant I checked out smasher from svn, not csound.  The 'wrapcsound' errors above are as far as I get with the 1.1.6 tarball.

    Good luck with your exams!

     
  • e loeliger
    e loeliger
    2010-06-02

    hi danboid,

    i've just updated the .deb and .tar.gz for lucid lynx x32, the issues you are referring to should be fixed now though, hopefully smasher compiles under x64 as well now.

    cheers,
    esther