在linux上的qt4.7中生成.so文件而不是.exe
我在 QtCreator-2.0.1 中构建了一个简单的 GUI 应用程序,我有以下文件:
first.pro
first.pro.user
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
如果我运行 qmake
和 make
它会给我一个可执行文件。是否可以从这些文件生成 .so
文件?如果是这样,有人可以告诉我应遵循的步骤吗?
I have built a simple GUI application in QtCreator-2.0.1 i have following files:
first.pro
first.pro.user
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
If I run qmake
and make
it gives me an executable. Is it possible to generate a .so
file from these files? if so, can someone tell me the steps to be followed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想建立一个共享库吗?一个插件?
当您使用Qt Creator创建项目时,您选择了哪种项目?
就您而言,我猜您想选择
Other Project->C++ Library
(然后您可以选择是否需要共享库
或Qt 4 插件无论如何
,从你的项目中,我想你必须更改
.pro
中的模板并输入:Are you trying to build a shared library ? A plugin ?
When you created your project with Qt Creator, which kind of project did you choose ?
In your case, I guess you wanted to choose
Other Project->C++ Library
(you can then choose if you want ashared library
or aQt 4 plugin
.Anyway, from your project, I guess you'll have to change the template in your
.pro
and put :