0

我正在尝试动态链接食人魔库。除了示例浏览器之外,我能够获取示例的链接库。

这是日志..

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

它抱怨丢失的头文件存在于我的工作目录中。我还尝试手动复制它抱怨的头文件,这就是我得到的。

/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
4

0 回答 0