PDA

View Full Version : Installation Issues in linux



valgaba
13th May 2013, 17:27
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::property(QPrintEngine::PrintEngine PropertyKey) 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

alketi
14th May 2013, 06:07
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.

ChrisW67
14th May 2013, 07:53
...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)

saman_artorious
14th May 2013, 12:31
#include <cups/cups.h>
#include <cups/ppd.h>

valgaba
14th May 2013, 16:37
#include <cups/cups.h>
#include <cups/ppd.h>

Sorry no meaning to those includes.
Lack some package to install?

ChrisW67
14th May 2013, 22:15
As I said before,

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

valgaba
15th May 2013, 18:08
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

saman_artorious
18th May 2013, 10:31
. / 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.

linuxszp
10th October 2013, 06:38
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

saman_artorious
10th October 2013, 12:30
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.