Qt Application build in launchpad - issue in linking libraries
I am having Qt application. Here qt .pro file.
# Add more folders to ship with the application, here
folder_01.source = qml/qtcam
folder_01.target = qml
DEPLOYMENTFOLDERS = folder_01
QT += widgets opengl multimedia xml
TARGET = Qtcam
CONFIG += release
# Additional import path used to resolve QML modules in Creator's code model
QML_IMPORT_PATH =
# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp \
logger.cpp \
about.cpp \
cameraproperty.cpp \
videostreaming.cpp \
uvccamera.cpp \
v4l2-api.cpp \
seecam_10cug_m.cpp \
seecam_
seecam_11cug.cpp \
seecam_cu80.cpp \
seecam_cu50.cpp \
seecam_ar0130.cpp \
videoencoder.cpp \
seecam_cu51.cpp \
see3cam_cu130.cpp \
h264decoder.cpp \
ascella.cpp \
wificam.cpp \
gstreamRtsp.cpp
# Installation path
# target.path =
target.path = /usr/
# Please do not modify the following two lines. Required for deployment.
include(
qtcAddDeployment()
HEADERS += \
logger.h \
about.h \
cameraproperty.h \
videostreaming.h \
uvccamera.h \
v4l2-api.h \
seecam_10cug_m.h \
seecam_
seecam_11cug.h \
seecam_cu80.h \
seecam_cu50.h \
seecam_ar0130.h \
videoencoder.h \
seecam_cu51.h \
see3cam_cu130.h \
h264decoder.h \
ascella.h \
wificam.h \
wificam_enums.h \
gstreamRtsp.h
UNAME_MACHINE_32BIT = $$system(dpkg --print-
UNAME_MACHINE_64BIT = $$system(dpkg --print-
PRECISEDISTRO = $$system(cat /etc/issue | grep -o "12.04")
TRUSTYDISTRO = $$system(cat /etc/issue | grep -o "14.04")
contains(
message("precise")
contains(
message("x86_64 bit - precise")
UBUNTU_12_04_64bit = 1
}
contains(
message("32 bit - precise")
UBUNTU_12_04_32bit = 1
}
}
contains(
message("trusty")
contains(
message("x86_64 bit - trusty")
UBUNTU_14_04_64bit = 1
}
contains(
message("x86_32 bit - trusty")
UBUNTU_14_04_32bit = 1
}
}
INCLUDEPATH += /usr/include \
$$PWD/v4l2heade
/usr/include/
LIBS += -lv4l2 -lv4lconvert \
-lavutil \
-lavcodec \
-lavformat \
-lswscale \
-ludev \
-lusb-1.0 \
-lturbojpeg
contains(
message(
INCLUDEPATH += /usr/include/
/usr/lib/
/usr/include/
/usr/include/
LIBS += -L$$PWD/
-L/usr/
-L/usr/lib/ -lgstreamer-1.0 -lgstapp-1.0 \
-L/usr/lib/ -lgobject-2.0 -lgio-2.0 \
-L$$PWD/
}
contains(
message(
INCLUDEPATH += /usr/include/
/usr/lib/
/usr/include/
/usr/include/
LIBS += -L$$PWD/
-L/usr/
-L/usr/
-L/usr/lib/ -lgobject-2.0 -lgio-2.0 \
-L$$PWD/
}
contains(
message(
INCLUDEPATH += /usr/include/
/usr/include/
/usr/lib/
/usr/include/
LIBS += -L/usr/
-L$$PWD/
-L$$PWD/
}
contains(
message(
INCLUDEPATH += /usr/include/
/usr/include/
/usr/lib/
/usr/include/
LIBS += -L/usr/
-L$$PWD/
-L$$PWD/
}
QMAKE_CFLAGS_THREAD = -D__STDC_
QMAKE_CXXFLAGS_
OTHER_FILES += \
qml/qtcam/
qml/qtcam/
I have created debian/rules file.
debian/rules
------------------
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DEB_BUILD_
APPNAME := qtcam
builddir/Makefile:
cd src && ls && ls lib && ls lib/ewificam && ls lib/wificonnect && bash /opt/qt52/
build: build-stamp
build-stamp: builddir/Makefile
dh_testdir
# Add here commands to compile the package.
cd src && $(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/your_appname
cd src && cp -f -R qml/ ${CURDIR}
# Build architecture-
binary-indep: build install
# We have nothing to do by default.
# Build architecture-
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
Here, I am trying to link library which is in current directroy. But it is not able to locate the library.
for ex, -L$$PWD/
In this , It is throwing error , cannot find -lwificonnect64. How do we solve this? Please any one guide me.
Thanks in advance,
Sankareswari D
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sankari for more information if necessary.