Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cross complie? #647

Closed
hjiayz opened this issue Jun 18, 2015 · 1 comment
Closed

How to cross complie? #647

hjiayz opened this issue Jun 18, 2015 · 1 comment

Comments

@hjiayz
Copy link

hjiayz commented Jun 18, 2015

I try to complie iconv.
host:x86_64 ubuntu
target:ia32 win32
cross complie:i686-w64-mingw32-gcc
myScript:

cross=i686-w64-mingw32-
export AR=$cross"ar"
export CC=$cross"gcc"
export CXX=$cross"g++"
export LINK=$cross"g++"
export GYP_CROSSCOMPILE=1
export GYP_DEFINES="OS=win32"
m=(iconv)
for i in ${m[*]};
do
    cd node_modules/$i
    cnpm run-script install --target_platform="win32" --target_arch="ia32"
    cd ../../
done

but faild.

Skehmatics pushed a commit to Skehmatics/node-gyp that referenced this issue Jan 18, 2017
@maclover7
Copy link
Contributor

Moving to #829, see also #829 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants