Posts tagged ‘firefox’

using xpidl under 64-bit Snow Leopard

i’ve been using xulrunner sdk for years to develop #Firefox add-ons with #netbeans with the #foxbeans plugin.

Since the migration to 64-bit Snow Leopard xpidl failed with the same bug as described on https://developer.mozilla.org/En/Gecko_SDK.

But i could not followed the solution described there, because in my environment it failed with a typical 32-bit / 64-bit architecture compilation issue:

build-xpt:
dyld: Library not loaded: /opt/local/lib/libIDL-2.0.dylib
Referenced from: /usr/local/xulrunner-sdk/bin/xpidl
Reason: no suitable image found. Did find:
/opt/local/lib/libIDL-2.0.dylib: mach-o, but wrong architecture
Result: 133

After a short Google search i found the solution Patko described on his blog.

It did not work for me from scratch. I run in a architecture dependency error again:

bash-3.2# port -f install libiconv +universal—> Computing dependencies for libiconv
—> Configuring libiconv
—> Configuring libiconv for architecture x86_64
Error: Target org.macports.configure returned: configure failure: shell command ” cd “/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/work/libiconv-1.13.1-x86_64″ && ./configure –prefix=/opt/local –disable-dependency-tracking –enable-static –docdir=/opt/local/share/doc/libiconv –without-libiconv-prefix –without-libintl-prefix –disable-nls –enable-extra-encodings –disable-dependency-tracking ” returned error 1
Command output: checking for random.h… dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
Referenced from: /opt/local/bin/grep
Reason: no suitable image found. Did find:
/usr/local/lib/libintl.8.dylib: no matching architecture in universal wrapper

Here is my simple modification to this solution to install libidl for both architectures (32bit und 64bit):

port uninstall gawk
port uninstall grep
port uninstall autoconf213

port install libtool +universal
(that also installs libiconv, gettext, grep)

port install gawk +universal

port upgrade –enforce-variants ncurses +universal
port upgrade –enforce-variants expat +universal
port install gettext +universal

port install libiconv +universal
port install glib2 +universal
port install libidl +universal

Running foxbeans build using xpidl is now successful.

build-xpt:
Copying 1 file to /Volumes/…
….
BUILD SUCCESSFUL (total time: 0 seconds)

Saturday, 6 March 2010 at 01:25 GMT+0200 1 comment


Categories