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

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

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
0bliter8or
Posts: 7
Joined: 05 Jul 2011, 07:16

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

Post 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
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

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

Post by Kloot »

Code: Select all

make Cpp-AIWrapper*
0bliter8or
Posts: 7
Joined: 05 Jul 2011, 07:16

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

Post 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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post by hoijui »

on this site:
Development < Building Spring < Building Spring on Windows
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

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

Post by AF »

For those confused, the * on the end was causing the issues in my case:

Code: Select all

make Cpp-AIWrapper
Works fine
Post Reply

Return to “AI”