Open torsakch opened 5 years ago
I confirm that mruby-onig-regexp support Visual Studio, mingw64, Linux, OSX. What is target OS? Please show me compilation error.
I'm using OSX.
` MRuby::CrossBuild.new('android-armeabi') do |conf|
ENV['ANDROID_ARCH'] = 'armeabi'
toolchain :android
conf.gembox 'custom'
conf.cc.flags << '-O3' conf.linker.flags << "-lm"
end `
I'm trying to cross compile like this. In the custom.gembox, I have the line like this.
conf.gem :github => 'mattn/mruby-onig-regexp'
I found that when the system built, the file "onigmo-6.1.3.tar.gz" don't get unzipped and the onigmo doesn't get compiled. Thank you for help.
What error message?
The compile is fine. But it cannot be linked. The error messages are like "undef: _OnigEncodingASCII" when linked.
What compiler do you use? gcc or clang? version?
I use clang.
clang -v
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Hmm, can you build onigmo-6.1.3 with extract tar.gz?
I'm trying to cross compile this gem. Unfortunately, it's not success. Do you have some steps to do that? Thanks