/usr/bin/ld: cannot find -lGL

Post Reply
HAMDV
Posts: 16
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 3 times
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: 4551
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: 78 times
Been thanked: 318 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: 16
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 3 times
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: 4551
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: 78 times
Been thanked: 318 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: 16
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 3 times
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: 16
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 3 times
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: 4551
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: 78 times
Been thanked: 318 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: 16
Joined: Wed Dec 04, 2019 8:13 am
languages_spoken: english
ODROIDs: C1, C2, U2, XU3, XU4, N2
Has thanked: 3 times
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: 12
Joined: Fri Oct 11, 2019 5:04 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 1 time
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 "
These users thanked the author congo for the post:
HAMDV (Sun Jan 12, 2020 10:50 am)

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

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

Unread post by HAMDV » Sat Dec 28, 2019 10:20 pm

odroid@odroid-buster64:~$ sudo 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
odroid@odroid-buster64:~$

Thankyou 'congo' your advice > "ln -s /usr/lib/aarch64-linux-gnu/libGL.so.1 /usr/lib/aarch64-linux-gnu/libGL.so " ,

solved my issue.

User avatar
meveric
Posts: 10725
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 28 times
Been thanked: 236 times
Contact:

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

Unread post by meveric » Mon Dec 30, 2019 3:44 am

HAMDV wrote:
Sat Dec 28, 2019 10:20 pm
odroid@odroid-buster64:~$ sudo 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
odroid@odroid-buster64:~$

Thankyou 'congo' your advice > "ln -s /usr/lib/aarch64-linux-gnu/libGL.so.1 /usr/lib/aarch64-linux-gnu/libGL.so " ,

solved my issue.
As you can see libGL.so is part of the libglvnd-dev package and installing that package would have been enough.
BTW. OpenGL is not supported by ODROIDs, what you currently have is MESA Software Rendering.

The ODROID N2 only has OpenGL ES support not OpenGL.
The problem is Qt5 which is falsely compiled for OpenGL when it should be compiled against OpenGL ES.

I haven't got around recompiling QT5 yet. That's a task that probably going to take several weeks, as QT5 is HUGE.
These users thanked the author meveric for the post:
HAMDV (Sun Jan 12, 2020 10:51 am)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
tobetter
Posts: 4551
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: 78 times
Been thanked: 318 times
Contact:

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

Unread post by tobetter » Fri Jan 03, 2020 6:12 pm

If you are willing to run Qt5 on fbdev+Mali, please follow up on the instructions. I've built for Debian Stretch/Buster as well as Ubuntu Bionic/Disco but have tested Ubuntu Bionic and Ubuntu Disco as of now, but Debian would also work.

With the Hardkernel's official Ubuntu Bionic Minimal image, you should add my PPA and reboot. You can skip this if you have Debian/Ubuntu OS based on my PPA.

Code: Select all

# apt-key adv --keyserver keyserver.ubuntu.com --recv 4F71126C02B8F823
# cat>/etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list<<__EOF
deb http://ppa.linuxfactory.or.kr bionic main non-free
__EOF
# apt update
# apt purge mali-fbdev
# reboot
Mali drivers and Qt5 custom built can be installed

Code: Select all

# apt update
# apt -y upgrade
# apt install -y mali-bifrost-fbdev-driver qtbase5-examples
Check the version of Qt5

Code: Select all

# dpkg -l | grep qt5
ii  libqt5concurrent5:arm64              5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 concurrent module
ii  libqt5core5a:arm64                   5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 core module
ii  libqt5dbus5:arm64                    5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 D-Bus module
ii  libqt5gui5:arm64                     5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 GUI module
ii  libqt5network5:arm64                 5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 network module
ii  libqt5opengl5:arm64                  5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 OpenGL module
ii  libqt5printsupport5:arm64            5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 print support module
ii  libqt5sql5:arm64                     5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 SQL module
ii  libqt5sql5-sqlite:arm64              5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 SQLite 3 database driver
ii  libqt5svg5:arm64                     5.9.5-0ubuntu1                              arm64        Qt 5 SVG module
ii  libqt5test5:arm64                    5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 test module
ii  libqt5widgets5:arm64                 5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 widgets module
ii  libqt5xml5:arm64                     5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 XML module
ii  qt5-gtk-platformtheme:arm64          5:5.9.5+dfsg-0ubuntu2.1+201907172350~bionic arm64        Qt 5 GTK+ 3 platform theme
Before running any Qt5 apps, you must set this.

Code: Select all

# export QT_QPA_EGLFS_INTEGRATION=eglfs_mali
# export QT_QPA_PLATFORM=eglfs
And play with Qt5 examples

Code: Select all

/usr/lib/aarch64-linux-gnu/qt5/examples/opengl/cube/cube
These users thanked the author tobetter for the post (total 2):
odroid (Fri Jan 03, 2020 6:16 pm) • HAMDV (Sun Jan 12, 2020 10:51 am)

User avatar
tobetter
Posts: 4551
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: 78 times
Been thanked: 318 times
Contact:

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

Unread post by tobetter » Tue Jan 14, 2020 8:45 pm

I've rebuilt and uploaded the Qt5 that can work with Wayland and even can run on GNOME Desktop but only for Ubuntu Disco.
Please do run apt commands and check the version.

Code: Select all

$ sudo apt update
$ sudo apt upgrade
$ dpkg -l | grep qt5
ii  libqt5concurrent5:arm64                    5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 concurrent module
ii  libqt5core5a:arm64                         5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 core module
ii  libqt5dbus5:arm64                          5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 D-Bus module
ii  libqt5gui5:arm64                           5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 GUI module
ii  libqt5network5:arm64                       5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 network module
ii  libqt5opengl5:arm64                        5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 OpenGL module
ii  libqt5opengl5-dev:arm64                    5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 OpenGL library development files
ii  libqt5printsupport5:arm64                  5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 print support module
ii  libqt5sql5:arm64                           5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 SQL module
ii  libqt5sql5-sqlite:arm64                    5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 SQLite 3 database driver
ii  libqt5test5:arm64                          5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 test module
ii  libqt5widgets5:arm64                       5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 widgets module
ii  libqt5xml5:arm64                           5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 XML module
ii  qt5-default:arm64                          5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 development defaults package
ii  qt5-gtk-platformtheme:arm64                5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 GTK+ 3 platform theme
ii  qt5-qmake:arm64                            5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 qmake Makefile generator tool
ii  qt5-qmake-bin                              5:5.12.2+dfsg-4ubuntu1.1+202001100257~disco arm64        Qt 5 qmake Makefile generator tool �.. binary file
IMG_20200114_1800359.jpg
IMG_20200114_1800359.jpg (495.41 KiB) Viewed 2018 times
These users thanked the author tobetter for the post:
odroid (Wed Jan 15, 2020 11:10 am)

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest