In the latter case, lp_get_license/2 must be called explicitly by the programmer, and the relevant licensing information must be supplied as arguments. The meaning of the arguments is specific to the solver used:
LicStr LicNum
CPLEX development unused unused
CPLEX runtime licenvstring serialnum
XPRESS-MP development xpress_path unused
XPRESS-MP runtime xpress_path response
Gurobi license_file unused
OSI unused unused
If LicStr is a file or directory name, it is expected to be in
the native operating system syntax.