On 31 oct, 14:58, Francois Vogel <fsvogelnew5NOS
...@free.fr> wrote:
> Sam said on 31/10/2009 13:30:
> > I have succeeded in building SIVP (builder.sce. C compiler needed)
> > for Scilab 5.1.1 on winXP. Then, it works. But i have failed to do so
> > for Scilab master > 5.1.1
> What was the problem, and how did you try to build it (which compiler,
> for instance)? (this is just for my education, I'll not dig into this
> problem).
The compiler: Microsoft Visual Studio 9.0
Hereafter is the output from exec builder.sce, up to the error:
Cheers
Samuel
-------
-->exec builder.sce
-->////////////////////////////////////////////////////////////
-->// SIVP - Scilab Image and Video Processing toolbox
-->// Copyright (C) 2008 Shiqi Yu
-->//
-->// This program is free software; you can redistribute it and/or
modify
-->// it under the terms of the GNU General Public License as
published by
-->// the Free Software Foundation; either version 2 of the License,
or
-->// (at your option) any later version.
-->//
-->// This program is distributed in the hope that it will be useful,
-->// but WITHOUT ANY WARRANTY; without even the implied warranty of
-->// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-->// GNU General Public License for more details.
-->//
-->// You should have received a copy of the GNU General Public
License
-->// along with this program; if not, write to the Free Software
-->// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
-->////////////////////////////////////////////////////////////
-->lines(0);
-->gateway_dir = get_absolute_file_path('builder.sce');
-->previous_dir = pwd();
-->cd(gateway_dir);
-->ilib_name = 'libsivp';
-->//get all *.c file in this directory
-->srcfiles = listfiles('*.c');
-->//remove libsivp.c
-->files=[];
-->for myindex=1:size(srcfiles,1)
--> if( srcfiles(myindex) <> 'libsivp.c' ) then
--> files = [files, srcfiles(myindex)];
--> end
-->end
-->files = strsubst(files, '.c', '.o');
-->scilab_version=getversion();
-->if ~(str2code( part(scilab_version, 8)) <= 4) & (MSDOS==%F) then //
version >= 5.x.x
--> files = [files, 'common.h', 'config.h'];
-->end
-->// name known in scilab , C function called
-->table=[ 'sivptest', 'int_test'; 'sivp_init','int_sivp_init';
'imread', 'int_imread'; 'int_imwrite', 'int_imwrite'; 'imfinfo',
'int_imfinfo'; 'aviinfo', 'int_aviinfo'; 'aviopen',
'int_aviopen'; 'camopen', 'int_camopen'; 'avifile',
'int_avifile'; 'aviclose','int_aviclose'; 'avicloseall','int_avicloseall'; 'avilistopened',
'int_avilistopened'; 'avireadframe', 'int_avireadframe'; 'addframe',
'int_addframe'; 'int_imresize', 'int_imresize'; 'int_imabsdiff',
'int_imabsdiff'; 'int_imadd', 'int_imadd'; 'int_imsubtract',
'int_imsubtract'; 'int_immultiply', 'int_immultiply';
'int_imdivide', 'int_imdivide'; 'imfilter', 'int_imfilter';
'filter2', 'int_filter2'; 'mat2utfimg',
'int_mat2utfimg'; 'int_canny', 'int_canny'; 'int_sobel',
'int_sobel'; 'int_cvtcolor', 'int_cvtcolor'; 'ind2rgb',
'int_ind2rgb'; 'detectobjects', 'int_detectobjects'; 'camshift',
'int_camshift'; 'meanshift', 'int_meanshift'; 'detectforeground',
'int_detectforeground'; 'impyramid', 'int_impyramid'; ];
-->if (MSDOS) then
--> libname = ilib_build(ilib_name,table,files,[],'Makelib',' '"C:\
\PROGRA~1\\OpenCV\\lib\\cxcore.lib'" '"C:\\PROGRA~1\\OpenCV\\lib\
\cv.lib'" '"C:\\PROGRA~1\\OpenCV\\lib\\cvaux.lib'" '"C:\\PROGRA~1\
\OpenCV\\lib\\highgui.lib'" ', '-I'"C:\\PROGRA~1\\OpenCV\\cxcore\
\include'" -I'"C:\\PROGRA~1\\OpenCV\\cv\\include'" -I'"C:\\PROGRA~1\
\OpenCV\\cvaux\\include'" -I'"C:\\PROGRA~1\\OpenCV\\otherlibs\
\highgui'"');
Generate a gateway file
Generate a loader file
Generate a Makefile: Makelib
Running the makefile
Compilation de aviinfo
Compilation de avicloseall
Compilation de ind2rgb
Compilation de immultiply
Compilation de imwrite
Compilation de detectobjects
Compilation de imfilter
Compilation de mat2utfimg
Compilation de imread
Compilation de aviclose
Compilation de imfinfo
Compilation de common
Compilation de avilistopened
Compilation de sivp_init
Compilation de meanshift
Compilation de test
Compilation de canny
Compilation de sobel
Compilation de imdivide
Compilation de imresize
Compilation de filter2
Compilation de cvtcolor
Compilation de imsubtract
Compilation de aviopen
Compilation de camopen
Compilation de avifile
Compilation de avireadframe
Compilation de imadd
Compilation de detectforeground
Compilation de camshift
Compilation de addframe
Compilation de impyramid
Compilation de imabsdiff
Building shared library (be patient)
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual
Studio 9.0\VC\bin\cl.EXE"'á: code retour '0x2'
Stop.
!--error 10000
unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution
at line 34 of function unix_s called by :
at line 61 of function ilib_compile called by :
at line 83 of function ilib_build called by :
I'"C:\\PROGRA~1\\OpenCV\\otherlibs\\highgui'"')
at line 51 of exec file called by :
exec builder.sce