Open sagypt opened 6 years ago
sagypt, I doubt I can help but .. Can you do a search for libglib-2.0-0.dll ? You will have to turn off the "hide system files" option first. Its possible that file is not present or is in the wrong place or has a slightly different name. So, perhaps search for "libglib* ? Sorry, I am not a Windows user, (only time I ever use it is to test tomboy-ng) so my exact wording will probably be wrong. Maybe another windows user can tell us where they expect to find libglib ? Davo
Hi David, thanks for your reply.
As written above, the DLL libglib-2.0-0.dll is only contained in folder C:\Program Files (x86)\GtkSharp\2.12\bin . This path is contained in system environment variables PATH and TOMBOY_PATH_PREFIX
Hmm, again, remember I don't do windows, I notice you appear to have a 64bit system - "_PROCESSORARCHITECTURE=AMD64" but are using 32bit GTK libraries ? Are you sure thats the way it should be ? On the other hand, maybe you are running 32bit windows ? "ComSpec=C:\Windows\system32\cmd.exe" Ah, "COMPUTERNAME=VM" - are you running a 32bit version of windows in a VM on a 64bit machine ? So, guessing still. You need a path set to to where that DLL is, maybe thats covered by - "_TOMBOY_PATHPREFIX=C:\Program Files (x86)\GtkSharp\2.12\bin" ?? Maybe not ...
Perhaps, if feeling adventurous, from the command prompt, cd to the C:\Program Files (x86)\GtkSharp\2.12\bin directory and try and start Tomboy from there. Otherwise, we need to find out how to tell a windows app where to look for its DLLs. Anyone ?
Davo
You don't do Windows ... I'm not good in English ... :-D
The system is a virtual machine with x64 architecture. The OS is Windows 7 SP1 - x64.
As indicated in installation instructions, I installed GTK# for .NET downloading the package from this URL http://www.mono-project.com/download/stable/ . Only the package gtk-sharp-2.12.45.msi is available.
(I guess that) The system environment variables PATH and TOMBOY_PATH_PREFIX are correctly setted
echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\GtkSharp\2.12\bin
echo %TOMBOY_PATH_PREFIX%
C:\Program Files (x86)\GtkSharp\2.12\bin
Yes, I already tried to start Tomboy from the folder C:\Program Files (x86)\GtkSharp\2.12\bin but it doesn't starts
C:\Program Files (x86)\GtkSharp\2.12\bin>
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libglib-2.0-0.dll': The specified module could not be found. (Exception from HRESULT: 0x80
07007E)
at GLib.Marshaller.g_utf16_to_utf8(Char* native_str, IntPtr len, IntPtr items_read, IntPtr items_written, IntPtr& error)
at GLib.Marshaller.StringToPtrGStrdup(String str)
at GLib.Global.set_ProgramName(String value)
at Gtk.Application.SetPrgname()
at Gtk.Application.Init()
at Tomboy.WindowsApplication.Initialize(String locale_dir, String display_name, String process_name, String[] args) in C:\MyDocs\dev\tomboy\tomboy-github\Tom
boy\WindowsApplication.cs:line 64
at Tomboy.Application.Initialize(String locale_dir, String display_name, String process_name, String[] args) in C:\MyDocs\dev\tomboy\tomboy-github\Tomboy\Uti
ls.cs:line 1068
at Tomboy.Tomboy.Main(String[] args) in C:\MyDocs\dev\tomboy\tomboy-github\Tomboy\Tomboy.cs:line 82
Sorry sagypt, it beats me. If your VM is 64bit, I would expect you to need a 64bit DLL. But you do seem to have a lot of 32bit paths. But, sorry, its beyond me ! The main reason I started tomboy-ng rather than putting my poor efforts into the existing Tomboy was the growing problem people were having solving the various dependencies on Windows and Mac. Have you tried using tomboy-ng ? It has NO dependencies (although if you want to use the spell checker, you might need to get hunspell). I'll be pushing out a new release (v0.15)of tomboy-ng in the next week or so.
I fixed with the installation of library gtk-sharp-2.12.21.msi - URL: http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.21.msi This version of library works both x64 and x86 architecture.
The environment variable TOMBOY_PATH_PREFIX isn't necessary.
Thanks @sagypt it also worked for me! And I'm using a Windows 10.0.17134
Thanks @sagypt for finding this workaround! I uninstalled my gtksharp 2.12.45, then I downloaded and run the gtksharp 2.12.21 msi installer linked in the post by sagypt from May 13th. This solved the issue for me. I didn't need to reinstall my Tomboy installation. In other words, I simply downgraded my gtksharp from 2.12.45 to 2.12.21 and the DLL in question was immediately recognized by tomboy, which now runs fine. I report from a machine running Windows 7.
Where to find the old version of GTK# today, when all the links are uavailable. I cannot find the 2.12.21 anywhere.
Anyways, I downloaded it in the wayback machine on internetarchive.
Oh, wow, Nukedone, is it worth the effort ? Have you considered tomboy-ng ?
If you have, and rejected it, would you mind telling me why ?
Davo
Control Panel > System and Security > System > Advanced System Settings > Advanced > Environment Variables > System Variables ... TOMBOY_PATH_PREFIX
I also tried to reinstall Tomboy and libraries more times ...