New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

libpng : not installing or linking right

Post Reply New Thread Subscribe

Thread Tools

Member Since: Oct 15, 2008
Posts: 4
bluefloyd8 is on a distinguished road

bluefloyd8 is offline
Hey all,

I am trying to install libpng for a image project that I am working on. I have tried several time to install this library using a) MacPorts b) Manual Config and c) the ./configure script provided.

It shows up as installed when I check with MacPorts. I wrote a small test program in C which uses the function png_sig_cmp() from this library. I have tried using other functions and they all result in the same undefined symbol error. If somebody could help me figure out why this library isnt working, I would appreciate it. I think it involves the linker... but i dont really know.


ERROR (from Eclipse C IDE or gcc command line)

**** Build of configuration Debug for project PicLapse ****

make all
Building file: ../src/PicLapse.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/PicLapse.d" -MT"src/PicLapse.d" -o"src/PicLapse.o" "../src/PicLapse.c"
Finished building: ../src/PicLapse.c

Building target: PicLapse
Invoking: MacOS X C Linker
gcc -o "PicLapse" ./src/PicLapse.o ./src/pixel_functions.o
Undefined symbols:
"_png_sig_cmp", referenced from:
_ImageTransfer in PicLapse.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [PicLapse] Error 1
QUOTE Thanks

Member Since: Oct 15, 2008
Posts: 4
bluefloyd8 is on a distinguished road

bluefloyd8 is offline
Could my .bash_profile file be wrong?

>> env
>> MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man
QUOTE Thanks

Post Reply New Thread Subscribe

« Xcode: "Command /Developer/usr/bin/g++-4.0 failed with exit code 1" HELP | xcode question »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Problem Installing XP using Boot camp on MBP XBD Running Windows (or anything else) on your Mac 6 03-12-2008 10:28 PM
Boot camp Xp, installing service pack 2 after windows? macymacmac Running Windows (or anything else) on your Mac 21 02-14-2008 12:21 PM
Installing Vista RTM on Macbook Pro cRuNcHiE Running Windows (or anything else) on your Mac 8 11-29-2006 08:43 AM
Adobe flash?? installing okay for you guys? SpliCer261 Apple Notebooks 0 11-20-2006 03:52 PM
Need help installing Safari 888 OS X - Apps and Games 4 09-15-2006 11:33 PM

All times are GMT -4. The time now is 04:52 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?