Menu

QWebHistory: No such file or directory

Apostolos
2019-01-18
2019-02-24
  • Apostolos

    Apostolos - 2019-01-18

    I am trying to compile dream-svn1021 under Debian Jessie with qt 5.7.1

    and the compilation stops at:

    src/GUI-QT/BWSViewer.cpp:36:23: fatal error: QWebHistory: No such file or directory
     #include <QWebHistory>
                           ^
    compilation terminated.
    

    Any help would be greatly appreciated.

     
  • Julian Cable

    Julian Cable - 2019-01-24

    Hi,

    for this version you need an older version of Qt. on Jessie try using 4.8. Qt changed the libraries to use Chrome's version of Webkit and didn't retain API compatibility.

    It would be great if you could try the dream2018 branch

    https://sourceforge.net/p/drm/code/HEAD/tree/branches/dream2018/

    That supports all the latest libraries and even has the ability to be built into a .deb file.

    It's still work in progress but should run OK.

     
  • Apostolos

    Apostolos - 2019-01-26

    dream2018 fails to build due to fdk-acc:

    $ make
    g++ -c -m64 -pipe -O2 -g -O2 -fdebug-prefix-map=/tmp/drm-code-r1140-
    branches-dream2018=. -fstack-protector-strong -Wformat -Werror=format-
    security -D_FORTIFY_SOURCE=2 -D_REENTRANT -Wall -W -fPIC
    -DEXECUTABLE_NAME=dream -DHAVE_DLFCN_H -DHAVE_MEMORY_H -DHAVE_STDINT_H
    -DHAVE_STDLIB_H -DHAVE_STRINGS_H -DHAVE_STRING_H -DSTDC_HEADERS
    -DHAVE_INTTYPES_H -DHAVE_STDINT_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H
    -DHAVE_UNISTD_H -DHAVE_LIBZ -DHAVE_LIBFDK_AAC -DHAVE_LIBOPUS
    -DUSE_OPUS_LIBRARY -DHAVE_LIBSNDFILE -DHAVE_SPEEX -DHAVE_LIBPCAP
    -DHAVE_LIBHAMLIB -DUSE_PULSEAUDIO -D_REENTRANT -DQWT_DLL -DQT_NO_DEBUG
    -DQT_SVG_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -Iinclude -Isrc/GUI-QT
    -isystem /usr/include/qwt -isystem /usr/include/x86_64-linux-gnu/qt5
    -isystem /usr/include/x86_64-linux-gnu/qt5/QtSvg -isystem
    /usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem
    /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
    /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-
    linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-
    gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Imoc
    -Iui -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o
    obj/fdk_aac_codec.o src/sourcedecoders/fdk_aac_codec.cpp
    src/sourcedecoders/fdk_aac_codec.cpp: In member function ‘virtual bool
    FdkAacCodec::CanDecode(CAudioParam::EAudCod)’:
    src/sourcedecoders/fdk_aac_codec.cpp:84:27: error: ‘CAPF_AAC_USAC’ was
    not declared in this scope
             if((linfo.flags & CAPF_AAC_USAC) != 0)
                               ^~~~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp: In function ‘void logAOT(const
    CStreamInfo&)’:
    src/sourcedecoders/fdk_aac_codec.cpp:105:10: error: ‘AOT_DRM_USAC’ is
    not a member of ‘AUDIO_OBJECT_TYPE’
         case AUDIO_OBJECT_TYPE::AOT_DRM_USAC:
              ^~~~~~~~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp: In member function ‘virtual bool
    FdkAacCodec::DecOpen(const CAudioParam&, int&)’:
    src/sourcedecoders/fdk_aac_codec.cpp:211:31: error: ‘AOT_DRM_USAC’ is
    not a member of ‘AUDIO_OBJECT_TYPE’
             else if(pinfo->aot == AUDIO_OBJECT_TYPE::AOT_DRM_USAC) bUsac =
    true;
                                   ^~~~~~~~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp: In member function ‘virtual
    CAudioCodec::EDecError FdkAacCodec::Decode(const std::vector<unsigned
    char>&, uint8_t, CVector<double>&, CVector<double>&)’:
    src/sourcedecoders/fdk_aac_codec.cpp:301:20: error:
    ‘AAC_DEC_OUTPUT_BUFFER_TOO_SMALL’ was not declared in this scope
         else if(err == AAC_DEC_OUTPUT_BUFFER_TOO_SMALL) {
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp: In member function ‘virtual bool
    FdkAacCodec::EncOpen(const CAudioParam&, long unsigned int&, long
    unsigned int&)’:
    src/sourcedecoders/fdk_aac_codec.cpp:431:12: warning: enumeration value
    ‘AM_RESERVED’ not handled in switch [-Wswitch]
         switch (AudioParam.eAudioMode) {
                ^
    src/sourcedecoders/fdk_aac_codec.cpp:458:12: warning: enumeration value
    ‘AS_9_6KHZ’ not handled in switch [-Wswitch]
         switch (AudioParam.eAudioSamplRate) {
                ^
    src/sourcedecoders/fdk_aac_codec.cpp:458:12: warning: enumeration value
    ‘AS_16KHZ’ not handled in switch [-Wswitch]
    src/sourcedecoders/fdk_aac_codec.cpp:458:12: warning: enumeration value
    ‘AS_19_2KHZ’ not handled in switch [-Wswitch]
    src/sourcedecoders/fdk_aac_codec.cpp:458:12: warning: enumeration value
    ‘AS_32KHZ’ not handled in switch [-Wswitch]
    src/sourcedecoders/fdk_aac_codec.cpp:458:12: warning: enumeration value
    ‘AS_38_4KHZ’ not handled in switch [-Wswitch]
    src/sourcedecoders/fdk_aac_codec.cpp:458:12: warning: enumeration value
    ‘AS_48KHZ’ not handled in switch [-Wswitch]
    src/sourcedecoders/fdk_aac_codec.cpp:469:12: warning: enumeration value
    ‘AM_RESERVED’ not handled in switch [-Wswitch]
         switch (AudioParam.eAudioMode) {
                ^
    src/sourcedecoders/fdk_aac_codec.cpp: In member function ‘virtual int
    FdkAacCodec::Encode(CVector<short int>&, long unsigned int,
    CVector<unsigned char>&, long unsigned int)’:
    src/sourcedecoders/fdk_aac_codec.cpp:523:39: warning: unused parameter
    ‘vecsEncInData’ [-Wunused-parameter]
     FdkAacCodec::Encode(CVector<_SAMPLE>& vecsEncInData, unsigned long
    lNumSampEncIn, CVector<uint8_t>& vecsEncOutData, unsigned long
    lMaxBytesEncOut)
                                           ^~~~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp:523:68: warning: unused parameter
    ‘lNumSampEncIn’ [-Wunused-parameter]
     FdkAacCodec::Encode(CVector<_SAMPLE>& vecsEncInData, unsigned long
    lNumSampEncIn, CVector<uint8_t>& vecsEncOutData, unsigned long
    lMaxBytesEncOut)
                                                                        ^~~
    ~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp:523:101: warning: unused parameter
    ‘vecsEncOutData’ [-Wunused-parameter]
     FdkAacCodec::Encode(CVector<_SAMPLE>& vecsEncInData, unsigned long
    lNumSampEncIn, CVector<uint8_t>& vecsEncOutData, unsigned long
    lMaxBytesEncOut)
    
                                  ^~~~~~~~~~~~~~
    src/sourcedecoders/fdk_aac_codec.cpp:523:131: warning: unused parameter
    ‘lMaxBytesEncOut’ [-Wunused-parameter]
     FdkAacCodec::Encode(CVector<_SAMPLE>& vecsEncInData, unsigned long
    lNumSampEncIn, CVector<uint8_t>& vecsEncOutData, unsigned long
    lMaxBytesEncOut)
    
                                                                ^~~~~~~~~~~
    ~~~~
    src/sourcedecoders/fdk_aac_codec.cpp: In member function ‘virtual
    std::__cxx11::string FdkAacCodec::fileName(const CParameter&) const’:
    src/sourcedecoders/fdk_aac_codec.cpp:572:12: warning: enumeration value
    ‘AM_RESERVED’ not handled in switch [-Wswitch]
         switch (Parameters.
                ^
    src/sourcedecoders/fdk_aac_codec.cpp: At global scope:
    src/sourcedecoders/fdk_aac_codec.cpp:165:13: warning: ‘void
    logNumbers(const CStreamInfo&)’ defined but not used [-Wunused-
    function]
     static void logNumbers(const CStreamInfo& info) {
                 ^~~~~~~~~~
    Makefile:2559: recipe for target 'obj/fdk_aac_codec.o' failed
    make: *** [obj/fdk_aac_codec.o] Error 1
    
     
  • Julian Cable

    Julian Cable - 2019-02-24

    try now, I've conditionally excluded calls needing fdk2.

    FYI I'm getting stuttering audio on this branch in Linux but its fine on MacOs. It doesn't seem to be a sound card issue as it happens when I read I/F samples from a file and write the wav output to a file.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.