Hi Mark,<div>Qt (4.6.3 and 4.7.1) is compiling fine on my Windows 7 64bits (I managed to compile in 32bits and 64bits, debug only and release only).</div><div>Make sure you are using the correct Visual Studio Command Line tool (there is a 32bits and 64bits versions, depending on the console, your qt build will be 32bits or 64bits).</div>

<div>Here are the sources I use: <a href="http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.1.zip">http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.1.zip</a></div><div>Regards,</div><div>

Julien.</div><div><br><div class="gmail_quote">On Sun, Jan 16, 2011 at 1:38 PM, Mark Roden <span dir="ltr"><<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Yes, it doesn't work.<br>
<br>
On Sun, Jan 16, 2011 at 12:19 PM, Gelas, Arnaud Joel Florent<br>
<div><div></div><div class="h5"><<a href="mailto:Arnaud_Gelas@hms.harvard.edu">Arnaud_Gelas@hms.harvard.edu</a>> wrote:<br>
> Have you looked at this one?<br>
><br>
> <a href="http://www.qtforum.org/article/31561/error-when-building-libraries.html" target="_blank">http://www.qtforum.org/article/31561/error-when-building-libraries.html</a><br>
><br>
><br>
> ________________________________________<br>
> From: Mark Roden [<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>]<br>
> Sent: Sunday, January 16, 2011 3:09 PM<br>
> To: Gelas, Arnaud Joel Florent<br>
> Cc: Julien Finet; <a href="mailto:ctk-developers@commontk.org">ctk-developers@commontk.org</a>; Souhait, Lydie<br>
> Subject: Re: [Ctk-developers] getting things to work in windows<br>
><br>
> So I've tried many different solutions, including:<br>
> <a href="http://www.qtcentre.org/threads/19389-Qt-4.5-clean-up-build-dir-on-Windows" target="_blank">http://www.qtcentre.org/threads/19389-Qt-4.5-clean-up-build-dir-on-Windows</a><br>
> <a href="http://www.qtcentre.org/threads/26245-Qt-4.6-api%5Cqscriptextensionplugin.h%2843%29-Error-Undefined-interface" target="_blank">http://www.qtcentre.org/threads/26245-Qt-4.6-api%5Cqscriptextensionplugin.h%2843%29-Error-Undefined-interface</a><br>


> and so forth, still no joy.<br>
><br>
><br>
>> Now regarding the error, I may be wrong but I thought "C:\Program Files (x86)\" is for 32 bit software (I may be wrong on that one)?<br>
> That is true.  Visual studio 2008 is 32 bit, but can still compile 64<br>
> bit.  The relevant portion of the error is<br>
> api\qscriptextensionplugin.h(43): Error: Undefined interface<br>
> Not the rest; that's just saying which program failed (in that case,<br>
> nmake, which is vs2008's make).<br>
><br>
>><br>
>> Do you use the qt source tarball?<br>
> I did, version 4.7.1 from the website.<br>
><br>
><br>
>> i.e: install QT, install the necessary SDKs. Be sure that qmake is your<br>
>> path. Then, and this killed most of my problems, run in your dos command box<br>
>> (you will also use for starting compilation with configure) the visual<br>
>> studio setup script vcvars.bat to setup all necessary environment variables,<br>
>> e. g. for me this was:<br>
>> c:\Programme\Microsoft Visual Studio 9.0\VC\vcvars.bat<br>
> This is the equivalent of running in the vs2008 command prompt, which I'm doing.<br>
><br>
> I think that this might be a problem with the particular version of Qt<br>
> that I'm trying to use.  I'm going to go to the message boards to try<br>
> to find out if they have a solution for their more recent sdk versions<br>
> that supposedly fix this problem.<br>
><br>
> I hope it's not an issue that I'm running 64 bit windows 7.<br>
><br>
> Mark<br>
><br>
><br>
> On Fri, Jan 14, 2011 at 6:26 AM, Gelas, Arnaud Joel Florent<br>
> <<a href="mailto:Arnaud_Gelas@hms.harvard.edu">Arnaud_Gelas@hms.harvard.edu</a>> wrote:<br>
>> Hi Mark,<br>
>><br>
>> To speed up the compilation you can only compile the release libraries (unless you want to be able to debug some qt stuff too).<br>
>><br>
>> Now regarding the error, I may be wrong but I thought "C:\Program Files (x86)\" is for 32 bit software (I may be wrong on that one)?<br>
>><br>
>> Do you use the qt source tarball?<br>
>><br>
>> HTH,<br>
>> Arnaud<br>
>><br>
>><br>
>> ________________________________________<br>
>> From: Mark Roden [<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>]<br>
>> Sent: Thursday, January 13, 2011 7:09 PM<br>
>> To: Gelas, Arnaud Joel Florent<br>
>> Cc: Julien Finet; <a href="mailto:ctk-developers@commontk.org">ctk-developers@commontk.org</a><br>
>> Subject: Re: [Ctk-developers] getting things to work in windows<br>
>><br>
>> So after running for however long (I went away and came back, it's not<br>
>> an instant compilation), I got this compilation error:<br>
>><br>
>> api\qscriptextensionplugin.h(43): Error: Undefined interface<br>
>> NMAKE : fatal error U1077: 'D:\Qt\2010.05\qt\bin\moc.exe' : return code '0x1'<br>
>> Stop.<br>
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual<br>
>> Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'<br>
>> Stop.<br>
>> NMAKE : fatal error U1077: 'cd' : return code '0x2'<br>
>> Stop.<br>
>><br>
>> Any ideas, or just go right to the qt boards?<br>
>><br>
>> On Thu, Jan 13, 2011 at 11:32 AM, Arnaud GELAS<br>
>> <<a href="mailto:arnaud_gelas@hms.harvard.edu">arnaud_gelas@hms.harvard.edu</a>> wrote:<br>
>>> Have a look at this:<br>
>>> <a href="http://sourceforge.net/apps/trac/gofigure2/wiki/DeveloperSetUpWindows#a1.3Qt" target="_blank">http://sourceforge.net/apps/trac/gofigure2/wiki/DeveloperSetUpWindows#a1.3Qt</a><br>
>>><br>
>>> On 01/13/2011 02:30 PM, Mark Roden wrote:<br>
>>>><br>
>>>> I want to use visual studio.  One of the default Qt installation<br>
>>>> options is to install mingw, so I went ahead and did it.<br>
>>>><br>
>>>> I'll look into compiling qt for myself, then, in visual studio.<br>
>>>><br>
>>>> Thanks,<br>
>>>> Mark<br>
>>>><br>
>>>> On Thu, Jan 13, 2011 at 11:05 AM, Julien Finet<<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>><br>
>>>>  wrote:<br>
>>>>><br>
>>>>> What are you trying to achieve here? do you want to use Mingw or Visual<br>
>>>>> Studio ?<br>
>>>>> I'm not a user of Mingw, but it seems odd that Qt installs Mingw on your<br>
>>>>> machine.<br>
>>>>> How did you install mingw ? do you manage to build other projects ?<br>
>>>>> If you want to use visual studio, then you need to get Qt for Visual<br>
>>>>> studio<br>
>>>>> (if it exists) or compile qt yourself.<br>
>>>>> Julien.<br>
>>>>><br>
>>>>> On Thu, Jan 13, 2011 at 11:43 AM, Mark Roden<<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>>  wrote:<br>
>>>>>><br>
>>>>>> Hi Julien,<br>
>>>>>><br>
>>>>>> Ah, this may be why I'm unable to run cmake directly-- there is no<br>
>>>>>> qmake in my d:\qt\bin directory, only in the qmake directory.<br>
>>>>>><br>
>>>>>> There is a d:\qt\qt\bin directory that has a qmake in it.  Hopefully,<br>
>>>>>> it's the same thing.<br>
>>>>>><br>
>>>>>> I get this error next:<br>
>>>>>> CMake Error at C:/Program Files (x86)/CMake<br>
>>>>>> 2.8/share/cmake-2.8/Modules/FindQt4.cmake:788 (MESSAGE):<br>
>>>>>>  It appears you're trying to use Visual Studio with Qt built by mingw<br>
>>>>>> Call Stack (most recent call first):<br>
>>>>>>  CMake/ctkMacroSetupQt.cmake:29 (FIND_PACKAGE)<br>
>>>>>>  CMakeLists.txt:280 (ctkMacroSetupQt)<br>
>>>>>><br>
>>>>>> Since I selected the option to allow qt to install mingw on my system,<br>
>>>>>> I then deleted the cmake cache and tried to rerun with the option to<br>
>>>>>> use mingw as the makefile generator, resulting in:<br>
>>>>>> CMake Error: CMake was unable to find a build program corresponding to<br>
>>>>>> "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need<br>
>>>>>> to select a different build tool.<br>
>>>>>> CMake Error: CMake was unable to find a build program corresponding to<br>
>>>>>> "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need<br>
>>>>>> to select a different build tool.<br>
>>>>>> CMake Error: Error required internal CMake variable not set, cmake may<br>
>>>>>> be not be built correctly.<br>
>>>>>> Missing variable is:<br>
>>>>>> CMAKE_C_COMPILER_ENV_VAR<br>
>>>>>> CMake Error: Error required internal CMake variable not set, cmake may<br>
>>>>>> be not be built correctly.<br>
>>>>>> Missing variable is:<br>
>>>>>> CMAKE_C_COMPILER<br>
>>>>>> CMake Error: Could not find cmake module<br>
>>>>>> file:D:/src/ctk/CTK-build64/CMakeFiles/CMakeCCompiler.cmake<br>
>>>>>> CMake Error: Error required internal CMake variable not set, cmake may<br>
>>>>>> be not be built correctly.<br>
>>>>>> Missing variable is:<br>
>>>>>> CMAKE_CXX_COMPILER_ENV_VAR<br>
>>>>>> CMake Error: Error required internal CMake variable not set, cmake may<br>
>>>>>> be not be built correctly.<br>
>>>>>> Missing variable is:<br>
>>>>>> CMAKE_CXX_COMPILER<br>
>>>>>> CMake Error: Could not find cmake module<br>
>>>>>> file:D:/src/ctk/CTK-build64/CMakeFiles/CMakeCXXCompiler.cmake<br>
>>>>>> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage<br>
>>>>>> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage<br>
>>>>>> Configuring incomplete, errors occurred!<br>
>>>>>><br>
>>>>>> Any thoughts on where to go next?<br>
>>>>>><br>
>>>>>> I personally think that this is a cmake problem-- it appears that Qt<br>
>>>>>> changed their versioning to be more year-based than straight number<br>
>>>>>> based, and that cmake hasn't updated their module to reflect that.  I<br>
>>>>>> can't build vtk with the most recent qt either.<br>
>>>>>><br>
>>>>>> Mark<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> On Wed, Jan 12, 2011 at 4:34 PM, Julien Finet<<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>><br>
>>>>>> wrote:<br>
>>>>>>><br>
>>>>>>> Hi Mark,<br>
>>>>>>> You should use the qmake.exe located in D:/Qt/2010.05/qt/bin instead of<br>
>>>>>>>  D:/Qt/2010.05/qt/qmake<br>
>>>>>>> No need to add the qt dir in the path nor locate it anywhere special.<br>
>>>>>>> Julien.<br>
>>>>>>> On Wed, Jan 12, 2011 at 7:13 PM, Mark Roden<<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>>  wrote:<br>
>>>>>>>><br>
>>>>>>>> Changing the install directory to d:/qt did not work.  I don't have<br>
>>>>>>>> any space left on my c: drive; is that the only way to get qt and ctk<br>
>>>>>>>> to work well together, to have it be on the root drive?<br>
>>>>>>>><br>
>>>>>>>> Thanks,<br>
>>>>>>>> Mark<br>
>>>>>>>><br>
>>>>>>>> On Wed, Jan 12, 2011 at 2:57 PM, Mark Roden<<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>>  wrote:<br>
>>>>>>>>><br>
>>>>>>>>> OK, I'll check it out.<br>
>>>>>>>>><br>
>>>>>>>>> Is that a bug in the cmake module then?  I feel like there should be<br>
>>>>>>>>> some place where I can specify, exactly, where qt is.<br>
>>>>>>>>><br>
>>>>>>>>> Thanks,<br>
>>>>>>>>> Mark<br>
>>>>>>>>><br>
>>>>>>>>> On Wed, Jan 12, 2011 at 2:53 PM, Dean Inglis<<a href="mailto:dean.inglis@camris.ca">dean.inglis@camris.ca</a>><br>
>>>>>>>>> wrote:<br>
>>>>>>>>>><br>
>>>>>>>>>> Hi Mark,<br>
>>>>>>>>>><br>
>>>>>>>>>> I had similar issues when building VTK with QT GUI support.<br>
>>>>>>>>>> Try installing Qt ( qt-win-opensource-4.7.1-vs2008.exe)<br>
>>>>>>>>>> to just D:/Qt as root instead of<br>
>>>>>>>>>> D:/Qt/2010.05, add D:/Qt/bin and D:/Qt/qt/bin to<br>
>>>>>>>>>> your path environment variable.  I installed to C:/Qt<br>
>>>>>>>>>> even though all my development is done on a D: drive<br>
>>>>>>>>>> and those issues issues have since resolved.<br>
>>>>>>>>>><br>
>>>>>>>>>> Dean<br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>> ----- Original Message ----- From: "Mark Roden"<<a href="mailto:mmroden@gmail.com">mmroden@gmail.com</a>><br>
>>>>>>>>>> To:<<a href="mailto:ctk-developers@commontk.org">ctk-developers@commontk.org</a>><br>
>>>>>>>>>> Cc: "Alexandre Gouaillard"<<a href="mailto:agouaillard@gmail.com">agouaillard@gmail.com</a>><br>
>>>>>>>>>> Sent: Wednesday, January 12, 2011 5:37 PM<br>
>>>>>>>>>> Subject: [Ctk-developers] getting things to work in windows<br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>>> Hi all,<br>
>>>>>>>>>>><br>
>>>>>>>>>>> I'm a developer who's working on gdcm/itk/vtk, and now am trying to<br>
>>>>>>>>>>> familiarize myself with ctk.  I apologize if this email should go<br>
>>>>>>>>>>> to a<br>
>>>>>>>>>>> 'users' list instead of a developers list, but google finds too<br>
>>>>>>>>>>> many<br>
>>>>>>>>>>> instances of 'Christ The King' for ctk to be helpful.  Also, the<br>
>>>>>>>>>>> list<br>
>>>>>>>>>>> that appears here doesn't contain a users version of the list (for<br>
>>>>>>>>>>> itk<br>
>>>>>>>>>>> or vtk either, for that matter):<br>
>>>>>>>>>>><br>
>>>>>>>>>>> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-users" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-users</a><br>
>>>>>>>>>>><br>
>>>>>>>>>>> Anyway, I can't get ctk to build on my machine (Windows 7 x64,<br>
>>>>>>>>>>> vs2008).  I've installed Qt 2010.5, lgpl edition, including mingw.<br>
>>>>>>>>>>> Trying to build ctk from the git head produces the following error,<br>
>>>>>>>>>>> regardless of using 32bit or 64 bit compilers:<br>
>>>>>>>>>>><br>
>>>>>>>>>>> CMake Error at CMake/ctkMacroSetupQt.cmake:55 (MESSAGE):<br>
>>>>>>>>>>>  error: Qt4 was not found on your system.  You probably need to set<br>
>>>>>>>>>>> the<br>
>>>>>>>>>>>  QT_QMAKE_EXECUTABLE variable<br>
>>>>>>>>>>> Call Stack (most recent call first):<br>
>>>>>>>>>>>  CMakeLists.txt:280 (ctkMacroSetupQt)<br>
>>>>>>>>>>><br>
>>>>>>>>>>> I've found the qmake exe, it's located in<br>
>>>>>>>>>>> D:/Qt/2010.05/qt/qmake/qmake.exe, but then the cmake file reruns<br>
>>>>>>>>>>> and<br>
>>>>>>>>>>> changes that value to D:/Qt/2010.05/qt/qmake/qmake.exe-NOTFOUND,<br>
>>>>>>>>>>> which<br>
>>>>>>>>>>> is clearly incorrect.  Changing that value by hand also produces<br>
>>>>>>>>>>> the<br>
>>>>>>>>>>> following warning:<br>
>>>>>>>>>>><br>
>>>>>>>>>>> Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as<br>
>>>>>>>>>>><br>
>>>>>>>>>>><br>
>>>>>>>>>>><br>
>>>>>>>>>>><br>
>>>>>>>>>>> C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt/lib<br>
>>>>>>>>>>> Warning:<br>
>>>>>>>>>>><br>
>>>>>>>>>>><br>
>>>>>>>>>>><br>
>>>>>>>>>>> C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt/lib<br>
>>>>>>>>>>> does NOT exist, Qt must NOT be installed correctly.<br>
>>>>>>>>>>><br>
>>>>>>>>>>> I have no qt-greenhouse directory in the C: drive, so I'm not sure<br>
>>>>>>>>>>> where those values are coming from.<br>
>>>>>>>>>>><br>
>>>>>>>>>>> Thanks for any help,<br>
>>>>>>>>>>> Mark<br>
>>>>>>>>>>> _______________________________________________<br>
>>>>>>>>>>> Ctk-developers mailing list<br>
>>>>>>>>>>> <a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
>>>>>>>>>>> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
>>>>>>>>>><br>
>>>>>>>> _______________________________________________<br>
>>>>>>>> Ctk-developers mailing list<br>
>>>>>>>> <a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
>>>>>>>> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
>>>>>>><br>
>>>>><br>
>>>> _______________________________________________<br>
>>>> Ctk-developers mailing list<br>
>>>> <a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
>>>> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
>>><br>
>>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>