With C++ SDK upgraded to to version 7.2, an atempt to build a plug-in with C++ SDK fails. The error description is similar to the following:
Error: ../LISA/project.cc:157JAVA type must has Packer suffix. JAVA Type is Object. attribute type is INT Waf: Leaving directory `/root/DomainPlugins/SOMEPLUGIN/.build' Build failed: LISA compiler exit code '1' is non-zero. CMD is '['--info', '--server', '--amt', '--postgre'] /root/DomainPlugins/SOMEPLUGIN/SOMEPLUGIN.lsa'
After new JAVA attribute was introduced for LISA types, and C++ SDK was not reconfigured in a proper way so that it should not build Java wrappers for public methods.
- Change current working directory to the plug-in source directory.
grep -r 'LISA.new_task_gen' | grep wscript
For every match found, after line
features = 'lsaprogram',add the following line:
install_java_dir = None,
Alternatively, in diff format, the change should look like:
--- a/wscript +++ b/wscript @@ -79,6 +79,7 @@ def build(bld): cnttask = LISA.new_task_gen(bld, features = 'lsaprogram', + install_java_dir= None, source = '@@PROJECT@.lsa', bodies = [ 'bodies.cc' ], internals = [ 'internals.cc', 'plugin.cpp' ],