Thread: [SIP-devel] Some minor path problems with ImageMagick
Advanced image processing toolbox for Scilab on Unix/Linux/Mac OS
Status: Beta
Brought to you by:
ricardofabbri
From: Vasileios Z. <vzo...@bc...> - 2002-12-04 02:17:21
|
Hello again Ricardo. Sorry about the Italian mixup but your last name kinda confused me. The .br in your email address should have been a clue. Anyways back to work. I have been looking around the various C source files just to see how complicated interfacing with Scilab is. Fortunately it doesnt look complicated enough (well from a first glance), so I should be able to catch on quite quickly. Now...another little issue. Because I recently upgraded from SuSE to RedHat 8 I have been having the bug problems that you mention with Imagemagick (yes its even buggy in RH 8). So I downloaded the source and build from that. I did ./configure --enable-shared=yes --with-perl=no (somehow it doesnt like it with Perl when it "makes" anyway). And I installed everything fine. I exec the sip builder file and everything builds fine. However in the loader i get the following in Scilab: -->;exec("/home/vzograf/sip-dev/loader.sce"); SIP - Scilab Image Processing Toolbox loaded Enter "sipdemo()" for a demonstration Loading shared executable ./cybervis/libcybervis.so ./cybervis/libcybervis.so: undefined symbol: SetImagePixels link(libsip_path+'/cybervis/libcybervis.so'); !--error 236 link: the shared archive was not loaded at line 4 of exec file called by : exec loader.sce; line 44 of exec file called by : ;exec("/home/vzograf/sip-dev/loader.sce"); From what I can understand it cannot find the Imagemagick SetImagePixels function from the image.h header that exists in the magick directory (for me /usr/local/include/magick/). Have you got any idea how to fix this? I am going to look at it overnight but if you know and tell me you will save lots of work. Thank you Vasileios |
From: Ricardo F. <rf...@if...> - 2002-12-04 03:54:29
|
On Wed, 4 Dec 2002, Vasileios Zografos wrote: > Loading shared executable ./cybervis/libcybervis.so > ./cybervis/libcybervis.so: undefined symbol: SetImagePixels > link(libsip_path+'/cybervis/libcybervis.so'); > !--error 236 > link: the shared archive was not loaded This is a link problem. Check if you did the right bugfix in the /usr/lib/scilab-2.6/config/Makeso.incl For sip-dev, change the line: LDFLAGS = to LDFLAGS = $(EXTRA_LDFLAGS) Note that this is different from the sip stable release, in which case you should use OTHERLIBS instead of EXTRA_LDFLAGS. Go to the sip-dev source directory and type "make distclean" before running builder.sce again. please let me know if it works now. PS: this building process is cumbersome. I'm working on direct autoconf/automake/libtool support in SIP to make a solid build/installation process. Ricardo. -- Ricardo Fabbri Cybernetic Vision Research Group - USP http://cyvision.if.sc.usp.br/~rfabbri |
From: Vasileios Z. <vzo...@bc...> - 2002-12-04 04:34:36
|
Hey Ricardo, ok it now works. For a second there it gave me a new error that it couldnt find the file libMagick-5.5.2.so.0 so I also had to change the /etc/ld.so.conf file to include the /usr/local/lib directory and run ldconfig Ok...thanks for your help Vasileios Ricardo Fabbri wrote: >On Wed, 4 Dec 2002, Vasileios Zografos wrote: > > > >>Loading shared executable ./cybervis/libcybervis.so >>./cybervis/libcybervis.so: undefined symbol: SetImagePixels >>link(libsip_path+'/cybervis/libcybervis.so'); >> !--error 236 >>link: the shared archive was not loaded >> >> > >This is a link problem. Check if you did the right bugfix in the >/usr/lib/scilab-2.6/config/Makeso.incl > >For sip-dev, change the line: > LDFLAGS = > to > LDFLAGS = $(EXTRA_LDFLAGS) > >Note that this is different from the sip stable release, in which >case you should use OTHERLIBS instead of EXTRA_LDFLAGS. > >Go to the sip-dev source directory and type "make distclean" before >running builder.sce again. > >please let me know if it works now. > >PS: this building process is cumbersome. I'm working on direct >autoconf/automake/libtool support in SIP to make a solid >build/installation process. > >Ricardo. > >-- > Ricardo Fabbri > Cybernetic Vision Research Group - USP > http://cyvision.if.sc.usp.br/~rfabbri > > > > > |