Comments (3)
@torsakch I don't know if you're still working on this but you need to build onigmo or oniguruma for all architecture used in iOS development.
And x86_64 seems to be the simulator of iOS so you need to build either of onig library with x86_64 that iOS simulator build accepts to make it link.
from mruby-onig-regexp.
Closing since no response from the issue submitter.
from mruby-onig-regexp.
I'm having this issue too, build_config.rb
is simply:
MRuby::Build.new do |conf|
toolchain :clang
conf.gem :mgem => 'mruby-onig-regexp'
conf.gembox 'default'
end
also tried
CC = `xcrun -find clang`.strip
def sdk_path(device); `xcrun --sdk #{device} --show-sdk-path`.strip end
MACOS_FLAGS = %W(-Os -arch x86_64 -isysroot #{sdk_path 'macosx'})
MRuby::Build.new do |conf|
toolchain :clang
conf.gem :mgem => 'mruby-onig-regexp'
conf.gembox 'default'
conf.cc do |cc|
cc.command = CC
cc.flags = MACOS_FLAGS
end
conf.linker do |linker|
linker.command = CC
linker.flags = MACOS_FLAGS
end
end
compile and running machine is the same macOS machine (not trying iOS or anything special)
to compile mruby, I'm running
rake deep_clean
rake all
don't know if it's relevant, but building ruby files like
./mruby/bin/mrbc \
-g \
-Bapp \
-o./app.c \
app.rb
and trying to compile the binary using
clang output.c \
-o./output \
-I./mruby/include \
-lmruby \
-L./mruby/build/host/lib/
and also tried
$(xcrun -find clang) output.c \
-o./output \
-I./mruby/include \
-lmruby \
-L./mruby/build/host/lib/ \
-Os -arch x86_64 -isysroot $(xcrun --sdk macosx --show-sdk-path)
from mruby-onig-regexp.
Related Issues (20)
- How to cross compile this gem? HOT 7
- Compilation failed on Visual Studio 2019
- Can not cross complie for x86_64-w64-mingw32 on Mac HOT 8
- test fails when MRB_UTF8_STRING is defined HOT 4
- No way to explicitly use the included libonig instead of what is installed on the host system
- Slice on empty string
- gem description maybe is "鬼車", not "鬼雲" ? HOT 1
- string size too big (ArgumentError)
- infinite loop when empty regexp HOT 2
- Doesn't freak out when replacing `^` HOT 2
- Abort on UTF-8 split with empty src HOT 7
- /./ should match to latin-1 letter when MRB_UTF8_STRING is not defined.
- build with bundled onigmo fails when c++ API is enabled HOT 3
- Problems finding oniguruma.h HOT 2
- Support `Regexp#match?` HOT 8
- Freeze regex variable HOT 1
- Match? bug HOT 2
- Supporting non-word char in group name HOT 1
- slice! does not work with Regexp HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mruby-onig-regexp.