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: jos
Subject: Re: [XForms] error compiling on OSX
Date: Sat, 16 Sep 2017 11:13:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hi Brian and Jens,

thanks for your help!

My mistake was that I assumed the pixmap subroutines would be part of
libforms. I've taken up writing some more code in C extending an
existing program after a long period of using other programming
languages, so my linking skills are a bit rusty.

Well, I've tried it and hurray! It worked.

Thx!

Jos

On 15-09-17 23:07, Brian Tiffin wrote:
> 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?
>>
>> Jos
>>
>> 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)
> I don't see -lXpm, which should have the linker symbols you need, jos.
> 
> Cheers,
> Brian
> 
> 



reply via email to

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