I am trying to dynamically link the ogre libraries. I was able to get past linking libraries for the samples except the sample browser.
Here is the log..
Linking CXX shared library ../../lib/Sample_SSAO.so
[100%] Built target Sample_SSAO
Scanning dependencies of target SampleBrowserDummy
[100%] Building CXX object Samples/Browser/CMakeFiles/SampleBrowserDummy.dir/dummy.cpp.o
Linking CXX shared module ../../lib/libSampleBrowserDummy.so
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'NativeActivity'.
If you wish to change it, edit the first line of build.xml.
Added file /home/mihir/workspace/ogre_3d/build_dynamic/SampleBrowserNDK/build.xml
Added file /home/mihir/workspace/ogre_3d/build_dynamic/SampleBrowserNDK/proguard-project.txt
make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
Compile++ thumb : OgreSampleBrowser <= FileSystemLayerImpl_Android.cpp
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:28:33: error: FileSystemLayerImpl.h: No such file or directory
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:32: error: 'FileSystemLayerImpl' has not been declared
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:36: error: 'FileSystemLayerImpl' has not been declared
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:36: error: ISO C++ forbids declaration of 'Ogre' with no type
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:36: error: expected ',' or '...' before '::' token
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:40: error: 'FileSystemLayerImpl' has not been declared
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:40: error: ISO C++ forbids declaration of 'Ogre' with no type
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:40: error: expected ',' or '...' before '::' token
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:40: error: non-member function 'bool OgreBites::fileExists(int)' cannot have cv-qualifier
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp: In function 'bool OgreBites::fileExists(int)':
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:42: error: 'path' was not declared in this scope
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:42: error: 'access' was not declared in this scope
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp: At global scope:
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:45: error: 'FileSystemLayerImpl' has not been declared
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:45: error: ISO C++ forbids declaration of 'Ogre' with no type
/home/mihir/workspace/ogre_3d/Samples/Browser/src/FileSystemLayerImpl_Android.cpp:45: error: expected ',' or '...' before '::' token
make[3]: *** [obj/local/armeabi-v7a/objs/OgreSampleBrowser/FileSystemLayerImpl_Android.o] Error 1
make[2]: *** [lib/libSampleBrowserDummy.so] Error 2
make[1]: *** [Samples/Browser/CMakeFiles/SampleBrowserDummy.dir/all] Error 2
make: *** [all] Error 2
The header files that it is complaining about being missing are present in my working directory. I also tried to manually copy the header files that it complained about and this is what i get.
/home/mihir/workspace/lab126/ogre_3d/build_dynamic/Samples/include/SampleBrowser_Android.h:332: error: expected '>' before 'AndroidEGLWindow'
/home/mihir/workspace/lab126/ogre_3d/build_dynamic/Samples/include/SampleBrowser_Android.h:332: error: expected '(' before 'AndroidEGLWindow'
/home/mihir/workspace/lab126/ogre_3d/build_dynamic/Samples/include/SampleBrowser_Android.h:332: error: 'AndroidEGLWindow' was not declared in this scope
/home/mihir/workspace/lab126/ogre_3d/build_dynamic/Samples/include/SampleBrowser_Android.h:332: error: expected primary-express
Related
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")
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 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 am facing error while make install of opensips.
please help me resolve this. I already installed Redis and freeradius.
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
Compiling aaa_radius.c
Compiling rad.c
Linking aaa_radius.so
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
Compiling cachedb_redis.c
In file included from cachedb_redis.c:41:
cachedb_redis_dbase.h:29:29: error: hiredis/hiredis.h: No such file or directory
In file included from cachedb_redis.c:41:
cachedb_redis_dbase.h:38: error: expected specifier-qualifier-list before ‘redisContext’
make[1]: *** [cachedb_redis.o] Error 1
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
make: *** [modules] Error 2
I am 100% confident redis development packages can be found in the epel repository (/etc/yum.repos.d/epel.repo):
yum install hiredis-devel.x86_64
Now, if you really want to install Red Hat-only packages, you should try to enable as many repositories as you can from /etc/yum.repos.d/redhat.repo until you hopefully find a good one!
The issue was resolved by installing hiredis-devel.x86_64.
but now i am having this error.
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/json'
Compiling array_del.c
array_del.c:29:23: error: json/json.h: No such file or directory
array_del.c:30:38: error: json/json_object_private.h: No such file or directory
array_del.c:32: warning: ‘struct array_list’ declared inside parameter list
array_del.c:32: warning: its scope is only this definition or declaration, which is probably not what you want
array_del.c: In function ‘array_list_del_idx’:
array_del.c:36: error: dereferencing pointer to incomplete type
array_del.c:40: error: dereferencing pointer to incomplete type
array_del.c:40: error: dereferencing pointer to incomplete type
array_del.c:41: error: dereferencing pointer to incomplete type
array_del.c:43: error: dereferencing pointer to incomplete type
array_del.c:44: error: dereferencing pointer to incomplete type
array_del.c:44: error: dereferencing pointer to incomplete type
array_del.c: At top level:
array_del.c:47: warning: ‘struct json_object’ declared inside parameter list
array_del.c: In function ‘json_object_array_del’:
array_del.c:49: error: dereferencing pointer to incomplete type
make[1]: *** [array_del.o] Error 1
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/json'
make: *** [modules] Error 2
I am getting following error when compiling cmake.
error: 'AT_SYMLINK_NOFOLLOW' undeclared
What is cause of this error please suggest. Is this bug in Raspbian because it is defined in following file fcntl.h as per google.
http://lxr.free-electrons.com/source/include/uapi/linux/fcntl.h#L44
[ 37%] Building C object Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_read_disk_posix.c.o
/home/ignite/rpi_package_sb2/cmake-2.8.10.2/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c: In function 'tree_current_lstat':
/home/ignite/rpi_package_sb2/cmake-2.8.10.2/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c:2139:7: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
/home/ignite/rpi_package_sb2/cmake-2.8.10.2/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c:2139:7: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_read_disk_posix.c.o] Error 1
make[1]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/all] Error 2
make: *** [all] Error 2
Please suggest, what dependencies i have missed related to compilation of cmake ?
I am getting error at make time