/usr/bin/ld: cannot find -lGL

Post Reply
HAMDV
Posts: 14
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 0
Been thanked: 0
Contact:

/usr/bin/ld: cannot find -lGL

Unread post by HAMDV » Thu Dec 05, 2019 7:39 am

Trying to compile, and have this error. Have installed every opengl(dev) and mesa program to no avail do far.
The compilation is QT5 based.

Any hints ? Using Meveric Buster 10

User avatar
tobetter
Posts: 4263
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 58 times
Been thanked: 234 times
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by tobetter » Thu Dec 05, 2019 9:01 am

Have you set the build config to set the path for the library or have added "-L" to give the path of the library? Or you may need to install a package *-dev for GL library.

Out of curiousity, what's the version of Qt5 building and do you build it because you have your own change?

HAMDV
Posts: 14
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by HAMDV » Thu Dec 05, 2019 10:31 am

I am really just trying the package name for debian buster odroid N2 to provide the library.

After QT5 qmake , Makefile ;

Code: Select all

#############################################################################
# Makefile for building: qstlink2
# Generated by qmake (3.1) (Qt 5.11.3)
# Project:  QStlink2.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile QStlink2.pro
#############################################################################

MAKEFILE      = Makefile

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -D__QSTL_VER__="\"1.2.4\"" -DQUSB_LIBRARY -DQLIBUSB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB
CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH       = -I. -Iinc -IQtUsb/src -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtXml -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++
QMAKE         = /usr/bin/qmake
DEL_FILE      = rm -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p
COPY          = cp -f
COPY_FILE     = cp -f
COPY_DIR      = cp -f -R
INSTALL_FILE  = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR   = cp -f -R
QINSTALL      = /usr/bin/qmake -install qinstall
QINSTALL_PROGRAM = /usr/bin/qmake -install qinstall -exe
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
TAR           = tar -cf
COMPRESS      = gzip -9f
DISTNAME      = qstlink21.2.4
DISTDIR = /home/odroid/Downloads/QStlink2/.tmp/qstlink21.2.4
LINK          = g++
LFLAGS        = -Wl,-O1
LIBS          = $(SUBLIBS) -lusb-1.0 -lQt5Widgets -lQt5Gui -lQt5Xml -lQt5Core -lGL -lpthread 
AR            = ar cqs
RANLIB        = 
SED           = sed
STRIP         = strip

####### Output directory

OBJECTS_DIR   = ./

####### Files

SOURCES       = src/main.cpp \
		src/mainwindow.cpp \
		src/stlinkv2.cpp \
		src/devices.cpp \
		src/dialog.cpp \
		src/transferthread.cpp \
		src/loader.cpp \
		QtUsb/src/qbaseusb.cpp \
		QtUsb/src/qusbmanager.cpp \
		QtUsb/src/qlibusb.cpp qrc_ressources.cpp \
		qrc_loaders.cpp \
		moc_mainwindow.cpp \
		moc_stlinkv2.cpp \
		moc_devices.cpp \
		moc_dialog.cpp \
		moc_transferthread.cpp \
		moc_loader.cpp \
		moc_qbaseusb.cpp \
		moc_qusbmanager.cpp \
		moc_qlibusb.cpp
OBJECTS       = main.o \
		mainwindow.o \
		stlinkv2.o \
		devices.o \
		dialog.o \
		transferthread.o \
		loader.o \
		qbaseusb.o \
		qusbmanager.o \
		qlibusb.o \
		qrc_ressources.o \
		qrc_loaders.o \
		moc_mainwindow.o \
		moc_stlinkv2.o \
		moc_devices.o \
		moc_dialog.o \
		moc_transferthread.o \
		moc_loader.o \
		moc_qbaseusb.o \
		moc_qusbmanager.o \
		moc_qlibusb.o
DIST          = res/qstlink2.rc \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/linux.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/qconfig.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_Baloo.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
		.qmake.stash \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/toolchain.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
		QtUsb/src/QtUsb.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_post.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resources.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/moc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/uic.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/yacc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/lex.prf \
		QStlink2.pro inc/mainwindow.h \
		inc/stlinkv2.h \
		inc/devices.h \
		inc/dialog.h \
		inc/transferthread.h \
		inc/compat.h \
		inc/loader.h \
		res/version.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusbmanager.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/libusb-1.0/libusb.h src/main.cpp \
		src/mainwindow.cpp \
		src/stlinkv2.cpp \
		src/devices.cpp \
		src/dialog.cpp \
		src/transferthread.cpp \
		src/loader.cpp \
		QtUsb/src/qbaseusb.cpp \
		QtUsb/src/qusbmanager.cpp \
		QtUsb/src/qlibusb.cpp
QMAKE_TARGET  = qstlink2
DESTDIR       = 
TARGET        = qstlink2


first: all
####### Build rules

$(TARGET): ui_mainwindow.h ui_dialog.h $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

Makefile: QStlink2.pro /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/linux.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/qconfig.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_Baloo.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
		.qmake.stash \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/toolchain.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
		QtUsb/src/QtUsb.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_post.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resources.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/moc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/uic.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/yacc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/lex.prf \
		QStlink2.pro \
		res/ressources.qrc \
		loaders/loaders.qrc \
		/usr/lib/aarch64-linux-gnu/libQt5Widgets.prl \
		/usr/lib/aarch64-linux-gnu/libQt5Gui.prl \
		/usr/lib/aarch64-linux-gnu/libQt5Xml.prl \
		/usr/lib/aarch64-linux-gnu/libQt5Core.prl
	$(QMAKE) -o Makefile QStlink2.pro
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_pre.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/unix.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/linux.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/sanitize.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-base.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-unix.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/qconfig.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_Baloo.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_functions.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_config.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_post.prf:
.qmake.stash:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/toolchain.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_pre.prf:
QtUsb/src/QtUsb.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resolve_config.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_post.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/warn_on.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resources.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/moc.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/uic.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/thread.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qmake_use.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/file_copies.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exceptions.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/yacc.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/lex.prf:
QStlink2.pro:
res/ressources.qrc:
loaders/loaders.qrc:
/usr/lib/aarch64-linux-gnu/libQt5Widgets.prl:
/usr/lib/aarch64-linux-gnu/libQt5Gui.prl:
/usr/lib/aarch64-linux-gnu/libQt5Xml.prl:
/usr/lib/aarch64-linux-gnu/libQt5Core.prl:
qmake: FORCE
	@$(QMAKE) -o Makefile QStlink2.pro

qmake_all: FORCE


all: Makefile $(TARGET)

dist: distdir FORCE
	(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)

distdir: FORCE
	@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
	$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
	$(COPY_FILE) --parents res/ressources.qrc loaders/loaders.qrc $(DISTDIR)/
	$(COPY_FILE) --parents /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/
	$(COPY_FILE) --parents inc/mainwindow.h inc/stlinkv2.h inc/devices.h inc/dialog.h inc/transferthread.h inc/compat.h inc/loader.h res/version.h QtUsb/src/qusb_global.h QtUsb/src/qusb_compat.h QtUsb/src/qbaseusb.h QtUsb/src/qusb.h QtUsb/src/QUsb QtUsb/src/qusbmanager.h QtUsb/src/qusb_types.h QtUsb/src/qlibusb.h QtUsb/src/libusb-1.0/libusb.h $(DISTDIR)/
	$(COPY_FILE) --parents src/main.cpp src/mainwindow.cpp src/stlinkv2.cpp src/devices.cpp src/dialog.cpp src/transferthread.cpp src/loader.cpp QtUsb/src/qbaseusb.cpp QtUsb/src/qusbmanager.cpp QtUsb/src/qlibusb.cpp $(DISTDIR)/
	$(COPY_FILE) --parents ui/mainwindow.ui ui/dialog.ui $(DISTDIR)/


clean: compiler_clean 
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


distclean: clean 
	-$(DEL_FILE) $(TARGET) 
	-$(DEL_FILE) .qmake.stash
	-$(DEL_FILE) Makefile


####### Sub-libraries

mocclean: compiler_moc_header_clean compiler_moc_objc_header_clean compiler_moc_source_clean

mocables: compiler_moc_header_make_all compiler_moc_objc_header_make_all compiler_moc_source_make_all

check: first

benchmark: first

compiler_rcc_make_all: qrc_ressources.cpp qrc_loaders.cpp
compiler_rcc_clean:
	-$(DEL_FILE) qrc_ressources.cpp qrc_loaders.cpp
qrc_ressources.cpp: res/ressources.qrc \
		/usr/lib/qt5/bin/rcc \
		res/devices.xml \
		res/help.html \
		res/images/icon-questionmark.png \
		res/images/icon.ico \
		res/images/Qt-logo.png \
		res/images/question_mark_icon.png \
		res/images/refresh.png
	/usr/lib/qt5/bin/rcc -name ressources res/ressources.qrc -o qrc_ressources.cpp

qrc_loaders.cpp: loaders/loaders.qrc \
		/usr/lib/qt5/bin/rcc \
		loaders/bin/loader_f1_low_med.bin \
		loaders/bin/loader_f2.bin \
		loaders/bin/loader_f30.bin \
		loaders/bin/loader_f1.bin \
		loaders/bin/loader_f0.bin \
		loaders/bin/loader_l1.bin \
		loaders/bin/loader_f4.bin \
		loaders/bin/loader_f37.bin
	/usr/lib/qt5/bin/rcc -name loaders loaders/loaders.qrc -o qrc_loaders.cpp

compiler_moc_predefs_make_all: moc_predefs.h
compiler_moc_predefs_clean:
	-$(DEL_FILE) moc_predefs.h
moc_predefs.h: /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp
	g++ -pipe -O2 -Wall -W -dM -E -o moc_predefs.h /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp

compiler_moc_header_make_all: moc_mainwindow.cpp moc_stlinkv2.cpp moc_devices.cpp moc_dialog.cpp moc_transferthread.cpp moc_loader.cpp moc_qbaseusb.cpp moc_qusbmanager.cpp moc_qlibusb.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_mainwindow.cpp moc_stlinkv2.cpp moc_devices.cpp moc_dialog.cpp moc_transferthread.cpp moc_loader.cpp moc_qbaseusb.cpp moc_qusbmanager.cpp moc_qlibusb.cpp
moc_mainwindow.cpp: inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/dialog.h \
		inc/transferthread.h \
		inc/mainwindow.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/mainwindow.h -o moc_mainwindow.cpp

moc_stlinkv2.cpp: QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/stlinkv2.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/stlinkv2.h -o moc_stlinkv2.cpp

moc_devices.cpp: inc/compat.h \
		inc/devices.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/devices.h -o moc_devices.cpp

moc_dialog.cpp: inc/dialog.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/dialog.h -o moc_dialog.cpp

moc_transferthread.cpp: inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/transferthread.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/transferthread.h -o moc_transferthread.cpp

moc_loader.cpp: inc/compat.h \
		inc/loader.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/loader.h -o moc_loader.cpp

moc_qbaseusb.cpp: QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qbaseusb.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include QtUsb/src/qbaseusb.h -o moc_qbaseusb.cpp

moc_qusbmanager.cpp: QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		QtUsb/src/qusbmanager.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include QtUsb/src/qusbmanager.h -o moc_qusbmanager.cpp

moc_qlibusb.cpp: QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qlibusb.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include QtUsb/src/qlibusb.h -o moc_qlibusb.cpp

compiler_moc_objc_header_make_all:
compiler_moc_objc_header_clean:
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_mainwindow.h ui_dialog.h
compiler_uic_clean:
	-$(DEL_FILE) ui_mainwindow.h ui_dialog.h
ui_mainwindow.h: ui/mainwindow.ui \
		/usr/lib/qt5/bin/uic
	/usr/lib/qt5/bin/uic ui/mainwindow.ui -o ui_mainwindow.h

ui_dialog.h: ui/dialog.ui \
		/usr/lib/qt5/bin/uic
	/usr/lib/qt5/bin/uic ui/dialog.ui -o ui_dialog.h

compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_rcc_clean compiler_moc_predefs_clean compiler_moc_header_clean compiler_uic_clean 

####### Compile

main.o: src/main.cpp inc/mainwindow.h \
		inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/dialog.h \
		inc/transferthread.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o src/main.cpp

mainwindow.o: src/mainwindow.cpp inc/mainwindow.h \
		inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/dialog.h \
		inc/transferthread.h \
		ui_mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o src/mainwindow.cpp

stlinkv2.o: src/stlinkv2.cpp inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o stlinkv2.o src/stlinkv2.cpp

devices.o: src/devices.cpp inc/devices.h \
		inc/compat.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o devices.o src/devices.cpp

dialog.o: src/dialog.cpp inc/dialog.h \
		ui_dialog.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o dialog.o src/dialog.cpp

transferthread.o: src/transferthread.cpp inc/transferthread.h \
		inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o transferthread.o src/transferthread.cpp

loader.o: src/loader.cpp inc/loader.h \
		inc/compat.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o loader.o src/loader.cpp

qbaseusb.o: QtUsb/src/qbaseusb.cpp QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qbaseusb.o QtUsb/src/qbaseusb.cpp

qusbmanager.o: QtUsb/src/qusbmanager.cpp QtUsb/src/qusbmanager.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qusbmanager.o QtUsb/src/qusbmanager.cpp

qlibusb.o: QtUsb/src/qlibusb.cpp QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qlibusb.o QtUsb/src/qlibusb.cpp

qrc_ressources.o: qrc_ressources.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_ressources.o qrc_ressources.cpp

qrc_loaders.o: qrc_loaders.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_loaders.o qrc_loaders.cpp

moc_mainwindow.o: moc_mainwindow.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp

moc_stlinkv2.o: moc_stlinkv2.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_stlinkv2.o moc_stlinkv2.cpp

moc_devices.o: moc_devices.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_devices.o moc_devices.cpp

moc_dialog.o: moc_dialog.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dialog.o moc_dialog.cpp

moc_transferthread.o: moc_transferthread.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_transferthread.o moc_transferthread.cpp

moc_loader.o: moc_loader.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_loader.o moc_loader.cpp

moc_qbaseusb.o: moc_qbaseusb.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qbaseusb.o moc_qbaseusb.cpp

moc_qusbmanager.o: moc_qusbmanager.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qusbmanager.o moc_qusbmanager.cpp

moc_qlibusb.o: moc_qlibusb.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qlibusb.o moc_qlibusb.cpp

####### Install

install_target: first FORCE
	@test -d $(INSTALL_ROOT)/usr/bin || mkdir -p $(INSTALL_ROOT)/usr/bin
	-$(QINSTALL_PROGRAM) $(QMAKE_TARGET) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)
	-$(STRIP) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)

uninstall_target: FORCE
	-$(DEL_FILE) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ 


install_conf: first FORCE
	@test -d $(INSTALL_ROOT)/etc/udev/rules.d || mkdir -p $(INSTALL_ROOT)/etc/udev/rules.d
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/49-stlinkv2.rules $(INSTALL_ROOT)/etc/udev/rules.d/49-stlinkv2.rules
	-strip $(INSTALL_ROOT)/etc/udev/rules.d/49-stlinkv2.rules

uninstall_conf: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/etc/udev/rules.d/49-stlinkv2.rules
	-$(DEL_DIR) $(INSTALL_ROOT)/etc/udev/rules.d/ 


install_misc: first FORCE
	@test -d $(INSTALL_ROOT)/usr/share/qstlink2 || mkdir -p $(INSTALL_ROOT)/usr/share/qstlink2
	-$(QINSTALL) /home/odroid/Downloads/QStlink2/res/devices.xml $(INSTALL_ROOT)/usr/share/qstlink2/devices.xml
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/help.html $(INSTALL_ROOT)/usr/share/qstlink2/help.html
	-strip $(INSTALL_ROOT)/usr/share/qstlink2/help.html

uninstall_misc: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/qstlink2/help.html
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/qstlink2/devices.xml
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/qstlink2/ 


install_icon: first FORCE
	@test -d $(INSTALL_ROOT)/usr/share/pixmaps || mkdir -p $(INSTALL_ROOT)/usr/share/pixmaps
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/images/qstlink2.png $(INSTALL_ROOT)/usr/share/pixmaps/qstlink2.png
	-strip $(INSTALL_ROOT)/usr/share/pixmaps/qstlink2.png

uninstall_icon: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/pixmaps/qstlink2.png
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/pixmaps/ 


install_launcher: first FORCE
	@test -d $(INSTALL_ROOT)/usr/share/applications || mkdir -p $(INSTALL_ROOT)/usr/share/applications
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/qstlink2.desktop $(INSTALL_ROOT)/usr/share/applications/qstlink2.desktop
	-strip $(INSTALL_ROOT)/usr/share/applications/qstlink2.desktop

uninstall_launcher: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/qstlink2.desktop
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/ 


install: install_target install_conf install_misc install_icon install_launcher  FORCE

uninstall: uninstall_target uninstall_conf uninstall_misc uninstall_icon uninstall_launcher  FORCE

FORCE:


User avatar
tobetter
Posts: 4263
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 58 times
Been thanked: 234 times
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by tobetter » Thu Dec 05, 2019 10:38 am

HAMDV wrote:
Thu Dec 05, 2019 10:31 am
I am really just trying the package name for debian buster odroid N2 to provide the library.

After QT5 qmake , Makefile ;

Code: Select all

#############################################################################
# Makefile for building: qstlink2
# Generated by qmake (3.1) (Qt 5.11.3)
# Project:  QStlink2.pro
# Template: app
# Command: /usr/bin/qmake -o Makefile QStlink2.pro
#############################################################################

MAKEFILE      = Makefile

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -D__QSTL_VER__="\"1.2.4\"" -DQUSB_LIBRARY -DQLIBUSB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB
CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
INCPATH       = -I. -Iinc -IQtUsb/src -isystem /usr/include/aarch64-linux-gnu/qt5 -isystem /usr/include/aarch64-linux-gnu/qt5/QtWidgets -isystem /usr/include/aarch64-linux-gnu/qt5/QtGui -isystem /usr/include/aarch64-linux-gnu/qt5/QtXml -isystem /usr/include/aarch64-linux-gnu/qt5/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++
QMAKE         = /usr/bin/qmake
DEL_FILE      = rm -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p
COPY          = cp -f
COPY_FILE     = cp -f
COPY_DIR      = cp -f -R
INSTALL_FILE  = install -m 644 -p
INSTALL_PROGRAM = install -m 755 -p
INSTALL_DIR   = cp -f -R
QINSTALL      = /usr/bin/qmake -install qinstall
QINSTALL_PROGRAM = /usr/bin/qmake -install qinstall -exe
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
TAR           = tar -cf
COMPRESS      = gzip -9f
DISTNAME      = qstlink21.2.4
DISTDIR = /home/odroid/Downloads/QStlink2/.tmp/qstlink21.2.4
LINK          = g++
LFLAGS        = -Wl,-O1
LIBS          = $(SUBLIBS) -lusb-1.0 -lQt5Widgets -lQt5Gui -lQt5Xml -lQt5Core -lGL -lpthread 
AR            = ar cqs
RANLIB        = 
SED           = sed
STRIP         = strip

####### Output directory

OBJECTS_DIR   = ./

####### Files

SOURCES       = src/main.cpp \
		src/mainwindow.cpp \
		src/stlinkv2.cpp \
		src/devices.cpp \
		src/dialog.cpp \
		src/transferthread.cpp \
		src/loader.cpp \
		QtUsb/src/qbaseusb.cpp \
		QtUsb/src/qusbmanager.cpp \
		QtUsb/src/qlibusb.cpp qrc_ressources.cpp \
		qrc_loaders.cpp \
		moc_mainwindow.cpp \
		moc_stlinkv2.cpp \
		moc_devices.cpp \
		moc_dialog.cpp \
		moc_transferthread.cpp \
		moc_loader.cpp \
		moc_qbaseusb.cpp \
		moc_qusbmanager.cpp \
		moc_qlibusb.cpp
OBJECTS       = main.o \
		mainwindow.o \
		stlinkv2.o \
		devices.o \
		dialog.o \
		transferthread.o \
		loader.o \
		qbaseusb.o \
		qusbmanager.o \
		qlibusb.o \
		qrc_ressources.o \
		qrc_loaders.o \
		moc_mainwindow.o \
		moc_stlinkv2.o \
		moc_devices.o \
		moc_dialog.o \
		moc_transferthread.o \
		moc_loader.o \
		moc_qbaseusb.o \
		moc_qusbmanager.o \
		moc_qlibusb.o
DIST          = res/qstlink2.rc \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/linux.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/qconfig.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_Baloo.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
		.qmake.stash \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/toolchain.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
		QtUsb/src/QtUsb.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_post.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resources.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/moc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/uic.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/yacc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/lex.prf \
		QStlink2.pro inc/mainwindow.h \
		inc/stlinkv2.h \
		inc/devices.h \
		inc/dialog.h \
		inc/transferthread.h \
		inc/compat.h \
		inc/loader.h \
		res/version.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusbmanager.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/libusb-1.0/libusb.h src/main.cpp \
		src/mainwindow.cpp \
		src/stlinkv2.cpp \
		src/devices.cpp \
		src/dialog.cpp \
		src/transferthread.cpp \
		src/loader.cpp \
		QtUsb/src/qbaseusb.cpp \
		QtUsb/src/qusbmanager.cpp \
		QtUsb/src/qlibusb.cpp
QMAKE_TARGET  = qstlink2
DESTDIR       = 
TARGET        = qstlink2


first: all
####### Build rules

$(TARGET): ui_mainwindow.h ui_dialog.h $(OBJECTS)  
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)

Makefile: QStlink2.pro /usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/linux.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/qconfig.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_Baloo.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
		.qmake.stash \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/toolchain.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
		QtUsb/src/QtUsb.pri \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_post.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resources.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/moc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/uic.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qmake_use.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/yacc.prf \
		/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/lex.prf \
		QStlink2.pro \
		res/ressources.qrc \
		loaders/loaders.qrc \
		/usr/lib/aarch64-linux-gnu/libQt5Widgets.prl \
		/usr/lib/aarch64-linux-gnu/libQt5Gui.prl \
		/usr/lib/aarch64-linux-gnu/libQt5Xml.prl \
		/usr/lib/aarch64-linux-gnu/libQt5Core.prl
	$(QMAKE) -o Makefile QStlink2.pro
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_pre.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/unix.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/linux.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/sanitize.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-base.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/common/g++-unix.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/qconfig.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_Baloo.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_accessibility_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_devicediscovery_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_edid_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_egl_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fb_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_fontdatabase_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_glx_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_input_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_kms_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformcompositor_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_service_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_theme_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_vulkan_support_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_functions.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt_config.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/spec_post.prf:
.qmake.stash:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/toolchain.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_pre.prf:
QtUsb/src/QtUsb.pri:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resolve_config.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/default_post.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/warn_on.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qt.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/resources.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/moc.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/uic.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/unix/thread.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/qmake_use.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/file_copies.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/exceptions.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/yacc.prf:
/usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/lex.prf:
QStlink2.pro:
res/ressources.qrc:
loaders/loaders.qrc:
/usr/lib/aarch64-linux-gnu/libQt5Widgets.prl:
/usr/lib/aarch64-linux-gnu/libQt5Gui.prl:
/usr/lib/aarch64-linux-gnu/libQt5Xml.prl:
/usr/lib/aarch64-linux-gnu/libQt5Core.prl:
qmake: FORCE
	@$(QMAKE) -o Makefile QStlink2.pro

qmake_all: FORCE


all: Makefile $(TARGET)

dist: distdir FORCE
	(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)

distdir: FORCE
	@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
	$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
	$(COPY_FILE) --parents res/ressources.qrc loaders/loaders.qrc $(DISTDIR)/
	$(COPY_FILE) --parents /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp $(DISTDIR)/
	$(COPY_FILE) --parents inc/mainwindow.h inc/stlinkv2.h inc/devices.h inc/dialog.h inc/transferthread.h inc/compat.h inc/loader.h res/version.h QtUsb/src/qusb_global.h QtUsb/src/qusb_compat.h QtUsb/src/qbaseusb.h QtUsb/src/qusb.h QtUsb/src/QUsb QtUsb/src/qusbmanager.h QtUsb/src/qusb_types.h QtUsb/src/qlibusb.h QtUsb/src/libusb-1.0/libusb.h $(DISTDIR)/
	$(COPY_FILE) --parents src/main.cpp src/mainwindow.cpp src/stlinkv2.cpp src/devices.cpp src/dialog.cpp src/transferthread.cpp src/loader.cpp QtUsb/src/qbaseusb.cpp QtUsb/src/qusbmanager.cpp QtUsb/src/qlibusb.cpp $(DISTDIR)/
	$(COPY_FILE) --parents ui/mainwindow.ui ui/dialog.ui $(DISTDIR)/


clean: compiler_clean 
	-$(DEL_FILE) $(OBJECTS)
	-$(DEL_FILE) *~ core *.core


distclean: clean 
	-$(DEL_FILE) $(TARGET) 
	-$(DEL_FILE) .qmake.stash
	-$(DEL_FILE) Makefile


####### Sub-libraries

mocclean: compiler_moc_header_clean compiler_moc_objc_header_clean compiler_moc_source_clean

mocables: compiler_moc_header_make_all compiler_moc_objc_header_make_all compiler_moc_source_make_all

check: first

benchmark: first

compiler_rcc_make_all: qrc_ressources.cpp qrc_loaders.cpp
compiler_rcc_clean:
	-$(DEL_FILE) qrc_ressources.cpp qrc_loaders.cpp
qrc_ressources.cpp: res/ressources.qrc \
		/usr/lib/qt5/bin/rcc \
		res/devices.xml \
		res/help.html \
		res/images/icon-questionmark.png \
		res/images/icon.ico \
		res/images/Qt-logo.png \
		res/images/question_mark_icon.png \
		res/images/refresh.png
	/usr/lib/qt5/bin/rcc -name ressources res/ressources.qrc -o qrc_ressources.cpp

qrc_loaders.cpp: loaders/loaders.qrc \
		/usr/lib/qt5/bin/rcc \
		loaders/bin/loader_f1_low_med.bin \
		loaders/bin/loader_f2.bin \
		loaders/bin/loader_f30.bin \
		loaders/bin/loader_f1.bin \
		loaders/bin/loader_f0.bin \
		loaders/bin/loader_l1.bin \
		loaders/bin/loader_f4.bin \
		loaders/bin/loader_f37.bin
	/usr/lib/qt5/bin/rcc -name loaders loaders/loaders.qrc -o qrc_loaders.cpp

compiler_moc_predefs_make_all: moc_predefs.h
compiler_moc_predefs_clean:
	-$(DEL_FILE) moc_predefs.h
moc_predefs.h: /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp
	g++ -pipe -O2 -Wall -W -dM -E -o moc_predefs.h /usr/lib/aarch64-linux-gnu/qt5/mkspecs/features/data/dummy.cpp

compiler_moc_header_make_all: moc_mainwindow.cpp moc_stlinkv2.cpp moc_devices.cpp moc_dialog.cpp moc_transferthread.cpp moc_loader.cpp moc_qbaseusb.cpp moc_qusbmanager.cpp moc_qlibusb.cpp
compiler_moc_header_clean:
	-$(DEL_FILE) moc_mainwindow.cpp moc_stlinkv2.cpp moc_devices.cpp moc_dialog.cpp moc_transferthread.cpp moc_loader.cpp moc_qbaseusb.cpp moc_qusbmanager.cpp moc_qlibusb.cpp
moc_mainwindow.cpp: inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/dialog.h \
		inc/transferthread.h \
		inc/mainwindow.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/mainwindow.h -o moc_mainwindow.cpp

moc_stlinkv2.cpp: QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/stlinkv2.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/stlinkv2.h -o moc_stlinkv2.cpp

moc_devices.cpp: inc/compat.h \
		inc/devices.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/devices.h -o moc_devices.cpp

moc_dialog.cpp: inc/dialog.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/dialog.h -o moc_dialog.cpp

moc_transferthread.cpp: inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/transferthread.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/transferthread.h -o moc_transferthread.cpp

moc_loader.cpp: inc/compat.h \
		inc/loader.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include inc/loader.h -o moc_loader.cpp

moc_qbaseusb.cpp: QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qbaseusb.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include QtUsb/src/qbaseusb.h -o moc_qbaseusb.cpp

moc_qusbmanager.cpp: QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		QtUsb/src/qusbmanager.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include QtUsb/src/qusbmanager.h -o moc_qusbmanager.cpp

moc_qlibusb.cpp: QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qlibusb.h \
		moc_predefs.h \
		/usr/lib/qt5/bin/moc
	/usr/lib/qt5/bin/moc $(DEFINES) --include /home/odroid/Downloads/QStlink2/moc_predefs.h -I/usr/lib/aarch64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/odroid/Downloads/QStlink2 -I/home/odroid/Downloads/QStlink2/inc -I/home/odroid/Downloads/QStlink2/QtUsb/src -I/usr/include/aarch64-linux-gnu/qt5 -I/usr/include/aarch64-linux-gnu/qt5/QtWidgets -I/usr/include/aarch64-linux-gnu/qt5/QtGui -I/usr/include/aarch64-linux-gnu/qt5/QtXml -I/usr/include/aarch64-linux-gnu/qt5/QtCore -I/usr/include/c++/8 -I/usr/include/aarch64-linux-gnu/c++/8 -I/usr/include/c++/8/backward -I/usr/lib/gcc/aarch64-linux-gnu/8/include -I/usr/local/include -I/usr/lib/gcc/aarch64-linux-gnu/8/include-fixed -I/usr/include/aarch64-linux-gnu -I/usr/include QtUsb/src/qlibusb.h -o moc_qlibusb.cpp

compiler_moc_objc_header_make_all:
compiler_moc_objc_header_clean:
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_mainwindow.h ui_dialog.h
compiler_uic_clean:
	-$(DEL_FILE) ui_mainwindow.h ui_dialog.h
ui_mainwindow.h: ui/mainwindow.ui \
		/usr/lib/qt5/bin/uic
	/usr/lib/qt5/bin/uic ui/mainwindow.ui -o ui_mainwindow.h

ui_dialog.h: ui/dialog.ui \
		/usr/lib/qt5/bin/uic
	/usr/lib/qt5/bin/uic ui/dialog.ui -o ui_dialog.h

compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_rcc_clean compiler_moc_predefs_clean compiler_moc_header_clean compiler_uic_clean 

####### Compile

main.o: src/main.cpp inc/mainwindow.h \
		inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/dialog.h \
		inc/transferthread.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o src/main.cpp

mainwindow.o: src/mainwindow.cpp inc/mainwindow.h \
		inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h \
		inc/dialog.h \
		inc/transferthread.h \
		ui_mainwindow.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o src/mainwindow.cpp

stlinkv2.o: src/stlinkv2.cpp inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o stlinkv2.o src/stlinkv2.cpp

devices.o: src/devices.cpp inc/devices.h \
		inc/compat.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o devices.o src/devices.cpp

dialog.o: src/dialog.cpp inc/dialog.h \
		ui_dialog.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o dialog.o src/dialog.cpp

transferthread.o: src/transferthread.cpp inc/transferthread.h \
		inc/stlinkv2.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h \
		QtUsb/src/qusbmanager.h \
		inc/compat.h \
		inc/devices.h \
		inc/loader.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o transferthread.o src/transferthread.cpp

loader.o: src/loader.cpp inc/loader.h \
		inc/compat.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o loader.o src/loader.cpp

qbaseusb.o: QtUsb/src/qbaseusb.cpp QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qbaseusb.o QtUsb/src/qbaseusb.cpp

qusbmanager.o: QtUsb/src/qusbmanager.cpp QtUsb/src/qusbmanager.h \
		QtUsb/src/QUsb \
		QtUsb/src/qusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qusbmanager.o QtUsb/src/qusbmanager.cpp

qlibusb.o: QtUsb/src/qlibusb.cpp QtUsb/src/qlibusb.h \
		QtUsb/src/qbaseusb.h \
		QtUsb/src/qusb_global.h \
		QtUsb/src/qusb_types.h \
		QtUsb/src/qusb_compat.h \
		QtUsb/src/libusb-1.0/libusb.h
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qlibusb.o QtUsb/src/qlibusb.cpp

qrc_ressources.o: qrc_ressources.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_ressources.o qrc_ressources.cpp

qrc_loaders.o: qrc_loaders.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_loaders.o qrc_loaders.cpp

moc_mainwindow.o: moc_mainwindow.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp

moc_stlinkv2.o: moc_stlinkv2.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_stlinkv2.o moc_stlinkv2.cpp

moc_devices.o: moc_devices.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_devices.o moc_devices.cpp

moc_dialog.o: moc_dialog.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_dialog.o moc_dialog.cpp

moc_transferthread.o: moc_transferthread.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_transferthread.o moc_transferthread.cpp

moc_loader.o: moc_loader.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_loader.o moc_loader.cpp

moc_qbaseusb.o: moc_qbaseusb.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qbaseusb.o moc_qbaseusb.cpp

moc_qusbmanager.o: moc_qusbmanager.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qusbmanager.o moc_qusbmanager.cpp

moc_qlibusb.o: moc_qlibusb.cpp 
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qlibusb.o moc_qlibusb.cpp

####### Install

install_target: first FORCE
	@test -d $(INSTALL_ROOT)/usr/bin || mkdir -p $(INSTALL_ROOT)/usr/bin
	-$(QINSTALL_PROGRAM) $(QMAKE_TARGET) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)
	-$(STRIP) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)

uninstall_target: FORCE
	-$(DEL_FILE) $(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ 


install_conf: first FORCE
	@test -d $(INSTALL_ROOT)/etc/udev/rules.d || mkdir -p $(INSTALL_ROOT)/etc/udev/rules.d
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/49-stlinkv2.rules $(INSTALL_ROOT)/etc/udev/rules.d/49-stlinkv2.rules
	-strip $(INSTALL_ROOT)/etc/udev/rules.d/49-stlinkv2.rules

uninstall_conf: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/etc/udev/rules.d/49-stlinkv2.rules
	-$(DEL_DIR) $(INSTALL_ROOT)/etc/udev/rules.d/ 


install_misc: first FORCE
	@test -d $(INSTALL_ROOT)/usr/share/qstlink2 || mkdir -p $(INSTALL_ROOT)/usr/share/qstlink2
	-$(QINSTALL) /home/odroid/Downloads/QStlink2/res/devices.xml $(INSTALL_ROOT)/usr/share/qstlink2/devices.xml
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/help.html $(INSTALL_ROOT)/usr/share/qstlink2/help.html
	-strip $(INSTALL_ROOT)/usr/share/qstlink2/help.html

uninstall_misc: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/qstlink2/help.html
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/qstlink2/devices.xml
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/qstlink2/ 


install_icon: first FORCE
	@test -d $(INSTALL_ROOT)/usr/share/pixmaps || mkdir -p $(INSTALL_ROOT)/usr/share/pixmaps
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/images/qstlink2.png $(INSTALL_ROOT)/usr/share/pixmaps/qstlink2.png
	-strip $(INSTALL_ROOT)/usr/share/pixmaps/qstlink2.png

uninstall_icon: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/pixmaps/qstlink2.png
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/pixmaps/ 


install_launcher: first FORCE
	@test -d $(INSTALL_ROOT)/usr/share/applications || mkdir -p $(INSTALL_ROOT)/usr/share/applications
	-$(QINSTALL_PROGRAM) /home/odroid/Downloads/QStlink2/res/qstlink2.desktop $(INSTALL_ROOT)/usr/share/applications/qstlink2.desktop
	-strip $(INSTALL_ROOT)/usr/share/applications/qstlink2.desktop

uninstall_launcher: FORCE
	-$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/qstlink2.desktop
	-$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/ 


install: install_target install_conf install_misc install_icon install_launcher  FORCE

uninstall: uninstall_target uninstall_conf uninstall_misc uninstall_icon uninstall_launcher  FORCE

FORCE:

Like this? I've tested the one with N2 fbdev earlier.
http://ppa.linuxfactory.or.kr/pool/main ... ource-src/

HAMDV
Posts: 14
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by HAMDV » Thu Dec 05, 2019 10:40 am

Also ;
odroid@odroid-buster64:/usr/lib/aarch64-linux-gnu/qt5/mkspecs/modules$ ls | grep opengl
qt_lib_openglextensions.pri
qt_lib_openglextensions_private.pri
qt_lib_opengl.pri
qt_lib_opengl_private.pri

HAMDV
Posts: 14
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by HAMDV » Thu Dec 05, 2019 10:56 am

i tried ;

odroid@odroid-buster64:/tmp$ sudo dpkg -i libqt5opengl5-dev_5.11.3+dfsg1-2+201907191059~buster_arm64.deb
(Reading database ... 239812 files and directories currently installed.)
Preparing to unpack libqt5opengl5-dev_5.11.3+dfsg1-2+201907191059~buster_arm64.deb ...
Unpacking libqt5opengl5-dev:arm64 (5:5.11.3+dfsg1-2+201907191059~buster) over (5.11.3+dfsg1-1+deb10u1) ...
dpkg: dependency problems prevent configuration of libqt5opengl5-dev:arm64:
libqt5opengl5-dev:arm64 depends on libqt5opengl5 (= 5:5.11.3+dfsg1-2+201907191059~buster); however:
Version of libqt5opengl5:arm64 on system is 5.11.3+dfsg1-1+deb10u1.
libqt5opengl5-dev:arm64 depends on qtbase5-dev (= 5:5.11.3+dfsg1-2+201907191059~buster); however:
Version of qtbase5-dev:arm64 on system is 5.11.3+dfsg1-1+deb10u1.

dpkg: error processing package libqt5opengl5-dev:arm64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libqt5opengl5-dev:arm64
odroid@odroid-buster64:/tmp$

may have to force a few
Last edited by HAMDV on Thu Dec 05, 2019 11:00 am, edited 1 time in total.

User avatar
tobetter
Posts: 4263
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 58 times
Been thanked: 234 times
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by tobetter » Thu Dec 05, 2019 10:58 am

HAMDV wrote:
Thu Dec 05, 2019 10:56 am
I see those are stretch
My PPA? Nope, there are for Bionic and Buster as well, just many for Stretch.

HAMDV
Posts: 14
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by HAMDV » Fri Dec 06, 2019 4:16 am

Had no luck on this. If someone has a similar issue and resolves, please advise ?

congo
Posts: 10
Joined: Fri Oct 11, 2019 5:04 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: /usr/bin/ld: cannot find -lGL

Unread post by congo » Fri Dec 06, 2019 4:36 am

You are missing most probably one of libgl packages which should provide libGL.so
apt-file search libGL.so
libgl1: /usr/lib/aarch64-linux-gnu/libGL.so.1
libgl1: /usr/lib/aarch64-linux-gnu/libGL.so.1.7.0
libglvnd-dev: /usr/lib/aarch64-linux-gnu/libGL.so

so either install the last package or "ln -s /usr/lib/aarch64-linux-gnu/libGL.so.1 /usr/lib/aarch64-linux-gnu/libGL.so "

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 0 guests