Trouble building 1.4.0 .ini file

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
elaw
Super MS/Extra'er
Posts: 2926
Joined: Fri Oct 16, 2009 6:20 am
Location: Wilmington, MA

Trouble building 1.4.0 .ini file

Post by elaw »

So I finally got my courage up to start making some mods to the 1.4.0 MS3 code. Made a bunch of edits, built the project, all looked fine... until I realized that ms3.ini was only 27KB!

So I tried building the original unmodified source and got the same thing... the resultant file is attached. Basically it looks fine until line 448, then line 449 says "Binary file core.ini matches" and the file ends there.

This is with a fresh install of Cygwin 2.6.0 and the 2012 build tools. On the Cygwin install I didn't select any extra features except "make".

I wasn't sure the build tools installed correctly as a folder seemed to be created in a weird place. I've got Cygwin installed to C:\Cygwinsetup, then I have a folder C:\Cygwinsetup\MS3Source, and the code is in subfolders beneath that folder (the original in one, my edited code in another). When I installed the build tools, a "usr" folder appeared under C:\Cygwinsetup\MS3Source. Is that's what's supposed to happen? I did try copying that folder's contents to C:\Cygwinsetup\usr (overwriting anything that was already there) but it had no effect on the problem.

Has anyone got any words of wisdom for me here?

By the way if it matters, this is on a Windows 7 32-bit system.
Eric Law
1990 Audi 80 quattro with AAN turbo engine: happily running on MS3+MS3X
2012 Audi A4 quattro, desperately in need of tweaking

Be alert! America needs more lerts.
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Trouble building 1.4.0 .ini file

Post by jsmcortina »

You need to cd to the root directory
i.e. cd /
before extracting the build tools. If you get "usr" appear under MS3Source, you were in the wrong directory.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
elaw
Super MS/Extra'er
Posts: 2926
Joined: Fri Oct 16, 2009 6:20 am
Location: Wilmington, MA

Re: Trouble building 1.4.0 .ini file

Post by elaw »

James,

Thanks! But... that didn't help. I actually removed Cygwin, did a fresh install, installed the build tools properly, and got the same result.

I tried the command you posted in the other thread:

Code: Select all

    grep -v "^#[12345]" core.ini | sed 's/^#0//' > ms3.ini
... with no luck (still resulted in a 27 KB output file).

I then did some research and tried adding the "-a" option to the grep command and it appears to have worked! So I'll modify the makefile and hopefully will be good.

Maybe it's a change in the latest version of Cygwin?
Eric Law
1990 Audi 80 quattro with AAN turbo engine: happily running on MS3+MS3X
2012 Audi A4 quattro, desperately in need of tweaking

Be alert! America needs more lerts.
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Trouble building 1.4.0 .ini file

Post by jsmcortina »

Ah, maybe it is getting upset by line endings. Glad you solved it.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply