Results 1 to 2 of 2
  1. #1
    libpng : not installing or linking right

    Member Since
    Oct 15, 2008
    Posts
    4
    libpng : not installing or linking right
    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

  2. #2
    libpng : not installing or linking right

    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

  1. Linking Macbook to TV
    By Rjdeadams in forum Apple Notebooks
    Replies: 4
    Last Post: 10-18-2012, 04:42 PM
  2. Linking 2 Monitors
    By Frimur in forum Apple Desktops
    Replies: 1
    Last Post: 12-09-2008, 07:50 AM
  3. Linking G4 PowerBook to TV
    By Splatharri in forum Apple Notebooks
    Replies: 0
    Last Post: 05-30-2008, 08:40 AM
  4. Domain Linking
    By mikeyman in forum Web Design and Hosting
    Replies: 1
    Last Post: 01-14-2008, 03:20 PM
  5. linking apps
    By tomuinjihon in forum OS X - Operating System
    Replies: 3
    Last Post: 03-31-2006, 12:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •