Skip to content

Commit

Permalink
Protect lapack dependent functions in java bindings introducing #ifde…
Browse files Browse the repository at this point in the history
…f VISP_HAVE_LAPACK. Close #519
  • Loading branch information
fspindle committed Jan 23, 2019
1 parent 50d1477 commit e95a4b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ ViSP 3.2.0 (released January 21, 2019)
. [#429] vpRobotViper650 getPosition(vpRobot::REFERENCE_FRAME) error
. [#485] CMake error when PCL is build with VTK option VTK_ENABLE_KITS=ON
. [#515] Model-based tracking stops throwing an exception: the image of the straight line is a point!
. [#519] Cannot build java bindings when lapack is not used
----------------------------------------------
ViSP 3.1.0 (released December 22nd, 2017)
- Contributors:
Expand Down
5 changes: 2 additions & 3 deletions modules/java/generator/gen_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def gen_func(self, ci, fi, prop_name=''):
if fi.name in ['detByLUEigen3', 'svdEigen3', 'inverseByLUEigen3', 'pseudoInverseEigen3', 'inverseByEigen3']:
c_prologue.append('#if defined(VISP_HAVE_EIGEN3)')

if fi.name in ['detByLULapack', 'svdLapack', 'inverseByLULapack', 'pseudoInverseLapack', 'inverseByLapack']:
if fi.name in ['detByLULapack', 'svdLapack', 'inverseByLULapack', 'pseudoInverseLapack', 'inverseByLapack', 'inverseByCholeskyLapack', 'inverseByQRLapack']:
c_prologue.append('#if defined(VISP_HAVE_LAPACK)')

if type_dict[fi.ctype]["jni_type"] == "jdoubleArray" and type_dict[fi.ctype]["suffix"] != "[D":
Expand Down Expand Up @@ -999,10 +999,9 @@ def gen_func(self, ci, fi, prop_name=''):
if fi.name in ['detByLUEigen3', 'svdEigen3', 'inverseByLUEigen3', 'pseudoInverseEigen3', 'inverseByEigen3']:
ret += '\n #endif'

if fi.name in ['detByLULapack', 'svdLapack', 'inverseByLULapack', 'pseudoInverseLapack', 'inverseByLapack']:
if fi.name in ['detByLULapack', 'svdLapack', 'inverseByLULapack', 'pseudoInverseLapack', 'inverseByLapack', 'inverseByCholeskyLapack', 'inverseByQRLapack']:
ret += '\n #endif'


rtype = type_dict[fi.ctype].get("jni_type", "jdoubleArray")
clazz = ci.jname
cpp_code.write(Template( \
Expand Down

0 comments on commit e95a4b6

Please sign in to comment.