| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
Arvind Purohit wrote:
>
>
> Martin Gebert wrote:
>
>> Arvind Purohit schrieb:
>>
>>> Hi All,
>>>
>>> I am a new user to QT. I want to install QT on my linux machine but I
>>> dont have root password to it. Can I still do it ? As the INSTALL
>>> files says that
>>>
>>> To install the library, demos, examples, tools, and tutorials,
>>> type:
>>>
>>> su -c "make install"
>>>
>>> Can not I overcome this ? Any help would be greatly appreciated!
>>>
>>
>> You can create a "personal" lib dir in your home directory (e. g.
>> /home/arvind/lib or in any directory that's available to you; however
>> /tmp would be a bad idea...) and set the prefix to it (try configure
>> --help for details). However that Qt installation may not be available
>> to anyone else on this machine, and you'll have to manually add the
>> lib and header paths to your compiler settings (gcc options -I and -L,
>> IIRC).
>>
>> Martin
>>
>
> Thanks a lot to all you guys for quick help. I would try to install it
> with suggested ./configure option.
>
I chose ./configure -prefix-install option and then typed make now I am
running into this error. Any idea on this ?
In file included from ../../include/QtGui/private/qcups_p.h:1,
from painting/qpdf.cpp:27:
../../src/gui/painting/qcups_p.h: In function `int
QCUPSSupport::cupsVersion ()':
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MAJOR' undeclared
(first use this function)
../../src/gui/painting/qcups_p.h:52: (Each undeclared identifier is
reported only once for each function it appears in.)
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MINOR' undeclared
(first use this function)
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_PATCH' undeclared
(first use this function)
make[2]: *** [.obj/release-shared/qpdf.o] Error 1
make[2]: Leaving directory `/home/apurohit/Qt/4.2.3/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/apurohit/Qt/4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2
--
[ signature omitted ]
Arvind,
Put the command line here.
Thks
Wagner
Arvind Purohit <purohit_arvind@xxxxxxxxx> escreveu: Arvind Purohit wrote:
>
>
> Martin Gebert wrote:
>
>> Arvind Purohit schrieb:
>>
>>> Hi All,
>>>
>>> I am a new user to QT. I want to install QT on my linux machine but I
>>> dont have root password to it. Can I still do it ? As the INSTALL
>>> files says that
>>>
>>> To install the library, demos, examples, tools, and tutorials,
>>> type:
>>>
>>> su -c "make install"
>>>
>>> Can not I overcome this ? Any help would be greatly appreciated!
>>>
>>
>> You can create a "personal" lib dir in your home directory (e. g.
>> /home/arvind/lib or in any directory that's available to you; however
>> /tmp would be a bad idea...) and set the prefix to it (try configure
>> --help for details). However that Qt installation may not be available
>> to anyone else on this machine, and you'll have to manually add the
>> lib and header paths to your compiler settings (gcc options -I and -L,
>> IIRC).
>>
>> Martin
>>
>
> Thanks a lot to all you guys for quick help. I would try to install it
> with suggested ./configure option.
>
I chose ./configure -prefix-install option and then typed make now I am
running into this error. Any idea on this ?
In file included from ../../include/QtGui/private/qcups_p.h:1,
from painting/qpdf.cpp:27:
../../src/gui/painting/qcups_p.h: In function `int
QCUPSSupport::cupsVersion ()':
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MAJOR' undeclared
(first use this function)
../../src/gui/painting/qcups_p.h:52: (Each undeclared identifier is
reported only once for each function it appears in.)
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MINOR' undeclared
(first use this function)
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_PATCH' undeclared
(first use this function)
make[2]: *** [.obj/release-shared/qpdf.o] Error 1
make[2]: Leaving directory `/home/apurohit/Qt/4.2.3/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/apurohit/Qt/4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2
--
[ signature omitted ]
Message 3 in thread
Arvind,
Put the command line here.
Thks
Wagner
Arvind Purohit <purohit_arvind@xxxxxxxxx> escreveu: Arvind Purohit wrote:
>
>
> Martin Gebert wrote:
>
>> Arvind Purohit schrieb:
>>
>>> Hi All,
>>>
>>> I am a new user to QT. I want to install QT on my linux machine but I
>>> dont have root password to it. Can I still do it ? As the INSTALL
>>> files says that
>>>
>>> To install the library, demos, examples, tools, and tutorials,
>>> type:
>>>
>>> su -c "make install"
>>>
>>> Can not I overcome this ? Any help would be greatly appreciated!
>>>
>>
>> You can create a "personal" lib dir in your home directory (e. g.
>> /home/arvind/lib or in any directory that's available to you; however
>> /tmp would be a bad idea...) and set the prefix to it (try configure
>> --help for details). However that Qt installation may not be available
>> to anyone else on this machine, and you'll have to manually add the
>> lib and header paths to your compiler settings (gcc options -I and -L,
>> IIRC).
>>
>> Martin
>>
>
> Thanks a lot to all you guys for quick help. I would try to install it
> with suggested ./configure option.
>
I chose ./configure -prefix-install option and then typed make now I am
running into this error. Any idea on this ?
In file included from ../../include/QtGui/private/qcups_p.h:1,
from painting/qpdf.cpp:27:
../../src/gui/painting/qcups_p.h: In function `int
QCUPSSupport::cupsVersion ()':
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MAJOR' undeclared
(first use this function)
../../src/gui/painting/qcups_p.h:52: (Each undeclared identifier is
reported only once for each function it appears in.)
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MINOR' undeclared
(first use this function)
../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_PATCH' undeclared
(first use this function)
make[2]: *** [.obj/release-shared/qpdf.o] Error 1
make[2]: Leaving directory `/home/apurohit/Qt/4.2.3/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/apurohit/Qt/4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2
--
[ signature omitted ]
Message 4 in thread
Hi, Which version of Qt is this? On which exact Linux distribution? > ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MAJOR' undeclared > (first use this function) > ../../src/gui/painting/qcups_p.h:52: (Each undeclared identifier is > reported only once for each function it appears in.) > ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MINOR' undeclared > (first use this function) > ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_PATCH' undeclared > (first use this function) It looks like your Linux distribution ships with an old version of CUPS (CUPS is a printing system used on Linux and UNIX systems) that is not supported by this version of Qt. Maybe this has been worked around in more recent versions of Qt. -- [ signature omitted ]
Hi, I am using Linux Kernel version 2.4.20-20.7 and am trying to compile QT 4.2.3. Also I used the command "make". Before that I used "./configure -prefix-install" Thanks, Arvind Dimitri wrote: > Hi, > > Which version of Qt is this? On which exact Linux distribution? > >> ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MAJOR' undeclared >> (first use this function) >> ../../src/gui/painting/qcups_p.h:52: (Each undeclared identifier is >> reported only once for each function it appears in.) >> ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MINOR' undeclared >> (first use this function) >> ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_PATCH' undeclared >> (first use this function) > > > It looks like your Linux distribution ships with an old version of CUPS > (CUPS is a printing system used on Linux and UNIX systems) that is not > supported by this version of Qt. Maybe this has been worked around in > more recent versions of Qt. > > -- > Dimitri -- [ signature omitted ]
Hi, > I am using Linux Kernel version 2.4.20-20.7 and am trying to compile QT > 4.2.3. Also I used the command "make". Before that I used "./configure > -prefix-install" The Linux kernel is usually irrelevant for applications. -- [ signature omitted ]
And this is under Red Hat Linux 7.3 2.96-113. Thanks, Arvind Dimitri wrote: > Hi, > > Which version of Qt is this? On which exact Linux distribution? > >> ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MAJOR' undeclared >> (first use this function) >> ../../src/gui/painting/qcups_p.h:52: (Each undeclared identifier is >> reported only once for each function it appears in.) >> ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_MINOR' undeclared >> (first use this function) >> ../../src/gui/painting/qcups_p.h:52: `CUPS_VERSION_PATCH' undeclared >> (first use this function) > > > It looks like your Linux distribution ships with an old version of CUPS > (CUPS is a printing system used on Linux and UNIX systems) that is not > supported by this version of Qt. Maybe this has been worked around in > more recent versions of Qt. > > -- > Dimitri -- [ signature omitted ]
Arvind Purohit a écrit :
> And this is under Red Hat Linux 7.3 2.96-113.
OK, this is really an old Linux distribution. You may:
* build Qt without CUPS support (-no-cups),
* try a recent Qt snapshot, see whether the problem has been fixed
there, and possibly backport the fix to your Qt 4.2.3 sources.
* fix the problem by yourself by modifying file qcups_p.h in the Qt
sources from:
static int cupsVersion() { return [...]; }
to:
static int cupsVersion() { return 0; }
and see how it works (no guarantees).
--
[ signature omitted ]
Dimitri wrote:
> Arvind Purohit a écrit :
>
>> And this is under Red Hat Linux 7.3 2.96-113.
>
>
> OK, this is really an old Linux distribution. You may:
> * build Qt without CUPS support (-no-cups),
> * try a recent Qt snapshot, see whether the problem has been fixed
> there, and possibly backport the fix to your Qt 4.2.3 sources.
> * fix the problem by yourself by modifying file qcups_p.h in the Qt
> sources from:
> static int cupsVersion() { return [...]; }
> to:
> static int cupsVersion() { return 0; }
> and see how it works (no guarantees).
>
> --
> Dimitri
Thanks Dimitri for your help. I configured it with out CUPS. Now make
stopped with below error.
styles/qstylesheetstyle.cpp: In method `void
QStyleSheetStyle::setPalette (QWidget *)':
styles/qstylesheetstyle.cpp:1578: semicolon missing after declaration
of `QStyleSheetStyle::setPalette (QWidget *)::RuleRoleMap'
make[2]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1
make[2]: Leaving directory `/home/apurohit/Qt/4.2.3/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/apurohit/Qt/4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2
Any idea ?
Thanks,
Arvind
--
[ signature omitted ]
Dimitri wrote:
> Arvind Purohit a écrit :
>
>> And this is under Red Hat Linux 7.3 2.96-113.
>
>
> OK, this is really an old Linux distribution. You may:
> * build Qt without CUPS support (-no-cups),
> * try a recent Qt snapshot, see whether the problem has been fixed
> there, and possibly backport the fix to your Qt 4.2.3 sources.
> * fix the problem by yourself by modifying file qcups_p.h in the Qt
> sources from:
> static int cupsVersion() { return [...]; }
> to:
> static int cupsVersion() { return 0; }
> and see how it works (no guarantees).
>
> --
> Dimitri
Thanks Dimitri for your help. I configured it with out CUPS. Now make
stopped with below error.
styles/qstylesheetstyle.cpp: In method `void
QStyleSheetStyle::setPalette (QWidget *)':
styles/qstylesheetstyle.cpp:1578: semicolon missing after declaration
of `QStyleSheetStyle::setPalette (QWidget *)::RuleRoleMap'
make[2]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1
make[2]: Leaving directory `/home/apurohit/Qt/4.2.3/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/apurohit/Qt/4.2.3/src'
make: *** [sub-src-make_default-ordered] Error 2
Any idea ?
Thanks,
Arvind
--
[ signature omitted ]
Hi, > Thanks Dimitri for your help. I configured it with out CUPS. Now make > stopped with below error. Are you using the native Red Hat 7.3 compiler? Red Hat 7.3 ships with gcc 2.96. Trolltech supports gcc versions >= 3.2: http://www.trolltech.com/developer/notes/compilers/gcc That said you may be able to build at least the Qt library with gcc 2.96, but then you should be prepared to modify the Qt sources. Another option is to use Qt 3. -- [ signature omitted ]