#15823 closed defect (wontfix)
ruby/rb-rcairo-1.6.2 Does not provide dylib to link against
Reported by: | trac.macports.org@… | Owned by: | kimuraw (kimura wataru) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: |
Description
This package does not provide a dylib to link against (it only provides a loadable bundle). After a lot of experimentation with the source, I found that adding libtool -dynamic $(OBJS) -arch_only i386 -L/opt/local/lib -lruby -lcairo -lpthread -ldl -lm -o librbcairo.dylib
to the Makefile will produce librbcairo.dylib, which I can link against.
Change History (5)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Milestone: | → Port Bugs |
---|---|
Owner: | changed from macports-tickets@… to kimuraw@… |
comment:2 Changed 16 years ago by kimuraw (kimura wataru)
Status: | new → assigned |
---|
This port "rb-rcairo" provides an extension module for Ruby. To provide a dynamic library, like you said, is not Ruby's way. You can load the bundle with the following code.
from RUBY:
require 'cairo'
from C:
include <ruby.h> include <rb_cairo.h> : rb_require("cairo");
or link libcairo and use C API of libcairo.
I do not think the librbcairo.dylib is needed. Please tell me what do you want to do.
comment:3 Changed 16 years ago by trac.macports.org@…
You're right, I think I was trying to use Ruby in ways not meant to be. Thanks for the detailed reply. You can close this ticket.
comment:4 Changed 16 years ago by kimuraw (kimura wataru)
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Assigning to maintainer.