Code Monkey home page Code Monkey logo

Comments (6)

dtmoodie avatar dtmoodie commented on June 12, 2024

Hello I'm working through the same issue. How did you set verbose?

from openni2.

fpilote avatar fpilote commented on June 12, 2024

i don't remember changing anything for the verbose level.

Though i realised that the verbose level is read from OpenNI.ini file (from the log output)

ubuntu@tegra-ubuntu:~/OpenNI2$ locate OpenNI.ini
/etc/openni2/OpenNI.ini
/home/ubuntu/OpenNI2/Config/OpenNI.ini
ubuntu@tegra-ubuntu:~/OpenNI2$ more /etc/openni2/OpenNI.ini
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=3
LogToConsole=0
LogToFile=0

[Device]
;Override=""

[Drivers]
; Location of the drivers specified by a relative path based on OpenNI's shared library or an absolute path.
; Path separator "/" can be used to be portable for any platforms.
; Default - OpenNI2/Drivers
;Repository=OpenNI2/Drivers
ubuntu@tegra-ubuntu:~/OpenNI2$ more Config/OpenNI.ini
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=3
LogToConsole=0
LogToFile=0

[Device]
;Override=""

[Drivers]
; Location of the drivers specified by a relative path based on OpenNI's shared library or an absolute path.
; Path separator "/" can be used to be portable for any platforms.
; Default - OpenNI2/Drivers
;Repository=OpenNI2/Drivers

After re-reading the log output from the software in my initial post, it is looking for a .ini file in current directory. I'm assuming that default value for verbosity is VERBOSE (since no OpenNI.ini file is located in the current directory)

FYI : here are my changes in the source

diff --git a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
index dd88b04..9953349 100644
--- a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
+++ b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak
@@ -18,6 +18,8 @@ else ifneq (,$(findstring i386,$(MACHINE)))
        HOST_PLATFORM = x86
 else ifneq (,$(findstring arm,$(MACHINE)))
        HOST_PLATFORM = Arm
+else ifneq (,$(findstring aarch64,$(MACHINE)))
+       HOST_PLATFORM = Arm
 else
        DUMMY:=$(error Can't determine host platform)
 endif
diff --git a/ThirdParty/PSCommon/BuildSystem/Platform.Arm b/ThirdParty/PSCommon/BuildSystem/Platform.Arm
index c4a112d..4b78b1d 100644
--- a/ThirdParty/PSCommon/BuildSystem/Platform.Arm
+++ b/ThirdParty/PSCommon/BuildSystem/Platform.Arm
@@ -1,7 +1,7 @@
 ifeq "$(CFG)" "Release"

     # Hardware specifying flags
-    CFLAGS += -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8
+    #CFLAGS += -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8

     # Optimization level, minus currently buggy optimizing methods (which break bit-exact)
     CFLAGS += -O3 -fno-tree-pre -fno-strict-aliasing
@@ -9,6 +9,6 @@ ifeq "$(CFG)" "Release"
     # More optimization flags
     CFLAGS += -ftree-vectorize -ffast-math -funsafe-math-optimizations #-fsingle-precision-constant

-    DEFINES += XN_NEON
+    #DEFINES += XN_NEON
     CFLAGS += -flax-vector-conversions
 endif

from openni2.

sivaariram avatar sivaariram commented on June 12, 2024

when I trying to make its failed I did the following changes in CommonDefs.mak

nvidia@tegra-ubuntu:/media/nvidia/JetsonSSD/OpenNI2$ sudo make
make -C ThirdParty/PSCommon/XnLib/Source
make[1]: Entering directory '/media/nvidia/JetsonSSD/OpenNI2/ThirdParty/PSCommon/XnLib/Source'
g++ -MD -MP -MT "./../Bin/Intermediate/Arm-Release/libXnLib.a/XnErrorLogger.d ../Bin/Intermediate/Arm-Release/libXnLib.a/XnErrorLogger.o" -c -march=armv7-a -mtune=cortex-a15 -mfpu=neon-vfpv4 -mfloat-abi=hard -O3 -fno-tree-pre -fno-strict-aliasing -ftree-vectorize -ffast-math -funsafe-math-optimizations -flax-vector-conversions -Wall -O2 -DNDEBUG -I../Include -DXN_NEON -fPIC -fvisibility=hidden -o ../Bin/Intermediate/Arm-Release/libXnLib.a/XnErrorLogger.o XnErrorLogger.cpp
g++: error: unrecognized command line option β€˜-mfpu=neon-vfpv4’
g++: error: unrecognized command line option β€˜-mfloat-abi=hard’
../../BuildSystem/CommonCppMakefile:133: recipe for target '../Bin/Intermediate/Arm-Release/libXnLib.a/XnErrorLogger.o' failed
make[1]: *** [../Bin/Intermediate/Arm-Release/libXnLib.a/XnErrorLogger.o] Error 1
make[1]: Leaving directory '/media/nvidia/JetsonSSD/OpenNI2/ThirdParty/PSCommon/XnLib/Source'
Makefile:122: recipe for target 'ThirdParty/PSCommon/XnLib/Source' failed
make: *** [ThirdParty/PSCommon/XnLib/Source] Error 2

from openni2.

mikeh9 avatar mikeh9 commented on June 12, 2024

I see a lot of people are having issues compiling for aarch64. To make it easy for everyone, I have uploaded a copy of my OpenNI2 source files that have been modified to work on aarch64, cortex-A57 on my github: https://github.com/mikeh9/OpenNI2-TX1.git

Also included are samples in binary format if you want to just run them.

Thanks to jetsonhacks.com for providing the instructions on how to compile the source for TK1.

from openni2.

gowtham212 avatar gowtham212 commented on June 12, 2024

@mikeh9 I too used your repo but You didn't dump your edited one ,You dump original one there is no support for aarch64 ,kindly helps us because we are facing lot of difficult on jetson tx2 ,ni viewer doesn't seems to open,Thank you

from openni2.

mikeh9 avatar mikeh9 commented on June 12, 2024

Sorry, I just checked and I don't have the archive anymore.

from openni2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.