Abdelrazak Younes wrote:
> Joost Verburg wrote:
>>> Interesting. Bo's README suggests that "all" doesn't depend on "po".
>>>
>>> What happens if you specify individual targets:
>>> boost, intl, support, mathed, insets, frontends, graphics,
>>> controllers, client, qt3, qt4, lyxbase
>>
>> I can get it to compile with the target 'install', but lyx.exe crashes
>> immediately.
> 
> Try to launch "lyx.exe -dbg any" to see how far it goes. Peter did you
> try the debug mode compilation? It would help resolving this crash.
> 

you need the qt4/lyx_gui.C patch I posted yesterday, at least:

Index: qt4/lyx_gui.C
===================================================================
--- qt4/lyx_gui.C       (revision 14037)
+++ qt4/lyx_gui.C       (working copy)
@@ -55,6 +55,8 @@
 #include <QEventLoop>
 #include <QTranslator>
 #include <QTextCodec>
+#include <QLocale>
+#include <QLibraryInfo>

 using lyx::support::ltrim;
 using lyx::support::package;
@@ -167,19 +169,23 @@

        // install translation file for Qt built-in dialogs
        // These are only installed since Qt 3.2.x
-       QTranslator qt_trans(0);
-       if (qt_trans.load(QString("qt_") + QTextCodec::locale(),
-                         qInstallPathTranslations())) {
+       static QTranslator qt_trans;
+       QString language_name = QString("qt_") + QLocale::system().name();
+       language_name.truncate(5);
+       if (qt_trans.load(language_name,
+               QLibraryInfo::location(QLibraryInfo::TranslationsPath))
+               )
+       {
                qApp->installTranslator(&qt_trans);
                // even if the language calls for RtL, don't do that
-               qApp->setReverseLayout(false);
+               qApp->setLayoutDirection(Qt::LeftToRight);
                lyxerr[Debug::GUI]
                        << "Successfully installed Qt translations for locale "
-                       << QTextCodec::locale() << std::endl;
+                       << language_name.toStdString().c_str() << std::endl;
        } else
                lyxerr[Debug::GUI]
                        << "Could not find  Qt translations for locale "
-                       << QTextCodec::locale() << std::endl;
+                       << language_name.toStdString().c_str() << std::endl;



Here the new cody for your c&p convinience

        static QTranslator qt_trans;
        QString language_name = QString("qt_") + QLocale::system().name();
        language_name.truncate(5);
        if (qt_trans.load(language_name,
                QLibraryInfo::location(QLibraryInfo::TranslationsPath))
                )
        {
                qApp->installTranslator(&qt_trans);
                // even if the language calls for RtL, don't do that
                qApp->setLayoutDirection(Qt::LeftToRight);
                lyxerr[Debug::GUI]
                        << "Successfully installed Qt translations for locale "
                        << language_name.toStdString().c_str() << std::endl;
        } else
                lyxerr[Debug::GUI]
                        << "Could not find  Qt translations for locale "
                        << language_name.toStdString().c_str() << std::endl;

> 
>> Did anyone succeed to build LyX with MSVC 2005?
> 
> I haven't tried lately but last time it worked quite well, except for a
> resize bug.
> 
> Abdel.
> 
> 

Reply via email to