Jean-Pierre Chretien writes:
> Just compiled lyx on Solaris 10 with QT 4.4.1, I get this (C locale)
>
> QIconvCodec::convertToUnicode: using ASCII for conversion, iconv_open failed
>
> At the first call, I got le lot of
> X Error: BadAtom (invalid Atom parameter) 5
> Major opcode: 17 (X_GetAtomName)
> Resource id: 0x70757368
> X Error: BadAtom (invalid Atom parameter) 5
> Major opcode: 17 (X_GetAtomName)
> Resource id: 0x64202f75
Try applying the following patch to the Qt sources:
--- config.tests/unix/iconv/iconv.cpp.orig
+++ config.tests/unix/iconv/iconv.cpp
@@ -7,7 +7,11 @@
{
iconv_t x = iconv_open("", "");
+#ifdef __sun__
+ const char *inp;
+#else
char *inp;
+#endif
char *outp;
size_t inbytes, outbytes;
iconv(x, &inp, &inbytes, &outp, &outbytes);
and then rebuild Qt after appending the following to the configure command:
-DGNU_LIBICONV -I/usr/X11/include -L/usr/X11/lib
Does that help?
--
Enrico