QT path may be invalid

Temp
2012-07-21
2012-10-17
  • Temp
    Temp
    2012-07-21

    Hi
    I try to compile from source code (SVN). I install all of the package which
    need
    then try to build it but i meet following error:
    my Qt4 path is usr/lib/qt4

    abolfazl@abolfazl:~/Texstudio$ chmod +x BUILD.sh
    abolfazl@abolfazl:~/Texstudio$ ./BUILD.sh
    TeXstudio compilation :


    Enter SYSTEM (1: UNIX ; 2: MACOSX) (default is 1) :
    1
    Enter PREFIX (/usr , /usr/local or /opt) (default is /usr/local) :

    Enter path to QT4 (e.g. /usr/lib/qt4, you can leave it empty if qmake is in
    PATH) (default is /usr) :

    Do you want to use the internal pdf viewer (requires the Poppler library)?
    yes/no yes/no (default is yes) :
    no
    Starting compilation
    -unix is deprecated.
    Project MESSAGE: Creating debug version
    Project MESSAGE: Internal pdf previewer disabled as you wish.
    Project MESSAGE: svn_revision.cpp was not found and will be created. Don't
    worry about repeated warnings.
    WARNING: Failure to find: svn_revision.cpp
    g++ -c -include .obj/texstudio -m64 -pipe -g -Wall -Wextra -Winit-self
    -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef
    -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline
    -D_REENTRANT -Wall -W -DQT_WEBKIT -DPREFIX=\"/usr/local\" -D_QCODE_EDIT_BUILD_
    -DQNFA_BUILD -DNO_POPPLER_PREVIEW -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
    -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools
    -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript
    -I/usr/include/qt4 -Iqtsingleapplication -Iqcodeedit/lib
    -Iqcodeedit/lib/document -Iqcodeedit/lib/language -Iqcodeedit/lib/widgets
    -Iqcodeedit/lib/qnfa -I.moc -I.ui -o .obj/texmaker.o texmaker.cpp
    texmaker.cpp: In member function ‘void Texmaker::fileClose()’:
    texmaker.cpp:2124:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2124:2: error: template argument 1 is invalid
    texmaker.cpp:2124:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:2124:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: ‘viewer’ was not declared in this scope
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::SaveSettings(const
    QString&)’:
    texmaker.cpp:2848:6: error: ‘PDFDocument’ has not been declared
    texmaker.cpp:2849:6: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2849:19: error: ‘doc’ was not declared in this scope
    texmaker.cpp:2849:23: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp: At global scope:
    texmaker.cpp:4054:6: warning: unused parameter ‘master’
    texmaker.cpp:4054:6: warning: unused parameter ‘options’
    texmaker.cpp: In member function ‘void Texmaker::viewCloseSomething()’:
    texmaker.cpp:4964:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4964:2: error: template argument 1 is invalid
    texmaker.cpp:4964:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:4964:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: ‘doc’ was not declared in this scope
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::viewAlignWindows()’:
    texmaker.cpp:4992:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4992:18: error: ‘pdfViewer’ was not declared in this scope
    texmaker.cpp:4994:15: error: parse error in template argument list
    texmaker.cpp:4994:44: error: no matching function for call to
    ‘qobject_cast(QWidget&)’
    texmaker.cpp:4994:44: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject
    )
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: In member function ‘void Texmaker::pdfClosed()’:
    texmaker.cpp:5045:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:5045:18: error: ‘from’ was not declared in this scope
    texmaker.cpp:5045:25: error: parse error in template argument list
    texmaker.cpp:5045:60: error: no matching function for call to
    ‘qobject_cast(QObject
    )’
    texmaker.cpp:5045:60: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject)
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject
    )
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: At global scope:
    texmaker.cpp:5060:10: warning: unused parameter ‘embedded’
    make: Error 1
    Compilation done
    g++ -c -include .obj/texstudio -m64 -pipe -g -Wall -Wextra -Winit-self
    -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef
    -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline
    -D_REENTRANT -Wall -W -DQT_WEBKIT -DPREFIX=\"/usr/local\" -D_QCODE_EDIT_BUILD_
    -DQNFA_BUILD -DNO_POPPLER_PREVIEW -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
    -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools
    -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript
    -I/usr/include/qt4 -Iqtsingleapplication -Iqcodeedit/lib
    -Iqcodeedit/lib/document -Iqcodeedit/lib/language -Iqcodeedit/lib/widgets
    -Iqcodeedit/lib/qnfa -I.moc -I.ui -o .obj/texmaker.o texmaker.cpp
    texmaker.cpp: In member function ‘void Texmaker::fileClose()’:
    texmaker.cpp:2124:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2124:2: error: template argument 1 is invalid
    texmaker.cpp:2124:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:2124:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘
    container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: ‘viewer’ was not declared in this scope
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::SaveSettings(const
    QString&)’:
    texmaker.cpp:2848:6: error: ‘PDFDocument’ has not been declared
    texmaker.cpp:2849:6: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2849:19: error: ‘doc’ was not declared in this scope
    texmaker.cpp:2849:23: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp: At global scope:
    texmaker.cpp:4054:6: warning: unused parameter ‘master’
    texmaker.cpp:4054:6: warning: unused parameter ‘options’
    texmaker.cpp: In member function ‘void Texmaker::viewCloseSomething()’:
    texmaker.cpp:4964:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4964:2: error: template argument 1 is invalid
    texmaker.cpp:4964:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:4964:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: ‘doc’ was not declared in this scope
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::viewAlignWindows()’:
    texmaker.cpp:4992:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4992:18: error: ‘pdfViewer’ was not declared in this scope
    texmaker.cpp:4994:15: error: parse error in template argument list
    texmaker.cpp:4994:44: error: no matching function for call to
    ‘qobject_cast(QWidget&)’
    texmaker.cpp:4994:44: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject
    )
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: In member function ‘void Texmaker::pdfClosed()’:
    texmaker.cpp:5045:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:5045:18: error: ‘from’ was not declared in this scope
    texmaker.cpp:5045:25: error: parse error in template argument list
    texmaker.cpp:5045:60: error: no matching function for call to
    ‘qobject_cast(QObject
    )’
    texmaker.cpp:5045:60: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject)
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject
    )
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: At global scope:
    texmaker.cpp:5060:10: warning: unused parameter ‘embedded’
    make:
    Error 1
    Compilation and installation done
    Icons and desktop file can be found in the /usr/local/share/texstudio
    directory
    abolfazl@abolfazl:~/Texstudio$ ./BUILD.sh
    TeXstudio compilation :


    Enter SYSTEM (1: UNIX ; 2: MACOSX) (default is 1) :

    Enter PREFIX (/usr , /usr/local or /opt) (default is /usr/local) :
    /usr
    Enter path to QT4 (e.g. /usr/lib/qt4, you can leave it empty if qmake is in
    PATH) (default is /usr) :
    ^C
    abolfazl@abolfazl:~/Texstudio$ ^C
    abolfazl@abolfazl:~/Texstudio$ ./BUILD.sh
    TeXstudio compilation :


    Enter SYSTEM (1: UNIX ; 2: MACOSX) (default is 1) :

    Enter PREFIX (/usr , /usr/local or /opt) (default is /usr/local) :
    /usr
    Enter path to QT4 (e.g. /usr/lib/qt4, you can leave it empty if qmake is in
    PATH) (default is /usr) :
    /usr/lib/qt4
    Do you want to use the internal pdf viewer (requires the Poppler library)?
    yes/no yes/no (default is yes) :
    no
    Warning, QT path may be invalid
    Starting compilation
    -unix is deprecated.
    Project MESSAGE: Creating debug version
    Project MESSAGE: Internal pdf previewer disabled as you wish.
    Project MESSAGE: svn_revision.cpp was not found and will be created. Don't
    worry about repeated warnings.
    WARNING: Failure to find: svn_revision.cpp
    g++ -c -include .obj/texstudio -m64 -pipe -g -Wall -Wextra -Winit-self
    -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef
    -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline
    -D_REENTRANT -Wall -W -DQT_WEBKIT -DPREFIX=\"/usr\" -D_QCODE_EDIT_BUILD_
    -DQNFA_BUILD -DNO_POPPLER_PREVIEW -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
    -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools
    -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript
    -I/usr/include/qt4 -Iqtsingleapplication -Iqcodeedit/lib
    -Iqcodeedit/lib/document -Iqcodeedit/lib/language -Iqcodeedit/lib/widgets
    -Iqcodeedit/lib/qnfa -I.moc -I.ui -o .obj/texmaker.o texmaker.cpp
    cc1plus: error: one or more PCH files were found, but they were invalid
    cc1plus: error: use -Winvalid-pch for more information
    cc1plus: fatal error: .obj/texstudio: No such file or directory
    compilation terminated.
    make: Error 1
    Compilation done
    g++ -c -include .obj/texstudio -m64 -pipe -g -Wall -Wextra -Winit-self
    -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef
    -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline
    -D_REENTRANT -Wall -W -DQT_WEBKIT -DPREFIX=\"/usr\" -D_QCODE_EDIT_BUILD_
    -DQNFA_BUILD -DNO_POPPLER_PREVIEW -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
    -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools
    -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript
    -I/usr/include/qt4 -Iqtsingleapplication -Iqcodeedit/lib
    -Iqcodeedit/lib/document -Iqcodeedit/lib/language -Iqcodeedit/lib/widgets
    -Iqcodeedit/lib/qnfa -I.moc -I.ui -o .obj/texmaker.o texmaker.cpp
    cc1plus: error: one or more PCH files were found, but they were invalid
    cc1plus: error: use -Winvalid-pch for more information
    cc1plus: fatal error: .obj/texstudio: No such file or directory
    compilation terminated.
    make:
    Error 1
    Compilation and installation done
    Icons and desktop file can be found in the /usr/share/texstudio directory
    abolfazl@abolfazl:~/Texstudio$ ./BUILD.sh
    TeXstudio compilation :


    Enter SYSTEM (1: UNIX ; 2: MACOSX) (default is 1) :

    Enter PREFIX (/usr , /usr/local or /opt) (default is /usr/local) :

    Enter path to QT4 (e.g. /usr/lib/qt4, you can leave it empty if qmake is in
    PATH) (default is /usr) :
    /usr/lib/qt4
    Do you want to use the internal pdf viewer (requires the Poppler library)?
    yes/no yes/no (default is yes) :
    no
    Warning, QT path may be invalid
    Starting compilation
    -unix is deprecated.
    Project MESSAGE: Creating debug version
    Project MESSAGE: Internal pdf previewer disabled as you wish.
    Project MESSAGE: svn_revision.cpp was not found and will be created. Don't
    worry about repeated warnings.
    WARNING: Failure to find: svn_revision.cpp
    g++ -c -include .obj/texstudio -m64 -pipe -g -Wall -Wextra -Winit-self
    -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef
    -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline
    -D_REENTRANT -Wall -W -DQT_WEBKIT -DPREFIX=\"/usr/local\" -D_QCODE_EDIT_BUILD_
    -DQNFA_BUILD -DNO_POPPLER_PREVIEW -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
    -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools
    -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript
    -I/usr/include/qt4 -Iqtsingleapplication -Iqcodeedit/lib
    -Iqcodeedit/lib/document -Iqcodeedit/lib/language -Iqcodeedit/lib/widgets
    -Iqcodeedit/lib/qnfa -I.moc -I.ui -o .obj/texmaker.o texmaker.cpp
    texmaker.cpp: In member function ‘void Texmaker::fileClose()’:
    texmaker.cpp:2124:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2124:2: error: template argument 1 is invalid
    texmaker.cpp:2124:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:2124:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: ‘viewer’ was not declared in this scope
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::SaveSettings(const
    QString&)’:
    texmaker.cpp:2848:6: error: ‘PDFDocument’ has not been declared
    texmaker.cpp:2849:6: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2849:19: error: ‘doc’ was not declared in this scope
    texmaker.cpp:2849:23: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp: At global scope:
    texmaker.cpp:4054:6: warning: unused parameter ‘master’
    texmaker.cpp:4054:6: warning: unused parameter ‘options’
    texmaker.cpp: In member function ‘void Texmaker::viewCloseSomething()’:
    texmaker.cpp:4964:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4964:2: error: template argument 1 is invalid
    texmaker.cpp:4964:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:4964:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: ‘doc’ was not declared in this scope
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::viewAlignWindows()’:
    texmaker.cpp:4992:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4992:18: error: ‘pdfViewer’ was not declared in this scope
    texmaker.cpp:4994:15: error: parse error in template argument list
    texmaker.cpp:4994:44: error: no matching function for call to
    ‘qobject_cast(QWidget&)’
    texmaker.cpp:4994:44: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject
    )
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: In member function ‘void Texmaker::pdfClosed()’:
    texmaker.cpp:5045:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:5045:18: error: ‘from’ was not declared in this scope
    texmaker.cpp:5045:25: error: parse error in template argument list
    texmaker.cpp:5045:60: error: no matching function for call to
    ‘qobject_cast(QObject
    )’
    texmaker.cpp:5045:60: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject)
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject
    )
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: At global scope:
    texmaker.cpp:5060:10: warning: unused parameter ‘embedded’
    make: Error 1
    Compilation done
    g++ -c -include .obj/texstudio -m64 -pipe -g -Wall -Wextra -Winit-self
    -Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas -Wundef
    -Wpointer-arith -Wwrite-strings -Wempty-body -Wsign-compare -Waddress -Winline
    -D_REENTRANT -Wall -W -DQT_WEBKIT -DPREFIX=\"/usr/local\" -D_QCODE_EDIT_BUILD_
    -DQNFA_BUILD -DNO_POPPLER_PREVIEW -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB
    -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
    -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtUiTools
    -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
    -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript
    -I/usr/include/qt4 -Iqtsingleapplication -Iqcodeedit/lib
    -Iqcodeedit/lib/document -Iqcodeedit/lib/language -Iqcodeedit/lib/widgets
    -Iqcodeedit/lib/qnfa -I.moc -I.ui -o .obj/texmaker.o texmaker.cpp
    texmaker.cpp: In member function ‘void Texmaker::fileClose()’:
    texmaker.cpp:2124:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2124:2: error: template argument 1 is invalid
    texmaker.cpp:2124:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:2124:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘
    container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: ‘viewer’ was not declared in this scope
    texmaker.cpp:2124:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:2124:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::SaveSettings(const
    QString&)’:
    texmaker.cpp:2848:6: error: ‘PDFDocument’ has not been declared
    texmaker.cpp:2849:6: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:2849:19: error: ‘doc’ was not declared in this scope
    texmaker.cpp:2849:23: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp: At global scope:
    texmaker.cpp:4054:6: warning: unused parameter ‘master’
    texmaker.cpp:4054:6: warning: unused parameter ‘options’
    texmaker.cpp: In member function ‘void Texmaker::viewCloseSomething()’:
    texmaker.cpp:4964:2: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4964:2: error: template argument 1 is invalid
    texmaker.cpp:4964:2: error: invalid type in declaration before ‘(’ token
    texmaker.cpp:4964:2: error: ‘PDFDocument’ is not a class or namespace
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘e’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: ‘doc’ was not declared in this scope
    texmaker.cpp:4964:2: error: request for member ‘i’ in ‘container’, which is
    of non-class type ‘int’
    texmaker.cpp:4964:2: error: request for member ‘brk’ in ‘container’, which
    is of non-class type ‘int’
    texmaker.cpp: In member function ‘void Texmaker::viewAlignWindows()’:
    texmaker.cpp:4992:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:4992:18: error: ‘pdfViewer’ was not declared in this scope
    texmaker.cpp:4994:15: error: parse error in template argument list
    texmaker.cpp:4994:44: error: no matching function for call to
    ‘qobject_cast(QWidget&)’
    texmaker.cpp:4994:44: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject
    )
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: In member function ‘void Texmaker::pdfClosed()’:
    texmaker.cpp:5045:5: error: ‘PDFDocument’ was not declared in this scope
    texmaker.cpp:5045:18: error: ‘from’ was not declared in this scope
    texmaker.cpp:5045:25: error: parse error in template argument list
    texmaker.cpp:5045:60: error: no matching function for call to
    ‘qobject_cast(QObject
    )’
    texmaker.cpp:5045:60: note: candidates are:
    /usr/include/qt4/QtCore/qobject.h:375:10: note: template<class T=""> T
    qobject_cast(QObject)
    /usr/include/qt4/QtCore/qobject.h:384:10: note: template<class T=""> T
    qobject_cast(const QObject
    )
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:877:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QSharedPointer<T>&)
    /usr/include/qt4/QtCore/qsharedpointer_impl.h:883:1: note: template<class X,="" class="" T=""> QSharedPointer<typename QtSharedPointer::RemovePointer<X="">::Type>
    qobject_cast(const QWeakPointer<X>&)
    texmaker.cpp: At global scope:
    texmaker.cpp:5060:10: warning: unused parameter ‘embedded’
    make:
    Error 1
    Compilation and installation done
    Icons and desktop file can be found in the /usr/local/share/texstudio
    directory

     
  • you are missing poppler for previewing pdf.
    install libpoppler-qt4-dev (or similar, depending on your system)