错误:在'_GLIBCXX_VISIBILITY'命名空间std _GLIBCXX_VISIBILITY之前预期'{'(默认)

时间:2014-04-08 04:52:44

标签: qt android-ndk

我在Windows 7-64位中使用预编译的Qt 5.2.1 for Android Application。我无法在cpu armeabi-v7a上构建一个简单的Hello World程序。我正在使用android_armv7编译器。 之前我收到此错误 - 错误:bits / c ++ config.h:没有这样的文件或目录

然后我将以下路径添加到我的.pro文件 -

INCLUDEPATH + = C:/ android-ndk-r9d-windows-x86_64 / android-ndk-r9d / sources / cxx-stl / gnu-libstdc ++ / 4.8 / include \ + C:\ QtMobile \ Tools \ mingw48_32 \ lib \ GCC \ i686的-W64-的mingw32 \ 4.8.0 \包括\ C ++ \ i686的-W64-的mingw32

现在,我收到以下错误 - C:\ android-ndk-r9d-windows-x86_64 \ android-ndk-r9d \ sources \ cxx-stl \ gnu-libstdc ++ \ 4.8 \ include \ bits \ stl_relops.h:67:错误:预期' {& #39;之前' _GLIBCXX_VISIBILITY'  namespace std _GLIBCXX_VISIBILITY(默认值)

我试图到处搜索,但我没有得到解决方案。请帮帮我。

1 个答案:

答案 0 :(得分:0)

我得到了解决方案。这是ndk版本的问题。但是如果我使用Qt Creator 5.2.1 for API 19,我无法在设备上部署它。对于API 18,它运行良好..谢谢您。 :)