Results 1 to 2 of 2
-
10-15-2008, 01:29 PM #1
- Member Since
- Oct 15, 2008
- Posts
- 4
libpng : not installing or linking rightHey 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
-
10-15-2008, 04:14 PM #2
- Member Since
- Oct 15, 2008
- Posts
- 4
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/=******
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Linking Macbook to TV
By Rjdeadams in forum Apple NotebooksReplies: 4Last Post: 10-18-2012, 04:42 PM -
Linking 2 Monitors
By Frimur in forum Apple DesktopsReplies: 1Last Post: 12-09-2008, 07:50 AM -
Linking G4 PowerBook to TV
By Splatharri in forum Apple NotebooksReplies: 0Last Post: 05-30-2008, 08:40 AM -
Domain Linking
By mikeyman in forum Web Design and HostingReplies: 1Last Post: 01-14-2008, 03:20 PM -
linking apps
By tomuinjihon in forum macOS - Operating SystemReplies: 3Last Post: 03-31-2006, 12:03 PM