[Insight-users] Problem cross-compiling ITK 4.2.1 for MX53 (Ed Menard)
Matt McCormick
matt.mccormick at kitware.com
Sun Dec 9 21:37:32 EST 2012
On Sun, Dec 9, 2012 at 12:20 PM, Vladimir S. FONOV <vladimir.fonov at gmail.com
> wrote:
> Hello,
>
> the problem comes from the fact that ITK bundles lib tiff library source
> in Modules/ThirdParty/TIFF/src , which builds a binary program (
> itkmkg3states from mkg3states.c) which is used to generate the source
> of tif_fax3sm.c
>
> In case of cross-platform build it means that Cmake have to figure out
> that itkmkg3states have to be build using your host compiler and not
> cross-compiler (i.e building a binary for intel instead for arm).
>
> You can probably get around it by using libtiff which comes with iMX build
> environment ( set ITK_USE_SYSTEM_TIFF to ON)
>
ITK_USE_SYSTEM_TIFF was recently fixed, so using the most recent ITK 4.3
release candidate is suggested.
HTH,
Matt
>
> On 2012-12-09, at 12:00 PM, insight-users-request at itk.org wrote:
>
> Here are the steps I performed:
> - Created an empty directory (ITK-MX53-4.2.1), peer with the sources
> (InsightToolkit-4.2.1)
> - Created a ToolChain-MX53.cmake file (including setting CMAKE_SYSTEM_NAME
> to Linux and other settings)
> - Copied ToolChain-MX53.cmake to ITK-MX53-4.2.1
> - From ITK-MX53-4.2.1 ran: cmake
> -DCMAKE_TOOLCHAIN_FILE=./Toolchain-MX53.cmake ../InsightToolkit-4.2.1
> - Copied the generated cmTryCompileExecXxx files to the target and ran
> them,
> and then copied TryRunResults.cmake to TryRunResults-MX53.cmake and updated
> with the obtained results
> - From ITK-MX53-4.2.1 ran: cmake -C ./TryRunResults-MX53.cmake
> ../InsightToolkit-4.2.1
> - Ran make
>
>
> ---
> Best regards,
>
> Vladimir S. FONOV
>
>
>
>
>
>
> _____________________________________
> 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://www.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-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121209/c3ffd704/attachment.htm>
More information about the Insight-users
mailing list