我正在尝试编译默认代码以在Windows上测试QT5,但我总是遇到此错误:
Process finished with exit code -1073741515 (0xC0000135)
这是我的main.cpp:
#include <stdio.h>
#include <opus/opus.h>
#include <portaudio.h>
#include <QtWidgets/QApplication>
#include <QtWidgets/QPushButton>
int main(int argc, char **argv)
{
QApplication app (argc, argv);
QPushButton button ("Hello world !");
button.show();
return app.exec();
}
以及我的CMakeLits.txt:
project(Babel)
cmake_minimum_required(VERSION 2.8.12)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
find_package(Qt5Widgets CONFIG REQUIRED)
include_directories(${CMAKE_INCLUDE_PATH})
add_executable(babel main.cpp)
target_link_libraries(babel ${CONAN_LIBS} Qt5::Widgets)
有人有解决的办法吗?