summaryrefslogtreecommitdiff
path: root/sci_gateway/cpp
diff options
context:
space:
mode:
authorrupak192020-04-19 19:04:32 +0530
committerrupak192020-04-19 19:04:32 +0530
commit5e31a0ae0155db60e3bf193292ea487728521d40 (patch)
treed88d09d3abe8e02b8c906d7c974e30466d2328b6 /sci_gateway/cpp
parent06d3027c99113c386336f723e3c601e2c129347a (diff)
downloadfossee-scilab-octave-toolbox-5e31a0ae0155db60e3bf193292ea487728521d40.tar.gz
fossee-scilab-octave-toolbox-5e31a0ae0155db60e3bf193292ea487728521d40.tar.bz2
fossee-scilab-octave-toolbox-5e31a0ae0155db60e3bf193292ea487728521d40.zip
Fixed bug in start file
Diffstat (limited to 'sci_gateway/cpp')
-rw-r--r--sci_gateway/cpp/builder_gateway_cpp.sce28
-rwxr-xr-xsci_gateway/cpp/libscilab_octave.sobin17160 -> 21536 bytes
2 files changed, 10 insertions, 18 deletions
diff --git a/sci_gateway/cpp/builder_gateway_cpp.sce b/sci_gateway/cpp/builder_gateway_cpp.sce
index f4747d1..b83ab7a 100644
--- a/sci_gateway/cpp/builder_gateway_cpp.sce
+++ b/sci_gateway/cpp/builder_gateway_cpp.sce
@@ -5,7 +5,7 @@
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-// Author: Harpreet Singh, Yash Kataria, Adarsh Shah
+// Author: Rupak Rokade
// Organization: FOSSEE, IIT Bombay
// Email: toolbox@scilab.in
@@ -37,20 +37,20 @@ Version = opt(2);
//Build_64Bits = %f;
if getos()=="Windows" then
- third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
+
+ third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
lib_base_dir = third_dir + filesep() + 'windows' + filesep() + 'lib' + filesep() + Version + filesep();
- //inc_base_dir = third_dir + filesep() + 'windows' + filesep() + 'include' + filesep() + 'coin';
- inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include' + filesep() + 'coin';
+ inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include';
threads_dir=third_dir + filesep() + 'linux' + filesep() + 'include' + filesep() + 'pthreads-win32';
C_Flags=['-D__USE_DEPRECATED_STACK_FUNCTIONS__ -I -w '+path_builder+' '+ '-I '+inc_base_dir+' '+'-I '+threads_dir+' ']
- Linker_Flag = [lib_base_dir+"libcoinblas.lib "+lib_base_dir+"libcoinlapack.lib "+lib_base_dir+"libcoinmumps.lib "+lib_base_dir+"libClp.lib "+lib_base_dir+"libipopt.lib "+lib_base_dir+"libOsi.lib "+lib_base_dir+"libOsiClp.lib "+lib_base_dir+"libCoinUtils.lib "+lib_base_dir+"libCgl.lib "+lib_base_dir+"libOsiSym.lib "+lib_base_dir+"libSym.lib "+lib_base_dir+"libCbcSolver.lib "+lib_base_dir+"libCbc.lib "+lib_base_dir+"libbonmin.lib "+lib_base_dir+"pthreadVC2.lib " ]
+ Linker_Flag = [lib_base_dir+"liblibraryname.lib"]
elseif getos()=="Darwin" then
third_dir = path_builder+filesep()+'..'+filesep()+'..'+filesep()+'thirdparty';
lib_base_dir = third_dir + filesep() + 'Mac' + filesep() + 'lib' + filesep() + Version + filesep();
- inc_base_dir = third_dir + filesep() + 'Mac' + filesep() + 'include' + filesep() + 'coin';
+ inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include';
C_Flags=["-D__USE_DEPRECATED_STACK_FUNCTIONS__ -w -fpermissive -I"+path_builder+" -I"+inc_base_dir+" -Wl,-rpath "+lib_base_dir+" "]
- Linker_Flag = ["-L"+lib_base_dir+"libSym"+" "+"-L"+lib_base_dir+"libipopt"+" "+"-L"+lib_base_dir+"libClp"+" "+"-L"+lib_base_dir+"libOsiClp"+" "+"-L"+lib_base_dir+"libCoinUtils" + " "+"-L"+lib_base_dir+"libbonmin" ]
+ Linker_Flag = ["-L"+lib_base_dir+"liblibraryname"];
else//LINUX
@@ -59,19 +59,11 @@ else//LINUX
inc_base_dir = third_dir + filesep() + 'linux' + filesep() + 'include';
- //C_Flags=["-w -fpermissive -I"+path_builder+" -I"+inc_base_dir+" -Wl,-rpath="+lib_base_dir+" "+"-std=gnu++11"]
-
- //C_Flags = ["-D_GLIBCXX_USE_CXX11_ABI=0"+" "+"-Wall -L"+lib_base_dir+" "+ "-Wl,-rpath="+lib_base_dir+" -I"+inc_base_dir+" "+"-I/usr/include/octave-4.4.1/octave/"]
C_Flags = ["-I"+inc_base_dir];
-//disp(inc_base_dir)
- //Linker_Flag = ["-loctave"+" "+"-loctinterp"+" "+"-L/usr/lib/x86_64-linux-gnu/libqrupdate.so.1"+" "+"-L/usr/lib/x86_64-linux-gnu/libamd.so.2"+" "+"-L/usr/lib/x86_64-linux-gnu/libccolamd.so.2"+" "+"-L/usr/lib/x86_64-linux-gnu/libcolamd.so.2"+" "+"-L/usr/lib/x86_64-linux-gnu/libcholmod.so.3"+" "+"-L/usr/lib/x86_64-linux-gnu/libcolamd.so.2"+" "+"-L/usr/lib/x86_64-linux-gnu/libumfpack.so.5"+" "+"-L/usr/lib/x86_64-linux-gnu/libcxsparse.so.3"+" "+"-L/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so"+" "+"-Wl,-rpath="+lib_base_dir]
-
-// Linker_Flag = ["-loctave"+" "+"-loctinterp"+" "+"#-L/usr/lib/x86_64-linux-gnu/libfftw3_threads.so.3"+" "+"-Wl,-rpath="+lib_base_dir]
- Linker_Flag = ["-loctave -loctinterp -L" + lib_base_dir + " -lfun -Wl,-rpath="+lib_base_dir]
+ Linker_Flag = ["-L" + lib_base_dir + " -lfun -Wl,-rpath="+lib_base_dir+" -loctave -loctinterp"]
- //Linker_Flag = ["-lutil -g -Wall"+" "+"-L"+lib_base_dir+" " + "-loctave"+" "+ "-loctinterp"]
- disp(C_Flags);
- disp(Linker_Flag);
+ //disp(C_Flags);
+ //disp(Linker_Flag);
end
diff --git a/sci_gateway/cpp/libscilab_octave.so b/sci_gateway/cpp/libscilab_octave.so
index e8bea75..229a76c 100755
--- a/sci_gateway/cpp/libscilab_octave.so
+++ b/sci_gateway/cpp/libscilab_octave.so
Binary files differ