2013年9月18日 星期三

Secs/Gem open source for windows and linux in C++

////////////////////////////////////////////////
///////////Project Download
////////////////////////////////////////////////
http://www.mediafire.com/file/hl8advvagm8g48r/GemHsms20150010.zip
or
https://drive.google.com/open?id=1Rh1VzJUxilxEv22u5NTyq8XZWrZWZjha

1.This project can build on VC++ on Win32 and Eclipse CDT on Linux.
2.Need preinstall ACE Wrappers and Xerces
3.Memory leak fixed
4.File secs.xsd grammar fixed

/////////////////////////////////////////////////////////
///////////Preinstall ACE Wrappers
/////////////////////////////////////////////////////////
http://download.dre.vanderbilt.edu/previous_versions

***Windows***
download ACE-5.6.6.zip
1.
notepad C:\ACE_wrappers/ace/config.h
add
#include "ace/config-win32.h"

2.
open ACE_wrappers_vc8_Static.sln to build

***Linux***
download ACE-5.6.6.tar.gz
1.
apt-get update
apt-get install libssl-dev

2.
gedit /root/.bashrc
in last line add
export ACE_ROOT=/root/ACE_wrappers
then open terminal to run

3.
gedit /root/ACE_wrappers/configure
search all iostream.h
iostream.h -> iostream

4.
gedit /root/ACE_wrappers/ace/TTY_IO.h
add  bool parityenb; //after int readtimeoutmsec;

5.
gedit /root/ACE_wrappers/ace/config-linux-common.h
#define ACE_SCANDIR_CMP_USES_CONST_VOIDPTR
to
//#define ACE_SCANDIR_CMP_USES_CONST_VOIDPTR

6.
gedit /root/ACE_wrappers/ace/config.h
add
#include "ace/config-linux.h"

7.
gedit /root/ACE_wrappers/include/makeinclude/platform_macros.GNU
add
include /root/ACE_wrappers/include/makeinclude/platform_linux.GNU

8.
cd /root/ACE_wrappers
mkdir ace_build
cd ace_build

9. (options for debug)
replace all -O2 or -O0 and -O3 to O1 of /root/ACE_wrappers/configure

10.
../configure --prefix=/usr/local/ace
or options for debug and quick make
../configure --prefix=/usr/local/ace --enable-debug --disable-ace-examples --disable-ace-tests
make
make install

(then delete export ACE_ROOT=/root/ACE_wrappers)

11.
If make static debug version
../configure --prefix=/usr/local/ace --enable-shared=no --enable-static=yes

12.
make
make install

13.
If build on ununtu 12.04 need fxied SSL build errors
(a)
add const before SSL_METHOD of configure file and SSL_Context.cpp
(b)
change SSLv2 to SSLv3 of SSL_Context.cpp on error line

/////////////////////////////////////////////////////////
///////////Preinstall Xerces
/////////////////////////////////////////////////////////
https://archive.apache.org/dist/xml/xerces-c/source

***Windows***
download  xerces-c-src_2_7_0.zip
1.
open C:\xerces-c-src_2_7_0\Projects\Win32\VC7.1\xerces-all.sln to build

2.
select [static] version to build
build project XercesLib

***Linux***
download xerces-c-src_2_7_0.tar.gz
1.
gedit /root/.bashrc
in last line add
export XERCESCROOT=/root/xerces-c-src_2_7_0
then open terminal to run

2.
cd /root/xerces-c-src_2_7_0/src/xercesc

3. (options for debug)
replace all -O2 or -O0 of /root/xerces-c-src_2_7_0/src/xercesc/configure

4.
./configure --prefix=/usr/local/xercesc
or options for debug
./configure --prefix=/usr/local/xercesc --enable-debug

5.
make
make install
(then delete export XERCESCROOT=/root/xerces-c-src_2_7_0)

6.
gedit /root/.bashrc
in last line add
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/ace/lib:/usr/local/xercesc/lib
then open terminal to run

7.
Download secs/gem emulator and try
http://secs.itri.org.tw/about-secs-gem-downloads.html

//Thanks for Jyugem's resource support
http://sourceforge.jp/projects/jyugem/releases

沒有留言:

張貼留言