ITPub博客

首页 > Linux操作系统 > Linux操作系统 > unix上编译TTClasses(转)

unix上编译TTClasses(转)

原创 Linux操作系统 作者:灰太娘 时间:2012-01-06 23:21:07 0 删除 编辑

Compiling TTClass (shared optimized library) on unix

 

Step 1:修改环境变量

 

$ cd /ora/TimesTen/tt70/TimesTen/tt70/bin

$ chmod 755 ttenv*

$ ./ttenv.sh

 

NOTE: JDK1.3 is not supported, setting values for JDK1.4

 

LD_LIBRARY_PATH set to /ora/TimesTen/tt70/TimesTen/tt70/lib

 

LD_LIBRARY_PATH_64 set to /ora/TimesTen/tt70/TimesTen/tt70/lib

 

ANT_HOME set to /ora/TimesTen/tt70/TimesTen/tt70/3rdparty/ant

 

PATH set to /ora/TimesTen/tt70/TimesTen/tt70/bin:/ora/TimesTen/tt70/TimesTen/tt70/demo:/ora/TimesTen/tt70/TimesTen/tt70/demo/ttclasses:/ora/TimesTen/tt70/TimesTen/tt70/demo/xlaPersistent:/ora/TimesTen/tt70/TimesTen/tt70/demo/tutorial/java:/ora/TimesTen/tt70/TimesTen/tt70/3rdparty/ant/bin:/usr/bin

 

CLASSPATH set to /ora/TimesTen/tt70/TimesTen/tt70/lib/classes14.jar:/ora/TimesTen/tt70/TimesTen/tt70/lib/timestenjmsxla.jar:/ora/TimesTen/tt70/TimesTen/tt70/3rdparty/jms1.1/lib/jms.jar:.

 

THREADS_FLAG set to native

 

$ env

 

ANT_HOME=/ora/TimesTen/tt70/TimesTen/tt70/3rdparty/ant

CLASSPATH=/ora/TimesTen/tt70/TimesTen/tt70/lib/classes14.jar:/ora/TimesTen/tt70/TimesTen/tt70/lib/timestenjmsxla.jar:/ora/T

imesTen/tt70/TimesTen/tt70/3rdparty/jms1.1/lib/jms.jar:.

HOME=/ora/TimesTen

HZ=100

LD_LIBRARY_PATH=/ora/TimesTen/tt70/TimesTen/tt70/lib:

LD_LIBRARY_PATH_64=/ora/TimesTen/tt70/TimesTen/tt70/lib

LOGNAME=times

MAIL=/var/mail/times

PATH=/opt/SUNWspro/bin:/ora/TimesTen/tt70/TimesTen/tt70/bin:/ora/TimesTen/tt70/TimesTen/tt70/demo:/ora/TimesTen/tt70/TimesT

en/tt70/demo/ttclasses:/ora/TimesTen/tt70/TimesTen/tt70/demo/xlaPersistent:/ora/TimesTen/tt70/TimesTen/tt70/demo/tutorial/j

ava:/ora/TimesTen/tt70/TimesTen/tt70/3rdparty/ant/bin:/usr/bin:/usr/local/bin:/ora/TimesTen/tt70/TimesTen/tt70/bin:/usr/bin

:

SHELL=/bin/sh

TERM=xterm

THREADS_FLAG=native

TZ=PRC

 

Step 2: make

 

$ cd /ora/TimesTen/tt70/TimesTen/tt70/ttclasses

 

$ make

 

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTCmd.cpp -o objOpt/TTCmd.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTCommand.cpp -o objOpt/TTCommand.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTConnection.cpp -o objOpt/TTConnecti

on.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTColumn.cpp -o objOpt/TTColumn.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTConnectionPool.cpp -o objOpt/TTConn

ectionPool.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTParameter.cpp -o objOpt/TTParameter

.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTCatalog.cpp -o objOpt/TTCatalog.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTStatus.cpp -o objOpt/TTStatus.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTTypes.cpp -o objOpt/TTTypes.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTEnvironment.cpp -o objOpt/TTEnviron

ment.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/inc

lude -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTXla.cpp -o objOpt/TTXla.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/include -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTLog.cpp -o objOpt/TTLog.o

CC -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/include -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c TTGlobal.cpp -o objOpt/TTGlobal.o

cc -DTT_70 -DTTEXCEPT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DTT_64BIT -DTTCLASSES -I/ora/TimesTen/tt70/TimesTen/tt70/include -I/ora/TimesTen/tt70/TimesTen/tt70/include/ttclasses -xO4 -mt -Kpic -xarch=v9 -c ttTime.c -o objOpt/ttTime.o

CC -G -xO4 -mt -Kpic -xarch=v9 -o lib/libttclasses.so objOpt/TTCmd.o objOpt/TTCommand.o objOpt/TTConnection.o objOpt/TTColumn.o objOpt/TTConnectionPool.o objOpt/TTParameter.o objOpt/TTCatalog.o objOpt/TTStatus.o objOpt/TTTypes.o objOpt/TTEnvironment.o objOpt/TTXla.o objOpt/TTLog.o objOpt/TTGlobal.o objOpt/ttTime.o

make[1]: Entering directory `/ora/TimesTen/tt70/TimesTen/tt70/ttclasses'

***********************************************************

Built lib/libttclasses.so

Now run 'make install' to install the the TTClasses library

into /ora/TimesTen/tt70/TimesTen/tt70/lib

***********************************************************

make[1]: Leaving directory `/ora/TimesTen/tt70/TimesTen/tt70/ttclasses'

 

Step 3: make install

 

$ make install

Installing TTClasses libraries

cp lib/libttclasses.so /ora/TimesTen/tt70/TimesTen/tt70/lib

 

 

Compiling TTClasses for client/server mode

 

To build a client/server version of TTClasses:

 

$ make -f MakefileCS clean all

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26107758/viewspace-714557/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 程序连接Timesten
请登录后发表评论 登录
全部评论

注册时间:2011-09-13

  • 博文量
    14
  • 访问量
    21448