Zenon Froff <froff@...> writes: > > Hello all > > I try to compile agar 1.4 under MSYS environment on windows XP 32b. > There is problem with directories. > > make gives error: > core.h:12:24: fatal error: core/types.h: No such file or directory > > and it's true; type.h lays in the same "core" directory so prefix "core/" > is invalid; > > After that I modified core/makefile by adding > -I/home/me/agar-1.4.0 option; > > But the problem was bigger that I thought. > Now make gives error: > c:/PRG/tools/msys/home/me/agar-1.4.0/core/types.h:8:37: fatal error: > agar/config/have_cygwin.h: No such file or directory > > And it is true too. > full path is: > /home/me/agar-1.4.0/config or "../config" from a "core" directory > > am I doing something wrong or something is wrong with the project paths? > > Best regrds for all >
Hi Zenon, I had good luck following the instructions at: http://wiki.libagar.org/wiki/install/Windows_(MSYS) --HOWEVER-- I did have one problem. Instead of fixing it correctly, I hacked past it. I just needed a quick proof of concept today. I'll fix it correctly in a few days. The demo applications would not link because the function 'select()' was an 'undefined symbol'. (Correct Solution A): Find which install step I missed in the readme(s) (Correct Solution B): Find which library contains select() and add it to the Makefile. (My Hack): 1. Edit the file agar-1.3.4/core/time_gettimeofday.c 2. Find the function 'Delay(Uint32 ticks)' 3. Find the following line in the Delay function. if ((rv = select(0, NULL, NULL, NULL, &tv)) == -1 && 4. Insert two forward slashes in front of the line to make it a comment. E.G. // if ((rv = select(0, NULL, NULL, NULL, &tv)) == -1 && 5. Insert the following line after the commented one: if( false && 6. Save your changes 6. make && make install 7. cd to each demo folder and type './configure && make' _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
