Author Topic: GtkEvemon for Mac  (Read 35900 times)

1 Member and 6 Guests are viewing this topic.

Lebastor

  • Member 5th Class
  • *
  • Posts: 1
  • Reputation Power: 0
  • Lebastor has no influence.
GtkEvemon for Mac
« on: August 01, 2008, 09:39:54 pm »
Some on on Eve-O forums mentioned that GtkEveMon is also for Macs...
Is it possible to get a Mac binary or at least some information about getting this great app to run on Macs?

simlan

  • Local Moderator
  • Chief Petty Officer
  • *
  • Posts: 415
  • Reputation Power: 8
  • simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!
    • GtkEveMon
Re: GtkEvemon for Mac
« Reply #1 on: August 02, 2008, 08:57:59 am »
Hello!

First of, GtkEveMon definitely runs under MacOS X. There is, however, only one way of installing GtkEveMon that is reported to work. I'll describe this in short here, more details are in this thread. There is no "easy installation" available, because nobody created a working package yet. If you can provide such a package, please support the project and offer your help.


The hard way: Compiling GtkEveMon


In order to compile GtkEveMon, you need

  • A compiler. Check if the command "g++" is available. If not, you have to install XCode (see the post below).
  • X11. You have to start the compiled GtkEveMon binary in the X11 terminal.
  • You can use MacPorts or Homebrew to setup an compilation environment (see post below).
  • Check out GtkEveMon. See the download page for SVN instructions.
  • Compile. "cd gtkevemon" and "make", this should start the compilation.
  • Execute. "cd gtkevemon/src" and execute with "./gtkevemon"


The easy way: Installing GtkEveMon from a package


I'm sorry, but currently there is no MacOS X package for GtkEveMon available. If you can provide one, contact me. There is a package somewhere in this forum, but it seems to only work with MacPorts GTK installed (you get the font issue otherwise).

If you have any fixes, suggestions or questions, just ask here.

Simon
« Last Edit: March 31, 2011, 12:46:21 pm by simlan »

simlan

  • Local Moderator
  • Chief Petty Officer
  • *
  • Posts: 415
  • Reputation Power: 8
  • simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!
    • GtkEveMon
Re: GtkEvemon for Mac
« Reply #2 on: August 03, 2008, 04:21:10 am »

XCode & X11 installation


To compile the software, the developer tools from apple need to be installed if they are not on your system. You can check for the availability of the "gcc" command to find out.

"The easiest way to get a compiler is to install Developer Tools, also known as XCode. Developer Tools/XCode includes gcc. It is often found on your OS X Install CD/DVD, but if it's not, you'll have to download it from ADC. To download it from ADC, you'll have to join ADC." Try: http://developer.apple.com/technologies/xcode.html

Similarly, the X11 applications should also be available on the Installation discs, or may be downloaded.


Setting up compilation environment


For a compilation environment, MacPorts works fine. However, you may also consider using Homebrew, as it appears clearer, less bloated and thus things go faster.

If your choice was MacPorts...

Install MacPorts, add /opt/local/bin and /opt/local/sbin to your $PATH and execute

  sudo port selfupdate
  sudo port install gtkmm subversion

Fetch a beer. This will take a while.

If your choice was Homebrew...

Install Homebrew, and execute (instructions not finished yet...)

  brew install gtkmm openssl

Checkout, compile and launch

After this you should be able to compile GtkEveMon: Check out from SVN and "make". Note that you need X11 installed in order to start GtkEveMon. Start X11 from your applications / utilities, "cd" into "gtkevemon/src" and type "./gtkevemon".


Proof



Now, have fun,
Simon
« Last Edit: August 11, 2011, 03:35:01 am by simlan »

Sapphire Mote

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • Sapphire Mote has no influence.
    • Macs in EVE
Re: GtkEvemon for Mac
« Reply #3 on: August 26, 2008, 03:01:35 am »
Wow ... I'm glad you masters-of-the-coding-universe are hard at work on this issue.  Gives me something to look forward to!   :notworthy:
<img src="http://girlsonic.com/images/MiE Banner200x100.jpg">

Just launched:  Macs in EVE

45 acp

  • Member 5th Class
  • *
  • Posts: 1
  • Reputation Power: 0
  • 45 acp has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #4 on: December 19, 2008, 06:24:14 pm »
thanks for the write up simlan.  after a couple hours of dling and installing a few things, ive got it to work. 

simlan

  • Local Moderator
  • Chief Petty Officer
  • *
  • Posts: 415
  • Reputation Power: 8
  • simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!
    • GtkEveMon
Re: GtkEvemon for Mac
« Reply #5 on: December 20, 2008, 03:50:50 am »
Great, thanks for your feedback. It would be good if someone could package that thing up... so many Mac users and nobody who wants to create a package for simple installation. And that's what everybody wants, isn't it?

Simon

Lacize

  • Member 5th Class
  • *
  • Posts: 2
  • Reputation Power: 0
  • Lacize has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #6 on: January 12, 2009, 02:30:56 pm »

XCode installation


To compile the software, the developer tools from apple need to be installed if they are not on your system. You can check for the availability of the "gcc" command to find out.

"The easiest way to get a compiler is to install Developer Tools, also known as XCode. Developer Tools/XCode includes gcc. It is often found on your OS X Install CD/DVD, but if it's not, you'll have to download it from ADC. http://developer.apple.com/ To download it from ADC, you'll have to join ADC."

Login with your Apple-Login if you have one, or use accounts from BugMeNot. Download the XCode pakage. It's ~1GB of size. Pick the right version for your OS.


Setting up compilation environment


For a compilation environment, MacPorts (www.macports.org) works fine. Install MacPorts, add /opt/local/bin and /opt/local/sbin to your $PATH and execute

  sudo port selfupgrade
  sudo port install gtkmm subversion

After this you should be able to compile GtkEveMon: Check out from SVN and "make". Note that you need X11 installed in order to start GtkEveMon. Start X11 from your applications / utilities, "cd" into "gtkevemon/src" and type "./gtkevemon".


Proof



Now, have fun,
Simon

Great job Simlan, but to get the 'sudo port install gtkmm subversion' to install, I had to update to 3.1.x Xcode, and update the Xquartz beyond apple's official release.   I also had to run one command 'sudo port install xorg-libXrandr' and then it worked.  I did each command twice to make sure it was cleaning up and fully installed.  I got the heads up from the xorg-libXrandr dependency from the macports wiki/tickets at http://trac.macports.org/ticket/17360 Took me many hours, but I am sooo happy that I don't have to boot into lolwindows anymore.  GO you mac users! We are borg!  You will be assimilated! Wait... wrong OS.

simlan

  • Local Moderator
  • Chief Petty Officer
  • *
  • Posts: 415
  • Reputation Power: 8
  • simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!
    • GtkEveMon
Re: GtkEvemon for Mac
« Reply #7 on: January 13, 2009, 09:15:35 am »
Hi!

I definitely don't had to install Xquartz or xorg-libXrandr. Probably the MacPorts guys changed something. Recently, with GtkEveMon revision 80, new dependencies (zlib) has been introduced. But I can't imagine that this is causing the problems. Did you use the SVN version or the source tarball from the website?

Cheers,
Simon

Edit: Please, someone, create an OSX package. So more people mentally not able/willing to compile software from the sources can get use of this program.
« Last Edit: January 13, 2009, 09:19:29 am by simlan »

Lacize

  • Member 5th Class
  • *
  • Posts: 2
  • Reputation Power: 0
  • Lacize has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #8 on: January 13, 2009, 09:46:02 am »
I had to update xquartz (x11) and xorg-libXrandr so that the gtkmm subversion would install.  I used the svn, and I **BELIEVE** it was revision 80 for the gtkevemon. 

On the macports trac page, it says that the macports install of gtkmm has hidden dependencies (doesn't make sense to me, but hey! I am not a coder, just a tinkerer)

Also, if I had a bloomin' clue how to REALLY code, I would make a mac installer.  I might go ask around on google on how to do so.  I bet I would have to put some Xcode components in it or have a conditional that the user has to install Xcode before the package.
« Last Edit: January 13, 2009, 09:48:12 am by Lacize »

samshel

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • samshel has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #9 on: January 22, 2009, 09:25:39 am »
I have submitted a port file to install gtkevemon within macports distribution system. It should be available when the developers accept it.

samshel

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • samshel has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #10 on: January 23, 2009, 06:17:49 am »
Ok, did it.
I made a distributable version of gtkevemon per mac (the program icon is missing atm, can anyone make one?).
It is an easy and fast job using install_name_tool (does exists something like this on linux?). I made a script to copy all linked library ricorsively and relink the position to an executable-dependant position.
No need to compile the library with some specific paths, and no need to place them anywhere.
I am posting here the script and the application bundle used to create the distributable version. The problem is the size 19.6MB  :o

It works only if the xquartz version of X11 is installed (atm) because needs some library that the mac os version is not yet shipping along with their older version. Maybe in the future it will not be needed.

I have attached the bundle to be used to create the app. To use it just go to the GtkEveMon/Contents/MacOS/ folder with the terminal and use the script build.sh

Unfortunately i tested this on a macports free computer and doesn't work very well. There are problems with the fonts. If anybody has sometime to work around this...

Gimp for mac uses a different approach. At the application starts it copies all the libraries in /tmp/skl and the applications and the libraries are compiled to work there.

For now only the macports or handmage built gtkevemon works
« Last Edit: January 23, 2009, 06:21:43 am by samshel »

simlan

  • Local Moderator
  • Chief Petty Officer
  • *
  • Posts: 415
  • Reputation Power: 8
  • simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!simlan is a rising star!
    • GtkEveMon
Re: GtkEvemon for Mac
« Reply #11 on: January 27, 2009, 09:07:41 am »
Hi Samshel,

first, thanks for the package. There is an application icons which you can use. It's located in the source tree under "gtkevemon/src/icons/img_applogo.xpm". You should be able to load this file format with most image manipulation programs, e.g. with The Gimp. You can convert it then to the format OS X requires.

To avoid big binaries you can either remove the "-g" compile flag in the Makefile, or strip the binary afterwards ("strip gtkevemon", I don't know if strip is available on OS X). For the other points, I actually don't understand the way your script works and I cannot give suggestions here (where does it get the binary from?).

Maybe some other experienced users are willing to share their suggestions.

Cheers,
Simon

SlicerDicer-

  • Member 5th Class
  • *
  • Posts: 1
  • Reputation Power: 0
  • SlicerDicer- has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #12 on: February 01, 2009, 08:56:44 pm »
If anybody wishes to test this here is a complete one :)

Here is File

Let me know please :) if it works without having to compile anything and just using xquartz. I will keep a updated version there.

Well updated as far as if say mine breaks :) I sometimes check if there is updates but if its working why fix it till its broken.

Enjoy


tattooedpierre

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • tattooedpierre has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #13 on: February 08, 2009, 02:28:40 am »
Just wanted to add that I'm following this all very closely and tried out the packages that have been kindly attached in this thread.

The GtkEveMon app did run fine via X11 but I had a weird font issue; which is a shame cos other than that its perfect.

I followed the instructions above to do: sudo port install gtkmm subversion (which takes ages btw!) .. and that resolved the font issue. I've removed MacPorts and font issue is back. I'll bet its some font-lib thats missing or something silly.

I'm currently installed XQuartz/X11 2.3.2.1 and trying that out ----- no joy there, it still has the font issue.

So, that package is *almost* perfect!
« Last Edit: February 08, 2009, 09:35:04 am by tattooedpierre »

tattooedpierre

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • tattooedpierre has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #14 on: February 08, 2009, 09:11:51 am »
Just to udpate on this; I did a:

sudo port install pango

.. since I noticed the following in Console re: square fonts.

" (gtkevemon:20126): Pango-CRITICAL **: No modules found:
 No builtin or dynamically loaded modules were found.
 PangoFc will not work correctly.
 This probably means there was an error in the creation of:
   '/opt/local/etc/pango/pango.modules'
 You should create this file by running:
   pango-querymodules > '/opt/local/etc/pango/pango.modules'
 (gtkevemon:20126): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderATSUI', script='latin'
 (gtkevemon:20126): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type='PangoRenderATSUI', script='common' "

So in any case, reinstalling Pango seemed to fix all problems and I can now happily run GtkEveMon now :D

samshel

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • samshel has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #15 on: February 12, 2009, 11:44:08 pm »
MacPorts has now the gtkevemon port.
Just do: port install gtkevemon
(after a selfupdate obviusly)

The problem i was having was the same while creating a binary distribution for Mac. I should try to do it as before but compiling the pango library in the application and not just copying the libs.
« Last Edit: February 12, 2009, 11:46:45 pm by samshel »

samshel

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • samshel has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #16 on: February 13, 2009, 05:47:06 am »
For the other points, I actually don't understand the way your script works and I cannot give suggestions here (where does it get the binary from?).
It gets the library from a MacPorts installation and then changes all the linked library paths. The problem is that some paths are hardcoded inside the pango modules.


But since I got sick about the library problem i have gone the other way.
Here there are 2 files.

i) The application bundle.
It is just an "alias" to the real application. This can be used by both
MacPorts users (which did installed gtkevemon) and non port users.

ii) If you don't have gtkevemon installed with macports you are missing
all the libraries needed and other things. So there is this macports
almost automatically built package that will install those in one shot without
any need of compiling or any other effort.
It will install all the files in the folder /opt/gtkevemon
To build shuch a package you must first of all start building a macports installation from source in the prefix /opt/gtkevemon then configure it to do not autoclean ports and then use
Code: [Select]
sudo /opt/gtkevemon/bin/ mpkg gtkevemonIt takes some hours compiling every library but you will have a full gtkevemon installation

If you do it by yourselves you MUST use the package maker to slim the size! At the end of the compile the packages is >60MB!
Removing the whol perl,python_select packages and eliminating the shared and include directory from each packet makes it a lot smaller

Now i have found online some useful info on gtk+ to have a mac
interface. I'll look into it.

Don't expect me to release these version, it took 3-4 hours to compile
on my mac laptop!

tattooedpierre

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • tattooedpierre has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #17 on: February 15, 2009, 01:38:27 am »
Don't expect me to release these version, it took 3-4 hours to compile
on my mac laptop!

heh, it took a while but I'm certain it wasnt nearly as long on my iMac so I dont mind doing this every once in a while.

Leogen

  • Member 5th Class
  • *
  • Posts: 9
  • Reputation Power: 0
  • Leogen has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #18 on: February 20, 2009, 05:30:00 am »
What have i done..... ;-(


richard-skelhorns-macbook-2:gtkevemon rskelhorn$ ls
COPYING      README      checkin.pl
Makefile   TODO      src
richard-skelhorns-macbook-2:gtkevemon rskelhorn$ cd src
richard-skelhorns-macbook-2:src rskelhorn$ Make
Makefile:8: Makefile.darwin: No such file or directory
Make: *** No rule to make target `Makefile.darwin'.  Stop.
richard-skelhorns-macbook-2:src rskelhorn$ $PATH
-bash: /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory
richard-skelhorns-macbook-2:src rskelhorn$

« Last Edit: February 20, 2009, 08:22:56 am by Leogen »

tattooedpierre

  • Member 5th Class
  • *
  • Posts: 6
  • Reputation Power: 0
  • tattooedpierre has no influence.
  • Registered Member
Re: GtkEvemon for Mac
« Reply #19 on: February 20, 2009, 09:22:58 am »
What have i done..... ;-(


richard-skelhorns-macbook-2:gtkevemon rskelhorn$ ls
COPYING      README      checkin.pl
Makefile   TODO      src
richard-skelhorns-macbook-2:gtkevemon rskelhorn$ cd src
richard-skelhorns-macbook-2:src rskelhorn$ Make
Makefile:8: Makefile.darwin: No such file or directory
Make: *** No rule to make target `Makefile.darwin'.  Stop.
richard-skelhorns-macbook-2:src rskelhorn$ $PATH
-bash: /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory
richard-skelhorns-macbook-2:src rskelhorn$

Looks like you haven't set the $PATH.. do 'echo $PATH' in the terminal and check that you have it set as described in the previous posts.