Browse Source

T20M5021 #comment 在Linux下修改CMakeList

80374374 5 years ago
parent
commit
62d4b076e8

+ 4 - 0
.gitignore

@@ -1,3 +1,7 @@
+/config.h
+/shell.ini
+/version.h
+
 ## Ignore Visual Studio temporary files, build results, and
 ## files generated by popular Visual Studio add-ons.
 .vs

+ 5 - 0
CMakeLists.txt

@@ -135,6 +135,11 @@ if(${CMAKE_GENERATOR} MATCHES "Visual Studio*")
 		message(STATUS ${CMAKE_GENERATOR_PLATFORM})
 	endif()
 endif()
+if(${CMAKE_GENERATOR} MATCHES "Unix*")
+	message(STATUS "set 32bits and debug")
+	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32 -g")
+	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -g")
+endif()
 
 if(BUILD_SHARED_LIBS)
 	message(STATUS "build shared libs")

+ 139 - 0
run/hardwarecfg/root.ini

@@ -0,0 +1,139 @@
+[Terminal]
+TerminalNo=7555980001
+MachineType=RVC.PAD
+MachineVersion=1.0
+Site=cmb.FLB
+Screen=1
+EnrolGPS="0.003,0.003"
+EnrolAddr=广东省深圳市南山区科技园北区科技中一路3号
+
+[Path]
+SysRoot=/opt/rvc/run
+ADData=/opt/rvc/addata
+SysLog=/opt/rvc/SysLog
+InterLog=/opt/rvc/InterLog
+UploadVideo=/opt/rvc/UploadVideo
+UploadPhoto=/opt/rvc/UploadPhoto
+LocalVideo=/opt/rvc/Video
+Downloads=/opt/rvc/Downloads
+Upgraded=/opt/rvc/Upgraded
+Temp=/opt/rvc/Temp
+CenterSetting=/opt/rvc/CenterSetting
+
+[Audio]
+handfree_in_dev=麦克风 (Realtek(R) Audio)
+handfree_out_dev=扬声器 (Realtek(R) Audio)
+;pickup_in_dev=Microsoft 声音映射器
+;pickup_out_dev= Microsoft 声音映射器
+handfree_in_agc=0
+handfree_out_agc=0
+pickup_in_agc=0
+pickup_out_agc=0
+handfree_in_ns=1
+handfree_out_ns=0
+pickup_in_ns=1
+pickup_out_ns=0
+handfree_aec=0
+pickup_aec=0
+handfree_in_volume=100
+handfree_out_volume=100
+;pickup_in_volume=100
+;pickup_out_volume=100
+
+[Video]
+EnvCamera= 
+;OptCamera=WebCam SC-50AFL11C54N;F8ED547658C2E521D8B6A7217010A791 
+EnvRotate=0
+;OptRotate=270
+mtu=1500
+quant=3;0-10, 0:最清晰, 10:最模糊
+
+;define device category
+[Device]
+Number=6
+1=IDCertificate
+2=CardIssuer
+3=Radar
+4=WatchDog
+5=UPS
+6=Printer
+
+[Device.IDCertificate]
+# parameters such as port 
+Vendor=Channel
+Version=6
+Batch=1
+Port=1
+
+
+[Device.CardIssuer]
+# parameters such as port 
+Vendor=Sankyo
+Version=1
+Batch=1
+Port=2
+Baudrate=115200
+;Vendor=
+;Version=
+;Batch=
+;Baudrate=19200
+
+
+
+[Device.CardSwiper]
+# parameters such as port 
+Vendor=channel
+Version=6
+Batch=1
+Port=2
+Baudrate=115200
+
+[Device.DeviceControl]
+# parameters such as port 
+Vendor=cc
+Version=1
+Batch=1
+Port=0
+Baudrate=0
+
+
+[Device.Gpio]
+# parameters such as port 
+Vendor=Hyosung
+Version=1
+Batch=1
+PortNum=4
+InOutDir=65280
+
+
+[Device.PinPad]
+# parameters such as port 
+Vendor=ChanNel
+Version=6
+Batch=1
+Port=4
+Baudrate=115200
+Checkdata=0000000000000000
+Keysn=000
+
+[Device.Ups]
+Vendor=
+Version=
+Batch=
+Port=5
+Baudrate=2400
+
+[Device.WatchDog]
+# parameters such as port 
+Vendor=Hyosung
+Version=1
+Batch=1
+Port=
+
+[Device.HSPScanner]
+Vendor=keba
+Version=1
+Batch=1
+
+
+

+ 101 - 0
run/version/1.2.3.4/cfg/CenterSetting.DMZ.ini

@@ -0,0 +1,101 @@
+[CenterSetting]
+Server=88.88.88.130 1024
+Server_Backup=88.88.88.130 1024
+
+
+[AccessAuthorization]
+Server=88.88.88.130 1031
+Server_Backup=88.88.88.130 1031
+
+[Alarm]
+Server=88.88.88.130 1025
+Server_Backup=88.88.88.130 1025
+
+[CounterConnector]
+sip_proxy_ip =88.88.88.129
+sip_proxy_port = 5080
+sip_default_call_no = 1007
+sip_proxy_ip_backup =88.88.88.129
+sip_proxy_port_backup =5080
+sip_default_call_no_backup = 1006
+chan_proxy_ip =88.88.88.129
+chan_proxy_port = 2323
+chan_default_call_no = 9991
+chan_proxy_ip_backup =88.88.88.129
+chan_proxy_port_backup =2323
+chan_default_call_no_backup = 9990
+
+[Download]
+Server=88.88.88.130 1027
+Server_Backup=88.88.88.130 1027
+
+[GUIConsole]
+Server=88.88.88.130 1036
+Server_Backup=88.88.88.130 1036
+
+[HealthManager]
+IEBrowser.RVC.Stand2S.Url=http://10.30.0.98/RVC.Web/default.aspx http://10.30.0.98/RVC.Web/default2.aspx
+IEBrowser.RVC.PAD.Url=http://88.88.88.130/RVC.PAD.Web/default.aspx http://88.88.88.130/RVC.PAD.Web/default2.aspx
+IEBrowser.RVC.CardStore.URL=http://10.30.0.98/RVC.Web/default.aspx http://10.30.0.98/RVC.Web/default2.aspx
+[HeartBeat]
+Server=88.88.88.130 1032
+Server_Backup=88.88.88.130 1032
+
+[Initializer]
+Server=88.88.88.130 1031
+Server_Backup=88.88.88.130 1031
+SubBankNo=0020
+BranchNo=001
+SupportUkey=1
+
+[MaintainWatcher]
+Server=88.88.88.130 6043
+Server_Backup=88.88.88.130 6043
+
+[RemoteController]
+Server=88.88.88.130 1033
+Server_Backup=88.88.88.130 1033
+
+[UpgradeManager]
+Server=88.88.88.130 1034
+Server_Backup=88.88.88.130 1034
+
+[Upload]
+Server=88.88.88.130 1026
+Server_Backup=88.88.88.130 1026
+
+[MobileDial]
+Server=88.88.88.130 1032
+Server_Backup=88.88.88.130 1032
+
+[IEBrowser]
+RvcWebVersion=3.53.0.0
+
+[LivenessDetection]
+SaveLivenessResult=false
+PassiveTimeLimit=300
+ActiveTimeLimit=120
+LeastActiveShowTime=5
+LoosePassiveStrategy=1
+ActiveTimeLimit=15
+
+[localmediaplay]
+Server=88.88.88.130 1051
+Server_Backup=88.88.88.130 1051
+
+[systemcustomization]
+NotCheckUpdateServer=1
+
+[SalesRecorder] 
+Server=88.88.88.130 1028
+Server_Backup=88.88.88.130 1028
+MaxDiskPercent=95
+AudioSampleRate=8
+AudioBitRate=128
+WholeSection=0
+ApplyHighQuality=1
+[Main]
+LastServer=88.88.88.130 1024
+SyncTime=0x2570247A
+SyncHash=84261381dab61a122a87e9dffed0f943
+SyncFile=CenterSetting.DMZ.ini

+ 118 - 0
run/version/1.2.3.4/cfg/CenterSetting.LAN.ini

@@ -0,0 +1,118 @@
+[CenterSetting]
+Server=10.30.0.91 1024
+Server_Backup=10.30.0.91 1024
+
+
+[AccessAuthorization]
+Server=10.30.0.91 1031
+Server_Backup=10.30.0.91 1031
+
+[Alarm]
+Server=10.30.0.91 1025
+Server_Backup=10.30.0.91 1025
+
+[CounterConnector]
+sip_proxy_ip =10.30.0.13
+sip_proxy_port = 5060
+sip_default_call_no = 43235011
+chan_proxy_ip =10.30.0.93
+chan_proxy_port = 2323
+chan_default_call_no = 9991
+sip_proxy_ip_backup =10.30.0.14
+sip_proxy_port_backup =5060
+sip_default_call_no_backup = 43235011
+chan_proxy_ip_backup =10.30.0.93
+chan_proxy_port_backup = 2323
+chan_default_call_no_backup = 9991
+
+[Download]
+Server=10.30.0.91 1027
+Server_Backup=10.30.0.91 1027
+
+[GUIConsole]
+Server=10.30.0.91 1036
+Server_Backup=10.30.0.91 1036
+
+[HealthManager]
+IEBrowser.RVC.Stand2S.Url=http://10.30.0.98/RVC.Web/default.aspx http://10.30.0.98/RVC.Web/default2.aspx
+IEBrowser.RVC.PAD.Url=http://10.30.0.98/RVC.PAD.Web/default.aspx http://10.30.0.98/RVC.PAD.Web/default2.aspx
+IEBrowser.RPM.Stand1S.Url=http://10.30.0.98/RVC.PAD.Web/default.aspx http://10.30.0.98/RVC.PAD.Web/default2.aspx
+IEBrowser.RVC.CardStore.URL=http://10.30.0.98/RVC.Web/default.aspx http://10.30.0.98/RVC.Web/default2.aspx
+[HeartBeat]
+Server=10.30.0.91 1032
+Server_Backup=99.1.100.215 1032
+
+[Initializer]
+Server=10.30.0.91 1031
+Server_Backup=10.30.0.91 1031
+SubBankNo=0020
+BranchNo=001
+SupportUkey=1
+
+[MaintainWatcher]
+Server=10.30.0.91 6043
+Server_Backup=10.30.0.91 6043
+
+[PrintSeal]
+PaperEmpty_Timeout=5
+PaperType_Count=2
+PaperType_1=ÆÕͨA4
+PaperSize_1=A4
+PaperWidth_1=210
+PaperHeight_1=297
+PaperType_2=´æ¿îÖ¤Ã÷
+PaperSize_2=A4
+PaperWidth_2=210
+PaperHeight_2=297
+
+[RemoteController]
+Server=10.30.0.91 1033
+Server_Backup=10.30.0.91 1033
+
+[UpgradeManager]
+Server=10.30.0.91 1034
+Server_Backup=10.30.0.91 1034
+
+[Upload]
+Server=10.30.0.91 1026
+Server_Backup=10.30.0.91 1026
+
+[CardIssuer]
+CaptureFlag=1
+
+[MobileDial]
+Server=10.30.0.91 1032
+Server_Backup=10.30.0.92 1032
+[IEBrowser]
+RvcWebVersion=2.122.0.0
+
+[LivenessDetection]
+SaveLivenessResult=false
+PassiveTimeLimit=300
+ActiveTimeLimit=120
+LeastActiveShowTime=5
+LoosePassiveStrategy=1
+ActiveTimeLimit=15
+
+[HolderContext]
+Server=10.30.0.91 1035
+Server_Backup=10.30.0.91 1035 
+
+[localmediaplay]
+Server=10.30.0.91 1051
+Server_Backup=10.30.0.91 1051
+
+[SalesRecorder] 
+Server=10.30.0.91 1028
+Server_Backup=10.30.0.91 1028
+MaxDiskPercent=95
+AudioSampleRate=8
+AudioBitRate=128
+WholeSection=0
+ApplyHighQuality=1
+
+[Main]
+LastServer=99.12.98.156 6024
+SyncTime=0x2540BA12
+SyncHash=c3adfba10a822561d4725e4937ba86d3
+SyncFile=CenterSetting.LAN.ini

+ 23 - 0
run/version/1.2.3.4/cfg/shell.ini

@@ -0,0 +1,23 @@
+[Main]
+SoftwareVersion=0.0.1
+
+[Entity]
+
+;ÆäËû
+HelloClient=0,mod_helloclient.dll,0x901
+HelloService=0,mod_helloservice.dll,0x902
+
+[Startup]
+Number=2
+1=HelloService
+2=HelloClient
+
+
+
+[Debug]
+HelloClient=1
+HelloService=1
+
+[MemTrace]
+;mod_simple=1
+;mod_console=1

+ 15 - 0
third_party/openssl-1.1.1d/CMakeLists.txt

@@ -28,6 +28,21 @@ set( CMAKE_LEGACY_CYGWIN_WIN32 0 )
 project( openssl )
 cmake_minimum_required( VERSION 3.1.0 )
 
+# add at linux 
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
+
+IF(NOT CMAKE_BUILD_TYPE)
+	SET(CMAKE_BUILD_TYPE "Release")
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2")
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2")
+ELSE()
+	SET(CMAKE_BUILD_TYPE "Debug")
+	SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -O2")
+	SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -O2")
+ENDIF()
+MESSAGE(STATUS "cmake build type: ${CMAKE_BUILD_TYPE}")
+
 set( CMAKE_DISABLE_SOURCE_CHANGES ON )
 set( CMAKE_DISABLE_IN_SOURCE_BUILD ON )
 

+ 11 - 0
third_party/scew/expat-2.1.0/expat.pc

@@ -0,0 +1,11 @@
+prefix=/usr/local
+exec_prefix=${prefix}/bin
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: expat
+Version: 2.1.0
+Description: expat XML parser
+URL: http://www.libexpat.org
+Libs: -L${prefix}/lib -lexpat
+Cflags: -I${prefix}/include

+ 91 - 0
third_party/scew/expat-2.1.0/expat_config.h

@@ -0,0 +1,91 @@
+/* expat_config.h.in.  Generated from configure.in by autoheader.  */
+
+/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
+#define BYTEORDER 1234
+
+/* Define to 1 if you have the `bcopy' function. */
+#define HAVE_BCOPY
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `memmove' function. */
+#define HAVE_MEMMOVE
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H
+
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS
+
+/* whether byteorder is bigendian */
+/* #undef WORDS_BIGENDIAN */
+
+/* Define to specify how much context to retain around the current parse
+   point. */
+#define XML_CONTEXT_BYTES 1024
+
+/* Define to make parameter entity parsing functionality available. */
+#define XML_DTD
+
+/* Define to make XML Namespaces functionality available. */
+#define XML_NS
+
+/* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
+#ifdef _MSC_VER
+# define __func__ __FUNCTION__
+#endif
+
+/* Define to `long' if <sys/types.h> does not define. */
+/* #undef off_t */
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+/* #undef size_t */