pfstools and Snow Leopard

27 views
Skip to first unread message

Jesús Guillermo

unread,
Dec 4, 2009, 7:07:16 PM12/4/09
to pfstools
Dear fellows: For the last couple of days I've been trying to compile
pfstools 1.8.1 under SN without success. This is the main output of
the errors:

ld: warning: in /sw/lib/libMagick++.dylib, file is not of required
architecture
ld: warning: in /sw/lib/libWand.dylib, file is not of required
architecture
ld: warning: in /sw/lib/libMagick.dylib, file is not of required
architecture
ld: warning: in /usr/local/lib/libtiff.dylib, file is not of required
architecture
ld: warning: in /usr/local/lib/libjpeg.dylib, file is not of required
architecture
ld: warning: in /sw/lib/libjpeg.dylib, file is not of required
architecture
ld: warning: in /sw/lib/libfreetype.dylib, file is not of required
architecture
Undefined symbols:
"Magick::Image::Image(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)", referenced
from:

ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [pfsinimgmagick] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1

As you all can see, the compiler stops when trying to link the app
with those libraries... needless to say, all dependencies were
compiled by me with the following command:

./configure CFLAGS="-arch x86_64" LDFLAGS="-arch x86_64" --prefix=/usr/
local

That is because in SN the compilation under normal circumstances is
prone to errors alike "...file is not of required architecture". Do
any of you have any clue as to what can I do to force pfstools to
compile as x86_64? or to circumvent this issue?

Thanks a lot

Guillermo

Jesús Guillermo

unread,
Dec 4, 2009, 7:30:57 PM12/4/09
to pfstools
One idea: How can I use the compiler's and linker flags -m32 and -arch
i386 flags in the build

Rafal

unread,
Dec 7, 2009, 6:36:26 AM12/7/09
to pfstools
On Dec 5, 12:30 am, Jesús Guillermo <mimo...@gmail.com> wrote:
> One idea: How can I use the compiler's and linker flags -m32 and -arch
> i386 flags in the build

You can override compiler flags when running make:

make CXXFLAGS="-m32"

Are you using Fink or MacPorts? I did not have any success installing
pfstools under MacPorts, but I managed to compile them on Snow Leopard
with the 32-bit version of Fink (you need to force 32 bit
compilation).

Rafal

Jesús Guillermo

unread,
Dec 7, 2009, 6:48:26 PM12/7/09
to pfstools
Rafal: I did it! But without any flags... although Im using gcc 4.01
instead of 4.2. Do you think it could be done better with 4.2?

Rafal

unread,
Dec 8, 2009, 4:18:42 AM12/8/09
to pfstools
On Dec 7, 11:48 pm, Jesús Guillermo <mimo...@gmail.com> wrote:
> Rafal: I did it! But without any flags... although Im using gcc 4.01
> instead of 4.2. Do you think it could be done better with 4.2?

The compiler version should not matter.

Could you briefly mention your configuration: Fink or MacPorts, 32 or
64 version? This may help the others.

Cheers,

Rafal

Jesús Guillermo

unread,
Dec 10, 2009, 2:16:19 PM12/10/09
to pfstools
On 8 dic, 05:18, Rafal <mant...@googlemail.com> wrote:
> Could you briefly mention your configuration: Fink or MacPorts, 32 or
> 64 version? This may help the others.
> Rafal
Rafal: At first, I though I had to work out the way by using either
fink or macports versions, but that was a mistake. Those guys are
still updating the code to the byteness of the new compiler so most
people will have to wait.

In the other hand, I manually compiled pfstools, imagemagick (as a
pure source), libpng, libjpeg, libtiff. Netpbm WILL NOT compile under
any circumstances as vanilla, and you just cant install it using
macports or fink because then you will create a conflict of libraries
stored in /usr/local /sw and /opt. Avoid conflicts at all cost, lest
you will see strange errors appearing.

so far, pfstools work flawlessly but I had to give up with the few qt
programs that come with it... it is virtually useless the compiled qt3
software under leopard when you have qt4 installed.
The one and only problem I am facing right now is an error that arises
with hdrprep.pl. But that is a topic for another thread.

Jesús Guillermo

unread,
Dec 10, 2009, 2:27:25 PM12/10/09
to pfstools
Rafal: As soon I have some spare time to sort out all the steps I took
in order to sucessfully compile pfs, I will write out something and
send it to you for revision.
Reply all
Reply to author
Forward
0 new messages