Gecko Dotnet install guide or video for Mac OS x

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

Previous topic - Next topic

benny3t3

#30
Yes, I can switch between tabs, but sometimes it won't load up right, and then it can quit, but only sometimes.

here is the locate libftdi

[spoiler]c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ locate libftdi
/opt/local/bin/libftdi-config
/opt/local/lib/libftdi.1.dylib
/opt/local/lib/libftdi.a
/opt/local/lib/libftdi.dylib
/opt/local/lib/libftdi.la
/opt/local/lib/pkgconfig/libftdi.pc
/opt/local/var/macports/distfiles/libftdi
/opt/local/var/macports/distfiles/libftdi/libftdi-0.18.tar.gz
/opt/local/var/macports/software/libftdi
/opt/local/var/macports/software/libftdi/0.18_0+universal
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/baud_test
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/bitbang
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/bitbang2
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/bitbang_cbus
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/bitbang_ft2232
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/find_all
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/libftdi-config
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/serial_read
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/bin/simple
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/include
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/include/ftdi.h
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib/libftdi.1.dylib
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib/libftdi.a
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib/libftdi.dylib
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib/libftdi.la
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib/pkgconfig
/opt/local/var/macports/software/libftdi/0.18_0+universal/opt/local/lib/pkgconfig/libftdi.pc
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libftdi
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libftdi/Portfile
c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ [/spoiler]

hawkeye2777

Cool, that was the output I was looking for. So libftdi is installed okay. Next up, create a file called 'gecko-dotnet.exe.config' (make sure it only has the .config extension) in the same directory as gecko-dotnet.exe. Edit it and add the following:

<configuration>
   <dllmap dll="ftdi" target="/opt/local/lib/libftdi.dylib" />
</configuration>


Hopefully, GDN will connect to the USB Gecko now. If not, try running as admin and see if that works.

*Actually, I just realized that build of GDN is compiled for an older version of Mono... might be the reason for stability issues. If it becomes a problem, I'll upgrade my Mono install and recompile.
Currently "retired" from hacking codes.

benny3t3

#32
Darn. It won't even load with the config file

[spoiler]c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ mono gecko-dotnet.exe
System.Xml.XmlException: Text node cannot appear in this state.  Line 1, position 1.
 at Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace) [0x00000] in <filename unknown>:0
 at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
 at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
 at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
 at System.Xml.XmlReader.MoveToContent () [0x00000] in <filename unknown>:0
 at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0
 at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0
 at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0
 at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0
 at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0
 at System.Configuration.ConfigurationManager.OpenMappedExeConfiguration (System.Configuration.ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel) [0x00000] in <filename unknown>:0
 at System.Configuration.CustomizableFileSettingsProvider.LoadProperties (System.Configuration.ExeConfigurationFileMap exeMap, System.Configuration.SettingsPropertyCollection collection, ConfigurationUserLevel level, System.String sectionGroupName, Boolean allowOverwrite, System.String groupName) [0x00000] in <filename unknown>:0
 at System.Configuration.CustomizableFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection collection) [0x00000] in <filename unknown>:0
 at System.Configuration.LocalFileSettingsProvider.GetPropertyValues (System.Configuration.SettingsContext context, System.Configuration.SettingsPropertyCollection properties) [0x00000] in <filename unknown>:0
 at System.Configuration.ApplicationSettingsBase.CacheValuesByProvider (System.Configuration.SettingsProvider provider) [0x00000] in <filename unknown>:0
 at System.Configuration.ApplicationSettingsBase.GetPropertyValue (System.String propertyName) [0x00000] in <filename unknown>:0
 at System.Configuration.ApplicationSettingsBase.get_Item (System.String propertyName) [0x00000] in <filename unknown>:0
 at GeckoApp.Properties.Settings.get_MemViewAddr () [0x00000] in <filename unknown>:0
 at GeckoApp.Disassembly..ctor (FTDIUSBGecko.USBGecko UGecko, System.String UVdappPath, System.Windows.Forms.ListBox UMainBox, System.Windows.Forms.VScrollBar UScroll, System.Windows.Forms.TextBox UAInput, System.Windows.Forms.TextBox UASAddress, System.Windows.Forms.TextBox UASText, GeckoApp.ExceptionHandler UEXCHandler) [0x00000] in <filename unknown>:0
 at GeckoApp.MainForm.MainForm_Load (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
System.NullReferenceException: Object reference not set to an instance of an object
 at GeckoApp.MainForm.MainForm_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.FireClosingEvents (CloseReason reason, Boolean cancel) [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:FireClosingEvents (System.Windows.Forms.CloseReason,bool)
 at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Application.Exit () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.OnCreateControl () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.CreateControl () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
 at GeckoApp.MainForm.MainForm_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.FireClosingEvents (CloseReason reason, Boolean cancel) [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:FireClosingEvents (System.Windows.Forms.CloseReason,bool)
 at System.Windows.Forms.Application.Exit (System.ComponentModel.CancelEventArgs e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Application.Exit () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Application.OnThreadException (System.Exception t) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.NativeWindow.OnThreadException (System.Exception e) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.XplatUICarbon.SendMessage (IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.XplatUICarbon.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.XplatUI.CreateWindow (System.Windows.Forms.CreateParams cp) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.NativeWindow.CreateHandle (System.Windows.Forms.CreateParams cp) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.CreateHandle () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.CreateHandle () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.CreateControl () [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] in <filename unknown>:0
 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
 at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0
 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <filename unknown>:0
 at GeckoApp.Program.Main () [0x00000] in <filename unknown>:0
c-67-162-84-57:gecko-dotnet_mono_osx_r16 michaelyep$ [/spoiler]

benny3t3

#33
oh and, could you or anyone help me correct my sudoers file possibly?

i keep on getting this error.

sudo: parse error in /opt/local/etc/sudoers near line 103
sudo: no valid sudoers sources found, quitting
ben-yeps-macbook-2:etc benyep$

I figured out how to edit my sudoers file without visudo,
here is the contents of my sudoers file,
[spoiler]
#
## sudoers file.
##
## This file MUST be edited with the 'visudo' command as root.
## Failure to use 'visudo' may result in syntax or file permission errors
## that prevent sudo from running.
##
## See the sudoers man page for the details on how to write a sudoers file.
##

##
## Host alias specification
##
## Groups of machines. These may include host names (optionally with wildcards),
## IP addresses, network numbers or netgroups.
# Host_Alias   WEBSERVERS = www1, www2, www3

##
## User alias specification
##
## Groups of users.  These may consist of user names, uids, Unix groups,
## or netgroups.
User_Alias   ADMINS = benyep, christine

##
## Cmnd alias specification
##
## Groups of commands.  Often used to group related commands together.
# Cmnd_Alias   PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
#              /usr/bin/pkill, /usr/bin/top

##
## Defaults specification
##
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
## Locale settings
# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
##
## Run X applications through sudo; HOME is used to find the
## .Xauthority file.  Note that other programs use HOME to find   
## configuration files and this may lead to privilege escalation!
# Defaults env_keep += "HOME"
##
## X11 resource path settings
# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
##
## Desktop path settings
# Defaults env_keep += "QTDIR KDEDIR"
##
## Allow sudo-run commands to inherit the callers' ConsoleKit session
# Defaults env_keep += "XDG_SESSION_COOKIE"
##
## Uncomment to enable special input methods.  Care should be taken as
## this may allow users to subvert the command being run via sudo.
# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
##
## Uncomment to enable logging of a command's output, except for
## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
# Defaults log_output
# Defaults!/usr/bin/sudoreplay !log_output
# Defaults!/usr/local/bin/sudoreplay !log_output
# Defaults!/sbin/reboot !log_output

Defaults   env_reset
Defaults   env_keep += "BLOCKSIZE"
Defaults   env_keep += "COLORFGBG COLORTERM"
Defaults   env_keep += "__CF_USER_TEXT_ENCODING"
Defaults   env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
Defaults   env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
Defaults   env_keep += "LINES COLUMNS"
Defaults   env_keep += "LSCOLORS"
Defaults   env_keep += "SSH_AUTH_SOCK"
Defaults   env_keep += "TZ"
Defaults   env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
Defaults   env_keep += "EDITOR VISUAL"

##
## Runas alias specification
##

##
## User privilege specification
##
root ALL=(ALL) ALL
%admin   ALL=(ALL) ALL

## Uncomment to allow members of group wheel to execute any command
# %wheel  ALL=(ALL) ALL

## Same thing without a password
%wheel  ALL=(ALL) NOPASSWD: ALL

## Uncomment to allow members of group sudo to execute any command
%sudo  ALL=(ALL) ALL

## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
Defaults targetpw
ALL ALL=(ALL) ALL

## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
[/spoiler]

and is there anyhting else that needs to be adjusted?
Sorry if this is a little off track.

benny3t3



hawkeye2777

Can't help you with the driver; guess I'm not used to needing them after using Linux so much. I'm just used to the kernel supporting my stuff out of the box.

For the config file thing, it might be an issue with the Mono version that I compiled GDN for. I might try and recompile it on Mono 2.8.x and see if that makes a difference.

I'm not sure how the OS X sudoers file is compared to the Linux one as far as differences are concerned, but you should only edit it using visudo. To fix this, see if this will help.

EDIT: Think I thought of another reason why the config file did not load: can you upload that config file for me? I'd like to take a look at it.
Currently "retired" from hacking codes.

benny3t3

I always get this response from Wiird.

The attachments upload directory is not writable. Your attachment or avatar cannot be saved.

hawkeye2777

Quote from: benny3t3 on November 09, 2010, 02:16:18 AM
I always get this response from Wiird.

The attachments upload directory is not writable. Your attachment or avatar cannot be saved.

Just upload it to megaupload, etc. That should work fine.
Currently "retired" from hacking codes.

benny3t3

Here you go!

http://www.megaupload.com/?d=R120U6V3

hmm... it says it is temporarily unavaliable.. -has never used megaupload before.

hawkeye2777

Quote from: benny3t3 on November 10, 2010, 11:07:57 PM
Here you go!

http://www.megaupload.com/?d=R120U6V3

hmm... it says it is temporarily unavaliable.. -has never used megaupload before.

Looks like my guess was right... you saved the file as a Rich Text file. It needs to be saved as Plain Text. That's why it would not load.
Currently "retired" from hacking codes.

benny3t3

okay, I thought by getting rid of the rtf extention would do it... but I know better than that. -facepalm-
well, good news is I got my OWN computer back, admin and all.

So I can get to that much faster now. I do know how to save it as a plain text, I have done this before. I need to install macports and so on and so forth first.

benny3t3

Yes! It worked!!!...More or less!

It connects, it can pause/run games, but after a search it will quit and show this:

[spoiler]christine-caridis-macbook-9:gecko-dotnet_mono_osx_r16 christinecaridi$ mono gecko-dotnet.exe

** (gecko-dotnet.exe:9698): WARNING **: The following assembly referenced from /Users/christinecaridi/Desktop/gecko-dotnet_mono_osx_r16/gecko-dotnet.exe could not be loaded:
     Assembly:   Ionic.Zip.Reduced    (assemblyref_index=6)
     Version:    1.9.1.5
     Public Key: edbe51ad942a3f5c
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/Users/christinecaridi/Desktop/gecko-dotnet_mono_osx_r16/).


** (gecko-dotnet.exe:9698): WARNING **: Could not load file or assembly 'Ionic.Zip.Reduced, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' or one of its dependencies.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Ionic.Zip.Reduced, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' or one of its dependencies.
File name: 'Ionic.Zip.Reduced, Version=1.9.1.5, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c'
  at GeckoApp.SearchHistoryManager.SaveSearch (Int32 index, System.Collections.Generic.List`1 resultsList, FTDIUSBGecko.Dump searchDump) [0x00000] in <filename unknown>:0
  at GeckoApp.SearchHistoryManager.SaveSearchBackground (System.Object searchItem) [0x00000] in <filename unknown>:0
[/spoiler]

I am using Kirby's Epic Yarn (NTSC-U)

Oh, and the buttons are all overlapping eachother and it also quits when not connected to the usb gecko when I jump to different tabs sometimes... ( and when I am)

speed is pretty good though.

stability issue?

dcx2

Not a stability issue.  Ionic.Zip.Reduced is the library that's used to compress search results to provide search result histories.  You're missing it for some reason.

Find the file "Ionic.Zip.Reduced.dll" and put it in the same directory as the Gecko.NET executable.

hawkeye2777

#44
Whoops, that's an epic fail on my part: sorry. I'll upload a fixed tarball.

EDIT: http://www.megaupload.com/?d=2I1BGILK

Concerning the buttons, you'll have to resize the window; the way Mono renders Winforms makes GDN need a larger window resolution.

And yeah, it does the same thing for me when clicking on the different tabs when I'm disconnected. It usually only happens on "Disassembly" for me though.
Currently "retired" from hacking codes.