sorry. I do not speak English, use the google translator, but this did not translate correctly.
I will try to explain everything in more detail. I'm helping a user with a problem that has and is:
He uses Windows, I installed the Qt 4.6 and Qt Creator 1.3.1. The compiled, the project QLedIndicatorPlugin and thus generate a file. "Dll" QLedIndicatorPlugin.dll. It creates a new project in Qt Creator, is used dialog.ui. tries to load the new plugin via the menu Tools-> Form Editor-> About Qt Designer plugins. It you click on the refresh button and the following message:
Expected key full-config> <Windows msvc release, but has received <Windows mingw release full-config>
Expected key full-config> <Windows msvc release, but has received <Windows mingw release full-config>
To copy to clipboard, switch view to plain text mode
The truth, if I read this message, it is as if the application was waiting to receive the plugins compiled with Visual Studio instead of mingw, but it is not supposed to understand the official compiler is mingw Qt?
This means, you must recompile Qt Creator with mingw?
If so, as I proceed to compile Qt Creator?
On the other hand I tried to recompile Qt 4.6.2. with mingw, followed are explained in
http://psi-im.org/wiki/Compiling_Qt4...28supported.29
cd C:\Qt\4.1.0\src
mingw32-make distclean
qmake
mingw32-make
cd C:\Qt\4.1.0\src
mingw32-make distclean
qmake
mingw32-make
To copy to clipboard, switch view to plain text mode
and the compilation I get many error messages.
I installed the SDK v2010.02 Qt also QT 4.6.2. and Mingw (installed with the SDK).
When I use Qt Creator, I have configured;
QMake: qmake.exe proyecto.pro -spec win32-g++ -r
Make: mingw32-make.exe -w c:\...\proyecto
QMake: qmake.exe proyecto.pro -spec win32-g++ -r
Make: mingw32-make.exe -w c:\...\proyecto
To copy to clipboard, switch view to plain text mode
Not I installed the VC + +
To compile the Qt 4.6.2 libraries.
cd C:\Qt\4.6.2\src
mingw32-make distclean
qmake
mingw32-make
cd C:\Qt\4.6.2\src
mingw32-make distclean
qmake
mingw32-make
To copy to clipboard, switch view to plain text mode
And after a while to compile these errors are shown;
main.cpp:45:44: error: ../../corelib/global/qconfig.cpp: No such file or directory
mingw32-make[2]: *** [release/main.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.6.2/src/tools/moc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.6.2/src/tools/moc'
mingw32-make: *** [sub-moc-make_default] Error 2
main.cpp:45:44: error: ../../corelib/global/qconfig.cpp: No such file or directory
mingw32-make[2]: *** [release/main.o] Error 1
mingw32-make[2]: Leaving directory `C:/Qt/4.6.2/src/tools/moc'
mingw32-make[1]: *** [release] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.6.2/src/tools/moc'
mingw32-make: *** [sub-moc-make_default] Error 2
To copy to clipboard, switch view to plain text mode
I recompiled the plugin in release version, and the project settings have Qt Creator;
QMake: qmake.exe proyecto.pro -spec win32-g++ -r
Make: mingw32-make.exe in c:\...\proyecto
QMake: qmake.exe proyecto.pro -spec win32-g++ -r
Make: mingw32-make.exe in c:\...\proyecto
To copy to clipboard, switch view to plain text mode
But loading the plugin in Qt Creator still shows the same error.
We are talking about compiling a plugin to be used since QtCreator.
But as I have given to the formulation, to read online in some forums I found that the problem could be that the SDK which includes Qt, Qt Creator among others, where apparently Qt Creator is compiled with VC++.
This information is not if it is correct or not.
Anyway, I can not compile a plugin, when you load Qt Creator, not mark error. With the SDK you can download a number of examples, well explained including how to make a plugin to generate your own controls in the Qt Designer, but there is no way that the following examples may be used.
From what I understand, you must recompile QtCreator with mingw, and not use what is in the SDK. That's the idea I had as elsewhere. The truth can not understand how the SDK does not use a QtCreator compiled for Mingw, when it is assumed that this is official.
In any case, the problem I have is that I tried to recompile QtCreator and gives me errors and can not find a clear way to compile this application. I have downloaded the code and I compiled QtCreator by two routes: Using the Mingw, and simply with QtCreator, opening the project and compile Qt Creator. For both ways I had problems.
Bookmarks