Comment 2 for bug 1005155

Revision history for this message
RalphBln (schaef) wrote :

I don't know if this is of much help, but I managed to compile an intel-only .dmg of stellarium 11.3 (on an intel MBP, running 64-bit Mac OS 10.7.4).

Compiling and installing went smoothly. I ran into problems during make macosx_bundle.

One of the problems is that pkgApp.pl only checks for fat, ppc, and i386 when examining the embedded dynlibs. On 64-bit machines, /usr/bin/file shows "Mach-O 64-bit dynamically linked shared library x86_64". So pkgApp.pl should also look for "x86_64", otherwise, you get "what to do about $absname being $arch" messages (with $arch being empty) for every embedded library, and nothing is copied.

I just added the following lines to the architecture sub routine:

    elsif ( grep(m/x86_64/, @output) ) {
 $retval = $current_arch;
    }

This helped. Libraries got copied to the Frameworks directory, and install_name_tool changed the install names correctly.

(It's better to return $current_arch here, since uname returns i386 under Lion 64-bit, and the folders for the different architectures are created based on the output of uname).

Don't know about ppc though...