我只复制了Octave lib并包含原始构建文件夹中的文件夹并粘贴到另一个(工具箱)文件夹中。工具箱文件夹具有嵌入Octave函数的C ++代码。用于编译代码的LD标志和C标志是 -
LD flags- "-L/path/to/lib -loctave -L/path/to/lib -loctinterp -Wl,-rpath=/path/to/lib/folder"
I flags- "-I/usr/include/scilab -I/path/include/octave-4.0.3 -I/path/include/octave-4.0.3/octave/"
当我编译C ++代码时,我收到错误
libtool: link: warning: library `/home/fossee/Desktop/FSOIToolbox/thirdparty/linux/lib/x64/octave/4.0.3/liboctave.la' was moved.`
libtool: link: warning: library `/home/fossee/Desktop/FSOIToolbox/thirdparty/linux/lib/x64/octave/4.0.3/liboctinterp.la' was moved.
/usr/bin/ld: cannot find -liboctave.la
/usr/bin/ld: cannot find -liboctinterp.la
我理解这个问题是由于复制了lib文件。
liboctave.la
文件时,文件中的路径指向我的系统。我需要做到这一点。源代码可在此处获取 - https://github.com/shamikam/FOSSEE_Scilab_Octave_Interface_Toolbox
Octave文件位于thirdparty
文件夹中。