Hello,
I'm trying to compile Agar with VS2005 to test if the error with
AG_ObjectFreeChildren and scrollview also exists in. I have checkouted the svn
repository of Agar and followed the instructions from
"http://wiki...libagar.org/wiki/Install/Windows_(Visual_Studio)" in "Generating
custom project files".
I have been able to resolve by myself some problems so I send my solutions to
share them with other developpers but also to know if everything is correct.
And I still have some blocking problems.
Step 1 : If you do not have Cygwin installed, install it (Download Cygwin).
Make sure "Interpreters / perl" is enabled.
My comments :
- Make sure "Devel / make" is enabled.
- Make sure "Interpreters / lua" is enabled.
Step 2 : Download PREMAKE.EXE from the Premake website and copy it to Cygwin's
/usr/local/bin directory. Choose the last version of the 3.0 series (Premake 4
is not backward compatible and is not currently supported).
Step 3 : Download BSDBuild from the BSDBuild website, install it with
./configure && make all install.
My comments :
- This download link is deprecated for Agar I think, we will need glx.pm
which is not in this package of BSDBuild. So I have been obliged to make
"./configure && make all install" on the checkout of the BSDBuild repository
instead.
Step 4 : Find Makefile.proj in Agar's top-level source directory, open it up in
a text editor.
Step 5 : Still in Agar's top-level source directory, execute touch
Makefile.config, then make proj from the Cygwin shell. If successful, the new
project files will appear under .\ProjectFiles\.
My comments :
- Some files where not in Unix text mode, so it generated some errors. I had
to transform them in Unix mode (with notepad++). Concerned files : Makefiles*.*
and Configure*.*
Step 6 : Unpack the project files in the root of the source.
My comments :
- I can't compile core, the include files in svn_agar/include/core are wrong,
so I take the include files from svn_agar/core/*.h to copy them in
svn_agar/include/core but perhaps it's not a good thing to do that if the files
are modified by BSDBuild, perhaps it explains the errors I still have in the
gui compilation (see bellow). For example in data_source.h I found
#define AG_CHECK_TYPE(ds,code,rv) \
#define AG_WriteTypeAt(ds,code,off) \
where I sould find
#define AG_CHECK_TYPE(ds,code,rv) \
do { \
if ((ds)->debug && AG_CheckTypev(ds,code) == -1) { \
return (rv); \
} \
} while (0)
#define AG_WriteTypeAt(ds,code,off) \
...
- Same problem for gui
Now I am able to compile core. But for gui there are strange things :
- h:\svn_agar\gui\drv_glx.c(37) : fatal error C1083: Cannot open include
file: 'X11/Xlib.h': No such file or directory, it looks like I would be
compiling for Linux
- h:\svn_agar\gui\drv_sdl_common.c(238) : error C2036: 'void *const ' :
unknown size
- h:\svn_agar\gui\drv_sdl_common.c(239) : error C2036: 'void *const ' :
unknown size
- h:\svn_agar\gui\drv_sdl_common.c(240) : error C2036: 'void *' : unknown size
- h:\svn_agar\gui\drv_sdl_common.c(241) : error C2036: 'void *' : unknown size
- h:\svn_agar\gui\drv_gl_common.h(10) : fatal error C1083: Cannot open
include file: 'GL/glx.h': No such file or directory
- h:\svn_agar\gui\surface.c(42) : fatal error C1083: Cannot open include
file: 'png.h': No such file or directory
I wish I help and that itwas not me who have done a mistake ;) Thank again for
your time.
Best regards
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html