[quickjs-devel] Re: Hello & Cross Compiling

  • From: Connor Nolan <connor24nolan@xxxxxxxx>
  • To: "quickjs-devel@xxxxxxxxxxxxx" <quickjs-devel@xxxxxxxxxxxxx>
  • Date: Wed, 28 Aug 2019 10:43:31 +0000

I sent a patch earlier that fixed this: "[quickjs-devel] Re: [PATCH] [V2] Allow 
Cross Compiling (Build Host 
QJSC)<https://www.freelists.org/post/quickjs-devel/PATCH-V2-Allow-Cross-Compiling-Build-Host-QJSC>".

________________________________
From: quickjs-devel-bounce@xxxxxxxxxxxxx <quickjs-devel-bounce@xxxxxxxxxxxxx> 
on behalf of Williams, Samuel <Samuel.Williams@xxxxxxxx>
Sent: Tuesday, August 27, 2019 8:36 PM
To: quickjs-devel@xxxxxxxxxxxxx <quickjs-devel@xxxxxxxxxxxxx>
Subject: [quickjs-devel] Hello & Cross Compiling

Hello everyone,

Looks like an awesome project.

I'm trying to get quickjs running on an embedded system. My host is
x86_64 and my target is x86 running a custom linux distribution. I'm
attempting to cross compile for my target but it seems that we run qjsc
as part of the make process to generate some artifacts that are used by qjs.

qjsc won't run on my host unless I build for my host, but then it (and
the artifacts it creates) won't run on the target, but if I build for
the target then the build will fail because qjsc doesn't function on my
host. Catch-22

Is there something I'm missing about cross compiling for the target? Or
do I need to try and build inside qemu (or something like that)?

--
Cheers,
Sam W

Other related posts: