diff --git a/.gitignore b/.gitignore index f77ac51..21b052c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,406 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates +build +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml + +# Created by https://www.toptal.com/developers/gitignore/api/cmake +# Edit at https://www.toptal.com/developers/gitignore?templates=cmake + +##CMake## CMakeLists.txt.user CMakeCache.txt CMakeFiles @@ -9,6 +412,7 @@ install_manifest.txt compile_commands.json CTestTestfile.cmake _deps +##CMake## [Bb]uild/ .vscode/ diff --git a/SerialPortToolGUI.ui b/SerialPortToolGUI.ui index a434643..7cd29e5 100644 --- a/SerialPortToolGUI.ui +++ b/SerialPortToolGUI.ui @@ -914,7 +914,7 @@ thanks for serial < https://github.com/wjwwood/serial.git > A Cross-platform serial debug tool. - Copyright (C) 2021 joker2770(Jintao Yang) + Copyright (C) 2021-2024 joker2770(Jintao Yang) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/msvc/SerialPortToolGUI.sln b/msvc/SerialPortToolGUI.sln new file mode 100644 index 0000000..4b1bfa5 --- /dev/null +++ b/msvc/SerialPortToolGUI.sln @@ -0,0 +1,41 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SerialPortToolGUI", "SerialPortToolGUI.vcxproj", "{8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "serial", "..\serial\visual_studio\serial\serial.vcxproj", "{A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Debug|x64.ActiveCfg = Debug|x64 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Debug|x64.Build.0 = Debug|x64 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Debug|x86.ActiveCfg = Debug|Win32 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Debug|x86.Build.0 = Debug|Win32 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Release|x64.ActiveCfg = Release|x64 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Release|x64.Build.0 = Release|x64 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Release|x86.ActiveCfg = Release|Win32 + {8EDEAF19-44B5-4DBA-AD27-B5FD7B9F2CDA}.Release|x86.Build.0 = Release|Win32 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Debug|x64.ActiveCfg = Debug|x64 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Debug|x64.Build.0 = Debug|x64 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Debug|x86.ActiveCfg = Debug|Win32 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Debug|x86.Build.0 = Debug|Win32 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Release|x64.ActiveCfg = Release|x64 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Release|x64.Build.0 = Release|x64 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Release|x86.ActiveCfg = Release|Win32 + {A8517FB2-C74E-43BD-B3C6-B05D3FC11ECD}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {014D5816-EDB0-4D90-B9AB-16B28A475848} + EndGlobalSection +EndGlobal diff --git a/msvc/SerialPortToolGUI.vcxproj b/msvc/SerialPortToolGUI.vcxproj new file mode 100644 index 0000000..28ccd03 --- /dev/null +++ b/msvc/SerialPortToolGUI.vcxproj @@ -0,0 +1,185 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {8edeaf19-44b5-4dba-ad27-b5fd7b9f2cda} + SerialPortToolGUI + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + D:\open_sources\repos\SerialPortToolGUI\serial\include;C:\gtk-build\gtk\x64\release\include;$(ExternalIncludePath) + C:\gtk-build\gtk\x64\release\lib;$(LibraryPath) + + + D:\open_sources\repos\SerialPortToolGUI\serial\include;C:\gtk-build\gtk\x64\release\include;$(ExternalIncludePath) + C:\gtk-build\gtk\x64\release\lib;$(LibraryPath) + + + D:\open_sources\repos\SerialPortToolGUI\serial\include;C:\gtk-build\gtk\x64\release\include;$(ExternalIncludePath) + C:\gtk-build\gtk\x64\release\lib;$(LibraryPath) + + + D:\open_sources\repos\SerialPortToolGUI\serial\include;C:\gtk-build\gtk\x64\release\include;$(ExternalIncludePath) + C:\gtk-build\gtk\x64\release\lib;$(LibraryPath) + + + + Level3 + false + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + /IC:/gtk-build/gtk/x64/release/include/gtk-3.0 /IC:/gtk-build/gtk/x64/release/include/pango-1.0 /IC:/gtk-build/gtk/x64/release/include/harfbuzz /IC:/gtk-build/gtk/x64/release/include/cairo /IC:/gtk-build/gtk/x64/release/include/gdk-pixbuf-2.0 /IC:/gtk-build/gtk/x64/release/include/atk-1.0 /IC:/gtk-build/gtk/x64/release/include/glib-2.0 /IC:/gtk-build/gtk/x64/release/lib/glib-2.0/include /IC:/gtk-build/gtk/x64/release/include/freetype2 /IC:/gtk-build/gtk/x64/release/include/libpng16 /IC:/gtk-build/gtk/x64/release/include/pixman-1 /IC:/gtk-build/gtk/x64/release/include/fribidi %(AdditionalOptions) + MultiThreadedDebug + + + Console + true + $(OutDir)\serial.lib;Advapi32.lib + gtk-3.lib gdk-3.lib gdi32.lib imm32.lib shell32.lib ole32.lib winmm.lib dwmapi.lib setupapi.lib cfgmgr32.lib hid.lib winspool.lib comctl32.lib comdlg32.lib pangowin32-1.0.lib pangocairo-1.0.lib pango-1.0.lib harfbuzz.lib atk-1.0.lib cairo-gobject.lib cairo.lib gdk_pixbuf-2.0.lib gio-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib %(AdditionalOptions) + false + + + + + + + Level3 + true + true + false + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + /IC:/gtk-build/gtk/x64/release/include/gtk-3.0 /IC:/gtk-build/gtk/x64/release/include/pango-1.0 /IC:/gtk-build/gtk/x64/release/include/harfbuzz /IC:/gtk-build/gtk/x64/release/include/cairo /IC:/gtk-build/gtk/x64/release/include/gdk-pixbuf-2.0 /IC:/gtk-build/gtk/x64/release/include/atk-1.0 /IC:/gtk-build/gtk/x64/release/include/glib-2.0 /IC:/gtk-build/gtk/x64/release/lib/glib-2.0/include /IC:/gtk-build/gtk/x64/release/include/freetype2 /IC:/gtk-build/gtk/x64/release/include/libpng16 /IC:/gtk-build/gtk/x64/release/include/pixman-1 /IC:/gtk-build/gtk/x64/release/include/fribidi %(AdditionalOptions) + MultiThreaded + + + Console + true + true + true + $(OutDir)\serial.lib;Advapi32.lib + gtk-3.lib gdk-3.lib gdi32.lib imm32.lib shell32.lib ole32.lib winmm.lib dwmapi.lib setupapi.lib cfgmgr32.lib hid.lib winspool.lib comctl32.lib comdlg32.lib pangowin32-1.0.lib pangocairo-1.0.lib pango-1.0.lib harfbuzz.lib atk-1.0.lib cairo-gobject.lib cairo.lib gdk_pixbuf-2.0.lib gio-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib %(AdditionalOptions) + false + + + + + + + Level3 + false + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + /IC:/gtk-build/gtk/x64/release/include/gtk-3.0 /IC:/gtk-build/gtk/x64/release/include/pango-1.0 /IC:/gtk-build/gtk/x64/release/include/harfbuzz /IC:/gtk-build/gtk/x64/release/include/cairo /IC:/gtk-build/gtk/x64/release/include/gdk-pixbuf-2.0 /IC:/gtk-build/gtk/x64/release/include/atk-1.0 /IC:/gtk-build/gtk/x64/release/include/glib-2.0 /IC:/gtk-build/gtk/x64/release/lib/glib-2.0/include /IC:/gtk-build/gtk/x64/release/include/freetype2 /IC:/gtk-build/gtk/x64/release/include/libpng16 /IC:/gtk-build/gtk/x64/release/include/pixman-1 /IC:/gtk-build/gtk/x64/release/include/fribidi %(AdditionalOptions) + MultiThreadedDebug + + + Console + true + $(OutDir)\serial.lib;Advapi32.lib + gtk-3.lib gdk-3.lib gdi32.lib imm32.lib shell32.lib ole32.lib winmm.lib dwmapi.lib setupapi.lib cfgmgr32.lib hid.lib winspool.lib comctl32.lib comdlg32.lib pangowin32-1.0.lib pangocairo-1.0.lib pango-1.0.lib harfbuzz.lib atk-1.0.lib cairo-gobject.lib cairo.lib gdk_pixbuf-2.0.lib gio-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib %(AdditionalOptions) + false + + + + + + + Level3 + true + true + false + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + /IC:/gtk-build/gtk/x64/release/include/gtk-3.0 /IC:/gtk-build/gtk/x64/release/include/pango-1.0 /IC:/gtk-build/gtk/x64/release/include/harfbuzz /IC:/gtk-build/gtk/x64/release/include/cairo /IC:/gtk-build/gtk/x64/release/include/gdk-pixbuf-2.0 /IC:/gtk-build/gtk/x64/release/include/atk-1.0 /IC:/gtk-build/gtk/x64/release/include/glib-2.0 /IC:/gtk-build/gtk/x64/release/lib/glib-2.0/include /IC:/gtk-build/gtk/x64/release/include/freetype2 /IC:/gtk-build/gtk/x64/release/include/libpng16 /IC:/gtk-build/gtk/x64/release/include/pixman-1 /IC:/gtk-build/gtk/x64/release/include/fribidi %(AdditionalOptions) + MultiThreaded + + + Console + true + true + true + $(OutDir)\serial.lib;Advapi32.lib + gtk-3.lib gdk-3.lib gdi32.lib imm32.lib shell32.lib ole32.lib winmm.lib dwmapi.lib setupapi.lib cfgmgr32.lib hid.lib winspool.lib comctl32.lib comdlg32.lib pangowin32-1.0.lib pangocairo-1.0.lib pango-1.0.lib harfbuzz.lib atk-1.0.lib cairo-gobject.lib cairo.lib gdk_pixbuf-2.0.lib gio-2.0.lib gobject-2.0.lib glib-2.0.lib intl.lib %(AdditionalOptions) + false + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/msvc/SerialPortToolGUI.vcxproj.filters b/msvc/SerialPortToolGUI.vcxproj.filters new file mode 100644 index 0000000..9206d18 --- /dev/null +++ b/msvc/SerialPortToolGUI.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 头文件 + + + 头文件 + + + + + 源文件 + + + 源文件 + + + 源文件 + + + \ No newline at end of file diff --git a/snap/gui/serialporttoolgui.desktop b/snap/gui/serialporttoolgui.desktop index 66a8263..0cb2d4a 100644 --- a/snap/gui/serialporttoolgui.desktop +++ b/snap/gui/serialporttoolgui.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Version=0.1.06.20230108 +Version=0.1.07.20240219 Encoding=UTF-8 Name=serialporttoolgui Comment=A Cross-platform serial debug tool. diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 88006a4..d86822a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,6 @@ # # This is a snapcraft build script. -# Copyright (C) 2022-2023 Jintao Yang +# Copyright (C) 2022-2024 Jintao Yang # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -21,7 +21,7 @@ # name: serialporttoolgui # you probably want to 'snapcraft register ' -version: '0.1.06.20230420' # just for humans, typically '1.2+git' or '1.3.2' +version: '0.1.07.20240219' # just for humans, typically '1.2+git' or '1.3.2' summary: A Cross-platform serial debug tool. # 79 char long summary description: | A simple Cross-platform serial debug tool, created by Joker2770< https://github.com/Joker2770/SerialPortToolGUI.git >. diff --git a/sptsrc/main.cpp b/sptsrc/main.cpp index f7373aa..5fd1bdf 100644 --- a/sptsrc/main.cpp +++ b/sptsrc/main.cpp @@ -895,7 +895,7 @@ gboolean readDaemon(gpointer data) // printf("i_ret_r: %d\n", i_ret_r); if (i_ret_r != 0) { - usleep(50000); + // usleep(50000); return TRUE; } @@ -964,7 +964,7 @@ int main(int argc, char *argv[]) { g_printerr("Error loading file: %s\n", error->message); g_clear_error(&error); - if (gtk_builder_add_from_file(builder, "SerialPortToolGUI.ui", &error) == 0) + if (gtk_builder_add_from_file(builder, "./SerialPortToolGUI.ui", &error) == 0) { g_printerr("Error loading file: %s\n", error->message); g_clear_error(&error);