How to run a Gtkmm C++ application on Windows without MSYS2?

Asked

Viewed 101 times

1

To use (as far as I know) Gtkmm graphic libraries in Windows, I have to install such libraries in MSYS2. So far so good. Every time I install and write a C++ file and compile by g++ on MSYS2, everything is compiled correctly.

The problem is this: when I run the application by MSYS2, ie. /program.exe, the application runs correctly. But when I don’t use the MSYS2, IE, caught the same executable program.exe and open it with double click, an error message is displayed saying that dlls lack like libgtk-3.0-1.dll(and others). How can I solve such a problem?

Thanks in advance.


I don’t think that will be necessary. I found in the official Gnome documentation the crucial details for the proper functioning of Gtk+ on Windows. I thank anyone who has the good faith to answer me.

Related link: wiki.gnome.org/Attic/Gtkmmonwindows

  • We do not edit the title, we mark the correct answer

1 answer

-1

The following procedure can be used to obtain the necessary Dlls:

  1. Download Listdlls
  2. Let your application run
  3. Open the Powershell window where Listdlls.exe is located
  4. Use . /Listdlls.exe commandName.exe
  5. Copy all listed paths to a text file
  6. Delete all lines containing "C: WINDOWS*" text
  7. Leave only lines that contain "C: msys64* *.dll" in your text file
  8. Open Msys2 Shell
  9. Use $ cp paste all

Care before using the command $ cp. In your text file, change " " to "/"on the paths and take the line breaks.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.