Kayvan A. Sylvan wrote:
I am trying to compile lyx with qt2 on Cygwin. Has anyone seen this type of
error before?

g++ -DHAVE_CONFIG_H -I. -I../../../../lyx/src/frontends/qt2 -I../../../src 
-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -Winvalid-pch 
--include=../../../../lyx/src/frontends/qt2/pch.h -I../../../../lyx/src 
-I../../../../lyx/src/frontends -I../../../../lyx/images 
-I/usr/local/lib/qt2/include -I../../../../lyx/boost 
-I../../../../lyx/src/frontends/controllers -I/usr/local/include -Wextra -Wall 
-I/usr/X11R6/include -fno-exceptions -O2 -mms-bitfields -MT QPrefs.lo -MD -MP 
-MF .deps/QPrefs.Tpo -c ../../../../lyx/src/frontends/qt2/QPrefs.C -o QPrefs.o
../../../../lyx/src/frontends/qt2/QPrefs.C:242:2: warning: #warning FIXME!! The 
graphics cache no longer has a changeDisplay method.
../../../../lyx/src/frontends/qt2/QPrefs.C: In function `void 
lyx::frontend::<unnamed>::setComboxFont(QComboBox*, const std::string&, const 
std::string&)':
../../../../lyx/src/frontends/qt2/QPrefs.C:444: error: invalid initialization of 
reference of type 'const std::string&' from expression of type 'QString'
../../../../lyx/src/frontends/qt2/qt_helpers.h:26: error: in passing argument 1 of 
`std::pair<std::string, std::string> parseFontName(const std::string&)'
make[5]: *** [QPrefs.lo] Error 1

Committing this now...
Angus

--- src/frontends/qt2/QPrefs.C  18 Jun 2005 00:18:29 -0000      1.69
+++ src/frontends/qt2/QPrefs.C  20 Jun 2005 05:37:52 -0000
@@ -441,7 +441,7 @@
        }

        QFontInfo info(font);
-       pair<string, string> tmp = parseFontName(info.family());
+       pair<string, string> tmp = parseFontName(fromqstr(info.family()));
        string const & default_font_name = tmp.first;
        lyxerr << "Apparent font is " << default_font_name << endl;


Reply via email to