Hello to Everyone
While executing the application , I get the error
undefined reference to `AddLinkFolder::AddLinkFolder(QWidget*)'
I have created AddLinkFolder as a library
PRO file of the AddLinkFolder library
The location where the libraries gets generated is : /home/LUIDIA/Test/Lib
QT += gui \
core\
network \
xml
TARGET = AddFolder
TEMPLATE = lib
CONFIG += dynamic debug
SOURCES += main.cpp\
addlinkwindow.cpp \
browsemodel.cpp
HEADERS += addlinkwindow.h \
browsemodel.h
QT += gui \
core\
network \
xml
TARGET = AddFolder
TEMPLATE = lib
CONFIG += dynamic debug
SOURCES += main.cpp\
addlinkwindow.cpp \
browsemodel.cpp
HEADERS += addlinkwindow.h \
browsemodel.h
To copy to clipboard, switch view to plain text mode
PRO file for the Gallery Application
The location where the libraries gets generated is : /home/LUIDIA/Test/Gallery
QT += core gui
TARGET = GALLERY
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
settingstree.cpp \
displayframe.cpp \
PanelFrame.cpp \
eBeamTree.cpp \
MainFrame.cpp
HEADERS += mainwindow.h \
settingstree.h \
displayframe.h \
PanelFrame.h \
eBeamTree.h \
MainFrame.h
RESOURCES += \
Gall.qrc
LIBS += -L../../Test/Lib-lAddFolder
unix {
# adding all these versions because Qt by default creates 3 levels of linking for version control
AddFolder.target = libAddFolder.so
AddFolder.commands = $(COPY) ../../Test/Lib/libAddFolder.so $$AddFolder.target
AddFolder.depends = ../../Test/Lib/libAddFolder.so
AddFolder1.target = libAddFolder.so.1
AddFolder1.commands = $(COPY) ../../Test/Lib/libAddFolder.so.1 $$AddFolder1.target
AddFolder1.depends = ../../Test/Lib/libAddFolder.so.1
AddFolder10.target = libAddFolder.so.1.0
AddFolder10.commands = $(COPY) ../../Test/Lib/libAddFolder.so.1.0 $$AddFolder10.target
AddFolder10.depends = ../../Test/Lib/libAddFolder.so.1.0
AddFolder100.target = libAddFolder.so.1.0.0
AddFolder100.commands = $(COPY) ../../Test/Lib/libAddFolder.so.1.0.0 $$AddFolder100.target
AddFolder100.depends = ../../Test/Lib/libAddFolder.so.1.0.0
QMAKE_EXTRA_TARGETS += AddFolder AddFolder1 AddFolder10 AddFolder100
POST_TARGETDEPS += libAddFolder.so libAddFolder.so.1 libAddFolder.so.1.0 libAddFolder.so.1.0.0
QMAKE_LFLAGS += -Wl,-rpath .
}
QT += core gui
TARGET = GALLERY
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
settingstree.cpp \
displayframe.cpp \
PanelFrame.cpp \
eBeamTree.cpp \
MainFrame.cpp
HEADERS += mainwindow.h \
settingstree.h \
displayframe.h \
PanelFrame.h \
eBeamTree.h \
MainFrame.h
RESOURCES += \
Gall.qrc
LIBS += -L../../Test/Lib-lAddFolder
unix {
# adding all these versions because Qt by default creates 3 levels of linking for version control
AddFolder.target = libAddFolder.so
AddFolder.commands = $(COPY) ../../Test/Lib/libAddFolder.so $$AddFolder.target
AddFolder.depends = ../../Test/Lib/libAddFolder.so
AddFolder1.target = libAddFolder.so.1
AddFolder1.commands = $(COPY) ../../Test/Lib/libAddFolder.so.1 $$AddFolder1.target
AddFolder1.depends = ../../Test/Lib/libAddFolder.so.1
AddFolder10.target = libAddFolder.so.1.0
AddFolder10.commands = $(COPY) ../../Test/Lib/libAddFolder.so.1.0 $$AddFolder10.target
AddFolder10.depends = ../../Test/Lib/libAddFolder.so.1.0
AddFolder100.target = libAddFolder.so.1.0.0
AddFolder100.commands = $(COPY) ../../Test/Lib/libAddFolder.so.1.0.0 $$AddFolder100.target
AddFolder100.depends = ../../Test/Lib/libAddFolder.so.1.0.0
QMAKE_EXTRA_TARGETS += AddFolder AddFolder1 AddFolder10 AddFolder100
POST_TARGETDEPS += libAddFolder.so libAddFolder.so.1 libAddFolder.so.1.0 libAddFolder.so.1.0.0
QMAKE_LFLAGS += -Wl,-rpath .
}
To copy to clipboard, switch view to plain text mode
I have added the LD_LIBRARY_PATH : /home/LUIDIA/Test/Gallery;/home/LUIDIA/Test/Lib
at the
Gallery->ProjectSettings->Run Settings->Build Environment
Attached are the compiler outputs for the library
AddLinkFolder and Application Gallery
Bookmarks