[Gtk-sharp-list] Newbie question on OSX - starting up Gtk#?

Samuel Kaufman emrysk@gmail.com
Thu, 24 Feb 2005 19:47:33 -0800


--=-y09UFF490ZUoxfZ5Tn4W
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

You probably wanted to type "export PATH=/usr/bin:$PATH".  That,
however, is unnecessary in your case, as your PATH already has /usr/bin
in it.

PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin

See?

Gtk# is a library for creating cross-platform GUIs for your Mono/.NET
programs.  Gtk# itself has no executables, only libraries for you to
link with from your own code.

As Xcode doesn't yet support development with Mono, you're probably
better off using a rather advanced text editor like VIM, Emacs, or
whatever cool editor you have on a Mac for writing for your
applications.  (I think Panther actually comes with vim or gvim.)

Since you must have Gtk+ (in addition to Gtk#), you can probably find
Glade in one of those bins on your system as well.  This will help
design your GUIs.

I don't know much about Mac OS X, but I hoped this helped.  You might
also want to check out Cocoa#, here: http://www.lormyr.com/cocoaSharp/
Last I checked, it was in an early stage of development, but I believe
it's going to be included in Mono 1.2.

On Thu, 2005-02-24 at 13:50 +0100, uthin@dbmail.dk wrote:

> 
> First of all thanks are in order to roel and Jonathan Pryor for their
> answers to my earlier question ("Very newbie question about installing
> gtk# on Mac OSX 10.3.8").
> 
> Anyway...
> 
> I can't start up Gtk#.
> 
> I have installed Mono downlaoded from
> http://www.go-mono.com/archive/1.1.4/macos/MonoFramework-1.1.4.dmg.
> (It installs version 1.0.5)
> 
> I have changed my shell to bash, removed the old installation of fink
> and made a fresh installation, updated to CVS, updated to unstable,
> selfupdated,  indexed, and installed all of the remaining packages via
> fink (copy/pasted the part form the instructions on
> "http://www.mono-project.com/using/macos.html" into the Terminal).
> 
> I entered: "export
> PKG_CONFIG_PATH=/sw/lib/pkgconfig:/usr/X11R6/lib/pkgconfig" in
> Terminal and pressed return. I used env in Terminal to check for a
> result, and lo and behold, the PKG_CONFIG_PATH was there.
> 
> I entered "PATH=/usr/bin:$PATH" in Terminal and pressed return. I used
> env in Terminal to check for a result, but nothing was changed that I
> could see. My PATH still says:
> 
> PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
> 
> (Although to tell the truth, I have no idea a change would be evident
> with 'env'...)
> 
> I have downloaded 'Gtk# 1.0.6' from
> http://www.mono-project.com/downloads/index.html. I put it on m
> desktop, extracted the archive, navigated to it in the Terminal and
> entered the following
> 
> ./configure --prefix=/Library/Frameworks/Mono.framework/Versions/1.0.5
> 
> (Notice the difference in version number from the instructions on
> http://www.mono-project.com/using/macos.html.)
> 
> It did something without returning a lot of error messages. I
> rejoiced.
> I then did 'make' the same place. Again it did something without
> returning a lot of error messages. I rejoiced!
> Then I did 'make install', and again it did something without
> returning a lot of error messages, almost bringing tears in my eyes!
> 
> Lastly I entered
> "DYLD_LIBRARY_PATH=/sw/lib:/Library/Frameworks/Mono.framework/Versions/1.0.5/lib/" in Terminal (notice the DYLD, not DYLIB, and the presumably correct version number for mono).
> 
> I was all set. Onwards to glory!
> 
> Now, where do I double-click...?
> 
> I was under the impression, that all of this would install some sort
> of executable that I could either   A)   double-click, like for
> instance 'xgalaga' downloaded with fink, which opens in X11 when
> double-clicked,   B)   double-click like any other application in OSX
> (fat chance...), or   C)   open with a command of some sort, like
> "./gtk-sharp" in Terminal.
> 
> How does this work?
> 
> 
> Sincerely,
> 
> Jens Larsen
> 
> (Almost there...   :-)  )

--=-y09UFF490ZUoxfZ5Tn4W
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.4">
</HEAD>
<BODY>
You probably wanted to type &quot;export <FONT COLOR="#333333">PATH=/usr/bin:$PATH</FONT><FONT COLOR="#000000">&quot;</FONT>.&nbsp; That, however, is unnecessary in your case, as your PATH already has /usr/bin in it.<BR>
<BR>
<FONT COLOR="#000000">PATH=/sw/bin:/sw/sbin:/bin:/sbin:</FONT><FONT COLOR="#000000"><B>/usr/bin</B></FONT><FONT COLOR="#000000">:/usr/sbin:/usr/X11R6/bin</FONT><BR>
<BR>
See?<BR>
<BR>
Gtk# is a library for creating cross-platform GUIs for your Mono/.NET programs.&nbsp; Gtk# itself has no executables, only libraries for you to link with from your own code.<BR>
<BR>
As Xcode doesn't yet support development with Mono, you're probably better off using a rather advanced text editor like VIM, Emacs, or whatever cool editor you have on a Mac for writing for your applications.&nbsp; (I think Panther actually comes with vim or gvim.)<BR>
<BR>
Since you must have Gtk+ (in addition to Gtk#), you can probably find Glade in one of those bins on your system as well.&nbsp; This will help design your GUIs.<BR>
<BR>
I don't know much about Mac OS X, but I hoped this helped.&nbsp; You might also want to check out Cocoa#, here: <A HREF="http://www.lormyr.com/cocoaSharp/">http://www.lormyr.com/cocoaSharp/</A>&nbsp; Last I checked, it was in an early stage of development, but I believe it's going to be included in Mono 1.2.<BR>
<BR>
On Thu, 2005-02-24 at 13:50 +0100, uthin@dbmail.dk wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <FONT COLOR="#000000">First of all thanks are in order to roel and Jonathan Pryor for their answers to my earlier question (&quot;Very newbie question about installing gtk# on Mac OSX 10.3.8&quot;).</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Anyway...</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I can't start up Gtk#.</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I have installed Mono downlaoded from http://www.go-mono.com/archive/1.1.4/macos/MonoFramework-1.1.4.dmg. (It installs version 1.0.5)</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I have changed my shell to bash, removed the old installation of fink and made a fresh installation, updated to CVS, updated to unstable, selfupdated,&nbsp; indexed, and installed all of the remaining packages via fink (copy/pasted the part form the instructions on &quot;http://www.mono-project.com/using/macos.html&quot; into the Terminal).</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I entered: &quot;export P</FONT><FONT COLOR="#333333">KG_CONFIG_PATH=/sw/lib/pkgconfig:/usr/X11R6/lib/pkgconfig</FONT><FONT COLOR="#000000">&quot; in Terminal and pressed return. I used env in Terminal to check for a result, and lo and behold, the PKG_CONFIG_PATH was there.</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I entered &quot;</FONT><FONT COLOR="#333333">PATH=/usr/bin:$PATH</FONT><FONT COLOR="#000000">&quot; in Terminal and pressed return. I used env in Terminal to check for a result, but nothing was changed that I could see. My PATH still says:</FONT><BR>
    <BR>
    <FONT COLOR="#000000">PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin</FONT><BR>
    <BR>
    <FONT COLOR="#000000">(Although to tell the truth, I have no idea a change would be evident with 'env'...)</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I have downloaded 'Gtk# 1.0.6' from http://www.mono-project.com/downloads/index.html. I put it on m desktop, extracted the archive, navigated to it in the Terminal and entered the following</FONT><BR>
    <BR>
    <FONT COLOR="#333333">./configure --prefix=/Library/Frameworks/Mono.framework/Versions/1.0.5</FONT><BR>
    <BR>
    <FONT COLOR="#000000">(Notice the difference in version number from the instructions on http://www.mono-project.com/using/macos.html.)</FONT><BR>
    <BR>
    <FONT COLOR="#000000">It did something without returning a lot of error messages. I rejoiced.</FONT><BR>
    <FONT COLOR="#000000">I then did 'make' the same place. Again it did something without returning a lot of error messages. I rejoiced!</FONT><BR>
    <FONT COLOR="#000000">Then I did 'make install', and again it did something without returning a lot of error messages, almost bringing tears in my eyes!</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Lastly I entered &quot;</FONT><FONT COLOR="#333333">DYLD_LIBRARY_PATH=/sw/lib:/Library/Frameworks/Mono.framework/Versions/1.0.5/lib/</FONT><FONT COLOR="#000000">&quot; in Terminal (notice the DYLD, not DYLIB, and the presumably correct version number for mono).</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I was all set. Onwards to glory!</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Now, where do I double-click...?</FONT><BR>
    <BR>
    <FONT COLOR="#000000">I was under the impression, that all of this would install some sort of executable that I could either&nbsp;&nbsp; A)&nbsp;&nbsp; double-click, like for instance 'xgalaga' downloaded with fink, which opens in X11 when double-clicked,&nbsp;&nbsp; B)&nbsp;&nbsp; double-click like any other application in OSX (fat chance...), or&nbsp;&nbsp; C)&nbsp;&nbsp; open with a command of some sort, like &quot;./gtk-sharp&quot; in Terminal.</FONT><BR>
    <BR>
    <FONT COLOR="#000000">How does this work?</FONT><BR>
    <BR>
    <BR>
    <FONT COLOR="#000000">Sincerely,</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Jens Larsen</FONT><BR>
    <BR>
    <FONT COLOR="#000000">(Almost there...&nbsp;&nbsp; :-)&nbsp; )</FONT>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-y09UFF490ZUoxfZ5Tn4W--