im trying to install kinect 360 in my ubuntu 16.04 system and in the libfreenect library im in front of a cmake problem. What should i do to solve this?. Thank you very much guys!
In file included from /home/evdo/Kinect/libfreenect/wrappers/cpp/cppview.cpp:27:0:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:182:8: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
std::unique_ptr<uint8_t[]> m_rgb_buffer;
^
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp: In member function ‘void Freenect::FreenectDevice::setVideoFormat(freenect_video_format, freenect_resolution)’:
/home/evdo/Kinect/libfreenect/wrappers/cpp/libfreenect.hpp:115:5: error: ‘m_rgb_buffer’ was not declared in this scope
m_rgb_buffer.reset(new uint8_t[mode.bytes]);
^
wrappers/cpp/CMakeFiles/freenect-cppview.dir/build.make:62: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o' failed make[2]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/cppview.cpp.o] Error 1
CMakeFiles/Makefile2:810: recipe for target 'wrappers/cpp/CMakeFiles/freenect-cppview.dir/all' failed
make[1]: *** [wrappers/cpp/CMakeFiles/freenect-cppview.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Add a line of code to CmakeLists.txt as shown below.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
Related
I'm following the steps from here at 3.1 Task 1.A: Implement a Simple Kernel Module:
https://seedsecuritylabs.org/Labs_20.04/Files/Firewall/Firewall.pdf
Everything was fine until I ran the make command. the hello.ko file wasn't generated and I don't know what's wrong.
make -C /lib/modules/5.11.0-38-generic/build M=/home/seed/Downloads/Labsetup/Files/kernel_module modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-38-generic'
CC [M] /home/seed/Downloads/Labsetup/Files/kernel_module/hello.o
MODPOST /home/seed/Downloads/Labsetup/Files/kernel_module/Module.symvers
ERROR: modpost: missing MODULE_LICENSE() in /home/seed/Downloads/Labsetup/Files/kernel_module/hello.o
make[2]: *** [scripts/Makefile.modpost:124: /home/seed/Downloads/Labsetup/Files/kernel_module/Module.symvers] Error 1
make[2]: *** Deleting file '/home/seed/Downloads/Labsetup/Files/kernel_module/Module.symvers'
make[1]: *** [Makefile:1753: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-38-generic'
make: *** [Makefile:4: all] Error 2
ERROR: modpost: missing MODULE_LICENSE() in /home/seed/Downloads/Labsetup/Files/kernel_module/hello.o
You must add the license in hello.c.
e.g.
MODULE_LICENSE("GPL");
Trying to install glibc 2.14 following this solution.
but I'm getting this error and I'm not sure how to fix it and can't find much online
selinux.c:37:23: error: libaudit.h: No such file or directory
selinux.c: In function ‘log_callback’:
selinux.c:138: warning: implicit declaration of function ‘audit_log_user_avc_message’
selinux.c:138: error: ‘AUDIT_USER_AVC’ undeclared (first use in this function)
selinux.c:138: error: (Each undeclared identifier is reported only once
selinux.c:138: error: for each function it appears in.)
selinux.c: In function ‘audit_init’:
selinux.c:152: warning: implicit declaration of function ‘audit_open’
make[2]: *** [/home/me/glibc_install/glibc-2.14/build/nscd/selinux.o] Error 1
make[2]: Leaving directory `/local/home/me/glibc_install/glibc-2.14/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/local/home/me/glibc_install/glibc-2.14'
make: *** [all] Error 2
Append --without-selinux to your configure command or install the -dev packages of SELinux and libaudit for your distribution.
You should probably install a newer version of glibc, though. Installing old versions on a new system is dangerous.
I am trying to compile BRHCLUS, a package part of OrthoDB. I do not have root access but I did load the module boost. I keep getting the fatal error when trying to make all. Any ideas as to what the issue is?
Compiling pairdataset.cpp
In file included from pairdataset.cpp:22:0:
pairdataset.h:37:10: fatal error: boost/algorithm/string/trim.hpp: No such file or directory
#include <boost/algorithm/string/trim.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [.linux/pairdataset.o] Error 1
make[1]: *** [src] Error 2
make: *** [all] Error 2
I am trying to integrate the Wilink8 WiFi module with the ZedBoard(Zync series SoC from Xilinx) and when i tried to compile mine linux- Kernel to create the uImage, I am getting the following error:
In file included from drivers/net/wireless/ti/wlcore/main.c:43:0:
drivers/net/wireless/ti/wlcore/version.h:1:39: error: macro "__TIMESTAMP__" might prevent reproducible builds [-Werror=date-time]static const char *wlcore_timestamp = __TIMESTAMP__;
drivers/net/wireless/ti/wlcore/main.c:5911:2: warning: initialization from incompatible pointer type
.sched_scan_stop = wl1271_op_sched_scan_stop,
drivers/net/wireless/ti/wlcore/main.c:5911:2: warning: (near initialization for 'wl1271_ops.sched_scan_stop')
cc1: some warnings being treated as errors
make[5]: *** [drivers/net/wireless/ti/wlcore/main.o] Error 1
make[4]: *** [drivers/net/wireless/ti/wlcore] Error 2
make[3]: *** [drivers/net/wireless/ti] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Can you help me to rectify this.
You may disable treating this warning as error as desribed in this post or remove line containing timestamp macro from driver source code.
I'm following the process https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03.
At the time of compilation and installation:
[root#ip-172-31-19-191 hhvm]# make
[ 0%] Building CXX object hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
c++: error: unrecognized command line option ‘-fno-canonical-system-headers’
make[2]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o] Error 1
make[1]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/all] Error 2
make: *** [all] Error 2
Anyone know why the compiler is not recognizing this command?