DEPRECATED ... install MegaTunix on OS-X

Questions specific to Megatunix - alternate tuning software that runs on unix and windows.
Note that Megatunix is obsolete.

Moderator: djandruczyk

Did this work and was it easy to follow?

Yes and it was easy
9
56%
Yes, but it was a pain in the butt!
2
13%
No, I failed miserably and donno what to do
5
31%
I had my son/daughter do it for me
0
No votes
 
Total votes : 16

Re: The BEST way to install MegaTunix on OS-X

Postby damogti » Sun Nov 16, 2008 8:15 am

Hi tried manually entering the path for both folders I have and this is what I got...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
damian-packers-macbook-pro:~ damianpacker$ tar xvzf megatunix-0.9.17 2
tar (child): megatunix-0.9.17: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: 2: Not found in archive
tar: Error exit delayed from previous errors
damian-packers-macbook-pro:~ damianpacker$

Thanks in advance for the help

Damo
damogti
MS/Extra Newbie
 
Posts: 8
Joined: Thu Nov 13, 2008 12:31 pm

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Sun Nov 16, 2008 9:32 am

damogti wrote:Hi I did hit tab and thats what it put in there I'll try manually putting the tar extension on and see what happens. In my home directory I have: Megatunix-0.9.17 2 folder and a megatunix-0.9.17.tar I'm not sure if I downloaded the right file from the two listed on the site so I'll fill in the command manually and see what happens. Also do I have to type all the commands written on the instructions in one line before hitting enter?

Damo



If you have a megatunix-0.9.17 dir you ALREADY untarred it. just "cd" into the directory, and run the ./configure ; make ; make instlal steps as described in the howto.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby damogti » Sun Nov 16, 2008 11:14 am

Did that and it appears to have worked thanks for helping me with my dumb moments... The only issue I have not is that I can not get anything to run from xterm...

This is what I am doing most probably very wrong
bash-3.2$ run megatunix
bash: run: command not found
bash-3.2$ megatunix
bash: megatunix: command not found
bash-3.2$ "megatunix"
bash: megatunix: command not found
bash-3.2$ run: "megatunix"
bash: run:: command not found
bash-3.2$ run
bash: run: command not found
bash-3.2$ gaugedesigner
bash: gaugedesigner: command not found
bash-3.2$ open "megatunix"
The file /Users/damianpacker/megatunix does not exist.
bash-3.2$ run "megatunix"
bash: run: command not found
bash-3.2$ run: "megatunix"
bash: run:: command not found
bash-3.2$ run dashdesigner

Thanks in advance

Damo
damogti
MS/Extra Newbie
 
Posts: 8
Joined: Thu Nov 13, 2008 12:31 pm

Re: The BEST way to install MegaTunix on OS-X

Postby damogti » Sun Nov 16, 2008 11:56 am

Right got it working navigated through the finder to get there. But do keep getting the dash designer shut down when I am reviewing the gauges this error keeps coming up...
(gaugedesigner:23731): Gtk-WARNING **: Unable to find default local directory monitor type

Not sure what it means though. Do you have a users manual for megatunix?

Thanks in advance.

Damo
damogti
MS/Extra Newbie
 
Posts: 8
Joined: Thu Nov 13, 2008 12:31 pm

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Sun Nov 16, 2008 2:35 pm

damogti wrote:Right got it working navigated through the finder to get there. But do keep getting the dash designer shut down when I am reviewing the gauges this error keeps coming up...
(gaugedesigner:23731): Gtk-WARNING **: Unable to find default local directory monitor type

Not sure what it means though. Do you have a users manual for megatunix?

Thanks in advance.

Damo



did you run "./configure ; make ; sudo make install" from the megatunix-0.9.17 directory? The binaries should either be in one of three possible places:
/usr/local/bin
/sw/local/bin
/sw/bin

I have no manual for megatunix, as well it was supposed to be relatively easy to install for those with very basic command line knowledge. It's more difficult on OS-X because of that platform's quirks.

does megatunix even run? (it should be in one of the above directories) If it does but the gaugedesigner doesn't thats unusual. IF neither run, it means your missing an important pre-requisite (like X11, or you forgot to start X11)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby damogti » Mon Nov 17, 2008 12:10 pm

Hi Megatunix does work as does the gauge designer and dash designer. I get that warning when using the dash designer on opening the first two dash designs already available. As for the manual I meant for actually using Megatunix not installing sorry for the confusion. It seems relatively easy it's just nice to have an idiots guide to refer to when using. ;-)

Thanks for the help so far. Just need to get a dash loaded into megatunix now as it does not let with out an ecu connected I'm guessing that is because the module is not connected.

Damo
damogti
MS/Extra Newbie
 
Posts: 8
Joined: Thu Nov 13, 2008 12:31 pm

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Mon Nov 17, 2008 5:10 pm

damogti wrote:Hi Megatunix does work as does the gauge designer and dash designer. I get that warning when using the dash designer on opening the first two dash designs already available. As for the manual I meant for actually using Megatunix not installing sorry for the confusion. It seems relatively easy it's just nice to have an idiots guide to refer to when using. ;-)

Thanks for the help so far. Just need to get a dash loaded into megatunix now as it does not let with out an ecu connected I'm guessing that is because the module is not connected.

Damo



Dash's aren't normally allowed to be opened in offline mode as there's no source of data (ECU) to drive them.
megatunix doesn't have a manual as it was designed to TRY and be as intuitive as possible. There are some interactive screenshots on the sourceforge site that can be useful.

The screenshots are somewhat old, but still relevant.
http://megatunix.sourceforge.net/screenshots/index.php
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby damogti » Sun Nov 30, 2008 1:37 pm

thanks for all the help got it running fine now. good work an impressive bit of kit!

Damo
damogti
MS/Extra Newbie
 
Posts: 8
Joined: Thu Nov 13, 2008 12:31 pm

Re: The BEST way to install MegaTunix on OS-X

Postby pw36889 » Mon May 18, 2009 3:27 pm

Hi there, I follow all the instruction giving for installing MegaTunix on OS-X.

I am using the Xcode 3.1.2 with the Mac OS X version 10.5.7. Did downloaded DarwinPorts and untar the megatune code 9.18.

It has been a long time that I have compile C code so you will have to help with that.

Alright, after open a terminal window and ¨cd¨to the proper directory here's what I have following these steps or command:

>sudo port -d selfupdate

...
tests/test/variants/
tests/test/xcodeversion/

sent 344 bytes received 7243 bytes 5058.00 bytes/sec
total size is 4061730 speedup is 535.35
DEBUG: couldn't open "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1/base/config/dp_version": no such file or directory
while executing
"open [file join $dp_base_path config/dp_version] r"
(procedure "darwinports::selfupdate" line 45)
invoked from within
"darwinports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: selfupdate failed: couldn't open "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1/base/config/dp_version": no such file or directory

then the next command:

>sudo port install gtkglext libglade2

Cristine:src savoiemartel$ sudo port install gtkglext libglade2
Warning: Group file could not be located.
Error: Unable to execute port: invalid command name "use_parallel_build"

Can someone help me with that?

Thanks
pw36889
MS/Extra Newbie
 
Posts: 2
Joined: Mon May 18, 2009 3:07 pm

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Mon May 18, 2009 5:03 pm

pw36889 wrote:Hi there, I follow all the instruction giving for installing MegaTunix on OS-X.

I am using the Xcode 3.1.2 with the Mac OS X version 10.5.7. Did downloaded DarwinPorts and untar the megatune code 9.18.

It has been a long time that I have compile C code so you will have to help with that.

Alright, after open a terminal window and ¨cd¨to the proper directory here's what I have following these steps or command:

>sudo port -d selfupdate

...
tests/test/variants/
tests/test/xcodeversion/

sent 344 bytes received 7243 bytes 5058.00 bytes/sec
total size is 4061730 speedup is 535.35
DEBUG: couldn't open "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1/base/config/dp_version": no such file or directory
while executing
"open [file join $dp_base_path config/dp_version] r"
(procedure "darwinports::selfupdate" line 45)
invoked from within
"darwinports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: selfupdate failed: couldn't open "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1/base/config/dp_version": no such file or directory

then the next command:

>sudo port install gtkglext libglade2

Cristine:src savoiemartel$ sudo port install gtkglext libglade2
Warning: Group file could not be located.
Error: Unable to execute port: invalid command name "use_parallel_build"

Can someone help me with that?

Thanks


It sounds like darwinports isn't installed correctly, See their site for install docs and any needed pre-requistites. I not longer have access to a working Mac. (my ancient donated G4 mini died), so I can't offer any assistance regarding them until I can locate a newer working In tel mac and a recent version of OS-X.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby pw36889 » Tue May 19, 2009 5:15 pm

David,

Thanks for the fast response. You are right, the darwinport was not installed properly. After having the proper installation, it runs like expected. A long process. Now my connecion does not work. I have done the diff ¨ls - 1 /dev > before¨ with the ¨ls -1 /dev > after¨ taken great care in connecting my cable for the after and turning the car switch to ACC, no difference. Just to be sure, thaat connection is working with a serial toa PC. I am suspecting that the cable bough in somewhere through ebay from Asia is not the right one. I was thinking of doing the cable myself using the pin 2 3 and 9 from the serial to be connected to the USB connector.

Can someone help me with this?

Thanks

Alain

PS. By the way Anyone working with the IPOD technology?
pw36889
MS/Extra Newbie
 
Posts: 2
Joined: Mon May 18, 2009 3:07 pm

Re: The BEST way to install MegaTunix on OS-X

Postby lappy » Sun Oct 18, 2009 1:26 am

Hi,

I have been trying to get this to work for a few days now, i did some looking around on the macports site and google to try and figure it out but im out of luck so im now desperate for help.

Everything was going well until i run the configure command and get the following output

PowerBook-G4:~/megatunix-0.9.19-beta1 Lappy$ ./configure --prefix=/opt/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking for gawk... (cached) awk
checking build system type... powerpc-apple-darwin8.11.0
checking host system type... powerpc-apple-darwin8.11.0
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.11.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin8.11.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
./configure: line 20138: LT_INIT: command not found
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for GLEXT... yes
checking for LIBGLADE... yes
./configure: line 20868: LIBGLADE_LIBS+=-Wl,--export-dynamic: command not found
checking for LIBXML2... yes
checking whether byte ordering is bigendian... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating mtxcommon/Makefile
config.status: creating mtxmatheval/Makefile
config.status: creating src/Makefile
config.status: creating msloader/Makefile
config.status: creating msloader/resources.rc
config.status: creating gaugedesigner/resources.rc
config.status: creating gaugedesigner/Makefile
config.status: creating gaugedesigner/gauges/Makefile
config.status: creating gaugedesigner/gauges/Speco/Makefile
config.status: creating gaugedesigner/gauges/SportComp/Makefile
config.status: creating gaugedesigner/gauges/UltraLite/Makefile
config.status: creating gaugedesigner/gauges/Cobalt/Makefile
config.status: creating gaugedesigner/gauges/Impact/Makefile
config.status: creating gaugedesigner/gauges/Honda/Makefile
config.status: creating gaugedesigner/gauges/Ghost/Makefile
config.status: creating gaugedesigner/gauges/MegaTune/Makefile
config.status: creating src/resources.rc
config.status: creating widgets/Makefile
config.status: creating dashdesigner/Makefile
config.status: creating dashdesigner/dashboards/Makefile
config.status: creating dashdesigner/resources.rc
config.status: creating ecu_snapshots/Makefile
config.status: creating LookupTables/Makefile
config.status: creating RealtimeMaps/Makefile
config.status: creating RuntimeSliders/Makefile
config.status: creating RuntimeStatus/Makefile
config.status: creating RuntimeText/Makefile
config.status: creating Interrogator/Makefile
config.status: creating Interrogator/Profiles/Makefile
config.status: creating Gui/Makefile
config.status: creating menu/Makefile
config.status: creating desktop/Makefile
config.status: creating category/Makefile
config.status: creating icons/Makefile
config.status: creating MegaTunix.iss
config.status: creating WIN_NOTES.txt
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
sed: 1: "s/$(DEPDIR)/${subdirs}/ ...": bad flag in substitute command: '.'

Configuration:

Install Path: /opt/local
General Debugging: no
Profiling: no

This is running on tiger 10.4.11 power pc if that helps with xcode 2.4.1 and xcode from my tiger install cd which according to the about menu is ver 1.1.

I tried to run the make command and sudo make install after the error anyway to see if it would work but this was in vain. any help would be greatly appreciated

Thanks
Lappy
lappy
MS/Extra Newbie
 
Posts: 11
Joined: Sun Oct 18, 2009 1:14 am

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Sun Oct 18, 2009 12:22 pm

type the following:
Code: Select all
 make ; sudo make install


The sed/substitution error is non critical.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby lappy » Mon Oct 19, 2009 4:52 am

Thanks for the reply,

If i run make i get the following error

/loader_common.Tpo"; exit 1; fi
loader_common.c: In function 'setup_port':
loader_common.c:87: error: 'B115200' undeclared (first use in this function)
loader_common.c:87: error: (Each undeclared identifier is reported only once
loader_common.c:87: error: for each function it appears in.)
loader_common.c: In function 'detect_firmware':
loader_common.c:257: warning: passing argument 3 of 'g_io_channel_read_line' from incompatible pointer type
make[2]: *** [loader_common.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

if i then run sudo make install i get this

then mv -f ".deps/loader_common.Tpo" ".deps/loader_common.Po"; else rm -f ".deps/loader_common.Tpo"; exit 1; fi
loader_common.c: In function 'setup_port':
loader_common.c:87: error: 'B115200' undeclared (first use in this function)
loader_common.c:87: error: (Each undeclared identifier is reported only once
loader_common.c:87: error: for each function it appears in.)
loader_common.c: In function 'detect_firmware':
loader_common.c:257: warning: passing argument 3 of 'g_io_channel_read_line' from incompatible pointer type
make[1]: *** [loader_common.o] Error 1
make: *** [install-recursive] Error 1

any help would be great

Thanks
lappy
MS/Extra Newbie
 
Posts: 11
Joined: Sun Oct 18, 2009 1:14 am

Re: The BEST way to install MegaTunix on OS-X

Postby lappy » Thu Oct 22, 2009 5:33 pm

OK so an update in my progress, i have not been able to compile Megatunix 0.9.19-beta1 i keep getting the error in the previous post. As a last resort i downloaded Megatunix 0.9.9 and compiled it right away and it all runs smoothly, i'm not sure what is going on the the latest version of megatunix and why it wont compile but the older version will with the exact same system with the same commands will. I can make and make install one version after the other and every time 0.9.19 beta1 fails and 0.9.9 works? So until an answer becomes aparent i guess i'll be using 0.9.9 version
lappy
MS/Extra Newbie
 
Posts: 11
Joined: Sun Oct 18, 2009 1:14 am

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Mon Oct 26, 2009 12:12 pm

lappy wrote:OK so an update in my progress, i have not been able to compile Megatunix 0.9.19-beta1 i keep getting the error in the previous post. As a last resort i downloaded Megatunix 0.9.9 and compiled it right away and it all runs smoothly, i'm not sure what is going on the the latest version of megatunix and why it wont compile but the older version will with the exact same system with the same commands will. I can make and make install one version after the other and every time 0.9.19 beta1 fails and 0.9.9 works? So until an answer becomes aparent i guess i'll be using 0.9.9 version



HMM, lemme look more into that. It's kinda tough as my old G4 mac mini died and I don't have a mac machine to test against any longer..

It's an includes issue, so I'll see if I can borrow time on a buddy's mac to figure it out.. What version of OS-X do you u have on yours?
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby lappy » Wed Nov 25, 2009 5:03 pm

I am running mac OS 10.4.11 on a G4 powerbook, the previous version of megatunix that i got to build seams to be working fine, but this is untested with the actual unit as i'm still in the process of building the engine and wiring the MS unit in. Then i found out the USB to Serial cable i bought is not the prolific chipset, and therefore my mac cant use it. Sometimes i wonder if this was such a good idea after all.

P.S sorry about the late reply, i got caught up with working on the car and looking for a new job at the same time. Big Thanks for all your help

Cheers
lappy
MS/Extra Newbie
 
Posts: 11
Joined: Sun Oct 18, 2009 1:14 am

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Wed Nov 25, 2009 5:16 pm

lappy wrote:I am running mac OS 10.4.11 on a G4 powerbook, the previous version of megatunix that i got to build seams to be working fine, but this is untested with the actual unit as i'm still in the process of building the engine and wiring the MS unit in. Then i found out the USB to Serial cable i bought is not the prolific chipset, and therefore my mac cant use it. Sometimes i wonder if this was such a good idea after all.

P.S sorry about the late reply, i got caught up with working on the car and looking for a new job at the same time. Big Thanks for all your help

Cheers


Most USB->serial adapters should "just-work" on OS-X, check the vendor of the adapter for an OS-X driver). You can check if the OS supports it via unplugging the adapter, then run "ls -lart /dev >/tmp/before", then plug it in, wait 10 seconds for OS-X to detect it, and run "ls -lart /dev >/tmp/after", and then run "diff /tmp/before /tmp/after". "diff" spits out the DIFFERENCES between files, each file contains a listing of /dev (where various devices used by the OS are stored, they are dynamic and unplugging a device will make that device node disappear), any difference indicates a potential name to be tried in megatunix as a serial port, make sure to hit enter after entering the name.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: The BEST way to install MegaTunix on OS-X

Postby ikekrull » Mon Dec 07, 2009 4:36 pm

I've been trying to get Megatunix 0.9.19-beta1 to run on my Snow Leopard Macbook Pro.

First problem I found was that termios.h on OS X does not define B115200 as a baud rate - I believe 38400 is as high as it goes.

As I have a MS1, and it only does 9600 anyway I commented out the lines in the code that set the port for B115200 and the app compiled OK - this probably needs a #define, or possibly some kind of updated termios header file.

The app seems to mostly run just fine in offline mode However, when i try to open a 3D view e.g. in the VE table, the app segfaults.

Then I tried actually plugging into my MS through a USB serial adapter. It can connect to the ECU and it starts loading the interface tabs as it interrogates the ECU config but when it gets to the end of loading all the UI tabs, (or possibly just hits something it doesn't understand in the ECU firmware?) the app segfaults.

In both cases it just prints 'Segmentation Fault' and bails.

I'm not really able to debug this at the moment as my car is off being tuned, but i'd ideally like to get Megatunix to work on my mac.

I guess this is a beta version - whats the most stable and up-to-date version of this software?
ikekrull
MS/Extra Newbie
 
Posts: 1
Joined: Mon Dec 07, 2009 4:26 pm

Re: The BEST way to install MegaTunix on OS-X

Postby djandruczyk » Sun Dec 13, 2009 10:19 am

ikekrull wrote:I've been trying to get Megatunix 0.9.19-beta1 to run on my Snow Leopard Macbook Pro.

First problem I found was that termios.h on OS X does not define B115200 as a baud rate - I believe 38400 is as high as it goes.

As I have a MS1, and it only does 9600 anyway I commented out the lines in the code that set the port for B115200 and the app compiled OK - this probably needs a #define, or possibly some kind of updated termios header file.

The app seems to mostly run just fine in offline mode However, when i try to open a 3D view e.g. in the VE table, the app segfaults.

Then I tried actually plugging into my MS through a USB serial adapter. It can connect to the ECU and it starts loading the interface tabs as it interrogates the ECU config but when it gets to the end of loading all the UI tabs, (or possibly just hits something it doesn't understand in the ECU firmware?) the app segfaults.

In both cases it just prints 'Segmentation Fault' and bails.

I'm not really able to debug this at the moment as my car is off being tuned, but i'd ideally like to get Megatunix to work on my mac.

I guess this is a beta version - whats the most stable and up-to-date version of this software?



The MAC version will likely be a perpetual beta as me (the author) does NOT have access to modern mac hardware to do any development testing. I used to have a G4 mini (that was graciously donated), but it has since died.

Install GDB (sudo port install gdb), and run megatunix under that.
i.e.
recompile megatunix with debugging enabled "./configure --enable-debug ; make clean ; make ; sudo make install"
run it under GDB:. gdb src/megatunix
at GDB prompt, type "run", when it crashes GDB should catch it, type "bt" (backtrace) and send me the info in the trace as well as the context at where it crashed (i.e. loading a specific tab, on startup, in a particular menu, etc), and if it's reliably repeatable. (if not repeatable, it is likely to be a different type of bug, like a memory leak/overflow, possibly in some part of the code seemingly unrelated)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

PreviousNext

Return to Megatunix (obsolete)

Who is online

Users browsing this forum: No registered users and 2 guests