diff --git a/Platform/Linux/Build/Makefile b/Platform/Linux/Build/Makefile index 01de736..c8dbd88 100644 --- a/Platform/Linux/Build/Makefile +++ b/Platform/Linux/Build/Makefile @@ -51,9 +51,9 @@ $(foreach proj,$(ALL_PROJS),$(eval $(call CREATE_PROJ_TARGET,$(proj)))) XnFormats: XnCore XnDDK: XnCore XnDDK: XnFormats -XnLeanDeviceSensorV2: XnDDK -XnLeanDeviceSensorV2: XnFormats -XnLeanDeviceSensorV2: XnCore +XnDeviceSensorV2: XnDDK +XnDeviceSensorV2: XnFormats +XnDeviceSensorV2: XnCore Utils/XnSensorServer: XnDDK Utils/XnSensorServer: XnDeviceSensorV2 Utils/XnSensorServer: XnFormats diff --git a/Platform/Linux/CreateRedist/RedistMaker b/Platform/Linux/CreateRedist/RedistMaker index f812133..3925ea7 100755 --- a/Platform/Linux/CreateRedist/RedistMaker +++ b/Platform/Linux/CreateRedist/RedistMaker @@ -7,9 +7,9 @@ function calc_jobs_number() { if [ $OS_TYPE == "Darwin" ] ; then N_CORES=$(sysctl -n hw.physicalcpu) else - N_CORES=$(grep "processor\W:" /proc/cpuinfo | wc -l) + N_CORES=$(cat /proc/cpuinfo | grep -m1 "cores\W:" | grep -Eo '[0-9]{1,4}') fi - echo $((N_CORES*2)) + echo $((N_CORES)) } if [ $# -gt 1 ]