Page 1 of 1

How do i make the C++ wrapper using awk files

Posted: 22 Nov 2011, 00:08
by 0bliter8or
I tried to build the new C++ files using the *.awk files in AI\Wrappers\Cpp\bin in the 0.82.7.1 spring source, but it just stops. I don't know much about awk files but i edited the files to print some debug to show where it gets stuck and from what is printed it gets to the end of the BEGIN statement but never makes it to the first line of the END statement. any assistance would be appreciated.

I have gawk and this is the bat file I'm running that gets stuck on the first AWK line no matter which awk file i try to run first


set CUtilsPath=..\..\CUtils\bin\
set awk="C:\Program Files (x86)\GnuWin32\bin\gawk.exe"

%awk% -f wrappCommands.awk -f %CUtilsPath%common.awk -f %CUtilsPath%commonDoc.awk
%awk% -f wrappCallback.awk -f %CUtilsPath%common.awk -f %CUtilsPath%commonDoc.awk -f %CUtilsPath%commonOOCallback.awk
%awk% -f wrappEvents.awk -f %CUtilsPath%common.awk -f %CUtilsPath%commonDoc.awk

Re: How do i make the C++ wrapper using awk files

Posted: 22 Nov 2011, 00:40
by Kloot

Code: Select all

make Cpp-AIWrapper*

Re: How do i make the C++ wrapper using awk files

Posted: 30 Nov 2011, 05:42
by 0bliter8or
Kloot wrote:make Cpp-AIWrapper*
I'm working on a windows computer so getting make to work was not a trivial task. but even after installing cygwin, ensuring the 'make' package was included and then updating the 'PATH' system variable to include C:\cygwin\bin\ i'm still not having any luck.

i just get:
make: *** no rules to make target 'Cpp-AIWrapper'. Stop.

i really have very little idea what i am doing so I'm not sure what I'm going wrong, any assistance would be nice. :S

Re: How do i make the C++ wrapper using awk files

Posted: 30 Nov 2011, 09:13
by hoijui
on this site:
Development < Building Spring < Building Spring on Windows

Re: How do i make the C++ wrapper using awk files

Posted: 06 Dec 2011, 18:38
by AF
For those confused, the * on the end was causing the issues in my case:

Code: Select all

make Cpp-AIWrapper
Works fine