[Insight-developers] Compiling ITK 4.3.1 with VS 2008 Express 64bit (and Python bindings) (!SOLVED!)
Matthias Seise
mseise at gmx.de
Tue Feb 26 02:58:29 EST 2013
The master build worked and I'm switching back to the release version.
I found the actual bug in CMake (reported #0013953):
In file CMakeVS9FindMake.cmake the lines
...
if(NOT CMAKE_CROSSCOMPILING)
set( _CMAKE_MAKE_PROGRAM_NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} VCExpress)
endif()
...
create the search String "devenvVCExpress" which is not found - for me
the simple workaround
set( _CMAKE_MAKE_PROGRAM_NAMES VCExpress)
worked for a correct cmake setup. Now I'm waiting for the new build to
finish (it takes about 5-6 hours since the python bindings are always
created new)
On that topic: Does anybody know how to speed up the building of th
python bindings in Windows?
Matthias
On 25 February 2013 17:20, Matthias Seise <mseise at gmx.de> wrote:
> It seems that the problem was the missing Win32 preprocessor
> definition in the cmake configuration. Thus the openjpeg library
> assumed a linux system... (It uses a lot of preprocessor code in
> opj_malloc.h to determine the OS)
>
> Since building takes a while I can tell you the result tomorrow.
>
> Matthias
>
> On 25 February 2013 07:44, Matthias Seise <mseise at gmx.de> wrote:
>> Hi Brad,
>>
>> I got the release branch and it's still the same problem...
>>
>> Matthias
>>
>> On 24 February 2013 20:28, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:
>>> Hello,
>>>
>>> I don't specifically know which patch may have addressed this issue.
>>>
>>> There will likely be a 4.3.2 patch release in the coming months. The "release" branch in the git repository contains the current patches that would be in the patch release. It would be great if you could check this out, and let us know if it will build for your configuration.
>>>
>>> Thanks,
>>> Brad
>>>
>>> On Feb 23, 2013, at 9:15 AM, Matthias Seise <mseise at gmail.com> wrote:
>>>
>>>> Hi ITK Developers,
>>>>
>>>> I'll try moving to ITK 4.3 (from 4.2) and get the following Compiler errors (Using VS 2008 Express, Win7 64 bit, try to build python bindings for 2.7.2 :
>>>>
>>>> Creating library C:\Entwicklungsbibliotheken\itk_v43\build\lib\Release\itkTestDriver.lib and object C:\Entwicklungsbibliotheken\itk_v43\build\lib\Release\itkTestDriver.exp
>>>> 2>itkopenjpeg-4.3.lib(tcd.obj) : error LNK2019: unresolved external symbol posix_memalign referenced in function opj_aligned_malloc
>>>> 2>itkopenjpeg-4.3.lib(dwt.obj) : error LNK2001: unresolved external symbol posix_memalign
>>>> 2>itkopenjpeg-4.3.lib(t1.obj) : error LNK2001: unresolved external symbol posix_memalign
>>>> 2>C:\Entwicklungsbibliotheken\itk_v43\build\bin\Release\itkTestDriver.exe : fatal error LNK1120: 1 unresolved externals
>>>>
>>>> Through Google I found that the same problem occured in CDASH on 9th February - but seemes to be resolved.
>>>> Any idea how that was done? (If possible I don't want to switch to the ITK developer version...)
>>>>
>>>> Thanks,
>>>>
>>>> Matthias
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Kitware offers ITK Training Courses, for more information visit:
>>>> http://kitware.com/products/protraining.php
>>>>
>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.itk.org/mailman/listinfo/insight-developers
>>>
More information about the Insight-developers
mailing list