Page 1 of 5

MegaTunix on OS-X (revised)

Posted: Sun Apr 11, 2010 12:32 pm
by djandruczyk
This is an updated howto for installing MegaTunix (CVS) onto OS-X.

This has been tested with OS-X 10.6 on a borrowed Intel Macbook with a core2 duo (intel) CPU.

First off.
Install OS-X (if you are starting with a bare machine)
install Xcode and X11 (they are on your install DVD)
Go to http://www.macports.org and download the appropriate release (DMG recommended) and install it (1.8.2 was current when i wrote this document)

Once macports is installed, open a terminal, and run the following commands:

Code: Select all

sudo port -v selfupdate
sudo port -v install gtkglext libglade2
The above commands will take a LONG time (several hours), best to start this and go do something, like read up on the msextra manuals, tidy up your MS install, look at that honey-do list, or whatever....

Once the above steps complete SUCCESSFULLY, megatunix should be buildable. As of this writing, 4/11/2010, to compile megatunix requires a CVS checkout, 0.9.20 and later should hopefully be compilable from the tarball.

Goto http://msextra.com/forums/viewtopic.php?f=106&t=23548 and scroll down to "Downloading and compiling MegaTunix from CVS" and continue from that point.

Re: MegaTunix on OS-X (revised)

Posted: Tue Apr 20, 2010 1:08 pm
by woza
As above it gives the following error...

Code: Select all

Making all in ecu_snapshots
make[2]: Nothing to be done for `all'.
Making all in Interrogator
Making all in Profiles
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in LookupTables
make[2]: Nothing to be done for `all'.
Making all in RealtimeMaps
make[2]: *** No rule to make target `BnG-Std.rtv_map', needed by `all-am'.  Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Re: MegaTunix on OS-X (revised)

Posted: Tue Apr 20, 2010 4:05 pm
by djandruczyk
woza wrote:As above it gives the following error...

Code: Select all

Making all in ecu_snapshots
make[2]: Nothing to be done for `all'.
Making all in Interrogator
Making all in Profiles
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in LookupTables
make[2]: Nothing to be done for `all'.
Making all in RealtimeMaps
make[2]: *** No rule to make target `BnG-Std.rtv_map', needed by `all-am'.  Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
that makes no sense as the file is in CVS, and it works here on my mac.
run "ls RealtimeMaps" from the Megatunix dir and post the contents here..

Re: MegaTunix on OS-X (revised)

Posted: Wed Apr 21, 2010 1:24 am
by woza
Thanks for your help so far.

Code: Select all

ls RealtimeMaps

Code: Select all

CVS				MSnS-Extra-HR-029x.rtv_map
MS2-Extra-2.0.x.rtv_map		Makefile
MS2-Extra-2.1.0.rtv_map		Makefile.am
MS2-Std.rtv_map			Makefile.in
MSnS-Extra-029x.rtv_map		README
So looks like the file is missing here... I have tried running the update command again and now the file is showing... Weird. Am trying to build again now.

Re: MegaTunix on OS-X (revised)

Posted: Wed Apr 21, 2010 1:29 am
by woza
And it has compiled and installed just fine now. Don't know what was going on there. Thanks for the pointer.

So confirmed working on a 1.67GHz G4 PPC running 10.5.8
Thanks
A

Re: MegaTunix on OS-X (revised)

Posted: Wed Apr 21, 2010 10:57 am
by djandruczyk
woza wrote:And it has compiled and installed just fine now. Don't know what was going on there. Thanks for the pointer.

So confirmed working on a 1.67GHz G4 PPC running 10.5.8
Thanks
A
Excellent!

Re: MegaTunix on OS-X (revised)

Posted: Wed Jun 02, 2010 6:30 pm
by krestudon
I have some problems as it gives me this compiling error:

Code: Select all

ld: unknown option: --export-dynamic
collect2: ld returned 1 exit status
make[2]: *** [mtxloader] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I have commented the "--export-dynamic" from the configure file and it worked.

Running in a MacBook Pro 2.53 GHz Core2duo with Macosx 10.6.3

I also got a segmentation fault if i try to activate "3D view" in any table, but i'm testing offline, maybe its related.

Re: MegaTunix on OS-X (revised)

Posted: Thu Jun 03, 2010 10:28 am
by djandruczyk
krestudon wrote:I have some problems as it gives me this compiling error:

Code: Select all

ld: unknown option: --export-dynamic
collect2: ld returned 1 exit status
make[2]: *** [mtxloader] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I have commented the "--export-dynamic" from the configure file and it worked.

Running in a MacBook Pro 2.53 GHz Core2duo with Macosx 10.6.3

I also got a segmentation fault if i try to activate "3D view" in any table, but i'm testing offline, maybe its related.
What version? Is this from git or a tarball?

Re: MegaTunix on OS-X (revised)

Posted: Sun Jun 20, 2010 2:49 pm
by djandruczyk
0.9.21 released today. Compiled clean on my OS-X machine.

Give it a shot, available from sourceforge. see my signature below.

Re: MegaTunix on OS-X (revised)

Posted: Mon Jun 21, 2010 2:35 am
by woza
tarball compiled & installed just fine on 10.5.8 ppc using old instructions

Code: Select all

./configure --prefix=/opt/local
make
sudo make install
Thanks...

MegaTunix on OS-X

Posted: Sun Aug 22, 2010 7:29 am
by 24c
I thought I'd give MegaTunix a whirl again, after many years ago trying to do something with a cased MicroSquirt, and a G4 PowerBook.

I am currently running OSX10.6.4 2.4Ghz Santa Rosa MacBook Pro (LED screen & a separate battery model), which is also dual boot using Windows XP SP3 for the dyno stuff.

Not being a command line person, I found the whole process using Terminal and the lack of a progress bar whilst everything was installing a little daunting.

Installed Xcode
Installed X11
Installed MacPorts (3 minutes)
Installed the Unix stuff (1.5 hours)
Installed MegaTunix (3-4 minutes) from 0.9.21 tar

and then I got stuck, but eventually after trolling a few posts, I realised I had to start up in X11. :oops:

Anyway X11 is displaying the MegaTunix splash screens etc, although I haven't hooked up the MicroSquirts yet via the USB Serial adaptors yet. Unfortunately prepping one of my bikes for a run out next few days, and need all the time on this at the workshop right now, but looking for Loctite and a cuppa brought me back to the desktop. :)

Looking good so far.

PS As I have been and still use TunerStudio in OSX, it'll be interesting to see the differences.

Re: MegaTunix on OS-X (revised)

Posted: Sun Aug 22, 2010 10:47 am
by bobbarker
I've been trying to compile from tarball and keep ending with this;

Code: Select all

Making all in category
make[2]: Nothing to be done for `all'.
Making all in icons
make[2]: Nothing to be done for `all'.
Making all in desktop
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.

Attached is the complete text from term. Any help would be appreciated I'm completely lost.

Re: MegaTunix on OS-X (revised)

Posted: Sun Aug 22, 2010 2:55 pm
by djandruczyk
bobbarker wrote:I've been trying to compile from tarball and keep ending with this;

Code: Select all

Making all in category
make[2]: Nothing to be done for `all'.
Making all in icons
make[2]: Nothing to be done for `all'.
Making all in desktop
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-am'.

Attached is the complete text from term. Any help would be appreciated I'm completely lost.

Did you run "sudo make install"

If so, just run "megatunix" in the terminal and it should run. (make sure X11 is running).

Re: MegaTunix on OS-X (revised)

Posted: Wed Aug 25, 2010 6:03 pm
by bobbarker
After erasing everything and restarting, it works!!! Thanks for the help, and awesome software.

Re: MegaTunix on OS-X (revised)

Posted: Sat Nov 27, 2010 1:40 am
by Baz
I've tried to build on my core2duo mac with fink as per your latest instructions but I've struck a strange issue. In the "about this mac" the "64 bit kernel and extensions" under software says NO, and when installing fink I chose 32 bit, however when mtx builds, and tries to link, it fails with errors about linking 64 bit mtx code with 32 bit libs. Errors pasted below:

It starts with :

Code: Select all

/bin/sh ../libtool --tag=CC   --mode=link gcc  -Wall -Wno-unused -pedantic -O2   -o gaugedemo gauge-demo.o -L/sw/lib -L/usr/X11/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -L/sw/lib -lxml2  ./libmtxgauge.la ../mtxcommon/libmtxcommon.la  -lm 
libtool: link: gcc -Wall -Wno-unused -pedantic -O2 -o gaugedemo gauge-demo.o  -L/sw/lib -L/usr/X11/lib ./.libs/libmtxgauge.a /sw/lib/libxml2.dylib ../mtxcommon/.libs/libmtxcommon.a /sw/lib/libgtk-x11-2.0.dylib /sw/lib/libgdk-x11-2.0.dylib /sw/lib/libatk-1.0.dylib /sw/lib/libgio-2.0.dylib /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/lib/pango-ft219/lib/libpangocairo-1.0.dylib /sw/lib/libcairo.dylib /sw/lib/pango-ft219/lib/libpango-1.0.dylib /sw/lib/freetype219/lib/libfreetype.dylib -lfontconfig /sw/lib/libgobject-2.0.dylib /sw/lib/libgmodule-2.0.dylib /sw/lib/libgthread-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib -lm
ld: warning: in /sw/lib/libxml2.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgtk-x11-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgdk-x11-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libatk-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgio-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgdk_pixbuf-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/pango-ft219/lib/libpangocairo-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libcairo.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/pango-ft219/lib/libpango-1.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/freetype219/lib/libfreetype.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgobject-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgmodule-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libgthread-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libglib-2.0.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /sw/lib/libintl.dylib, file was built for i386 which is not the architecture being linked (x86_64)
Undefined symbols:
  "_cairo_set_font_size", referenced from:
      _generate_gauge_background in libmtxgauge.a(gauge-private.o)
      _generate_gauge_background in libmtxgauge.a(gauge-private.o)
      _update_gauge_position in libmtxgauge.a(gauge-private.o)
  "_cairo_scale", referenced from:
      _generate_gauge_background in libmtxgauge.a(gauge-private.o)

And ends with :

Code: Select all

      _mtx_gauge_face_init_name_bindings in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_init_name_bindings in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_init_name_bindings in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_init_name_bindings in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_init in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_init in libmtxgauge.a(gauge-private.o)
  "_g_type_register_static", referenced from:
      _mtx_gauge_face_get_type in libmtxgauge.a(gauge-private.o)
  "_gdk_colormap_alloc_color", referenced from:
      _mtx_gauge_face_configure in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_configure in libmtxgauge.a(gauge-private.o)
  "_gtk_main_quit", referenced from:
      _close_demo in gauge-demo.o
      _mtx_gauge_face_key_event in libmtxgauge.a(gauge-private.o)
      _mtx_gauge_face_button_press in libmtxgauge.a(gauge-private.o)
  "_cairo_close_path", referenced from:
      _generate_gauge_background in libmtxgauge.a(gauge-private.o)
      _generate_gauge_background in libmtxgauge.a(gauge-private.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [gaugedemo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

With a lot of the same in the middle. Any pointers on how to force mtx to build in 32 bit mode despite detecting a 64 bit cpu? (even though the os is 32 bit.)

Baz.

Re: MegaTunix on OS-X (revised)

Posted: Sat Nov 27, 2010 7:50 am
by djandruczyk
What version of OS-X is this? My core2duo 13" macbook "just works",though I use macports,though fink should work, and AFAIK 10.6 is 64bit.

Re: MegaTunix on OS-X (revised)

Posted: Sat Nov 27, 2010 1:34 pm
by Baz
It is 10.6.5 but the "about this mac" box says not 64bit.

http://oi54.tinypic.com/oh7jm9.jpg
http://i54.tinypic.com/2gsr78g.jpg

Baz.

Re: MegaTunix on OS-X (revised)

Posted: Sat Nov 27, 2010 1:46 pm
by djandruczyk
Baz wrote:It is 10.6.5 but the "about this mac" box says not 64bit.

http://oi54.tinypic.com/oh7jm9.jpg
http://i54.tinypic.com/2gsr78g.jpg

Baz.
AFAIK ALL macs with 10.6 have a 64 bit OS. not all the user apps from apple are 64 bit (yet), but if you scroll down to Software->Applications in the macbook system profiler it'll show that most stuff on the box is 64 bit.

Re: MegaTunix on OS-X (revised)

Posted: Sat Nov 27, 2010 1:58 pm
by 24c
AFAIK it's 64bit aware, and it usually starts in 32bit mode, unless you tell it otherwise.
@baz, is this a 2009 MacBook? I have got MegaTunix working on an earlier Santa Rosa, and a 64bit iMac 27", but I didn't use fink.

I did a quick google for 64 bit fink OSX and I found this link, do not know if it's any help as it's a 2009 post.
http://forums.macrumors.com/showthread.php?t=720035

Re: MegaTunix on OS-X (revised)

Posted: Sat Nov 27, 2010 2:29 pm
by Baz
OK, you're right! :-( I've moved /sw to /sw32 and started again. Thanks for your good advice!
24c wrote:AFAIK it's 64bit aware, and it usually starts in 32bit mode, unless you tell it otherwise.
Ahhh, that would explain a few things! Thanks.