I solved the previous problem.
Now If I want to do it from the source code, How am I supposed to do it? I have added
hdf.lib.dir = /home/pranto/opt/hdf-4.2.15_root_install/lib
hdf5.lib.dir = /home/pranto/opt/hdf5_1.10.7_root_install/lib
lines in the build.properties
file. When I run ant run
, I got the following error
create-property-file:
[propertyfile] Creating new property file: /home/pranto/Downloads/hdfview-3.1.2/build/classes/hdf/versions.properties
compileobj:
[copy] Copied 2 empty directories to 2 empty directories under /home/pranto/Downloads/hdfview-3.1.2/build/classes/org.hdfgroup.object
compilehdf4:
[copy] Copied 1 empty directory to 1 empty directory under /home/pranto/Downloads/hdfview-3.1.2/build/classes/org.hdfgroup.object
compilefits:
[copy] Copied 1 empty directory to 1 empty directory under /home/pranto/Downloads/hdfview-3.1.2/build/classes/org.hdfgroup.object
compilenc2:
[copy] Copied 1 empty directory to 1 empty directory under /home/pranto/Downloads/hdfview-3.1.2/build/classes/org.hdfgroup.object
compilehdf5:
[copy] Copied 1 empty directory to 1 empty directory under /home/pranto/Downloads/hdfview-3.1.2/build/classes/org.hdfgroup.object
compile:
[javac] Compiling 98 source files to /home/pranto/Downloads/hdfview-3.1.2/build/classes
[javac] javac: invalid flag: --module-source-path
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options
BUILD FAILED
/home/pranto/Downloads/hdfview-3.1.2/build.xml:340: Compile failed; see the compiler error output for details.
Total time: 2 seconds