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
bluefloyd8

 
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.

-danny

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
bluefloyd8

 
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
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
TMPDIR=/var/folders/Tp/TpJKMw7tGj8G8lXD3SKMtE+++TI/-Tmp-/
Apple_PubSub_Socket_Render=/tmp/launch-pqPveq/Render
TERM_PROGRAM_VERSION=240
USER==******
COMMAND_MODE=unix2003
SSH_AUTH_SOCK=/tmp/launch-cAgDOz/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/=******/Documents/Android/android-sdk_m5-rc15_mac-x86/tools
PWD=/Users/=******
LANG=en_US.UTF-8
SHLVL=1
HOME=/Users/=******
LOGNAME=******
DISPLAY=/tmp/launch-KWxIZy/:0
SECURITYSESSIONID=******
_=/usr/bin/env
OLDPWD=/Users/=******
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
Thread Starter
Forum
Replies
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 07:17 AM.

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

Welcome to Mac-Forums.com

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?