[MacRuby-devel] [MacRuby] #805: Can't build MacRuby0.6 on Mac OSX 10.5.8 with llvm(rev89156)
MacRuby
ruby-noreply at macosforge.org
Tue Jul 27 14:25:53 PDT 2010
#805: Can't build MacRuby0.6 on Mac OSX 10.5.8 with llvm(rev89156)
---------------------------------+------------------------------------------
Reporter: kyossi212@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: build Leopard
---------------------------------+------------------------------------------
Comment(by watson1978@…):
An error of "Couldn't create the encoder for macRoman" occurs in "ucnv.c,
line:491 ucnv_open()" so that Leopard's ICU lib is different from Snow
Leopard's ICU lib.
* Mac OS X 10.5.8 : ICU 3.6.0
* Mac OS X 10.6.4 : ICU 4.0.0
It is necessary to install a ICU 4.0.0.
{{{
$ curl -O http://download.icu-project.org/files/icu4c/4.0/icu4c-
4_0-src.tgz
$ tar xvzf icu4c-4_0-src.tgz
$ cd icu/source/
$ CFLAGS="-arch i386 -arch x86_64" ./runConfigureICU MacOSX --disable-
renaming
$ make
$ sudo make install
}}}
And change the "rakelib/builder/options.rb":
{{{
#!diff
diff --git a/rakelib/builder/options.rb b/rakelib/builder/options.rb
index b7d4980..d8deaca 100644
--- a/rakelib/builder/options.rb
+++ b/rakelib/builder/options.rb
@@ -152,9 +152,9 @@ class BuilderConfig
sdk = opt.delete(:sdk)
has_libauto = sdk ? File.exist?("#{sdk}/usr/lib/libauto.dylib") :
true
archflags = archs.map { |x| "-arch #{x}" }.join(' ')
- @cflags = "-std=c99 -I. -I./include -fno-common -pipe -g -Wall
-fexceptions -O#{OPTZ_LEVEL} -Wno-deprecated-declarations -Werror
#{archflags}"
- @cxxflags = "-I. -I./include -g -Wall -Wno-deprecated-declarations
-Werror #{archflags}"
- @ldflags = '-lpthread -ldl -lxml2 -lobjc -licucore -framework
Foundation'
+ @cflags = "-std=c99 -I. -I./include -fno-common -pipe -g -Wall
-fexceptions -O#{OPTZ_LEVEL} -Wno-deprecated-declarations #{archflags}"
+ @cxxflags = "-I. -I./include -g -Wall -Wno-deprecated-declarations
#{archflags}"
+ @ldflags = '-lpthread -ldl -lxml2 -lobjc -L/usr/local/lib -licudata
-licui18n -licuio -licule -liculx -licutu -licuuc -framework Foundation'
@ldflags << " -lauto" if has_libauto
if opt.delete(:static)
@cflags << ' -DMACRUBY_STATIC'
}}}
miniruby has begun to work, but a build error still occurs X(
--
Ticket URL: <http://www.macruby.org/trac/ticket/805#comment:7>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list