Qt Application build in launchpad - issue in linking libraries

Asked by sankari

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_10cug_bayer.cpp \
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(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()
HEADERS += \
logger.h \
about.h \
cameraproperty.h \
videostreaming.h \
uvccamera.h \
v4l2-api.h \
seecam_10cug_m.h \
seecam_10cug_bayer.h \
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-architecture | grep -o "i386")
UNAME_MACHINE_64BIT = $$system(dpkg --print-architecture | grep -o "amd64")
PRECISEDISTRO = $$system(cat /etc/issue | grep -o "12.04")
TRUSTYDISTRO = $$system(cat /etc/issue | grep -o "14.04")
contains(PRECISEDISTRO, 12.04):{
message("precise")
contains(UNAME_MACHINE_64BIT, amd64):{
message("x86_64 bit - precise")
UBUNTU_12_04_64bit = 1
}
contains(UNAME_MACHINE_32BIT, i386):{
message("32 bit - precise")
UBUNTU_12_04_32bit = 1
}
}
contains(TRUSTYDISTRO, 14.04):{
message("trusty")
contains(UNAME_MACHINE_64BIT, amd64):{
message("x86_64 bit - trusty")
UBUNTU_14_04_64bit = 1
}
contains(UNAME_MACHINE_32BIT, i386):{
message("x86_32 bit - trusty")
UBUNTU_14_04_32bit = 1
}
}
INCLUDEPATH += /usr/include \
$$PWD/v4l2headers/include \
/usr/include/libusb-1.0
LIBS += -lv4l2 -lv4lconvert \
-lavutil \
-lavcodec \
-lavformat \
-lswscale \
-ludev \
-lusb-1.0 \
-lturbojpeg
contains(UBUNTU_14_04_64bit, 1):{
message("ubuntu-14.04, 64bit")
INCLUDEPATH += /usr/include/glib-2.0 \
/usr/lib/x86_64-linux-gnu/glib-2.0/include \
/usr/include/gstreamer-1.0/ \
/usr/include/libxml2
LIBS += -L$$PWD/lib/ewificam -lnetcam64 \
-L/usr/lib/x86_64-linux-gnu/ -lglib-2.0 \
-L/usr/lib/ -lgstreamer-1.0 -lgstapp-1.0 \
-L/usr/lib/ -lgobject-2.0 -lgio-2.0 \
-L$$PWD/lib/wificonnect -lwificonnect64
}
contains(UBUNTU_14_04_32bit, 1):{
message("ubuntu-14.04, 32bit")
INCLUDEPATH += /usr/include/glib-2.0 \
/usr/lib/i386-linux-gnu/glib-2.0/include \
/usr/include/gstreamer-1.0/ \
/usr/include/libxml2
LIBS += -L$$PWD/lib/ewificam -lnetcam32 \
-L/usr/lib/i386-linux-gnu/ -lglib-2.0 \
-L/usr/lib/i386-linux-gnu/ -lgstreamer-1.0 -lgstapp-1.0 \
-L/usr/lib/ -lgobject-2.0 -lgio-2.0 \
-L$$PWD/lib/wificonnect -lwificonnect32
}
contains(UBUNTU_12_04_64bit, 1):{
message("ubuntu-12.04, 64bit")
INCLUDEPATH += /usr/include/libxml2/ \
/usr/include/glib-2.0 \
/usr/lib/x86_64-linux-gnu/glib-2.0/include \
/usr/include/gstreamer-0.10/
LIBS += -L/usr/lib/x86_64-linux-gnu/ -lgstreamer-0.10 -lgstapp-0.10 \
-L$$PWD/lib/ewificam -lnetcam64 \
-L$$PWD/lib/wificonnect -lwificonnect64
}
contains(UBUNTU_12_04_32bit, 1):{
message("ubuntu-12.04, 32bit")
INCLUDEPATH += /usr/include/libxml2/ \
/usr/include/glib-2.0 \
/usr/lib/i386-linux-gnu/glib-2.0/include \
/usr/include/gstreamer-0.10/
LIBS += -L/usr/lib/i386-linux-gnu/ -lgstreamer-0.10 -lgstapp-0.10 \
-L$$PWD/lib/ewificam -lnetcam32 \
-L$$PWD/lib/wificonnect -lwificonnect32
}
QMAKE_CFLAGS_THREAD = -D__STDC_CONSTANT_MACROS #For Ubuntu 12.04 compilation
QMAKE_CXXFLAGS_THREAD = -D__STDC_CONSTANT_MACROS #For Ubuntu 12.04 compilation
OTHER_FILES += \
qml/qtcam/videocapturefilter_QML/videocapturefilter.qml \
qml/qtcam/wificam/Wificam.qml

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_OPTIONS=verbose
APPNAME := qtcam

builddir/Makefile:

 cd src && ls && ls lib && ls lib/ewificam && ls lib/wificonnect && bash /opt/qt52/bin/qt52-env.sh && /opt/qt52/bin/qmake

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}/debian/qtcam/usr/share/qml/ && cp Qtcam_12and14.desktop ${CURDIR}/debian/qtcam/usr/share/applications/ && install -m 755 -p "Qtcam" "${CURDIR}/debian/qtcam/usr/bin/qtcam"
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
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/lib/wificonnect -lwificonnect64
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
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You might be missing the files

libnetcam32.so
libnetcam64.so
libwificonnect32.so
libwificonnect64.so

(without the .1 and .1.0 suffixes)

Can you help with this problem?

Provide an answer of your own, or ask sankari for more information if necessary.

To post a message you must log in.