gpt4 book ai didi

c++ - 默认 "Hello World' 样本上的 Blackberry 10 编译错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 07:27:19 24 4
gpt4 key购买 nike

您好,我是 Blackberry 10 开发的新手,在尝试编译我的第一个“Hello World”应用程序(该应用程序默认随包提供)后,我在控制台中收到以下错误。我正在运行 Windows 8 64 位。请注意,我没有对 ndk 附带的默认“Hello World”模板进行任何更改。

以下是我的 main.cpp 文件的内容:

// Default empty project template
#include <bb/cascades/Application>

#include <QLocale>
#include <QTranslator>
#include "applicationui.hpp"

// include JS Debugger / CS Profiler enabler
// this feature is enabled by default in the debug build only
#include <Qt/qdeclarativedebug.h>

using namespace bb::cascades;

Q_DECL_EXPORT int main(int argc, char **argv)
{
// this is where the server is started etc
Application app(argc, argv);

// localization support
QTranslator translator;
QString locale_string = QLocale().name();
QString filename = QString( "MyApp_%1" ).arg( locale_string );
if (translator.load(filename, "app/native/qm")) {
app.installTranslator( &translator );
}

new ApplicationUI(&app);

// we complete the transaction started in the app constructor and start the client event loop here
return Application::exec();
// when loop is exited the Application deletes the scene which deletes all its children (per qt rules for children)
}

这是控制台输出:

../precompiled.h:1:0: fatal error: can't open "C:\Users\Tich Kames\AppData\Local\Temp\2qccKaF3bb\precompiled.s" for writing: Invalid argument
make[2]: Leaving directory `C:/Users/Tich Kames/ndk-10.1.0-workspace/MyApp/arm'
compilation terminated.
cc: C:/bbndk/host_10_1_0_132/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1plus caught signal 1
make[1]: Leaving directory `C:/Users/Tich Kames/ndk-10.1.0-workspace/MyApp/arm'
make[2]: *** [o.le-v7-g/.obj/MyApp.gch/c++] Error 1
make[1]: *** [debug] Error 2
make: *** [Device-Debug] Error 2

最佳答案

正如 thames 所承认的那样,问题出在工作区和临时路径中的空间。

关于c++ - 默认 "Hello World' 样本上的 Blackberry 10 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17318066/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com