[mcstas-users] cross compiling mcstats
Willendrup, Peter Kjær
pkwi at risoe.dtu.dk
Fri Dec 10 12:52:51 CET 2010
Hello there,
First of all, interesting that you want to compile for Arm - what is the target device? J (I did actually myself run a McStas simulation on a jailbroken iPhone with a complete gnu toolchain...)
Nothing has explicitly/properly been set up for cross-compilation, but you are welcome to inspire from what is done for Win32 in our build script:
http://trac.mccode.org/browser/branches/mcstas-1.x/mkdist
- . /configure actually never runs, targeting the Win32 platform (most things are handled by platform-defines directly in our ISO C code) but our Linux build-host executes an explicit make target for Windows - from Makefile.in:
mcstas.win32: $(COBJECTS)
$(MINGW) -o mcstas.exe -DMCSTAS='"C:\\McStas\\lib"' $(CFLAGS) $(LDFLAGS) $(DEFS) $(COBJECTS) -lm $(USE_NEXUS)
$(MINGW) -o mcformat.exe -DMCSTAS='"C:\\McStas\\lib"' $(CFLAGS) $(LDFLAGS) $(DEFS) mcformat.c -lm $(USE_NEXUS)
Hope this helps,
Peter Willendrup
From: mcstas-users-bounces at mcstas.org [mailto:mcstas-users-bounces at mcstas.org] On Behalf Of chafik driouichi
Sent: 9. december 2010 16:34
To: mcstas-users at mcstas.org
Subject: [mcstas-users] cross compiling mcstats
Hello,
I was looking into the possibility of cross-compiling mcstats but when I tried to run :
23057964:~/ess/mcstas-1.12b$ <mailto:23057964@:~/ess/mcstas-1.12b$> ./configure --prefix=/home/23057964/ess/ --with-cc=arm-none-linux-gnueabi-gcc
checking for gcc... arm-none-linux-gnueabi-gcc
configure: WARNING: using cross tools not prefixed with host triplet
checking for C compiler default output file name...
configure: error: in `/home/23057964/ess/mcstas-1.12b':
configure: error: C compiler cannot create executables
See `config.log' for more details.
It seems that I have to set some kind of other variable. Is there somewhere where it describes how to cross-compile before I start digging into the build chain?
I'm targeting an ARM architecture.
Best regards,
/Mandel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20101210/c655255a/attachment.html>
More information about the mcstas-users
mailing list