Re: [SIP-devel] build trouble, MacOS 10.3
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
From: Scott D. <sd...@sc...> - 2004-08-12 04:05:39
|
Hi -- I'm trying to resume my efforts to port SIP to MacOS 10.3 (I'm cautiously optimistic...). But I must confess I've run into a problem (I think just a small one) just in compilation; here's the most immediately relevant portion of gcc output: if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/lib/scilab-2.7/routines -g -O2 -W -Wall -Wno-implicit-int -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/libxml2 -MT mogrify_int.lo -MD -MP -MF ".deps/mogrify_int.Tpo" -c -o mogrify_int.lo mogrify_int.c; \ then mv -f ".deps/mogrify_int.Tpo" ".deps/mogrify_int.Plo"; else rm -f ".deps/mogrify_int.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/lib/scilab-2.7/routines -g -O2 -W -Wall -Wno-implicit-int -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/libxml2 -MT mogrify_int.lo -MD -MP -MF .deps/mogrify_int.Tpo -c mogrify_int.c -fno-common -DPIC -o .libs/mogrify_int.o mogrify_int.c: In function `check_argv_validity': mogrify_int.c:1299: error: `UndefinedCompressionQuality' undeclared (first use in this function) Indeed, I can find no evidence of UndefinedCompressionQuality being defined in SIP or ImageMagick, but I'm not exactly sure where to be looking for it. Can you give me a hint about where it's supposed to be defined? Thanks Scott Dexter On Tue, 17 Feb 2004, Ricardo Fabbri wrote: > On Mon, 16 Feb 2004, Scott Dexter wrote: > > > ld: Undefined symbols: > > _com_ > > _sci_gateway > > _Scierror > > _checklhs_ > > _checkrhs_ > > _createvarfromptr_ > > (..) > > Hi, > I can't see how to solve the problem for you, but here's some > information: > > SIP generates a dynamic library called libsip.so, and this library has > some undefined symbols ON PURPOSE, since these symbols are to be > defined by Scilab when SIP is loaded into it. > > Your problem is very similar to what I find on Windows: I don't know > how to build shared libraries with undefined symbols under MacOSX or > Windows. > > This is, most certainly, a libtool issue. The flag '-no-undefined' > is used to do exactly this: tell the system that *all* symbols will be > defined at link time (that is, when scilab loads the library). > > My guess is that -no-undefined is not working under MacOSX for some > reason I don't understand. My second guess is that libtool is working > fine but I don't know enough about it. > > Unfortunately, I really don't have much experience/knowledge about > shared libraries nor MacOSX to be able to help you further, but I am > really interested in your problem. > > best, > Ricardo. > > -- > Ricardo Fabbri, Cybernetic Vision Research Group, USP, Brazil. > WEB: cyvision.if.sc.usp.br/~rfabbri ICQ: 208974212 > > "With pain and suddeness is how Real Offsprings are born. But they > must result from intense pleasure and a long period of development." > |