<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; line-height:1.3; color:#1F497D">
You need to specify a 64-bit generator in CMake if you want to build a 64-bit application.
<br>
<div><br>
</div>
<div id="x_signature-x" class="x_signature_editor" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12.0pt; color:#1F497D">
Andras<br>
</div>
</div>
<div id="x_quoted_header" style="clear:both">
<hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1">
<div style="border:none; padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt; font-family:'Calibri','sans-serif'"><b>From:</b> Elvis Stansvik <elvis.stansvik@orexplore.com><br>
<b>Sent:</b> Sunday, August 19, 2018 10:54 AM<br>
<b>To:</b> VTK Users<br>
<b>Subject:</b> Re: [vtkusers] Problem depending on VTK >= 8.1 with CMake 3.12.1 and VTK 8.1.1 on Win 10/MSVC 2017<br>
</span></div>
</div>
<br type="attribution">
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">2018-08-19 10:45 GMT+02:00 Elvis Stansvik <elvis.stansvik@orexplore.com>:<br>
> 2018-08-19 10:05 GMT+02:00 Elvis Stansvik <elvis.stansvik@orexplore.com>:<br>
>> Hey all,<br>
>><br>
>> In the past it was worked for us to depend on VTK 8.1 with<br>
>><br>
>> find_package(VTK 8.1 ....)<br>
>><br>
>> But now I'm having trouble with a setup like this:<br>
>><br>
>> - Windows 10<br>
>> - CMake 3.12.1<br>
>> - VTK 8.1.1<br>
>><br>
>> The error I get when configuring our project is:<br>
>><br>
>> -- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.16299.<br>
>> CMake Error at CMakeLists.txt:29 (find_package):<br>
>> Could not find a configuration file for package "VTK" that is compatible<br>
>> with requested version "8.1".<br>
>><br>
>> The following configuration files were considered but not accepted:<br>
>><br>
>> C:/Users/Elvis/Dev/VTK-8.1.1-inst/lib/cmake/vtk-8.1/VTKConfig.cmake,<br>
>> version: 8.1.1 (64bit)<br>
>><br>
>> This is nonsensical to me. Version 8.1.1 (which was found) should be<br>
>> able to satisfy 8.1.<br>
><br>
> By digging in VTKConfigVersion.cmake I've found out that this is due<br>
> to some 32/64 bit mismatch (would be nice with a better error<br>
> message).<br>
><br>
> I.e. this check is failing:<br>
><br>
> # check that the installed version has the same 32/64bit-ness as the<br>
> one which is currently searching:<br>
> if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")<br>
> math(EXPR installedBits "8 * 8")<br>
> set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")<br>
> set(PACKAGE_VERSION_UNSUITABLE TRUE)<br>
> endif()<br>
<br>
So ${CMAKE_SIZEOF_VOID_P} is 4 on this computer (just printed it with<br>
message(..)), despite<br>
<br>
1) CMake is installed from cmake-3.12.1-win64-x64.msi<br>
2) The computer is 64 bit<br>
3) The OS is 64 bit<br>
4) It's run in a MSVC native x64 command prompt<br>
<br>
Is this a CMake bug? Or should the check above be rewritten somehow?<br>
<br>
Elvis<br>
<br>
><br>
> I'll try to figure out where I went wrong, but I'm pretty sure<br>
> everything has been done in a MSVC 64-bit native command prompt, and<br>
> the machine is 64-bit.<br>
><br>
> Elvis<br>
><br>
>><br>
>> Just to test, I set the dependency in our CMakeLists.txt to exactly<br>
>> 8.1.1, and got:<br>
>><br>
>> -- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.16299.<br>
>> CMake Error at CMakeLists.txt:29 (find_package):<br>
>> Could not find a configuration file for package "VTK" that is compatible<br>
>> with requested version "8.1.1".<br>
>><br>
>> The following configuration files were considered but not accepted:<br>
>><br>
>> C:/Users/Elvis/Dev/VTK-8.1.1-inst/lib/cmake/vtk-8.1/VTKConfig.cmake,<br>
>> version: 8.1.1 (64bit)<br>
>><br>
>> Which makes it obvious something is not right.<br>
>><br>
>> For reference, cmake was invoked like<br>
>><br>
>> cmake -DCMAKE_PREFIX_PATH=C:/Users/Elvis/Dev/qwt-6.1.2-inst;C:/Users/Elvis/Dev/VTK-8.1.1-inst;C:/Users/Elvis/Dev/HDF5/1.10.2;C:/Users/Elvis/Dev/karchive-5.36.0-inst<br>
>> ..<br>
>><br>
>> where C:/Users/Elvis/Dev/VTK-8.1.1-inst is the installation prefix of VTK.<br>
>><br>
>> Any ideas? Was there some change in CMake recently that could have caused this?<br>
>><br>
>> Many thanks in advance,<br>
>> Elvis<br>
_______________________________________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585462737&sdata=83h1ptlXTNaPMoYKBlnIDdiI0GcQZ%2BTk7aoUOH6%2BcKE%3D&reserved=0">
https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585462737&sdata=83h1ptlXTNaPMoYKBlnIDdiI0GcQZ%2BTk7aoUOH6%2BcKE%3D&reserved=0</a><br>
<br>
Visit other Kitware open-source projects at <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=snPd2d0Lz3yK8gx70%2BGP%2FrsysC259odxCi78gbth4Ro%3D&reserved=0">
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=snPd2d0Lz3yK8gx70%2BGP%2FrsysC259odxCi78gbth4Ro%3D&reserved=0</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=VwPEkjGzeuHP8M8%2FPmUnUjJ2J9L6Ix71C%2FlVnxDeIFw%3D&reserved=0">
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=VwPEkjGzeuHP8M8%2FPmUnUjJ2J9L6Ix71C%2FlVnxDeIFw%3D&reserved=0</a><br>
<br>
Search the list archives at: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=aLdQIAKjm8yNuOVYelhvKeenVmljp6aPSsgqv94q53c%3D&reserved=0">
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=aLdQIAKjm8yNuOVYelhvKeenVmljp6aPSsgqv94q53c%3D&reserved=0</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=nwkOPmpamQWMns5cbibwKELToXugVVoEe7x810Va%2FRs%3D&reserved=0">https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C8aaaadfeff784d7d728008d605b157d4%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636702656585472747&sdata=nwkOPmpamQWMns5cbibwKELToXugVVoEe7x810Va%2FRs%3D&reserved=0</a><br>
</div>
</span></font>
</body>
</html>