Skip to content

[QUESTION] How to cross-compile luajit.so library for Android on Windows? #120

Answered by gudzpoz
leasses asked this question in Q&A
Discussion options

You must be logged in to vote

Quoting Mike Pall: LuaJIT/LuaJIT#934 (comment)

CygWin is not a fully supported target.

And judging from the official documentation:

  • Yes, you need a toolchain for both your host and your target!
  • Both host and target architectures must have the same pointer size.
    • E.g. if you want to cross-compile to a 32 bit target on a 64 bit host, you need to install the multilib development package (e.g. libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part (HOST_CC="gcc -m32").

You will need to figure out things yourself if you plan to continue using Cygwin.

If you are having problems installing Linux, I would recommend install it on a virtual machine instead (with, for example, Virtual…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by leasses
Comment options

You must be logged in to vote
2 replies
@gudzpoz
Comment options

@leasses
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #118 on September 03, 2023 07:25.