Failed to start program. Path or permissions wrong

2019-02-16 19:16发布

I have downloaded Qt Mobility Open source project. I had a set of demo apps. And when built it and started the App, I got this error:

Failed to start program. Path or permissions wrong?

Can someone tell me what this problem could be?

UPDATE:

The complete error is:

Starting /Users/xxxxx/Qt/qt-mobility-opensource-src-1.0.2/config.app/Contents/MacOS/config... Failed to start program. Path or permissions wrong?

I have include the ".pro" file contents:

TEMPLATE = app
TARGET = writemessage

QT += gui

include(../examples.pri)

CONFIG += mobility
MOBILITY = messaging
INCLUDEPATH += ../../src/messaging

HEADERS += \
    messagesender.h

SOURCES += \
    messagesender.cpp\
    main.cpp

symbian:TARGET.CAPABILITY = NetworkServices \
    LocalServices \
    ReadUserData \
    WriteUserData \
    UserEnvironment \
    ReadDeviceData \
    WriteDeviceData

7条回答
Rolldiameter
2楼-- · 2019-02-16 20:01

I had the same issue in Windows. I found the answer. You need to check the "Working directory" parameter in "Run Settings" section. I changed it to the same path as my build directory and it worked.

I was running QT as admin.

查看更多
登录 后发表回答