diff --git a/CMakeLists.txt b/CMakeLists.txt
deleted file mode 100644
index da26f87..0000000
--- a/CMakeLists.txt
+++ /dev/null
@@ -1,76 +0,0 @@
-cmake_minimum_required(VERSION 3.16)
-
-project(uppper_LibUSB VERSION 0.1 LANGUAGES CXX)
-
-set(CMAKE_AUTOUIC ON)
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-
-set(CMAKE_CXX_STANDARD 17)
-set(CMAKE_CXX_STANDARD_REQUIRED ON)
-
-find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
-find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
-find_package(PkgConfig REQUIRED)
-pkg_check_modules(LIBUSB REQUIRED libusb-1.0) # 模块名固定为 "libusb-1.0"
-
-set(PROJECT_SOURCES
- main.cpp
- mainwindow.cpp
- mainwindow.h
- mainwindow.ui
-)
-
-if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
- qt_add_executable(uppper_LibUSB
- MANUAL_FINALIZATION
- ${PROJECT_SOURCES}
- log.h
- usbhandler.h usbhandler.cpp
- )
-# Define target properties for Android with Qt 6 as:
-# set_property(TARGET uppper_LibUSB APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
-# ${CMAKE_CURRENT_SOURCE_DIR}/android)
-# For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
-else()
- if(ANDROID)
- add_library(uppper_LibUSB SHARED
- ${PROJECT_SOURCES}
- )
-# Define properties for Android with Qt 5 after find_package() calls as:
-# set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
- else()
- add_executable(uppper_LibUSB
- ${PROJECT_SOURCES}
- )
- endif()
-endif()
-
-target_link_libraries(uppper_LibUSB PRIVATE Qt${QT_VERSION_MAJOR}::Widgets
- ${LIBUSB_LIBRARIES}
-)
-
-# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
-# If you are developing for iOS or macOS you should consider setting an
-# explicit, fixed bundle identifier manually though.
-if(${QT_VERSION} VERSION_LESS 6.1.0)
- set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.uppper_LibUSB)
-endif()
-set_target_properties(uppper_LibUSB PROPERTIES
- ${BUNDLE_ID_OPTION}
- MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
- MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
- MACOSX_BUNDLE TRUE
- WIN32_EXECUTABLE TRUE
-)
-
-include(GNUInstallDirs)
-install(TARGETS uppper_LibUSB
- BUNDLE DESTINATION .
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
-)
-
-if(QT_VERSION_MAJOR EQUAL 6)
- qt_finalize_executable(uppper_LibUSB)
-endif()
diff --git a/CMakeLists.txt.user b/CMakeLists.txt.user
deleted file mode 100644
index bed9f48..0000000
--- a/CMakeLists.txt.user
+++ /dev/null
@@ -1,463 +0,0 @@
-
-
-
-
-
- EnvironmentId
- {1ef3ffc4-a5a8-4c60-8a81-af3ba8bbb143}
-
-
- ProjectExplorer.Project.ActiveTarget
- 0
-
-
- ProjectExplorer.Project.EditorSettings
-
- true
- true
- true
-
- Cpp
-
- CppGlobal
-
-
-
- QmlJS
-
- QmlJSGlobal
-
-
- 2
- UTF-8
- false
- 4
- false
- 0
- 80
- true
- true
- 1
- 0
- false
- true
- false
- 2
- true
- true
- 0
- 8
- true
- false
- 1
- true
- true
- true
- *.md, *.MD, Makefile
- false
- true
- true
-
-
-
- ProjectExplorer.Project.PluginSettings
-
-
- true
- false
- true
- true
- true
- true
-
- false
-
-
- 0
- true
-
- true
- true
- Builtin.DefaultTidyAndClazy
- 4
- true
-
-
-
- true
-
-
-
-
- ProjectExplorer.Project.Target.0
-
- Desktop
- Desktop Qt 6.6.3 GCC 64bit
- Desktop Qt 6.6.3 GCC 64bit
- qt.qt6.663.gcc_64_kit
- 0
- 0
- 0
-
- Debug
- 2
- false
-
- -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{BuildConfig:BuildDirectory:NativeFilePath}/.qtc/package-manager/auto-setup.cmake
--DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON
--DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
--DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG}
--DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
--DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
--DCMAKE_GENERATOR:STRING=Ninja
--DCMAKE_BUILD_TYPE:STRING=Debug
--DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}
- 0
- /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_6_6_3_GCC_64bit-Debug
-
-
-
-
- all
-
- false
-
- true
- Build
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- false
-
- true
- Build
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- false
-
- Debug
- CMakeProjectManager.CMakeBuildConfiguration
-
-
- Release
- 2
- false
-
- -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{BuildConfig:BuildDirectory:NativeFilePath}/.qtc/package-manager/auto-setup.cmake
--DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON
--DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
--DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG}
--DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
--DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
--DCMAKE_GENERATOR:STRING=Ninja
--DCMAKE_BUILD_TYPE:STRING=Release
--DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}
- /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_6_6_3_GCC_64bit-Release
-
-
-
-
- all
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- false
-
- Release
- CMakeProjectManager.CMakeBuildConfiguration
-
-
- RelWithDebInfo
- 2
- false
-
- -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{BuildConfig:BuildDirectory:NativeFilePath}/.qtc/package-manager/auto-setup.cmake
--DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON
--DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
--DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG}
--DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
--DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
--DCMAKE_GENERATOR:STRING=Ninja
--DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
--DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}
- /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_6_6_3_GCC_64bit-RelWithDebInfo
-
-
-
-
- all
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- false
-
- Release with Debug Information
- CMakeProjectManager.CMakeBuildConfiguration
-
-
- RelWithDebInfo
- 2
- false
-
- -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{BuildConfig:BuildDirectory:NativeFilePath}/.qtc/package-manager/auto-setup.cmake
--DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON
--DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
--DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG}
--DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
--DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
--DCMAKE_GENERATOR:STRING=Ninja
--DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
--DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}
- 0
- /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_6_6_3_GCC_64bit-Profile
-
-
-
-
- all
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- false
-
- Profile
- CMakeProjectManager.CMakeBuildConfiguration
-
-
- MinSizeRel
- 2
- false
-
- -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=%{BuildConfig:BuildDirectory:NativeFilePath}/.qtc/package-manager/auto-setup.cmake
--DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON
--DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}
--DCMAKE_CXX_FLAGS_INIT:STRING=%{Qt:QML_DEBUG_FLAG}
--DQT_QMAKE_EXECUTABLE:FILEPATH=%{Qt:qmakeExecutable}
--DCMAKE_C_COMPILER:FILEPATH=%{Compiler:Executable:C}
--DCMAKE_GENERATOR:STRING=Ninja
--DCMAKE_BUILD_TYPE:STRING=MinSizeRel
--DCMAKE_CXX_COMPILER:FILEPATH=%{Compiler:Executable:Cxx}
- /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_6_6_3_GCC_64bit-MinSizeRel
-
-
-
-
- all
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Build
- Build
- ProjectExplorer.BuildSteps.Build
-
-
-
-
-
- clean
-
- false
-
- true
- CMakeProjectManager.MakeStep
-
- 1
- Clean
- Clean
- ProjectExplorer.BuildSteps.Clean
-
- 2
- false
-
- false
-
- Minimum Size Release
- CMakeProjectManager.CMakeBuildConfiguration
-
- 5
-
-
- 0
- Deploy
- Deploy
- ProjectExplorer.BuildSteps.Deploy
-
- 1
-
- false
- ProjectExplorer.DefaultDeployConfiguration
-
-
-
-
-
-
-
-
- false
-
- true
- ApplicationManagerPlugin.Deploy.CMakePackageStep
-
-
- install-package --acknowledge
- true
- Install Application Manager package
- ApplicationManagerPlugin.Deploy.InstallPackageStep
-
-
-
-
-
-
-
- 2
- Deploy
- Deploy
- ProjectExplorer.BuildSteps.Deploy
-
- 1
-
- false
- ApplicationManagerPlugin.Deploy.Configuration
-
- 2
-
- true
- true
- 0
- true
-
- 2
-
- false
- -e cpu-cycles --call-graph dwarf,4096 -F 250
- uppper_LibUSB
- CMakeProjectManager.CMakeRunConfiguration.
- uppper_LibUSB
- true
- true
- true
- true
- true
- /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_6_6_3_GCC_64bit-Debug
-
- 1
-
-
-
- ProjectExplorer.Project.TargetCount
- 1
-
-
- ProjectExplorer.Project.Updater.FileVersion
- 22
-
-
- Version
- 22
-
-
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/include/ui_mainwindow.h b/build/Desktop_Qt_5_15_2_GCC_64bit-Debug/ui_mainwindow.h
similarity index 76%
rename from build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/include/ui_mainwindow.h
rename to build/Desktop_Qt_5_15_2_GCC_64bit-Debug/ui_mainwindow.h
index 4ddfd59..bf8ebce 100644
--- a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/include/ui_mainwindow.h
+++ b/build/Desktop_Qt_5_15_2_GCC_64bit-Debug/ui_mainwindow.h
@@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
-** Created by: Qt User Interface Compiler version 6.6.3
+** Created by: Qt User Interface Compiler version 5.15.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@@ -53,94 +53,94 @@ public:
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
- MainWindow->setObjectName("MainWindow");
+ MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(814, 613);
- QSizePolicy sizePolicy(QSizePolicy::Policy::Expanding, QSizePolicy::Policy::Expanding);
+ QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(MainWindow->sizePolicy().hasHeightForWidth());
MainWindow->setSizePolicy(sizePolicy);
centralwidget = new QWidget(MainWindow);
- centralwidget->setObjectName("centralwidget");
+ centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
gridLayout = new QGridLayout(centralwidget);
- gridLayout->setObjectName("gridLayout");
+ gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
comboBox = new QComboBox(centralwidget);
- comboBox->setObjectName("comboBox");
+ comboBox->setObjectName(QString::fromUtf8("comboBox"));
gridLayout->addWidget(comboBox, 1, 1, 1, 1);
textBrowser = new QTextBrowser(centralwidget);
- textBrowser->setObjectName("textBrowser");
+ textBrowser->setObjectName(QString::fromUtf8("textBrowser"));
gridLayout->addWidget(textBrowser, 12, 0, 1, 4);
pushButton = new QPushButton(centralwidget);
- pushButton->setObjectName("pushButton");
+ pushButton->setObjectName(QString::fromUtf8("pushButton"));
gridLayout->addWidget(pushButton, 0, 0, 1, 4);
pushButton_4 = new QPushButton(centralwidget);
- pushButton_4->setObjectName("pushButton_4");
+ pushButton_4->setObjectName(QString::fromUtf8("pushButton_4"));
gridLayout->addWidget(pushButton_4, 8, 2, 1, 2);
pushButton_2 = new QPushButton(centralwidget);
- pushButton_2->setObjectName("pushButton_2");
+ pushButton_2->setObjectName(QString::fromUtf8("pushButton_2"));
gridLayout->addWidget(pushButton_2, 5, 2, 1, 2);
pushButton_3 = new QPushButton(centralwidget);
- pushButton_3->setObjectName("pushButton_3");
+ pushButton_3->setObjectName(QString::fromUtf8("pushButton_3"));
gridLayout->addWidget(pushButton_3, 10, 2, 1, 2);
comboBox_3 = new QComboBox(centralwidget);
- comboBox_3->setObjectName("comboBox_3");
+ comboBox_3->setObjectName(QString::fromUtf8("comboBox_3"));
gridLayout->addWidget(comboBox_3, 4, 1, 1, 1);
- verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
+ verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(verticalSpacer, 9, 2, 1, 1);
label = new QLabel(centralwidget);
- label->setObjectName("label");
+ label->setObjectName(QString::fromUtf8("label"));
gridLayout->addWidget(label, 1, 0, 1, 1);
pushButton_8 = new QPushButton(centralwidget);
- pushButton_8->setObjectName("pushButton_8");
+ pushButton_8->setObjectName(QString::fromUtf8("pushButton_8"));
gridLayout->addWidget(pushButton_8, 3, 2, 1, 2);
textEdit = new QTextEdit(centralwidget);
- textEdit->setObjectName("textEdit");
+ textEdit->setObjectName(QString::fromUtf8("textEdit"));
gridLayout->addWidget(textEdit, 5, 0, 6, 2);
pushButton_7 = new QPushButton(centralwidget);
- pushButton_7->setObjectName("pushButton_7");
+ pushButton_7->setObjectName(QString::fromUtf8("pushButton_7"));
gridLayout->addWidget(pushButton_7, 4, 2, 1, 2);
pushButton_6 = new QPushButton(centralwidget);
- pushButton_6->setObjectName("pushButton_6");
+ pushButton_6->setObjectName(QString::fromUtf8("pushButton_6"));
gridLayout->addWidget(pushButton_6, 1, 2, 1, 2);
label_2 = new QLabel(centralwidget);
- label_2->setObjectName("label_2");
+ label_2->setObjectName(QString::fromUtf8("label_2"));
gridLayout->addWidget(label_2, 11, 1, 1, 1);
label_4 = new QLabel(centralwidget);
- label_4->setObjectName("label_4");
+ label_4->setObjectName(QString::fromUtf8("label_4"));
gridLayout->addWidget(label_4, 4, 0, 1, 1);
comboBox_2 = new QComboBox(centralwidget);
- comboBox_2->setObjectName("comboBox_2");
- QSizePolicy sizePolicy1(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Fixed);
+ comboBox_2->setObjectName(QString::fromUtf8("comboBox_2"));
+ QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(comboBox_2->sizePolicy().hasHeightForWidth());
@@ -149,22 +149,22 @@ public:
gridLayout->addWidget(comboBox_2, 3, 1, 1, 1);
label_3 = new QLabel(centralwidget);
- label_3->setObjectName("label_3");
+ label_3->setObjectName(QString::fromUtf8("label_3"));
gridLayout->addWidget(label_3, 3, 0, 1, 1);
pushButton_5 = new QPushButton(centralwidget);
- pushButton_5->setObjectName("pushButton_5");
+ pushButton_5->setObjectName(QString::fromUtf8("pushButton_5"));
gridLayout->addWidget(pushButton_5, 13, 3, 1, 1);
- verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Expanding);
+ verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(verticalSpacer_2, 6, 3, 1, 1);
MainWindow->setCentralWidget(centralwidget);
statusbar = new QStatusBar(MainWindow);
- statusbar->setObjectName("statusbar");
+ statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
diff --git a/build/Desktop_Qt_5_15_2_GCC_64bit-Debug/upper b/build/Desktop_Qt_5_15_2_GCC_64bit-Debug/upper
new file mode 100755
index 0000000..1dd3f67
Binary files /dev/null and b/build/Desktop_Qt_5_15_2_GCC_64bit-Debug/upper differ
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/.qtc/package-manager/auto-setup.cmake b/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/.qtc/package-manager/auto-setup.cmake
deleted file mode 100644
index 7305ab8..0000000
--- a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/.qtc/package-manager/auto-setup.cmake
+++ /dev/null
@@ -1,354 +0,0 @@
-#
-# Internal Qt Creator variable reference
-#
-foreach(qtcreator_var
- QT_QMAKE_EXECUTABLE CMAKE_PREFIX_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER
- CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO)
- set(__just_reference_${qtcreator_var} ${${qtcreator_var}})
-endforeach()
-
-option(QT_CREATOR_SOURCE_GROUPS "Qt Creator source groups extensions" ON)
-if (QT_CREATOR_SOURCE_GROUPS)
- source_group("Resources" REGULAR_EXPRESSION "\\.(pdf|plist|png|jpeg|jpg|storyboard|xcassets|qrc|svg|gif|ico|webp)$")
- source_group("Forms" REGULAR_EXPRESSION "\\.(ui)$")
- source_group("State charts" REGULAR_EXPRESSION "\\.(scxml)$")
-endif()
-
-#
-# Set a better default value for CMAKE_INSTALL_PREFIX
-#
-function(qtc_modify_default_install_prefix)
- # If at configure time the user didn't specify a CMAKE_INSTALL_PREFIX variable
- # Modules/CMakeGenericSystem.cmake will set a default value
- # to CMAKE_INSTALL_PREFIX and set CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT to ON
-
- # In practice there are cases when CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is
- # set to ON and a custom CMAKE_INSTALL_PREFIX is set
-
- # Do the original CMAKE_INSTALL_PREFIX detection
- if(CMAKE_HOST_UNIX)
- set(original_cmake_install_prefix "/usr/local")
- else()
- GetDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
- set(original_cmake_install_prefix
- "${CMAKE_GENERIC_PROGRAM_FILES}/${PROJECT_NAME}")
- unset(CMAKE_GENERIC_PROGRAM_FILES)
- endif()
-
- # When the user code didn't modify the CMake set CMAKE_INSTALL_PREFIX
- # then set the "/tmp" better value for CMAKE_INSTALL_PREFIX
- if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND
- CMAKE_INSTALL_PREFIX STREQUAL "${original_cmake_install_prefix}")
- set_property(CACHE CMAKE_INSTALL_PREFIX PROPERTY VALUE "/tmp")
- endif()
-endfunction()
-if (CMAKE_VERSION GREATER_EQUAL "3.19")
- cmake_language(DEFER CALL qtc_modify_default_install_prefix)
-endif()
-
-if (EXISTS "${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
- include("${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
-endif()
-
-if (QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP)
- return()
-endif()
-option(QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP "Skip Qt Creator's package manager auto-setup" OFF)
-
-# Store the C/C++ object output extension
-if (CMAKE_VERSION GREATER_EQUAL "3.19")
- cmake_language(DEFER CALL set CMAKE_C_OUTPUT_EXTENSION "${CMAKE_C_OUTPUT_EXTENSION}" CACHE STRING "" FORCE)
- cmake_language(DEFER CALL set CMAKE_CXX_OUTPUT_EXTENSION "${CMAKE_CXX_OUTPUT_EXTENSION}" CACHE STRING "" FORCE)
-endif()
-
-macro(qtc_auto_setup_compiler_standard toolchainFile)
- foreach(lang_var C CXX CUDA OBJC OBJCXX)
- foreach(prop_var STANDARD STANDARD_REQUIRED EXTENSIONS)
- if (CMAKE_${lang_var}_${prop_var})
- file(APPEND "${toolchainFile}"
- "set(CMAKE_${lang_var}_${prop_var} ${CMAKE_${lang_var}_${prop_var}})\n")
- endif()
- endforeach()
- endforeach()
-
- # Forward important CMake variables to the package manager in the toolchain file
- foreach(fwd_var CMAKE_MSVC_RUNTIME_LIBRARY CMAKE_SYSROOT CMAKE_OSX_SYSROOT CMAKE_OSX_ARCHITECTURES)
- if (${fwd_var})
- file(APPEND "${toolchainFile}"
- "set(${fwd_var} ${${fwd_var}})\n")
- endif()
- endforeach()
-endmacro()
-
-#
-# conan
-#
-macro(qtc_auto_setup_conan)
- foreach(file conanfile.txt conanfile.py)
- if (EXISTS "${CMAKE_SOURCE_DIR}/${file}")
- set(conanfile_txt "${CMAKE_SOURCE_DIR}/${file}")
- break()
- endif()
- endforeach()
-
- if (conanfile_txt AND NOT QT_CREATOR_SKIP_CONAN_SETUP)
- option(QT_CREATOR_SKIP_CONAN_SETUP "Skip Qt Creator's conan package manager auto-setup" OFF)
- set(QT_CREATOR_CONAN_BUILD_POLICY "missing" CACHE STRING "Qt Creator's conan package manager auto-setup build policy. This is used for the BUILD property of cmake_conan_run")
-
- set_property(
- DIRECTORY "${CMAKE_SOURCE_DIR}"
- APPEND
- PROPERTY CMAKE_CONFIGURE_DEPENDS "${conanfile_txt}")
-
- find_program(conan_program conan)
- if (NOT conan_program)
- message(WARNING "Qt Creator: conan executable not found. "
- "Package manager auto-setup will be skipped. "
- "To disable this warning set QT_CREATOR_SKIP_CONAN_SETUP to ON.")
- return()
- endif()
- execute_process(COMMAND ${conan_program} --version
- RESULT_VARIABLE result_code
- OUTPUT_VARIABLE conan_version_output
- ERROR_VARIABLE conan_version_output)
- if (NOT result_code EQUAL 0)
- message(FATAL_ERROR "conan --version failed='${result_code}: ${conan_version_output}")
- endif()
-
- string(REGEX REPLACE ".*Conan version ([0-9].[0-9]).*" "\\1" conan_version "${conan_version_output}")
-
- set(conanfile_timestamp_file "${CMAKE_BINARY_DIR}/conan-dependencies/conanfile.timestamp")
- file(TIMESTAMP "${conanfile_txt}" conanfile_timestamp)
-
- set(do_conan_installation ON)
- if (EXISTS "${conanfile_timestamp_file}")
- file(READ "${conanfile_timestamp_file}" old_conanfile_timestamp)
- if ("${conanfile_timestamp}" STREQUAL "${old_conanfile_timestamp}")
- set(do_conan_installation OFF)
- endif()
- endif()
-
- set(conanfile_build_policy_file "${CMAKE_BINARY_DIR}/conan-dependencies/conanfile.buildpolicy")
- if (EXISTS "${conanfile_build_policy_file}")
- file(READ "${conanfile_build_policy_file}" build_policy)
- if (NOT "${build_policy}" STREQUAL "${QT_CREATOR_CONAN_BUILD_POLICY}")
- set(do_conan_installation ON)
- endif()
- endif()
-
- if (do_conan_installation)
- message(STATUS "Qt Creator: conan package manager auto-setup. "
- "Skip this step by setting QT_CREATOR_SKIP_CONAN_SETUP to ON.")
-
- file(COPY "${conanfile_txt}" DESTINATION "${CMAKE_BINARY_DIR}/conan-dependencies/")
-
- # conanfile should have a generator specified, when both file and conan_install
- # specifcy the CMakeDeps generator, conan_install will issue an error
- file(READ "${conanfile_txt}" conanfile_text_content)
- unset(conan_generator)
- if (NOT "${conanfile_text_content}" MATCHES ".*CMakeDeps.*")
- set(conan_generator "-g CMakeDeps")
- endif()
-
- file(WRITE "${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake" "
- set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\")
- set(CMAKE_CXX_COMPILER \"${CMAKE_CXX_COMPILER}\")
- ")
- qtc_auto_setup_compiler_standard("${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake")
-
- if (CMAKE_TOOLCHAIN_FILE)
- file(APPEND "${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake"
- "include(\"${CMAKE_TOOLCHAIN_FILE}\")\n")
- endif()
-
- file(WRITE "${CMAKE_BINARY_DIR}/conan-dependencies/CMakeLists.txt" "
- cmake_minimum_required(VERSION 3.15)
-
- unset(CMAKE_PROJECT_INCLUDE_BEFORE CACHE)
- project(conan-setup)
-
- if (${conan_version} VERSION_GREATER_EQUAL 2.0)
- set(CONAN_COMMAND \"${conan_program}\")
- include(\"${CMAKE_CURRENT_LIST_DIR}/conan_provider.cmake\")
- conan_profile_detect_default()
- detect_host_profile(\"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\")
-
- set(build_types \${CMAKE_BUILD_TYPE})
- if (CMAKE_CONFIGURATION_TYPES)
- set(build_types \${CMAKE_CONFIGURATION_TYPES})
- endif()
-
- foreach(type \${build_types})
- conan_install(
- -pr \"${CMAKE_BINARY_DIR}/conan-dependencies/conan_host_profile\"
- --build=${QT_CREATOR_CONAN_BUILD_POLICY}
- -s build_type=\${type}
- ${conan_generator})
- endforeach()
-
- get_property(CONAN_INSTALL_SUCCESS GLOBAL PROPERTY CONAN_INSTALL_SUCCESS)
- if (CONAN_INSTALL_SUCCESS)
- get_property(CONAN_GENERATORS_FOLDER GLOBAL PROPERTY CONAN_GENERATORS_FOLDER)
- file(TO_CMAKE_PATH \"\${CONAN_GENERATORS_FOLDER}\" CONAN_GENERATORS_FOLDER)
- file(WRITE \"${CMAKE_BINARY_DIR}/conan-dependencies/conan_paths.cmake\" \"
- list(PREPEND CMAKE_PREFIX_PATH \\\"\${CONAN_GENERATORS_FOLDER}\\\")
- list(PREPEND CMAKE_MODULE_PATH \\\"\${CONAN_GENERATORS_FOLDER}\\\")
- list(PREPEND CMAKE_FIND_ROOT_PATH \\\"\${CONAN_GENERATORS_FOLDER}\\\")
- list(REMOVE_DUPLICATES CMAKE_PREFIX_PATH)
- list(REMOVE_DUPLICATES CMAKE_MODULE_PATH)
- list(REMOVE_DUPLICATES CMAKE_FIND_ROOT_PATH)
- set(CMAKE_PREFIX_PATH \\\"\\\${CMAKE_PREFIX_PATH}\\\" CACHE STRING \\\"\\\" FORCE)
- set(CMAKE_MODULE_PATH \\\"\\\${CMAKE_MODULE_PATH}\\\" CACHE STRING \\\"\\\" FORCE)
- set(CMAKE_FIND_ROOT_PATH \\\"\\\${CMAKE_FIND_ROOT_PATH}\\\" CACHE STRING \\\"\\\" FORCE)
- \")
- endif()
- else()
- include(\"${CMAKE_CURRENT_LIST_DIR}/conan.cmake\")
- conan_cmake_run(
- CONANFILE \"${conanfile_txt}\"
- INSTALL_FOLDER \"${CMAKE_BINARY_DIR}/conan-dependencies\"
- GENERATORS cmake_paths cmake_find_package json
- BUILD ${QT_CREATOR_CONAN_BUILD_POLICY}
- ENV CONAN_CMAKE_TOOLCHAIN_FILE=\"${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake\"
- )
- endif()
- ")
-
- if (NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED CMAKE_CONFIGURATION_TYPES)
- set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
- endif()
-
- execute_process(COMMAND ${CMAKE_COMMAND}
- -S "${CMAKE_BINARY_DIR}/conan-dependencies/"
- -B "${CMAKE_BINARY_DIR}/conan-dependencies/build"
- -C "${CMAKE_BINARY_DIR}/qtcsettings.cmake"
- -D "CMAKE_TOOLCHAIN_FILE=${CMAKE_BINARY_DIR}/conan-dependencies/toolchain.cmake"
- -G ${CMAKE_GENERATOR}
- -D CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -D "CMAKE_CONFIGURATION_TYPES=${CMAKE_CONFIGURATION_TYPES}"
- RESULT_VARIABLE result
- )
- if (result EQUAL 0)
- file(WRITE "${conanfile_timestamp_file}" "${conanfile_timestamp}")
- file(WRITE "${conanfile_build_policy_file}" ${QT_CREATOR_CONAN_BUILD_POLICY})
- else()
- message(WARNING "Qt Creator's conan package manager auto-setup failed. Consider setting "
- "QT_CREATOR_SKIP_CONAN_SETUP to ON and reconfigure to skip this step.")
- return()
- endif()
- endif()
-
- include("${CMAKE_BINARY_DIR}/conan-dependencies/conan_paths.cmake")
- endif()
- unset(conanfile_txt)
-endmacro()
-qtc_auto_setup_conan()
-
-#
-# vcpkg
-#
-macro(qtc_auto_setup_vcpkg)
- if (EXISTS "${CMAKE_SOURCE_DIR}/vcpkg.json" AND NOT QT_CREATOR_SKIP_VCPKG_SETUP)
- option(QT_CREATOR_SKIP_VCPKG_SETUP "Skip Qt Creator's vcpkg package manager auto-setup" OFF)
-
- set_property(
- DIRECTORY "${CMAKE_SOURCE_DIR}"
- APPEND
- PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/vcpkg.json")
-
- find_program(vcpkg_program vcpkg
- PATHS $ENV{VCPKG_ROOT} ${CMAKE_SOURCE_DIR}/vcpkg ${CMAKE_SOURCE_DIR}/3rdparty/vcpkg
- NO_DEFAULT_PATH
- )
- if (NOT vcpkg_program)
- message(WARNING "Qt Creator: vcpkg executable not found. "
- "Package manager auto-setup will be skipped. "
- "To disable this warning set QT_CREATOR_SKIP_VCPKG_SETUP to ON.")
- return()
- endif()
- execute_process(COMMAND ${vcpkg_program} version
- RESULT_VARIABLE result_code
- OUTPUT_VARIABLE vcpkg_version_output
- ERROR_VARIABLE vcpkg_version_output)
- if (NOT result_code EQUAL 0)
- message(FATAL_ERROR "vcpkg version failed='${result_code}: ${vcpkg_version_output}")
- endif()
-
- # Resolve any symlinks
- get_filename_component(vpkg_program_real_path ${vcpkg_program} REALPATH)
- get_filename_component(vpkg_root ${vpkg_program_real_path} DIRECTORY)
-
- if (NOT EXISTS "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake")
- message(STATUS "Qt Creator: vcpkg package manager auto-setup. "
- "Skip this step by setting QT_CREATOR_SKIP_VCPKG_SETUP to ON.")
-
- file(WRITE "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" "
- set(CMAKE_C_COMPILER \"${CMAKE_C_COMPILER}\")
- set(CMAKE_CXX_COMPILER \"${CMAKE_CXX_COMPILER}\")
- ")
- qtc_auto_setup_compiler_standard("${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake")
-
- if (CMAKE_TOOLCHAIN_FILE AND NOT
- CMAKE_TOOLCHAIN_FILE STREQUAL "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake")
- file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake"
- "include(\"${CMAKE_TOOLCHAIN_FILE}\")\n")
- endif()
-
- if (VCPKG_TARGET_TRIPLET)
- set(vcpkg_triplet ${VCPKG_TARGET_TRIPLET})
- else()
- if (ANDROID_ABI)
- if (ANDROID_ABI STREQUAL "armeabi-v7a")
- set(vcpkg_triplet arm-neon-android)
- elseif (ANDROID_ABI STREQUAL "arm64-v8a")
- set(vcpkg_triplet arm64-android)
- elseif (ANDROID_ABI STREQUAL "x86")
- set(vcpkg_triplet x86-android)
- elseif (ANDROID_ABI STREQUAL "x86_64")
- set(vcpkg_triplet x64-android)
- else()
- message(FATAL_ERROR "Unsupported Android ABI: ${ANDROID_ABI}")
- endif()
- # Needed by vcpkg/scripts/toolchains/android.cmake
- file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" "
- set(ENV{ANDROID_NDK_HOME} \"${ANDROID_NDK}\")
- ")
- elseif (WIN32)
- set(vcpkg_triplet x64-mingw-static)
- if (CMAKE_CXX_COMPILER MATCHES ".*/(.*)/cl.exe")
- set(vcpkg_triplet ${CMAKE_MATCH_1}-windows)
- endif()
- elseif(APPLE)
- # We're too early to use CMAKE_HOST_SYSTEM_PROCESSOR
- execute_process(
- COMMAND uname -m
- OUTPUT_VARIABLE __apple_host_system_processor
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- if (__apple_host_system_processor MATCHES "arm64")
- set(vcpkg_triplet arm64-osx)
- else()
- set(vcpkg_triplet x64-osx)
- endif()
- else()
- set(vcpkg_triplet x64-linux)
- endif()
- endif()
-
- file(APPEND "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" "
- set(VCPKG_TARGET_TRIPLET ${vcpkg_triplet})
- include(\"${vpkg_root}/scripts/buildsystems/vcpkg.cmake\")
- ")
- endif()
-
- set(CMAKE_TOOLCHAIN_FILE "${CMAKE_BINARY_DIR}/vcpkg-dependencies/toolchain.cmake" CACHE PATH "" FORCE)
-
- # Save CMAKE_PREFIX_PATH and CMAKE_MODULE_PATH as cache variables
- if (CMAKE_VERSION GREATER_EQUAL "3.19")
- cmake_language(DEFER CALL list REMOVE_DUPLICATES CMAKE_PREFIX_PATH)
- cmake_language(DEFER CALL list REMOVE_DUPLICATES CMAKE_MODULE_PATH)
- cmake_language(DEFER CALL set CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}" CACHE STRING "" FORCE)
- cmake_language(DEFER CALL set CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" CACHE STRING "" FORCE)
- endif()
- endif()
-endmacro()
-qtc_auto_setup_vcpkg()
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/CMakeFiles/3.30.5/CMakeCXXCompiler.cmake b/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/CMakeFiles/3.30.5/CMakeCXXCompiler.cmake
deleted file mode 100644
index 842b2b9..0000000
--- a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/CMakeFiles/3.30.5/CMakeCXXCompiler.cmake
+++ /dev/null
@@ -1,101 +0,0 @@
-set(CMAKE_CXX_COMPILER "/bin/g++-12")
-set(CMAKE_CXX_COMPILER_ARG1 "")
-set(CMAKE_CXX_COMPILER_ID "GNU")
-set(CMAKE_CXX_COMPILER_VERSION "12.3.0")
-set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
-set(CMAKE_CXX_COMPILER_WRAPPER "")
-set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")
-set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")
-set(CMAKE_CXX_STANDARD_LATEST "23")
-set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")
-set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
-set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
-set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
-set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
-set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
-set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")
-set(CMAKE_CXX26_COMPILE_FEATURES "")
-
-set(CMAKE_CXX_PLATFORM_ID "Linux")
-set(CMAKE_CXX_SIMULATE_ID "")
-set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU")
-set(CMAKE_CXX_SIMULATE_VERSION "")
-
-
-
-
-set(CMAKE_AR "/bin/ar")
-set(CMAKE_CXX_COMPILER_AR "/bin/gcc-ar-12")
-set(CMAKE_RANLIB "/bin/ranlib")
-set(CMAKE_CXX_COMPILER_RANLIB "/bin/gcc-ranlib-12")
-set(CMAKE_LINKER "/bin/ld")
-set(CMAKE_LINKER_LINK "")
-set(CMAKE_LINKER_LLD "")
-set(CMAKE_CXX_COMPILER_LINKER "/usr/bin/ld")
-set(CMAKE_CXX_COMPILER_LINKER_ID "GNU")
-set(CMAKE_CXX_COMPILER_LINKER_VERSION 2.38)
-set(CMAKE_CXX_COMPILER_LINKER_FRONTEND_VARIANT GNU)
-set(CMAKE_MT "")
-set(CMAKE_TAPI "CMAKE_TAPI-NOTFOUND")
-set(CMAKE_COMPILER_IS_GNUCXX 1)
-set(CMAKE_CXX_COMPILER_LOADED 1)
-set(CMAKE_CXX_COMPILER_WORKS TRUE)
-set(CMAKE_CXX_ABI_COMPILED TRUE)
-
-set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
-
-set(CMAKE_CXX_COMPILER_ID_RUN 1)
-set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm;ccm;cxxm;c++m)
-set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
-
-foreach (lang IN ITEMS C OBJC OBJCXX)
- if (CMAKE_${lang}_COMPILER_ID_RUN)
- foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
- list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
- endforeach()
- endif()
-endforeach()
-
-set(CMAKE_CXX_LINKER_PREFERENCE 30)
-set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
-set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED FALSE)
-
-# Save compiler ABI information.
-set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
-set(CMAKE_CXX_COMPILER_ABI "ELF")
-set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
-set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
-
-if(CMAKE_CXX_SIZEOF_DATA_PTR)
- set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
-endif()
-
-if(CMAKE_CXX_COMPILER_ABI)
- set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
-endif()
-
-if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
- set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
-endif()
-
-set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
-if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
- set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
-endif()
-
-
-
-
-
-set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/12;/usr/include/x86_64-linux-gnu/c++/12;/usr/include/c++/12/backward;/usr/lib/gcc/x86_64-linux-gnu/12/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include")
-set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
-set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/12;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
-set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
-set(CMAKE_CXX_COMPILER_CLANG_RESOURCE_DIR "")
-
-set(CMAKE_CXX_COMPILER_IMPORT_STD "")
-### Imported target for C++23 standard library
-set(CMAKE_CXX23_COMPILER_IMPORT_STD_NOT_FOUND_MESSAGE "Toolchain does not support discovering `import std` support")
-
-
-
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/CMakeFiles/3.30.5/CMakeSystem.cmake b/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/CMakeFiles/3.30.5/CMakeSystem.cmake
deleted file mode 100644
index 05c8d91..0000000
--- a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/CMakeFiles/3.30.5/CMakeSystem.cmake
+++ /dev/null
@@ -1,15 +0,0 @@
-set(CMAKE_HOST_SYSTEM "Linux-6.8.0-57-generic")
-set(CMAKE_HOST_SYSTEM_NAME "Linux")
-set(CMAKE_HOST_SYSTEM_VERSION "6.8.0-57-generic")
-set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
-
-
-
-set(CMAKE_SYSTEM "Linux-6.8.0-57-generic")
-set(CMAKE_SYSTEM_NAME "Linux")
-set(CMAKE_SYSTEM_VERSION "6.8.0-57-generic")
-set(CMAKE_SYSTEM_PROCESSOR "x86_64")
-
-set(CMAKE_CROSSCOMPILING "FALSE")
-
-set(CMAKE_SYSTEM_LOADED 1)
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB b/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB
deleted file mode 100755
index 98e149a..0000000
Binary files a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB and /dev/null differ
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/mocs_compilation.cpp b/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/mocs_compilation.cpp
deleted file mode 100644
index 8162693..0000000
--- a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/mocs_compilation.cpp
+++ /dev/null
@@ -1,3 +0,0 @@
-// This file is autogenerated. Changes will be overwritten.
-#include "EWIEGA46WW/moc_mainwindow.cpp"
-#include "EWIEGA46WW/moc_usbhandler.cpp"
diff --git a/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/timestamp b/build/Desktop_Qt_6_6_3_GCC_64bit-Debug/uppper_LibUSB_autogen/timestamp
deleted file mode 100644
index e69de29..0000000
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 159da56..0d6abe6 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -136,4 +136,3 @@ void MainWindow::on_pushButton_5_clicked()
{
ui->textBrowser->clear();
}
-
diff --git a/upper.pro b/upper.pro
new file mode 100644
index 0000000..8e9baab
--- /dev/null
+++ b/upper.pro
@@ -0,0 +1,39 @@
+QT += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+CONFIG += c++11
+
+# The following define makes your compiler emit warnings if you use
+# any Qt feature that has been marked deprecated (the exact warnings
+# depend on your compiler). Please consult the documentation of the
+# deprecated API in order to know how to port your code away from it.
+DEFINES += QT_DEPRECATED_WARNINGS
+
+# You can also make your code fail to compile if it uses deprecated APIs.
+# In order to do so, uncomment the following line.
+# You can also select to disable deprecated APIs only up to a certain version of Qt.
+#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
+
+SOURCES += \
+ main.cpp \
+ mainwindow.cpp \
+ usbhandler.cpp
+
+HEADERS += \
+ log.h \
+ mainwindow.h \
+ usbhandler.h
+
+FORMS += \
+ mainwindow.ui
+
+LIBS += -lusb-1.0
+
+INCLUDEPATH += /usr/include/libusb-1.0
+
+
+# Default rules for deployment.
+qnx: target.path = /tmp/$${TARGET}/bin
+else: unix:!android: target.path = /opt/$${TARGET}/bin
+!isEmpty(target.path): INSTALLS += target
diff --git a/upper.pro.user b/upper.pro.user
new file mode 100644
index 0000000..995ad6d
--- /dev/null
+++ b/upper.pro.user
@@ -0,0 +1,269 @@
+
+
+
+
+
+ EnvironmentId
+ {1ef3ffc4-a5a8-4c60-8a81-af3ba8bbb143}
+
+
+ ProjectExplorer.Project.ActiveTarget
+ 0
+
+
+ ProjectExplorer.Project.EditorSettings
+
+ true
+ true
+ true
+
+ Cpp
+
+ CppGlobal
+
+
+
+ QmlJS
+
+ QmlJSGlobal
+
+
+ 2
+ UTF-8
+ false
+ 4
+ false
+ 0
+ 80
+ true
+ true
+ 1
+ 0
+ false
+ true
+ false
+ 2
+ true
+ true
+ 0
+ 8
+ true
+ false
+ 1
+ true
+ true
+ true
+ *.md, *.MD, Makefile
+ false
+ true
+ true
+
+
+
+ ProjectExplorer.Project.PluginSettings
+
+
+ true
+ false
+ true
+ true
+ true
+ true
+
+ false
+
+
+ 0
+ true
+
+ true
+ true
+ Builtin.DefaultTidyAndClazy
+ 4
+ true
+
+
+
+ true
+
+
+
+
+ ProjectExplorer.Project.Target.0
+
+ Desktop
+ Desktop Qt 5.15.2 GCC 64bit
+ Desktop Qt 5.15.2 GCC 64bit
+ qt.qt5.5152.gcc_64_kit
+ 0
+ 0
+ 0
+
+ 0
+ /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_5_15_2_GCC_64bit-Debug
+ /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_5_15_2_GCC_64bit-Debug
+
+
+ true
+ QtProjectManager.QMakeBuildStep
+ false
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ 2
+ Build
+ Build
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+ clean
+
+ 1
+ Clean
+ Clean
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ false
+
+ Debug
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+
+
+ /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_5_15_2_GCC_64bit-Release
+ /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_5_15_2_GCC_64bit-Release
+
+
+ true
+ QtProjectManager.QMakeBuildStep
+ false
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ 2
+ Build
+ Build
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+ clean
+
+ 1
+ Clean
+ Clean
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ false
+
+ Release
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ 0
+
+
+ 0
+ /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_5_15_2_GCC_64bit-Profile
+ /home/leo/devCode/outer/USBFilter_30/uppper_LibUSB/build/Desktop_Qt_5_15_2_GCC_64bit-Profile
+
+
+ true
+ QtProjectManager.QMakeBuildStep
+ false
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ 2
+ Build
+ Build
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+ clean
+
+ 1
+ Clean
+ Clean
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ false
+
+ Profile
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+ 0
+ 0
+
+ 3
+
+
+ 0
+ Deploy
+ Deploy
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+
+ false
+ ProjectExplorer.DefaultDeployConfiguration
+
+ 1
+
+ true
+ true
+ 0
+ true
+
+ 2
+
+ false
+ -e cpu-cycles --call-graph dwarf,4096 -F 250
+
+ ProjectExplorer.CustomExecutableRunConfiguration
+
+ false
+ true
+ true
+
+ 1
+
+
+
+ ProjectExplorer.Project.TargetCount
+ 1
+
+
+ ProjectExplorer.Project.Updater.FileVersion
+ 22
+
+
+ Version
+ 22
+
+
diff --git a/upper.pro.user.a8fa567 b/upper.pro.user.a8fa567
new file mode 100644
index 0000000..40742a8
--- /dev/null
+++ b/upper.pro.user.a8fa567
@@ -0,0 +1,318 @@
+
+
+
+
+
+ EnvironmentId
+ {a8fa5676-0c15-44e3-a757-29589f6fb074}
+
+
+ ProjectExplorer.Project.ActiveTarget
+ 0
+
+
+ ProjectExplorer.Project.EditorSettings
+
+ true
+ false
+ true
+
+ Cpp
+
+ CppGlobal
+
+
+
+ QmlJS
+
+ QmlJSGlobal
+
+
+ 2
+ UTF-8
+ false
+ 4
+ false
+ 80
+ true
+ true
+ 1
+ true
+ false
+ 0
+ true
+ true
+ 0
+ 8
+ true
+ 1
+ true
+ true
+ true
+ false
+
+
+
+ ProjectExplorer.Project.PluginSettings
+
+
+ true
+
+
+
+ ProjectExplorer.Project.Target.0
+
+ 桌面
+ 桌面
+ {f0438492-e425-48f7-8b5b-2c6fe45ffc1b}
+ 0
+ 0
+ 0
+
+ /home/kylin/devCode/30_usbFilter/upper/build-upper-unknown-Debug
+
+
+ true
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ false
+ false
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+ Build
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+ Clean
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Debug
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 2
+
+
+ /home/kylin/devCode/30_usbFilter/upper/build-upper-unknown-Release
+
+
+ true
+ QtProjectManager.QMakeBuildStep
+ false
+
+ false
+ false
+ false
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+ Build
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+ Clean
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Release
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+
+
+ /home/kylin/devCode/30_usbFilter/upper/build-upper-unknown-Profile
+
+
+ true
+ QtProjectManager.QMakeBuildStep
+ true
+
+ false
+ true
+ false
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ false
+
+
+ false
+
+ 2
+ Build
+ Build
+ ProjectExplorer.BuildSteps.Build
+
+
+
+ true
+ Qt4ProjectManager.MakeStep
+
+ true
+ clean
+
+ false
+
+ 1
+ Clean
+ Clean
+ ProjectExplorer.BuildSteps.Clean
+
+ 2
+ false
+
+ Profile
+ Qt4ProjectManager.Qt4BuildConfiguration
+ 0
+
+ 3
+
+
+ 0
+ Deploy
+ Deploy
+ ProjectExplorer.BuildSteps.Deploy
+
+ 1
+ ProjectExplorer.DefaultDeployConfiguration
+
+ 1
+
+
+ dwarf
+
+ cpu-cycles
+
+
+ 250
+
+ -e
+ cpu-cycles
+ --call-graph
+ dwarf,4096
+ -F
+ 250
+
+ -F
+ true
+ 4096
+ false
+ false
+ 1000
+
+ true
+
+ false
+ false
+ false
+ false
+ true
+ 0.01
+ 10
+ true
+ kcachegrind
+ 1
+ 25
+
+ 1
+ true
+ false
+ true
+ valgrind
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 14
+
+ 2
+
+ Qt4ProjectManager.Qt4RunConfiguration:/home/kylin/devCode/30_usbFilter/upper/upper/upper.pro
+ /home/kylin/devCode/30_usbFilter/upper/upper/upper.pro
+
+ false
+
+ false
+ true
+ true
+ false
+ false
+ true
+ false
+
+ /home/kylin/devCode/30_usbFilter/upper/build-upper-unknown-Debug
+
+ 1
+
+
+
+ ProjectExplorer.Project.TargetCount
+ 1
+
+
+ ProjectExplorer.Project.Updater.FileVersion
+ 22
+
+
+ Version
+ 22
+
+
diff --git a/usbhandler.cpp b/usbhandler.cpp
index aeec342..ccb4757 100644
--- a/usbhandler.cpp
+++ b/usbhandler.cpp
@@ -58,6 +58,7 @@ bool UsbHandler::openDevice(int deviceIndex)
// Open the selected device
libusb_device_handle *devHandle;
int status = libusb_open(deviceList[deviceIndex], &devHandle);
+ LOG_DEBUG("status is %d",status);
if (status < 0) {
emit errorOccurred("Failed to open USB device.");
return false;