xforms-development
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XForms] error compiling on OSX


From: Jens Thoms Toerring
Subject: Re: [XForms] error compiling on OSX
Date: Fri, 15 Sep 2017 23:13:13 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Jos,

On Fri, Sep 15, 2017 at 10:54:15PM +0200, jos wrote:
> I’m trying to compile some code on OSX Sierra 10.12.6
> I’ve compiled forms-1.3.9 and I’m trying to statically link my code against 
> it.
> Unfortunately I’m getting some errors, see below.
> Can anybody maybe explain to me what is wrong?
> 
> cc -L/usr/X11R6/lib -lX11 -lm /usr/local/lib/libforms.a 
> /usr/local/lib/libsndfile.a -lm -o formant formant.o safe_alloc.o mparcoe.o \
>       mcoewav.o msetcfg.o voc_inout.o std.o fft2pixmap.o pup.o cursor.o 
> show_params.o act_slot_1.o act_slot_2.o act_slot_3.o act_slot_4.o 
> act_slot_5.o create_slot_1.o create_slot_2.o create_slot_3.o create_slot_4.o 
> create_slot_5.o slot_1_cb.o slot_2_cb.o slot_3_cb.o slot_4_cb.o slot_5_cb.o  
> -L/usr/X11R6/lib -lX11 -lm /usr/local/lib/libforms.a 
> /usr/local/lib/libsndfile.a -lm
> Undefined symbols for architecture x86_64:
>   "_XpmAttributesSize", referenced from:
>       _fl_create_from_pixmapdata in libforms.a(pixmap.o)
>       _fl_read_pixmapfile in libforms.a(pixmap.o)
>   "_XpmCreatePixmapFromData", referenced from:
>       _fl_create_from_pixmapdata in libforms.a(pixmap.o)
>   "_XpmFreeAttributes", referenced from:
>       _handle_pixmap in libforms.a(pixmap.o)
>       _change_pixmap in libforms.a(pixmap.o)
>       _cleanup_pixmapbutton in libforms.a(pixmap.o)
>       _fl_free_pixmap_pixmap in libforms.a(pixmap.o)
>   "_XpmReadFileToPixmap", referenced from:
>       _fl_read_pixmapfile in libforms.a(pixmap.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make: [formant] Error 1 (ignored)

Never have used OSX, but since all the error messages seem to complain
about missing stuff from libXpm my first guess would be that you'll
have to add it to the mix of libraries you link against (probably
before libforms, which depends on it).

                           Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      address@hidden
   \_______________________________      http://toerring.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]