Former-commit-id:7fa9dbd5fb
[formerly4bfbdad17d
] [formerly9f8cb727a5
] [formerly8485b90ff8
[formerly9f8cb727a5
[formerly bf53d06834caa780226121334ac1bcf0534c3f16]]] Former-commit-id:8485b90ff8
Former-commit-id: 73930fb29d0c1e91204e76e6ebfdbe757414f319 [formerlya28d70b5c5
] Former-commit-id:33a67cdd82
28 lines
877 B
Tcsh
28 lines
877 B
Tcsh
#!/bin/csh
|
||
#
|
||
# 1. Create a Java project and source folder....
|
||
#
|
||
# 2. Configure build path (see M. Li's lecture note):
|
||
# Right click the working project -> Build Path -> Configure build path
|
||
# -> Libraries -> Add JARs -> com.sun.jna – jna.jar
|
||
#
|
||
# 3. cp /usr/lib/gcc/i386-redhat-linux/3.4.6/libg2c.so locally, e.g.,
|
||
# $AWIPS2/tools/lib and make myLinkFlags to contain -L$AWIPS2/tools/lib
|
||
#
|
||
# 4. Use this script to create a shared library (.so)
|
||
#
|
||
# 5. Deploy the SL and add the path, e.g., AWIPS2/lib, to LD_LIBRARY_PATH
|
||
# (in ~/.alias)
|
||
#
|
||
rm -f *.o
|
||
|
||
echo "Compiling program... "
|
||
gcc -fPIC -g -c -Wall *.c *.h
|
||
|
||
echo "Creating a Shared Library object... "
|
||
gcc -shared -Wl,-soname,libaodtv64.so -o libaodtv64.so *.o -lc
|
||
|
||
echo "library is created and cp to build.cave\n "
|
||
echo " "
|
||
cp libaodtv64.so $DEV_BASE/workspace/build.cave/static/common/cave/caveEnvironment/lib
|
||
endif
|