Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Cross compilation and CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Cross compilation and CGAL


Chronological Thread 
  • From: Hadrien Hamel <>
  • To:
  • Subject: Re: [cgal-discuss] Cross compilation and CGAL
  • Date: Sat, 24 Jan 2009 16:00:27 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=NpO63Z52mjG3P41yNIx4tqFl8SLfzQOV0NDStiqQXMLFy6hzdKFy2plEAS3R1Zchmx SQtzxKJJLwu5VLSUigr75Pk1A0/gPtDsTA3gfNkFrqrKLBmXdziIjYVqzc5cmQVbXZ4p cjsr2QfMX0GoPY2pBunsK0fKTEVkMuEWtdnAE=

Hi Joachim, thanks for your quick answer.

> are talking about the tests in config/testfiles? You could cross-compile
> them
> manually, copy the executables to the target and take notes of the results.
> Then
> fake the tests to return the recorded results. Shouldn't be too hard to
> automate
> that with a short script.

Yes I am talking about these tests. My intention is to use a
cross-compilation framework which has support for cmake (this
framework is a project called openembedded [1] ).
I could run the tests on the target, but my goal is not to do this
manually. I would like to use only cmake.

> CMake seems to have some support for cross-compiling, see
> http://www.cmake.org/Wiki/CMake_Cross_Compiling. But I have no idea whether
> this
> would work with CGALs CMake scripts.

The options on this cmake wiki page are the ones automatically set by
openembedded. CMake is indeed ready for cross-compilation (as
autotools are), and the profit of using cmake is that you let
openembedded (or any other cross-compilation framework) configure
cmake with the cross-toolchain, compile the project, and prepare
binary packages ready to be installed. This cannot be done if test
programs are compiled for target and run on host.

If you have an idea for disabling the tests and still have the correct
options, please let me know. Otherwise I will try to work around this
by patching out tests in my openembedded build project for CGAL.

[1] www.openembedded.org

Hadrien
--
http://www.benou.fr/~hadrien/robots/



Archive powered by MHonArc 2.6.16.

Top of Page