是否可以在Qt创建器IDE中设置wxWidgets库
Is it possible to setup the wxWidgets library in Qt creator IDE?
是否可以在Qt Creator中设置wxWidgets
库?要做到这一点的步骤是什么? 我知道Visual Studio中的步骤,但Qt创建者没有,因为这并不容易。
我试图.pro
文件中编写以下内容。
INCLUDEPATH += "C:/wxWidgets302/include"
INCLUDEPATH += "C:/wxWidgets302/lib/gcc_lib/mswu"
LIBS += -L"C:/wxWidgets302/lib/gcc_lib" -lwxbase30u -lwxmsw30u_core -lwxpng -lwxzlib -lwxregexu -lwxexpat
但仍然没有链接,并且出现了以下错误。
-
undefined reference to IID_IShellLinkW
-
undefined reference to _imp__CoCreateInstance@20
-
undefined reference to IID_IPersistFile
-
undefined reference to _imp__OleUninitialize@0
-
undefined reference to _imp__OleUninitialize@0
-
C:/wxWidgets302/lib/gcc_liblibwxbase30u.a(baselib_filename.o): bad reloc address 0xa in section .text$_ZN8wxString4LastEv[__ZN8wxString4LastEv]
-
error: ld returned 1 exit status
我正在使用qtcreator v3.1.2
+ mingw v4.8.2 32Bit
+ wxWidgets v3.0.2
.
在 pro 文件中使用以下代码:
wxCXXFLAGS = $$system(wx-config --cxxflags --unicode=yes --debug=no)
wxLinkOptions = $$system(wx-config --debug=no --libs --unicode=yes)
LIBS += $$wxLinkOptions
QMAKE_CXXFLAGS_RELEASE += $$wxCXXFLAGS
QMAKE_CXXFLAGS_DEBUG += $$wxCXXFLAGS
相关文章:
- 为不同配置设置MSVC_RUNTIME_LIBRARY的正确方法是什么
- 在C++/Linux中设置单调时钟的一些技巧
- 如何在选项卡视图Qt中设置一个新项目,并保存以前的项目
- 嵌套在类中时无法设置成员数据
- 需要帮助设置在C++中使用的Potrace
- 如何在自删除后将对象设置为nullptr
- 将指针设置为"nullptr"并不能防止双重删除?
- 如何在Ubuntu中使用cmake设置qt4
- C++:如何在CLion IDE中安装Boost
- 将 vim 设置为C++ IDE
- 我正在尝试将 Ubuntu 设置为用于 C 开发的 IDE。
- 在Eclipse IDE中为OS X中的C/C++开发人员Mars设置gcc(嵌入gcc-arm)
- 是否可以在Qt创建器IDE中设置wxWidgets库
- Visual C++IDE中的项目/解决方案设置
- 有没有办法在调试中设置断点"at this very moment"?它是关于任何编程语言或IDE的
- Qt IDE设置断点
- Eclipse c++ IDE,问题设置
- 为基于Arm的pandboard - es交叉编译设置Eclipse IDE的问题
- 如何为特定的单词(如IDE)设置自定义颜色
- 如何设置IDE ATA控制器的PIO周期定时