Mono: can my GTK-app be executed on Windows-64bit?










0















I have created an Application in Linux 64bit with MonoDevelop, GTK#2 as GTK2-Project.



I am able to make an executable, the platform-target is "AnyCPU" (I have removed Posix references and GetText()-support), but I have also tried "x64".



  1. This executable can be executed on Linux 64bit (terminal: mono App.exe)

  2. This executable can be executed on Windows 32bit (terminal: mono App.exe)

  3. This executable CANNOT be run on Windows 64bit (terminal: mono App.exe)
    brings error:

Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll



I have installed the GTK+ for Windows Runtime Environment on both machines, Windows 32bit and Windows 64bit.



In fact I have found this DLL libglib-2.0-0.dll on the GTK/bin-path and also have copied it to my executable-folder, even though it is set in the PATH environment variable.



Anyway, I get the same error message, but only in Windows 64bit.



Do I have a chance of making my GTK app to be running with Windows 64bit?



Is there a different libglib-2.0-0.dll for Windows x64 and how can I obtain this?










share|improve this question




























    0















    I have created an Application in Linux 64bit with MonoDevelop, GTK#2 as GTK2-Project.



    I am able to make an executable, the platform-target is "AnyCPU" (I have removed Posix references and GetText()-support), but I have also tried "x64".



    1. This executable can be executed on Linux 64bit (terminal: mono App.exe)

    2. This executable can be executed on Windows 32bit (terminal: mono App.exe)

    3. This executable CANNOT be run on Windows 64bit (terminal: mono App.exe)
      brings error:

    Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll



    I have installed the GTK+ for Windows Runtime Environment on both machines, Windows 32bit and Windows 64bit.



    In fact I have found this DLL libglib-2.0-0.dll on the GTK/bin-path and also have copied it to my executable-folder, even though it is set in the PATH environment variable.



    Anyway, I get the same error message, but only in Windows 64bit.



    Do I have a chance of making my GTK app to be running with Windows 64bit?



    Is there a different libglib-2.0-0.dll for Windows x64 and how can I obtain this?










    share|improve this question


























      0












      0








      0








      I have created an Application in Linux 64bit with MonoDevelop, GTK#2 as GTK2-Project.



      I am able to make an executable, the platform-target is "AnyCPU" (I have removed Posix references and GetText()-support), but I have also tried "x64".



      1. This executable can be executed on Linux 64bit (terminal: mono App.exe)

      2. This executable can be executed on Windows 32bit (terminal: mono App.exe)

      3. This executable CANNOT be run on Windows 64bit (terminal: mono App.exe)
        brings error:

      Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll



      I have installed the GTK+ for Windows Runtime Environment on both machines, Windows 32bit and Windows 64bit.



      In fact I have found this DLL libglib-2.0-0.dll on the GTK/bin-path and also have copied it to my executable-folder, even though it is set in the PATH environment variable.



      Anyway, I get the same error message, but only in Windows 64bit.



      Do I have a chance of making my GTK app to be running with Windows 64bit?



      Is there a different libglib-2.0-0.dll for Windows x64 and how can I obtain this?










      share|improve this question
















      I have created an Application in Linux 64bit with MonoDevelop, GTK#2 as GTK2-Project.



      I am able to make an executable, the platform-target is "AnyCPU" (I have removed Posix references and GetText()-support), but I have also tried "x64".



      1. This executable can be executed on Linux 64bit (terminal: mono App.exe)

      2. This executable can be executed on Windows 32bit (terminal: mono App.exe)

      3. This executable CANNOT be run on Windows 64bit (terminal: mono App.exe)
        brings error:

      Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll



      I have installed the GTK+ for Windows Runtime Environment on both machines, Windows 32bit and Windows 64bit.



      In fact I have found this DLL libglib-2.0-0.dll on the GTK/bin-path and also have copied it to my executable-folder, even though it is set in the PATH environment variable.



      Anyway, I get the same error message, but only in Windows 64bit.



      Do I have a chance of making my GTK app to be running with Windows 64bit?



      Is there a different libglib-2.0-0.dll for Windows x64 and how can I obtain this?







      mono gtk monodevelop gtk#






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 12:35







      ProfP30

















      asked Nov 12 '18 at 12:29









      ProfP30ProfP30

      134




      134






















          1 Answer
          1






          active

          oldest

          votes


















          0














          It's certainly possible to run a Gtk# 2 application on 64-bit windows, but it requires a bit of work. It appears you've already obtained the necessary .Net assemblies, and the native Win64 Gtk+ DLLs that are needed, but you also need an additional set of 64-bit native "glue" DLLs. I have not yet found a good source for these in pre-compiled form in any of my searches, but it is possible to build them from the gtk-sharp source.






          share|improve this answer























          • Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

            – Eric Zurcher
            Nov 14 '18 at 4:20












          • Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

            – ProfP30
            Nov 14 '18 at 16:57











          • Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

            – ProfP30
            Nov 14 '18 at 18:29












          • The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

            – Eric Zurcher
            Nov 15 '18 at 4:57












          • Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

            – Eric Zurcher
            Nov 15 '18 at 5:18










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53262226%2fmono-can-my-gtk-app-be-executed-on-windows-64bit%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          It's certainly possible to run a Gtk# 2 application on 64-bit windows, but it requires a bit of work. It appears you've already obtained the necessary .Net assemblies, and the native Win64 Gtk+ DLLs that are needed, but you also need an additional set of 64-bit native "glue" DLLs. I have not yet found a good source for these in pre-compiled form in any of my searches, but it is possible to build them from the gtk-sharp source.






          share|improve this answer























          • Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

            – Eric Zurcher
            Nov 14 '18 at 4:20












          • Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

            – ProfP30
            Nov 14 '18 at 16:57











          • Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

            – ProfP30
            Nov 14 '18 at 18:29












          • The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

            – Eric Zurcher
            Nov 15 '18 at 4:57












          • Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

            – Eric Zurcher
            Nov 15 '18 at 5:18















          0














          It's certainly possible to run a Gtk# 2 application on 64-bit windows, but it requires a bit of work. It appears you've already obtained the necessary .Net assemblies, and the native Win64 Gtk+ DLLs that are needed, but you also need an additional set of 64-bit native "glue" DLLs. I have not yet found a good source for these in pre-compiled form in any of my searches, but it is possible to build them from the gtk-sharp source.






          share|improve this answer























          • Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

            – Eric Zurcher
            Nov 14 '18 at 4:20












          • Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

            – ProfP30
            Nov 14 '18 at 16:57











          • Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

            – ProfP30
            Nov 14 '18 at 18:29












          • The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

            – Eric Zurcher
            Nov 15 '18 at 4:57












          • Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

            – Eric Zurcher
            Nov 15 '18 at 5:18













          0












          0








          0







          It's certainly possible to run a Gtk# 2 application on 64-bit windows, but it requires a bit of work. It appears you've already obtained the necessary .Net assemblies, and the native Win64 Gtk+ DLLs that are needed, but you also need an additional set of 64-bit native "glue" DLLs. I have not yet found a good source for these in pre-compiled form in any of my searches, but it is possible to build them from the gtk-sharp source.






          share|improve this answer













          It's certainly possible to run a Gtk# 2 application on 64-bit windows, but it requires a bit of work. It appears you've already obtained the necessary .Net assemblies, and the native Win64 Gtk+ DLLs that are needed, but you also need an additional set of 64-bit native "glue" DLLs. I have not yet found a good source for these in pre-compiled form in any of my searches, but it is possible to build them from the gtk-sharp source.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 4:04









          Eric ZurcherEric Zurcher

          173




          173












          • Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

            – Eric Zurcher
            Nov 14 '18 at 4:20












          • Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

            – ProfP30
            Nov 14 '18 at 16:57











          • Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

            – ProfP30
            Nov 14 '18 at 18:29












          • The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

            – Eric Zurcher
            Nov 15 '18 at 4:57












          • Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

            – Eric Zurcher
            Nov 15 '18 at 5:18

















          • Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

            – Eric Zurcher
            Nov 14 '18 at 4:20












          • Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

            – ProfP30
            Nov 14 '18 at 16:57











          • Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

            – ProfP30
            Nov 14 '18 at 18:29












          • The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

            – Eric Zurcher
            Nov 15 '18 at 4:57












          • Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

            – Eric Zurcher
            Nov 15 '18 at 5:18
















          Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

          – Eric Zurcher
          Nov 14 '18 at 4:20






          Perhaps I should mention that there is a way to get a copy of the "glue" DLLs for Win64 that I have already compiled. They're included in our "APSIM Next Generation" software product, which is freely available but requires registration. Go to <apsim.info/Products/ProductRegistration.aspx> then select "APSIM" as the product and "Next Generation (Windows)" as the version. This will give you access to the installer, and the installed software will include the DLLs you need. I really ought to make these available on our github site as a public service, but I haven't done so yet.

          – Eric Zurcher
          Nov 14 '18 at 4:20














          Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

          – ProfP30
          Nov 14 '18 at 16:57





          Thank you very much for you answer! I nearly lost all my hope. I will check this out and come back with a reply and set your reply as solution accordingly.

          – ProfP30
          Nov 14 '18 at 16:57













          Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

          – ProfP30
          Nov 14 '18 at 18:29






          Hi Eric, installed your app but by no means found something like "libglib-2.0-0.dll". Which kind of DLLs do you exactly mean? I am looking for the GTK2 dlls for Win64 and currently using these ones (local references inside my project): System.dll System.Data.dll atk-sharp.dll gdk-sharp.dll glib-sharp.dll gtk-sharp.dll Mono.Data.Sqlite.dll The original error message is: Unhandled Exception: System.DllNotFoundException: libglib-2.0-0.dll

          – ProfP30
          Nov 14 '18 at 18:29














          The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

          – Eric Zurcher
          Nov 15 '18 at 4:57






          The installer should have created a folder named something like C:Program FilesAPSIM2018.10.23.3165 (the numbers will vary depending on the version you got). This will have a Bin sub-folder within it with all the necessary DLLs (including libglib-2.0-0.dll), along with a bunch of others you won't need. For the most part, you'll need those with a name starting with "lib", and those with "sharp" somewhere in the filename.

          – Eric Zurcher
          Nov 15 '18 at 4:57














          Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

          – Eric Zurcher
          Nov 15 '18 at 5:18





          Oh, and also gtkdotnet.dll and Mono.Cairo.dll. There are around 40 DLLs in total for Gtk# support.

          – Eric Zurcher
          Nov 15 '18 at 5:18

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53262226%2fmono-can-my-gtk-app-be-executed-on-windows-64bit%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto