Treb
Treb New Reader
10/12/08 4:48 p.m.

I do my best not to mess with the ugly side of computers. Running programs is one thing; but the further I stay from the ones and zeroes, the happier I am.

I use macs for everything, and have for nearly 20 years. Computers are tools that I use, not a hobby. Cars are both, of course; otherwise I wouldn't be here.

Now I'm thinking about megasquirt, and the only way to do that on a mac is Megatunix, which relies on the UNIX underpinnings of OSX. I'm fine with that, so far as it goes.

The thing is, you need to install many hundreds of megabytes of other stuff to get to the point that you can BUILD Megatunix, much less use it, and all the instructions I've ever seen are written for UNIX/LINUX people; the types for whom things like "grep sudo:bin:src PATH" not only make sense, but are in some way fun. (FWIW, I know that that command makes no sense.)

It's like asking me to explain to a non-english speaker who has never held a wrench how to do a head gasket job. It's something I wouldn't think about too much, and the individual steps are almost trivial. But to someone who knows nothing about it, it looks like madness.

So, here's my cry for help: can someone explain, in English, how to go from 0-to-Megatunix on a Mac running OS 10.4? I have X11 and XCode on my computer already -- I think they came with the computer.

Thanks, Matt

fifty
fifty New Reader
10/12/08 8:02 p.m.

Did you read this? http://www.msextra.com/viewtopic.php?f=106&t=23434

I'm a computer novice and set it up on Ubuntu, no probs.

Treb
Treb New Reader
10/12/08 11:05 p.m.

Sadly enough, yes.

I read that one, tried it, and got nowhere.

Couldn't get the sudo port -d selfupdate command to work. Couldn't figure out where I needed to be to use that command, maybe? I really don't know.

Matt

d_jabsd
d_jabsd GRM+ Memberand Reader
10/13/08 9:25 a.m.

I'm assuming you know how to use the terminal. To use the port command, you can either run the command from its directory, or add that directory to your PATH. It is located in /opt/local/bin- to run from here-

cd /opt/local/bin

sudo ./port -d selfupdate

To add the macports directory to your path permanently (this allows you to run the app from anywhere), do the following-

In your home directory ( /Users/username -where username= your username- ), there should be file called '.profile'.

Edit this file and add the following line-

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

If .profile doesn't currently exist, create it in /Users/username.

You will need to relaunch the terminal app for the setting to take affect. To verify it, use the 'env' command and the PATH variable should show the additional directories that the system will look for executables in. Example 'env | grep PATH':

dyn-109-corp:~ d_jab$ env | grep PATH

MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Let us know if you have any more questions- I've never used Megatunix, but I am a hardcore UNIX guy who uses a Mac, so shoot me any questions you have, I'll do my best to help you get it straightened out.

.daniel

Treb
Treb New Reader
10/13/08 11:54 a.m.

I'll let you know how it goes.

d_jabsd
d_jabsd GRM+ Memberand Reader
10/13/08 1:13 p.m.

The forum messed up some of my line breaks, so I have edited my previous post to put them back.

Treb
Treb New Reader
10/13/08 9:14 p.m.

Well, okay, that took 8hours; involved downloading ~2GB worth of stuff to miscellaneous corners of my hard drive, and didn't work.

I started getting error messages at this point; don't know what to do from here:

checking for pkg-config... no checking for GTK... checking for GTK... configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.

Alternatively, you may set the environment variables GTK_CFLAGS and GTK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

To get pkg-config, see . See `config.log' for more details. matt-trebelhorns-ibook-g4:~/documents/downloads/megatunix-0.9.17

matt$ make

make: *** No targets specified and no makefile found. Stop.

matt-trebelhorns-ibook-g4:~/documents/downloads/megatunix-0.9.17

matt$ sudo make install

Password:

make: Nothing to be done for `install'.

matt-trebelhorns-ibook-g4:~/documents/downloads/megatunix-0.9.17

matt$

d_jabsd
d_jabsd GRM+ Memberand Reader
10/14/08 7:46 a.m.

Did the self update of macports work and did you update your .profile?

Also, when you installed Xcode did you install X11 as well? GTK and pkg-config are usually associated with X11, so if that is missing, that could be why.

You will probably need to configure megatunix before it will allow you to make it.

cd megatunix-0.9.17

./configure

make

Give that a shot and see if you get better results.

Treb
Treb New Reader
10/14/08 10:53 a.m.

A couple of different answers to a couple of different questions.

I tried to create .profile, because I didn't see it.

I typed: vi .profile and it opened .profile as a read-only file with one line of text/symbols. So at least it exists, but it doesn't have the line

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

I had Xcode and X11 installed already; I had to update to the most recent Xcode to install macports; but the macports install went fine after that. I didn't see an update for X11, but I've found it now.

The ./configure was the step that things started going screwy; I tried "make" because that was the next step, just to see if it would work.

So I'm d/l the X11 upgrade now and will report back.

Thanks, Matt

Treb
Treb New Reader
10/14/08 11:05 a.m.

Yeah, same errors still.

Xcode 2.5, X11 1.1.3

Matt

d_jabsd
d_jabsd GRM+ Memberand Reader
10/14/08 2:19 p.m.

I'm pretty sure you are going to need the PATH variable set correctly before you build. You're .profile file shouldn't be read-only, but even so, you should be able to force a write as long as you are the owner of it and it is in your home directory.

Use ':wq!' in vi to force it to write and quit.

The other option is to just set that variable manually before you build the app.

$ export PATH=/opt/local/bin:/opt/local/sbin:$PATH

$ cd megatunix

$ ./configure

$ make

$ make install

Treb
Treb New Reader
10/14/08 4:42 p.m.

Huh. I edited .profile, as you suggested, with :wq!

./configure then seems to have worked;

make seems to have gone off the rails -- goes along fine for awhile, then this

...ib/libfreetype.dylib -lz /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib

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]: Nothing to be done for `all'.

Making all in RuntimeSliders

make[2]: Nothing to be done for `all'.

Making all in RuntimeStatus

make[2]: Nothing to be done for `all'.

Making all in RuntimeText

make[2]: Nothing to be done for `all'.

Making all in Gui

make[2]: Nothing to be done for `all'.

make[2]: Nothing to be done for `all-am'.

Then, just to see what would happen, I tried make install; with the following result:

matt-trebelhorns-ibook-g4:~/Documents/downloads/megatunix-0.9.17 matt$ make install

Making install in include

make[2]: Nothing to be done for `install-exec-am'.

make[2]: Nothing to be done for `install-data-am'.

Making install in mtxmatheval

make[2]: Nothing to be done for `install-exec-am'.

make[2]: Nothing to be done for `install-data-am'.

Making install in mtxcommon

make[2]: Nothing to be done for `install-exec-am'.

make[2]: Nothing to be done for `install-data-am'.

Making install in widgets

make[2]: Nothing to be done for `install-exec-am'.

make[2]: Nothing to be done for `install-data-am'.

Making install in src

test -z "/usr/local/bin" || /Users/matt/Documents/downloads/megatunix-0.9.17/install-sh -d "/usr/local/bin" /bin/sh ../libtool --mode=install /usr/bin/install -c 'megatunix' '/usr/local/bin/megatunix' /usr/bin/install -c megatunix /usr/local/bin/megatunix

make[2]: Nothing to be done for `install-data-am'.

Making install in gaugedesigner

Making install in gauges

Making install in Speco

make[4]: Nothing to be done for `install-exec-am'.

test -z "/usr/local/share/MegaTunix/Gauges/Speco" || /Users/matt/Documents/downloads/megatunix-0.9.17/install-sh -d "/usr/local/share/MegaTunix/Gauges/Speco"

mkdir: /usr/local/share/MegaTunix: Permission denied

make[4]: *** [install-gaugesDATA] Error 1

make[3]: *** [install-am] Error 2

make[2]: *** [install-recursive] Error 1

make[1]: *** [install-recursive] Error 1

make: *** [install-recursive] Error 1

So now what?

d_jabsd
d_jabsd GRM+ Memberand Reader
10/14/08 5:44 p.m.

Try 'sudo make install'.

It appears that the application is building correctly, but failing when trying to put everything in its proper location.

Sudo will allow it to create the proper directories and move items into areas only writable by root.

As it stands, you should be able to go into the build directory and run the app from there, if you want to test it out.

Treb
Treb New Reader
10/14/08 6:16 p.m.

I tried running it from the install directory before "sudo make install" -- no dice.

Then tried it after; it seems to work.

Dashdesigner and gaugedesigner both open, but don't work -- I just get empty black circles on the screen.

But megatunix appears to work now.

Thanks! Matt

Treb
Treb New Reader
10/14/08 6:27 p.m.

Looking at the MS boards, black-on-black gauges seems to be the norm after the release of 9.16 earlier this year (?)

At least for megatunix on OSX 10.4.11.

http://www.msextra.com/viewtopic.php?f=106&t=28554

So I'm pretty much all right.

Treb
Treb New Reader
1/31/09 5:38 p.m.

As a followup, version 0.9.18 fixed the black gauges problem. Matt

dean1484
dean1484 GRM+ Memberand HalfDork
1/31/09 7:41 p.m.

Have you ever thought of getting an old PC based laptop off ebay? Older is better in this case as a serial port is really handy. USB to serial converters tend to bugger thing up some times. I have have a P1 based laptop that I use exclusively for automotive tuning. IT just makes things so much simpler and if I accidentally cook it due to some wiring error or what ever I will not be as upset as I would be if I toast my good one.

Ohya you should be able to get what you need for about $100. 200 for something quite nice.

Tommy Suddard
Tommy Suddard GRM+ Memberand SonDork
1/31/09 7:44 p.m.

We've used a six year old Compaq for most of this type of stuff.

walterj
walterj HalfDork
1/31/09 8:05 p.m.

Buy a $50 laptop with a serial port and XP on it.

Clay
Clay Reader
2/2/09 8:09 a.m.

I'm using an old Compaq as well. Runs Windows 98, has a serial port, and works fine for tuning Megasquirt, etc. Buddy from work is letting me borrow it indefinitely. Bought a $20 inverter from Costco since the battery doesn't last long. That's all I have into it. I'm not a computer guy either, but it sure seems simpler than the above...

Treb
Treb New Reader
2/2/09 8:51 a.m.

On the other hand, a solution that uses hardware that I already have, and work I've already done, seems simpler than adding new hardware and work.

Anyway, thanks again to the two posters who helped me solve this problem.

You'll need to log in to post.

Our Preferred Partners
a3Isheu5rfFKo8KkRsyKgCNTcc72QhlXjPHOanQ8ARW6jQyq8LwyBmOxzUOS8w5j