Hey,

You may want to chech the qt-3d archives as there has been some discussion 
related to building on win7. 
http://lists.trolltech.com/pipermail/qt-3d/2010-June/000009.html

Here's how I build on win7 (hopefully did not forget anything...)

Build Qt:
(make sure you have perl installed(a prereq to build Qt from source))
configure -developer-build -platform win32-g++
minqw32-make
(Add <buildroot>\bin to PATH. Restart cmd prompt for the change to take effect)


Build qt-3d:
Currently, there is a problem that makes the build fail on error. To fix it, in 
file <qt>\src\declarative\qml\qdeclarative.h, change method:
>>>>>>>>>
template<typename T>
int qmlRegisterInterface(const char *typeName)
{
    QByteArray name(typeName);

    QByteArray pointerName(name + '*');
    QByteArray listName("QDeclarativeListProperty<" + name + ">");

    QDeclarativePrivate::RegisterInterface interface = {
        0,

        qRegisterMetaType<T *>(pointerName.constData()),
        qRegisterMetaType<QDeclarativeListProperty<T> >(listName.constData()),

        qobject_interface_iid<T *>()
    };

    return QDeclarativePrivate::registerType(interface);
}
<<<<<<<<<<
TO:
>>>>>>>>>>
template<typename T>
int qmlRegisterInterface(const char *typeName)
{
    QByteArray name(typeName);

    QByteArray pointerName(name + '*');
    QByteArray listName("QDeclarativeListProperty<" + name + ">");

    QDeclarativePrivate::RegisterInterface intrface = {
        0,

        qRegisterMetaType<T *>(pointerName.constData()),
        qRegisterMetaType<QDeclarativeListProperty<T> >(listName.constData()),

        qobject_interface_iid<T *>()
    };

    return QDeclarativePrivate::registerType(intrface);
}
<<<<<<<<<<
(Note that "interface" is changed to "intrface")
(make new dir for src and cd to it)
cd c:/qtlibs
qmake -v (make sure you're using right qmake: verify the path)
git clone git://gitorious.org/qt-labs/qt3d.git
qmake
mingw32-make
(run some of the example in qt3d/bin directory to test the build)

Hope this helps.
Carl
________________________________________
From: [email protected] [[email protected]] On Behalf Of 
ext Didier Indy [[email protected]]
Sent: Monday, June 21, 2010 3:56 AM
To: QT 3D
Subject: [Qt-3d] Install Windows 7 mingw5.1.6

Hello,

Could you please review the Installation page with exact details of sources ?
e.g. git exact command for qt source

I wanna use but it's too long just to set-up an environement.

Here I attempted to compile from different QT archive and Git.

With RC1 Q3D don't compile.
With latest QT head tar.gz don't compile QT.

A line by line guide would be great.
The main roblem is to find the correct QT source files with git.

Thank you,
Didier

________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up 
now.<https://signup.live.com/signup.aspx?id=60969>

_______________________________________________
Qt-3d mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-3d

Reply via email to