Linux qtcreator引用动态库.pro文件
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
#-------------------------------------------------
#
# Project created by QtCreator 2014-02-28T17:40:23
#
#-------------------------------------------------
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = QtCommuTest
TEMPLATE = app
DESTDIR = ../bin
SOURCES += main.cpp\
dialog.cpp
HEADERS += dialog.h
#-L添加目录,-l指定共享库名称
win32{#表示Windows环境的特殊设置,这个大括号不能单独放在下一行,否则编译会报错
#在Windows系统Qt开发,这句话也行,编译可通过,程序可运行
#LIBS += ../bin/libCommunicate.a#包含项目需要用到的共享库
LIBS += -L../bin/ -lCommunicate
}
unix{#表示Linux环境的特殊设置,这个大括号不能单独放在下一行,否则编译会报错
#在Linux系统Qt开发,这句话不灵,编译可通过,但是程序不可运行,提示找不到库文件
#LIBS += ../bin/libCommunicate.so#包含项目需要用到的共享库,注意文件名多了关键字"lib",扩展名是.so
LIBS += -L../bin/ -lCommunicate
}
#Linux终端环境执行程序,可能会报找不到动态库的错误提示,可以将库的路径添加到环境变量LD_LIBRARY_PATH中解决,例如:
#[root@localhost bin]# ./QtCommuTest
#./QtCommuTest: error while loading shared libraries: libCommunicate.so.1: cannot open shared object file: No such file or directory
#[root@localhost bin]# export LD_LIBRARY_PATH=/home/firecat/Prj/build-QtCommuTest-Desktop_Qt_5_7_1_GCC_64bit-Debug/bin
FORMS += dialog.ui
RESOURCES += \
myResource.qrc
OTHER_FILES += \
myResource.rc
RC_FILE = myResource.rc
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献26条内容
所有评论(0)