Results 1 to 10 of 10

Thread: Installation Issues in linux

  1. #1
    Join Date
    Mar 2010
    Location
    spain
    Posts
    25
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Installation Issues in linux

    When I try to install QT 4.6.4 on Linux ubuntu I get this


    root@Discoteca:/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4# make
    cd src/tools/bootstrap/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/bootstrap»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/bootstrap»
    cd src/tools/moc/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/moc»
    /home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/bin/qmake -spec ../../../mkspecs/linux-g++ -unix -o Makefile moc.pro
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/moc»
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/moc»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/moc»
    cd src/tools/rcc/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/rcc»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/rcc»
    cd src/tools/uic/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/uic»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/tools/uic»
    cd src/corelib/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/corelib»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/corelib»
    cd src/xml/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/xml»
    /home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/bin/qmake -spec ../../mkspecs/linux-g++ -unix -o Makefile xml.pro
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/xml»
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/xml»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/xml»
    cd src/network/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/network»
    /home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/bin/qmake -spec ../../mkspecs/linux-g++ -unix -o Makefile network.pro
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/network»
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/network»
    make[1]: No se hace nada para «first».
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/network»
    cd src/gui/ && make -f Makefile
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/gui»
    /home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/bin/qmake -spec ../../mkspecs/linux-g++ -unix -o Makefile gui.pro
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/gui»
    make[1]: se ingresa al directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/gui»
    g++ -c -include .pch/release-shared/QtGui -pipe -g -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qpdf.o painting/qpdf.cpp
    In file included from ../../include/QtGui/private/qcups_p.h:1:0,
    from painting/qpdf.cpp:47:
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:78:11: error: ‘ppd_file_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:80:11: error: ‘ppd_file_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:81:11: error: ‘ppd_option_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:84:11: error: ‘ppd_option_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:87:34: error: ISO C++ prohÃ*be la declaración de ‘type name’ sin tipo [-fpermissive]
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:87:47: error: el argumento de plantilla 1 es inválido
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:103:56: error: ‘ppd_group_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:103:77: error: ISO C++ prohÃ*be la declaración de ‘group’ sin tipo [-fpermissive]
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:104:62: error: ‘ppd_group_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:104:75: error: ISO C++ prohÃ*be la declaración de ‘group’ sin tipo [-fpermissive]
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:108:11: error: ‘ppd_option_t’ no nombra a un tipo
    ../../include/QtGui/private/../../../src/gui/painting/qcups_p.h:110:5: error: ‘ppd_file_t’ no nombra a un tipo
    painting/qpdf.cpp: En la función miembro ‘virtual void QPdfBaseEngine::setProperty(QPrintEngine::PrintEng inePropertyKey, const QVariant&)’:
    painting/qpdf.cpp:1469:5: aviso: el valor de case ‘65024’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp:1463:5: aviso: el valor de case ‘65025’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp:1466:5: aviso: el valor de case ‘65026’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp:1472:5: aviso: el valor de case ‘65027’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp: En la función miembro ‘virtual QVariant QPdfBaseEngine:roperty(QPrintEngine::PrintEnginePropertyKey) const’:
    painting/qpdf.cpp:1572:5: aviso: el valor de case ‘65024’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp:1566:5: aviso: el valor de case ‘65025’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp:1569:5: aviso: el valor de case ‘65026’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    painting/qpdf.cpp:1575:5: aviso: el valor de case ‘65027’ no es un tipo enumerado ‘QPrintEngine::PrintEnginePropertyKeyâ€℠¢ [-Wswitch]
    make[1]: *** [.obj/release-shared/qpdf.o] Error 1
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/gui»
    make: *** [sub-gui-make_default-ordered] Error 2
    root@Discoteca:/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4#


    What can it be?
    thanks

  2. #2
    Join Date
    Dec 2011
    Posts
    60
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Installation Issues in linux

    You don't state which Ubuntu you are using, nor what your "configure" options were...

    In any event, it looks like a problem with the print support. Do a 'configure -h' and look for a no-cups option or something similar. Enable that.

    Other alternative: Upgrade to the latest Ubuntu and you can install Qt 4.6 from the repository for zero work.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Installation Issues in linux

    ...or install the current 4.8.x version rather than a version that's a couple of years old.

    In any case, I would guess you do not have CUPS developer files installed (libcups-dev or whatever they are called on Ubuntu)

  4. #4
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Installation Issues in linux

    Qt Code:
    1. #include <cups/cups.h>
    2. #include <cups/ppd.h>
    To copy to clipboard, switch view to plain text mode 

  5. #5
    Join Date
    Mar 2010
    Location
    spain
    Posts
    25
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installation Issues in linux

    #include <cups/cups.h>
    #include <cups/ppd.h>
    Sorry no meaning to those includes.
    Lack some package to install?

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Installation Issues in linux

    As I said before,
    Quote Originally Posted by ChrisW67 View Post
    I would guess you do not have CUPS developer files installed (libcups-dev or whatever they are called on Ubuntu)

  7. #7
    Join Date
    Mar 2010
    Location
    spain
    Posts
    25
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Installation Issues in linux

    already accordance with
    . / configure -opensource -no-cups -prefix /home/victor/QT/4.6.4

    but now gives another error

    e-opensource-src-4.6.4/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I.moc/release-shared -o obj/release/CodeBlock.o ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.cpp
    In file included from ../3rdparty/javascriptcore/JavaScriptCore/wtf/HashFunctions.h:24:0,
    from ../3rdparty/javascriptcore/JavaScriptCore/wtf/HashTraits.h:24,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h:33,
    from ../3rdparty/javascriptcore/JavaScriptCore/interpreter/Register.h:32,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/ArgList.h:25,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:26,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.h:27,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h:27,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Executable.h:29,
    from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/EvalCodeCache.h:32,
    from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h:33,
    from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.cpp:31:
    ../3rdparty/javascriptcore/JavaScriptCore/wtf/RefPtr.h: En la instanciación de ‘QTWTF::RefPtr<T>::~RefPtr() [with T = QTJSC::Label]’:
    ../3rdparty/javascriptcore/JavaScriptCore/bytecompiler/LabelScope.h:49:46: se requiere desde aquÃ*
    ../3rdparty/javascriptcore/JavaScriptCore/wtf/RefPtr.h:51:37: error: ‘derefIfNotNull’ no se declaró en este ámbito, y no se encontraron declaraciones en la búsqueda dependiente de argumentos en el punto de la instanciación [-fpermissive]
    In file included from ../3rdparty/javascriptcore/JavaScriptCore/jit/ExecutableAllocator.h:31:0,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalData.h:33,
    from ../3rdparty/javascriptcore/JavaScriptCore/interpreter/CallFrame.h:26,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/ClassInfo.h:26,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:27,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.h:27,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h:27,
    from ../3rdparty/javascriptcore/JavaScriptCore/runtime/Executable.h:29,
    from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/EvalCodeCache.h:32,
    from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.h:33,
    from ../3rdparty/javascriptcore/JavaScriptCore/bytecode/CodeBlock.cpp:31:
    ../3rdparty/javascriptcore/JavaScriptCore/wtf/PassRefPtr.h:39:10: nota: ‘template<class T> void QTWTF::derefIfNotNull(T*)’ se declaró aquÃ*, después en la unidad de translación
    make[1]: *** [obj/release/CodeBlock.o] Error 1
    make[1]: se sale del directorio «/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4/src/script»
    make: *** [sub-script-make_default-ordered] Error 2
    root@Discoteca:/home/victor/Descargas/qt-everywhere-opensource-src-4.6.4#

    any ideas

    thanks

  8. #8
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Installation Issues in linux

    . / configure -opensource -no-cups -prefix /home/victor/QT/4.6.4
    May I ask why you still running the script with
    -no-cups
    As Chris noted, you need to install libcups-dev on your Linux machine.

    You may try this:
    apt-get install libcups2-dev
    Next, run the script without the option you mentioned above. Besides, you may also change your system language, although I can guess the error definitions in your post but I have difficulty clarifying it.

    If still prompts error, then paste it.

  9. #9
    Join Date
    Oct 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Installation Issues in linux

    This error landlord know how to solve it?

    install libcups2-dev,Still have this error,make[1]: *** [obj/release/CodeBlock.o] Error 1,How to do? Confused for several days

  10. #10
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Installation Issues in linux

    Quote Originally Posted by linuxszp View Post
    This error landlord know how to solve it?

    install libcups2-dev,Still have this error,make[1]: *** [obj/release/CodeBlock.o] Error 1,How to do? Confused for several days
    Can you give us more information about what you have already done? your post is not clear.

Similar Threads

  1. Quazip Installation Issues
    By frankiefrank in forum Newbie
    Replies: 8
    Last Post: 22nd April 2011, 09:45
  2. Qt installation in Linux
    By lindalin in forum Installation and Deployment
    Replies: 4
    Last Post: 11th October 2010, 11:52
  3. qt + mingw installation issues
    By pospiech in forum Installation and Deployment
    Replies: 3
    Last Post: 8th May 2008, 20:42
  4. installation of qt4.2: linux
    By Jim Peterson in forum Installation and Deployment
    Replies: 7
    Last Post: 2nd March 2007, 18:03
  5. Basic Qtopia Installation issues
    By Svaths in forum Installation and Deployment
    Replies: 0
    Last Post: 18th July 2006, 11:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.