Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#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@…

Assigning to maintainer.

comment:2 in reply to:  description Changed 16 years ago by kimuraw (kimura wataru)

Status: newassigned

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: assignedclosed

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.