Gecko Dotnet install guide or video for Mac OS x

Started by benny3t3, November 01, 2010, 10:17:32 PM

Previous topic - Next topic

hawkeye2777

Are you sure libftdi installed? That's odd how those are the only two results.

Anyway, try this: http://www.megaupload.com/?d=FQIJIFYL (if you can't use this, let me know what you can use)
Currently "retired" from hacking codes.

benny3t3

#16
I am testing it now, I did install libftdi

hmm... mabey I installed them in the wrong order?

Yes, I can use it.

It loads just like it would on windows if the usbgecko were not plugged in.

hawkeye2777

#17
Did you install libusb-compat first?

EDIT: Try doing 'locate libusb'. If that doesn't find the library file for libusb, then libusb did not install (which libftdi depends on).

I wonder if MacPorts is the cause of the problem... you might have to turn to compiling from source if this doesn't work.
Currently "retired" from hacking codes.

benny3t3

#18
No, I installed libftdi first

locate libusb
[spoiler]/opt/local/lib/wine/libusbd.sys.def
/opt/local/var/macports/software/wine-devel/1.2-rc1_0+darwin_9/opt/local/lib/wine/libusbd.sys.def
/opt/local/var/macports/software/wine-devel/1.2-rc3_0/opt/local/lib/wine/libusbd.sys.def
/opt/local/var/macports/software/wine-devel/1.3.0_0/opt/local/lib/wine/libusbd.sys.def
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-compat
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-compat/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-legacy
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-legacy/Portfile
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-legacy/files
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-legacy/files/patch-Makefile.in.diff
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-legacy/files/patch-configure
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libusb-legacy/files/patch-darwin.c.diff
[/spoiler]

benny3t3

#19
when I try to run gecko dotnet, it says to use the windows version of mono to run .net  files, or something like that.

I can install the windows version I think... I'll try...

this is what happens when I use wine to run the Windows version and the version you compiled

[spoiler]wine Gecko\ dNet.exe
err:wincodecs:IcnsEncoder_CreateInstance Trying to save ICNS picture, but ICNS support is not compiled in.
fixme:ole:CoCreateInstance no instance created for interface {00000103-a8f2-4877-ba0a-fd2b6645fb94} of class {312fb6f1-b767-409d-8a6d-0fc154d4f05c}, hres is 0x80004005
err:menubuilder:convert_to_native_icon error 0x80004005 creating bitmap encoder
err:wincodecs:IcnsEncoder_CreateInstance Trying to save ICNS picture, but ICNS support is not compiled in.
fixme:ole:CoCreateInstance no instance created for interface {00000103-a8f2-4877-ba0a-fd2b6645fb94} of class {312fb6f1-b767-409d-8a6d-0fc154d4f05c}, hres is 0x80004005
err:menubuilder:convert_to_native_icon error 0x80004005 creating bitmap encoder
err:wincodecs:IcnsEncoder_CreateInstance Trying to save ICNS picture, but ICNS support is not compiled in.
fixme:ole:CoCreateInstance no instance created for interface {00000103-a8f2-4877-ba0a-fd2b6645fb94} of class {312fb6f1-b767-409d-8a6d-0fc154d4f05c}, hres is 0x80004005
err:menubuilder:convert_to_native_icon error 0x80004005 creating bitmap encoder
wine: Install the Windows version of Mono to run .NET executables[/spoiler]

hawkeye2777

#20
That's probably why libftdi doesn't show up. Try this (I think the commands are correct; if not, just refer to the package order):

sudo port install pkgconfig
sudo port install libusb
sudo port install libusb-compat
sudo port install libftdi


Afterwards, do port installed and see if those packages installed.

(Used http://guide.macports.org/#using.port as my source)

For your other post, Mono/.NET assemblies also have the ".exe" extension (so it's not just native win32 binaries that use it). Correct me if I'm wrong, but I think those assemblies are just like Java classes: they are compiled, then interpreted. So it shouldn't matter what platform the code was built on (provided the code is cross-platform). Running it using this command should work just fine:

mono gecko-dotnet.exe
Currently "retired" from hacking codes.

benny3t3

#21
AGG... I just installed sudo by accident, and I didn't make any Amins :o

benny3t3

#22
I should have the results in about 20 minutes, I am trying it on my dad's mac right now, but I need to install everything.
(though I think I know how to fix mine after lots of tries and research)

hawkeye2777

Yeah, don't mess up your install by trying to do this; I'd feel bad by telling you to do commands that I don't even know what they do.
Currently "retired" from hacking codes.

benny3t3

Don't worry about it, I'll figure it out, I just made the mistake of copy-pasting the whole 4 commands and the computer took it as        'sudo port install... sudo'

Don't ask me why... it just did.

Anyways, I'm just glad for the help, oh, and it'll be another hour, I have to install macports and it took quite longer to download than I expected... xD

Thank you Bow Master Winter Storm

benny3t3

Just... I would suggest putting a blank line between those 4 commands... or someone else might fall into the same situation.

benny3t3

#26
here is what I am still seeing on my screen (and I included my wii too) xP dunno why

after installing all 4 of those items successfully.


[spoiler]c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ mono --debug gecko-dotnet.exe
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceGetGeometry: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceGetGeometry: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceGetGeometry: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceGetGeometry: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
Sat Nov  6 19:45:25 c-67-162-84-57.hsd1.il.comcast.net mono[19851] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ mono --debug gecko-dotnet.exe
c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ [/spoiler]

and gecko dotnet in back of a window that is titled, 'connection issue'

and states 'connection to the usbgecko has failed, want to retry?'

benny3t3

#27
here is what happened when I used the config file.

[spoiler]c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ mono --config /Users/michaelyep/Desktop/gecko-dotnet_mono_osx_r16/gecko-dotnet.exe.config.rtf gecko-dotnet.exe

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeWin32Classic ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.KnownColors ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
 at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
 at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Drawing.Color.get_Black () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
 at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
 at GeckoApp.MainForm..ctor () [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) GeckoApp.MainForm:.ctor ()
 at GeckoApp.Program.Main () [0x00000] in <filename unknown>:0
c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ [/spoiler]

benny3t3

c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ port installed
The following ports are currently installed:
  libftdi @0.18_0+universal (active)
  libusb @1.0.8_0+universal (active)
  libusb-compat @0.1.3_0+universal (active)
  pkgconfig @0.25_1+universal (active)
c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$

hawkeye2777

#29
Can you do 'locate libftdi' one more time? Also, does the main Gecko.NET window come up? Can you switch tabs (e.g. to the "About" or "Tools" tab) without a connection?

EDIT: As a last resort, if this doesn't work, I can think of another way you can use to hack codes. Not very convenient, but it'll work. Hopefully we won't come to that point.
Currently "retired" from hacking codes.