Skip to content
This repository was archived by the owner on Aug 3, 2018. It is now read-only.

Commit 82a5686

Browse files
committed
Updated version to 5.0.3.3.
1 parent 9ebd436 commit 82a5686

40 files changed

+886
-670
lines changed

CHANGES

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,34 @@
11
Detailed Change log:
22
--------------------
33

4-
Version 5.0.1.31 (Stable version - Apr 11th 2010)
4+
Version 5.0.3.3 (Stable version - Jul 5th 2011)
5+
-----------------------------------------------
6+
* Linux: Allow installation to a different directory (for cross-compilation mainly).
7+
* Workaround firmware bug: if no depth, IR timestamps are corrupt. Use host clock for timestamps instead.
8+
* Bug Fix: unregistering USB event callback when destroying sensor to prevent crash when unplugging device.
9+
* XnExportedSensorDevice now only enumerates devices that weren't created in the context yet.
10+
11+
Version 5.0.2.3 (Stable version - May 3rd 2011)
12+
-----------------------------------------------
13+
* Fixed use of deprecated CreateProductionTree().
14+
* Bug Fix: playing XNS files in applications using deprecated API might cause memory leaks.
15+
* Bug Fix: serial number was in hex format instead of decimal one.
16+
* Make sure SensorV2 nodes will only use SensorV2 device (up to now they only checked it's a PrimeSense device).
17+
18+
Version 5.0.1.33 (Unstable version - Apr 18th 2011)
19+
---------------------------------------------------
20+
* CE4100: adding support in makefiles, redist and install.
21+
* CE4100: default is now BULK with compressed formats.
22+
23+
Version 5.0.1.32 (Unstable version - Apr 11th 2011)
24+
---------------------------------------------------
25+
* Fixing log prints of resolutions (-1 appeared as MAX_UINT64...) to the resolution name.
26+
* Linux Bug Fix: Server creates two log files, one in the client folder and one in /var/log/primesense/XnSensorServer
27+
* Fixed a memory leak when rewinding old XNS files.
28+
* Win32: WIX installer (replacing NSIS)
29+
* Fixed wrong version in XnDeviceFile
30+
31+
Version 5.0.1.31 (Stable version - Apr 11th 2011)
532
-------------------------------------------------
633
* Fix BULK timeout - it was too small...
734
* Bug Fix: IR only works in QVGA...

Include/XnCommon.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
*****************************************************************************/
2222

2323

24-
25-
26-
27-
2824
#ifndef __XN_COMMON_H__
2925
#define __XN_COMMON_H__
3026

@@ -59,4 +55,4 @@ typedef enum XnPrimeSenseErrorModules
5955
#define XN_PS_STATUS_MESSAGE_MAP_END(module) \
6056
XN_STATUS_MESSAGE_MAP_END_FROM(XN_ERROR_GROUP_PRIMESENSE, module)
6157

62-
#endif // __XN_COMMON_H__
58+
#endif // __XN_COMMON_H__

Include/XnPsVersion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
/** Xiron minor version. */
4242
#define XN_PS_MINOR_VERSION 0
4343
/** Xiron maintenance version. */
44-
#define XN_PS_MAINTENANCE_VERSION 1
44+
#define XN_PS_MAINTENANCE_VERSION 3
4545
/** Xiron build version. */
46-
#define XN_PS_BUILD_VERSION 32
46+
#define XN_PS_BUILD_VERSION 3
4747

4848
/** Xiron version (in brief string format): "Major.Minor.Maintenance (Build)" */
4949
#define XN_PS_BRIEF_VERSION_STRING \

Platform/Linux-x86/Build/EngineLibMakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ INC_DIRS += \
2121

2222
BIN_DIR = ../../Bin
2323

24-
include /usr/include/ni/CommonMakefile
24+
include ../CommonCppMakefile
2525

Platform/Linux-x86/Build/Utils/EngineUtilMakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ INC_DIRS += \
2121

2222
BIN_DIR = ../../../Bin
2323

24-
include /usr/include/ni/CommonMakefile
24+
include ../../CommonCppMakefile

Platform/Linux-x86/CreateRedist/RedistMaker

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
#!/bin/bash -e
22

3-
use_4100=0
4-
if [ "$1" == "4100" ]
5-
then
6-
use_4100=1
7-
fi
3+
case $1 in
4+
x86 | "")
5+
PLATFORM="x86" ;;
6+
CE4100)
7+
PLATFORM="CE4100" ;;
8+
Arm)
9+
PLATFORM="Arm" ;;
10+
*)
11+
echo "Unknown platform"
12+
exit 1
13+
;;
14+
esac
815

916
SCRIPT_DIR=`pwd`
1017

@@ -21,14 +28,8 @@ rm -rf Final
2128
rm -rf ../Redist
2229

2330
# Build Engine
24-
if [ "$use_4100" == "1" ]
25-
then
26-
cd ../Build
27-
./Make.4100
28-
cd -
29-
else
30-
make -C ../Build
31-
fi
31+
make PLATFORM=$PLATFORM -C ../Build clean
32+
make PLATFORM=$PLATFORM -C ../Build
3233

3334
# create redist folder structure
3435
mkdir -p ../Redist
@@ -47,17 +48,26 @@ cp ../Bin/Release/libXnFormats.* ../Redist/Lib
4748
cp ../Bin/Release/libXnCore.* ../Redist/Lib
4849
cp ../Bin/Release/XnSensorServer ../Redist/Bin
4950
cp ../Install/* ../Redist/Install
50-
cp ../../../Data/GlobalDefaults.ini ../Redist/Config
5151
cp install.sh ../Redist
5252

53+
# fix GlobalDefaults according to platform
54+
if [ "$PLATFORM" == "CE4100" ]; then
55+
# change default UsbInterface to BULK and default image+depth format to compressed
56+
cat ../../../Data/GlobalDefaults.ini | sed 's/[;]*UsbInterface=.*/UsbInterface=2/' | sed 's/[;]*InputFormat=.*/InputFormat=1/' > ../Redist/Config/GlobalDefaults.ini
57+
else
58+
cp ../../../Data/GlobalDefaults.ini ../Redist/Config
59+
fi
60+
5361
# create tar
5462
mkdir -p Final
5563
cd ../Redist
5664

5765
if [ "`uname -s`" == "Darwin" ]; then
5866
TAR_TARGET="MacOSX"
59-
elif [ "$use_4100" == "1" ]; then
67+
elif [ "$PLATFORM" == "CE4100" ]; then
6068
TAR_TARGET="CE4100"
69+
elif [ "$PLATFORM" == "Arm" ]; then
70+
TAR_TARGET="Arm"
6171
elif [ "`uname -m`" == "i686" ]; then
6272
TAR_TARGET="Linux32"
6373
elif [ "`uname -m`" == "x86_64" ]; then

Platform/Linux-x86/CreateRedist/install.sh

Lines changed: 83 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,90 @@
1-
#!/bin/bash -e
2-
3-
SCRIPT_DIR=`pwd`/`dirname $0`
4-
5-
INSTALL_LIB=/usr/lib
6-
INSTALL_BIN=/usr/bin
7-
INSTALL_ETC=/usr/etc/primesense
8-
INSTALL_RULES=/etc/udev/rules.d
9-
10-
if [ "`uname -s`" == "Darwin" ]; then
1+
#!/bin/sh -e
2+
3+
usage="
4+
Usage: $0 [OPTIONS]
5+
Installs PrimeSense Sensor Driver to current machine.
6+
7+
-i,--install
8+
Installs PrimeSense Sensor Driver (default mode)
9+
-u,--uninstall
10+
Uninstalls PrimeSense Sensor Driver.
11+
-c,--cross-compile-rootfs <path>
12+
Used for cross-compiling. Installs PrimeSense Sensor Driver to <path> instead of '/'.
13+
-h,--help
14+
Shows this help screen.
15+
"
16+
17+
OS_NAME=`uname -s`
18+
19+
case $OS_NAME in
20+
Darwin)
1121
MODULES="libXnDeviceSensorV2.dylib libXnDeviceFile.dylib"
12-
else
22+
;;
23+
*)
1324
MODULES="libXnDeviceSensorV2.so libXnDeviceFile.so"
14-
fi
25+
;;
26+
esac
1527

1628
RULES_FILE="55-primesense-usb.rules"
1729

18-
# read arguments
19-
INSTALL="1"
30+
# create file list
31+
SCRIPT_DIR=`pwd`/`dirname $0`
2032

21-
while (( "$#" )); do
22-
case "$1" in
23-
"-i")
24-
INSTALL="1"
33+
LIB_FILES=`ls $SCRIPT_DIR/Lib/*`
34+
BIN_FILES=`ls $SCRIPT_DIR/Bin/*`
35+
36+
rootfs=
37+
38+
# parse command line
39+
while [ "$1" ]; do
40+
case $1 in
41+
-i|--install)
42+
install=yes
43+
;;
44+
-u|--uninstall)
45+
uninstall=yes
46+
;;
47+
-c|--cross-staging-dir)
48+
shift
49+
rootfs=$1
2550
;;
26-
"-u")
27-
INSTALL="0"
51+
-h|--help)
52+
echo "$usage"
53+
exit 0
2854
;;
2955
*)
30-
echo "Usage: $0 [options]"
31-
echo "Available options:"
32-
printf "\t-i\tInstall (default)\n"
33-
printf "\t-u\tUninstall\n"
56+
echo "Unrecognized option $1"
3457
exit 1
35-
;;
3658
esac
3759
shift
3860
done
3961

40-
# create file list
41-
LIB_FILES=`ls $SCRIPT_DIR/Lib/*`
42-
BIN_FILES=`ls $SCRIPT_DIR/Bin/*`
62+
# default mode is install
63+
if [ ! "$install" = yes ] && [ ! "$uninstall" = yes ]; then
64+
install=yes
65+
fi
66+
67+
# validity check
68+
if [ "$install" = yes ] && [ "$uninstall" = yes ]; then
69+
echo "-i and -u flags cannot be used together!"
70+
exit 1
71+
fi
4372

44-
if [ "$INSTALL" == "1" ]; then
73+
INSTALL_LIB=$rootfs/usr/lib
74+
INSTALL_BIN=$rootfs/usr/bin
75+
INSTALL_ETC=$rootfs/usr/etc/primesense
76+
INSTALL_RULES=$rootfs/etc/udev/rules.d
77+
SERVER_LOGS_DIR=$rootfs/var/log/primesense/XnSensorServer
4578

79+
# make all calls into OpenNI run in this filesystem
80+
export OPEN_NI_INSTALL_PATH=$rootfs
81+
# make sure the staging dir OpenNI is the one being run
82+
export LD_LIBRARY_PATH=$INSTALL_LIB
83+
84+
if [ "$install" = yes ]; then
85+
printf "Installing PrimeSense Sensor\n"
86+
printf "****************************\n\n"
87+
4688
# create config dir
4789
printf "creating config dir $INSTALL_ETC..."
4890
mkdir -p $INSTALL_ETC
@@ -61,7 +103,7 @@ if [ "$INSTALL" == "1" ]; then
61103
# register modules
62104
for module in $MODULES; do
63105
printf "registering module '$module' with OpenNI..."
64-
niReg -r $INSTALL_LIB/$module $INSTALL_ETC
106+
$INSTALL_BIN/niReg -r $INSTALL_LIB/$module $INSTALL_ETC
65107
printf "OK\n"
66108
done
67109

@@ -78,9 +120,9 @@ if [ "$INSTALL" == "1" ]; then
78120

79121
# create server log dir
80122
printf "creating server logs dir..."
81-
mkdir -p /var/log/primesense/XnSensorServer
123+
mkdir -p $SERVER_LOGS_DIR
82124
# make this dir readable and writable by all (we allow anyone to delete logs)
83-
chmod a+w /var/log/primesense/XnSensorServer
125+
chmod a+w $SERVER_LOGS_DIR
84126
printf "OK\n"
85127

86128
if [ "`uname -s`" != "Darwin" ]; then
@@ -90,12 +132,17 @@ if [ "$INSTALL" == "1" ]; then
90132
printf "OK\n"
91133
fi
92134

93-
else #uninstall
135+
printf "\n*** DONE ***\n\n"
136+
137+
elif [ "$uninstall" = yes ]; then
138+
139+
printf "Uninstalling PrimeSense Sensor\n"
140+
printf "******************************\n\n"
94141

95142
# unregister modules
96143
for module in $MODULES; do
97144
printf "unregistering module '$module' from OpenNI..."
98-
if niReg -u $INSTALL_LIB/$module; then
145+
if $INSTALL_BIN/niReg -u $INSTALL_LIB/$module; then
99146
printf "OK\n"
100147
fi
101148
done
@@ -126,6 +173,6 @@ else #uninstall
126173
printf "OK\n"
127174
fi
128175

129-
fi
176+
printf "\n*** DONE ***\n\n"
130177

131-
printf "\n*** DONE ***\n\n"
178+
fi

0 commit comments

Comments
 (0)