Unsolved deployment problem on ubuntu
-
I have ubuntu 18.04
Im trying to deploy my project.Im getting this error message
The kit Desktop Qt 5.12.10 GCC 64bit has configuration issues which might be the root cause for this problem.
-
@suslucoder Then please check the Kit - as the errors says there is somethig wrong with it
-
@jsulm but how can i understand which parts is wrong with the kit
-
@suslucoder ı have this error when make
/usr/bin/ld: cannot find -lqmapcontrol
but when i run
ls -la kitaplik/QmapControl979/Samples/bin/
i can see those libraries
lrwxrwxrwx 1 home home 23 Oca 29 17:32 libqmapcontrol.so -> libqmapcontrol.so.0.9.7 lrwxrwxrwx 1 home home 23 Oca 29 17:32 libqmapcontrol.so.0 -> libqmapcontrol.so.0.9.7 lrwxrwxrwx 1 home home 23 Oca 29 17:32 libqmapcontrol.so.0.9 -> libqmapcontrol.so.0.9.7
-
@suslucoder said in deployment problem on ubuntu:
ı have this error when make
/usr/bin/ld: cannot find -lqmapcontrolbut when i run
ls -la kitaplik/QmapControl979/Samples/bin/Please show your pro file, I'm not going to guess!
"but how can i understand which parts is wrong with the kit" - if you go to the Kit you want to use you will see warnings/errors there if something is wrong...
-
@jsulm
here#include(qmapcontrol/QMapControl/QMapControl.pri) # qmapcontrol.pri içi #INCLUDEPATH += ../../src/ #QT += network #LIBS += -Lkitaplik/QMapControl974/Samples/bin -lqmapcontrol #INCLUDEPATH += kitaplik/QMapControl974/src ##QT += network static { CONFIG += static DEFINES += STATIC message("~~~ static build ~~~") mac: TARGET = $$join(TARGET,,,_static) win32: TARGET = $$join(TARGET,,,s) } CONFIG(debug, debug|release) { mac: TARGET = $$join(TARGET,,,_debug) win32: TARGET = $$join(TARGET,,,d) } CONFIG+= C+11 / #ben ekledim QMAKE_LFLAGS += -no-pie #ben ekledim #LIBS += kitaplik/qwt-6.1/lib/libqwt.so #LIBS += kitaplik/qwt-6.1/lib/libqwt.so #DEPENDPATH += "C:/ucankaya_urun_ailesi/yi_2/IMUVisio/debug/" #LIBS += "C:/msi_G/ucankaya_urun_ailesi/yi_2/IMUVisio/debug/libcambaz.a" # fft dll leri yi exenin yanına koyunca çalıştı QT += charts core gui network svg xml widgets printsupport serialport multimedia TARGET = yi TEMPLATE = app #CONFIG += qesp_linux_udev #include(kitaplik/qserial/src/qextserialport.pri) include(kitaplik/QmapControl979/QMapControl.pri) #include(kitaplik/qwt-6.1/qwtfunctions.pri) #include(kitaplik/qextserialport-1.2rc/src/qextserialport.pri) #include(kitaplik/qwt-6.1/src/src.pri) #LIBS += -Lkitaplik/SDL2-2.0.4/i686-w64-mingw32/lib LIBS += -Lkitaplik/SDL2-2.0.4/lib/x86 #LIBS += "C:\fftw-3.3.5-dll32\libfftw3-3.dll" #LIBS += "C:\fftw-3.3.5-dll32\libfftw3f-3.dll" #LIBS += "C:\fftw-3.3.5-dll32\libfftw3l-3.dll" #LIBS += -Lkitaplik/qwt-6.1/lib -lm -lqwt LIBS += -Lkitaplik/qwt-6.1/lib -lSDL2 -lm #LIBS += -Lkitaplik/qwt-6.1/lib -L/usr/local/lib -lSDL -lm -lqwt #INCLUDEPATH += /usr/local/include/SDL #INCLUDEPATH += kitaplik/SDL2-2.0.4/i686-w64-mingw32/include INCLUDEPATH += kitaplik/SDL2-2.0.4/ #include C:/msi_G/ucankaya_urun_ailesi/yi_2/IMUVisio INCLUDEPATH += kitaplik/qwt-6.1/src INCLUDEPATH += ../uk_ortak INCLUDEPATH += kitaplik/QmapControl979 SOURCES +=\ uk_yapilandirma.cpp \ yi.cpp \ ukkamerakontrol.cpp \ kitaplik/qcustomplot/qcustomplot.cpp \ ukkontrolkutusu.cpp \ gps.cpp \ rotadia.cpp \ anahtaroku.cpp \ ayardialog.cpp \ cografikutuphane.cpp \ joystick.cpp \ serigorev.cpp \ ucusensturman.cpp \ ukkumandakolu.cpp \ ukpidanalizsinifi.cpp \ ukrota.cpp \ zpnokta.cpp \ ukomterkumandakolu.cpp \ uktelemetrigoster.cpp \ ukmotor.cpp \ ../uk_ortak/ayar.cpp \ telemetri.cpp \ circular_fifo.cpp \ yi_k2.cpp \ uk_sim.cpp \ cizelge.cpp \ pidkularayuz.cpp \ anapencere.cpp \ manyeto_grafik.cpp HEADERS += \ docketwidgetmainwindow.h \ cografikutuphane.h \ Joystick.h \ ayardialog.h \ uk_yapilandirma.h \ veri.h \ ukkontrolkutusu.h \ ukkumandakolu.h \ ukkamerakontrol.h \ kitaplik/qcustomplot/qcustomplot.h \ ukpidanalizsinifi.h \ ukrota.h \ rotadia.h \ anahtaroku.h \ anapencere.h \ zpnokta.h \ ucusensturman.h \ ukomterkumandakolu.h \ uktelemetrigoster.h \ ukmotor.h \ ../uk_ortak/ayar.h \ serigorev.h \ telemetri.h \ circular_fifo.h \ can.h \ yi_k2.h \ uk_sim.h \ cizelge.h \ pidkularayuz.h \ manyeto_grafik.h #LIBS += -Lkitaplik/qmapcontrol/bin -lqmapcontrol0 #LIBS += -Lkitaplik/qserial/src/build -lqextserialport-1.2.so #INCLUDEPATH += qextserialport/src/ CONFIG +=qt thread warn_on win32 { DEFINES = _TTY_WIN_ DEFINES += SDL_WIN } OTHER_FILES += \ ayar.yki \ yapilacaklar.txt \ yki_denetim.txt \ link_test.sh #RC_FILE = z-istasyon.rc FORMS += \ uk_yapilandirma.ui \ yi_k2.ui \ uk_sim.ui \ pidkularayuz.ui \ manyeto_grafik.ui #win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/release/ -lCambaz #else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/debug/ -lCambaz INCLUDEPATH += $$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/debug DEPENDPATH += $$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/debug #win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/release/libCambaz.a #else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/debug/libCambaz.a #else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/release/Cambaz.lib #else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../ucankaya_urun_ailesi/yi_2/IMUVisio/debug/Cambaz.lib RESOURCES += \ Icons.qrc unix|win32: LIBS += -lqwt unix|win32: LIBS += -lqmapcontrol win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../denemeYi/kitaplik/QmapControl979/Samples/bin/release/ -lqmapcontrol else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../denemeYi/kitaplik/QmapControl979/Samples/bin/debug/ -lqmapcontrol else:unix: LIBS += -L$$PWD/../denemeYi/kitaplik/QmapControl979/Samples/bin/ -lqmapcontrol INCLUDEPATH += $$PWD/../denemeYi/kitaplik/QmapControl979/Samples/bin DEPENDPATH += $$PWD/../denemeYi/kitaplik/QmapControl979/Samples/bin unix|win32: LIBS += -lqmapcontrol
-
@suslucoder said in deployment problem on ubuntu:
unix|win32: LIBS += -lqmapcontrol
You also need to provide the search path for the lib using -L:
unix|win32: LIBS += -LPATH_TO_FOLDER_CONTAINING_LIB -lqmapcontrol
-
@jsulm is it true?
unix|win32: LIBS += -Lkitaplik/QmapControl979/Samples/bin -lqmapcontrol
-
@suslucoder I guess no because it still says the same thing
.``` /yi: error while loading shared libraries: libqmapcontrol.so.0: cannot open shared object file: No such file or directory
-
@suslucoder said in deployment problem on ubuntu:
is it true?
I don't know. You're using a relative path, whether it is correct depends relative to what it is.
-
@jsulm since the program cannot find the directory, i export the path like
!/bin/sh export LD_LIBRARY_PATH=kitaplik/qwt-6.1/lib ./yki
it works fine in my computer.
I send it to another device which has the same operation system, but in there im getting the same errornot found
libqwt.so.6