[kde-solaris] Problem compiling kdeadmin 3.1

Mikhail Veygman kde-solaris@mail.kde.org
Sun Mar 30 07:36:01 2003


This problem is not Unique,but is easily solved:

in the Makefile for kuser look for -DQT_NO_CAST_ASCII and comment it out.

This should compile correctly.

Regards,

Mikhail

Laurent Blume <laurent@elanor.org> wrote:

>I've got a problem while compiling kdeadmin 3.1.
>I've got Solaris 9 x86, qt 3.1.1, arts 1.1, kdelibs 3.1, kdebase 3.1, and I'm
>using GCC 2.95.3 with GNU binutils 2.13.2
>
>Here is the compile error:
>mnt.cpp: In method `Mounts::Mounts()':
>mnt.cpp:102: no matching function for call to `QString::arg (char *&)'
>/opt/qt/include/qstring.h:418: candidates are: class QString QString::arg(long
>int, int = 0, int = 10) const
>/opt/qt/include/qstring.h:419:                 class QString QString::arg(long
>unsigned int, int = 0, int = 10) const
>/opt/qt/include/qstring.h:875:                 class QString QString::arg(int,
>int = 0, int = 10) const
>/opt/qt/include/qstring.h:878:                 class QString
>QString::arg(unsigned int, int = 0, int = 10) const
>/opt/qt/include/qstring.h:881:                 class QString QString::arg(short
>int, int = 0, int = 10) const
>/opt/qt/include/qstring.h:884:                 class QString QString::arg(short
>unsigned int, int = 0, int = 10) const
>/opt/qt/include/qstring.h:424:                 class QString QString::arg(char,
>int = 0) const
>/opt/qt/include/qstring.h:425:                 class QString QString::arg(QChar,
>int = 0) const
>/opt/qt/include/qstring.h:426:                 class QString QString::arg(const
>QString &, int = 0) const
>/opt/qt/include/qstring.h:427:                 class QString
>QString::arg(double, int = 0, char = 'g', int = -1) const
>make[3]: *** [mnt.o] Erreur 1
>make[3]: Leaving directory `/export/home/space/apps/kde/obj/kdeadmin-3.1/kuser'
>make[2]: *** [all-recursive] Erreur 1
>make[2]: Leaving directory `/export/home/space/apps/kde/obj/kdeadmin-3.1/kuser'
>make[1]: *** [all-recursive] Erreur 1
>make[1]: Leaving directory `/export/home/space/apps/kde/obj/kdeadmin-3.1'
>make: *** [all] Erreur 2
>
>After having a look at the source, it seems it's right:
>    quotafilename = QString("%1%2%3")
>                          .arg(mt->mnt_mountp)
>                          .arg((mt->mnt_mountp[strlen(mt->mnt_mountp) - 1] ==
>'/') ? "" : "/")
>                          .arg(_KU_QUOTAFILENAME);
>
>mt is an mnttab struct, in which mnt_mountp is a char*, and there is no method
>to handle that in /opt/qt/include/qstring.h
>
>Anyone has an idea where I went wrong ??
>
>TIA,
>
>Laurent
> 
>___________________________________________________
>This message is from the kde-solaris mailing list.
>Account management:  http://mail.kde.org/mailman/listinfo/kde-solaris.
>Archives: http://lists.kde.org/.
>More info: http://www.kde.org/faq.html.
>

__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days!
http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promos=380455