<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lib.agar.general">
    <title>gmane.comp.lib.agar.general</title>
    <link>http://blog.gmane.org/gmane.comp.lib.agar.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/672"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/671"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/669"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/657"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/656"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/655"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/652"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/651"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/648"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/647"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/645"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/637"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/635"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/633"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/629"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/628"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/626"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/623"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/622"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.agar.general/621"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/672">
    <title>no sub-menus with SDL + OpenGL + custom event loop</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/672</link>
    <description>&lt;pre&gt;Hello,

I'm considering to use Agar for GUI on top of my SDL/OpenGL
application. I've been playing around with it for couple of days and
it looks neat overly but I exeprienced some quirks.

Below is a minimal code example that compiles on windows with VC 2008.
The problem is that menu sub-item doesn't show up when I click on the
main menu item. However, the same menu setup works as intended when
using default event loop via AG_EventLoop() and without any SDL or GL
code.

I'm not sure I'm doing everything right as there are no code examples
for the case of custom loop with GL+SDL
If anybody has had experience with this, please shed some light.


Thanks,

Nenad



#include &amp;lt;windows.h&amp;gt;
#include &amp;lt;gl/gl.h&amp;gt;
#include "SDL.h"
#include &amp;lt;agar/core.h&amp;gt;
#include &amp;lt;agar/gui.h&amp;gt;

int main(int argc, char **argv){

// init sdl
if( SDL_Init(SDL_INIT_EVERYTHING) &amp;lt; 0 ){
exit(1);
}
if( ! SDL_SetVideoMode( 640, 480, 32, SDL_HWSURFACE | SDL_DOUBLEBUF |
SDL_OPENGL ) ){
exit(1);
}

// init agar
if( AG_InitCore( "SDL+OGL+AGAR", 0) == -1 ){
exit(1);
}
AG_InitVideoSDL( SDL_GetVideoSurface(), AG_VIDEO_OVERLAY);

// create agar window
AG_Window * win = AG_WindowNew( 0 );
AG_LabelNew( win, 0, "Hello, world!");
AG_WindowShow( win );

// crate a menu with one sub-node
AG_Menu *menu = AG_MenuNew(win, 0);
AG_MenuItem *item = AG_MenuNode(menu-&amp;gt;root, "Menu", NULL);
AG_MenuNode(item, "Node", NULL);

// main loop
bool loop = true;
SDL_Event e;
while( loop ){
while( SDL_PollEvent( &amp;amp;e )){
// pass the events to agar
AG_DriverEvent dev;
AG_SDL_TranslateEvent( agDriverSw, &amp;amp; e, &amp;amp;dev );
AG_ProcessEvent(NULL, &amp;amp;dev);
}

// some opengl code
glClearColor(0.4, 0.5, 0.4, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

// draw the agar window
if (agDriverSw){
AG_BeginRendering(agDriverSw);
AG_WindowDraw(win);
AG_EndRendering(agDriverSw);
}

SDL_GL_SwapBuffers();
}

return 0;
}
&lt;/pre&gt;</description>
    <dc:creator>nenad jalsovec</dc:creator>
    <dc:date>2012-05-21T02:58:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/671">
    <title>Demos compilation</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/671</link>
    <description>&lt;pre&gt;Hello,

I compiled agar 1.4.1 on Windows XP system, following this procedure http://wiki.libagar.org/wiki/Install/Windows_%28MSYS%29. All executed successfully.

But now I try to compile the demos, when I execute "./configure" in the "demos" directory in the MinGW shell I get the followings :

checking whether FreeType works...yes
checking for Agar (http://libagar.org/)...yes (1.4.1)
checking whether Agar works...no
*
* This software requires agar installed on your system.
*
configure failed!
*
* If the previous test failed due to Agar not being found,
* make sure you have already installed Agar on your system
* and that the agar-config binary is in your PATH.
*
* To install Agar, go to the top-level directory and run:
*     make all install
*
make: *** [configure] Error 1

Of course, I tried to go to the top-level directory to run "make all install".

If I try "./configure" in the "themes" subproject I get a config.log file with this error :
checking for Agar (http://libagar...org/)...yes (1.4.1)
checking whether Agar works.../mingw/bin/cc   -Wall -Werror -I/usr/local/include/agar -I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main  -I/usr/local/include/freetype2 -I/usr/local/include         -o ./conftest conftest.c -L/usr/lib64 -L/usr/local/lib -lag_gui -lag_core -L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows -L/usr/local/lib -lfreetype  -L/usr/local/lib -lopengl32 -lgdi32 -lm    -lpthread    
C:/MinGW/msys/1.0/local/lib/libag_core.a(core.o):core.c:(.text+0xe6): undefined reference to `agTimeOps_win32'
collect2: ld returned 1 exit status
-&amp;gt; failed (0)
no
* 
* This software requires agar installed on your system.
* 

Is this a know problem ?

Thanks,
Erwin
_______________________________________________
Agar mailing list
Agar-xWq8P/a1moLx9BLsLxWUfA&amp;lt; at &amp;gt;public.gmane.org
http://libagar.org/lists.html
&lt;/pre&gt;</description>
    <dc:creator>JC</dc:creator>
    <dc:date>2012-04-29T17:17:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/669">
    <title>sdlfb missing redraws and other bugs</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/669</link>
    <description>&lt;pre&gt;Hi!

It seems that Agar 1.4.1 and Agar trunk have some very peculiar bugs when
using the sdlfb-driver.
I'm running Ubuntu 10.04 and XUbuntu 11.10 (so it's SDL under X).

Moving Agar windows is invisible. You don't see the window being moved but
it did move. A patch (based on Agar 1.4.1) setting the dirty-flag on a
window that is moved is attached.
Also, resizing the "display" (the SDL X-window) results in a blank
screen/X-window (it is not redrawn). I've attached a patch for this as
well (it sets the window dirty-flag on all windows when the display
is resized).

I wonder if I'm missing something obvious here, since I couldn't find any
such reports in the mailing list or bug tracker. These bugs are
easily reproduced using any Agar program running under sdlfb. At least
on my systems...

When we're at it. Some other random notes about Agar:
 * I had to update the ./configure using the latest BSDBuild
   since the BSDBuild perl scripts used to generate ./configure
   were outdated, resulting in false-negative ./configure check results.
   This is probably related to the (frequent) changes in gcc's
   definition of what warnings belong to -Wall.
   Short story: the distribution's ./configure is incompatible with
   gcc-v4.6.1. In my case the 64-bit type check unnecessarily failed.
    * btw. the fallback code for !HAVE_64BIT is broken. There's a header
      file defining the 64-bit integer types as structures and it's included
      twice.
  * btw. you should really use header guards. not using header guards
    is evil :-)
  * btw. the build system's libtool generation didn't work (so it's
    BSDBuild-related) but I didn't look at this in more detail since
    I simply generated it on my own and specified the libtool to use
    manually.
  * drv_sw.c:165:
    Doesn't the critical section extend over the read access on 'win' at
    the beginning of the loop? I think the AG_ObjectLock must be moved
    to the beginning of the loop or around the loop.

Best regards,
Robin Haberkorn
_______________________________________________
Agar mailing list
Agar-xWq8P/a1moLx9BLsLxWUfA&amp;lt; at &amp;gt;public.gmane.org
http://libagar.org/lists.html
&lt;/pre&gt;</description>
    <dc:creator>Robin Haberkorn</dc:creator>
    <dc:date>2012-01-10T22:26:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/657">
    <title>Build fail on Archlinux</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/657</link>
    <description>&lt;pre&gt;Hi there,

Trying to build agar in Archlinux 64bit, but it fails. Can you please
help solving this problem?

$ uname -a
Linux asterix 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011
x86_64 Intel(R) Atom(TM) CPU N550 &amp;lt; at &amp;gt; 1.50GHz GenuineIntel GNU/Linux

Config log: http://pastebin.com/HCz6Mek1

Thanks in advance,

Rafael
&lt;/pre&gt;</description>
    <dc:creator>rafael ff1</dc:creator>
    <dc:date>2011-09-16T19:54:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/656">
    <title>AGAR Build</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/656</link>
    <description>&lt;pre&gt;I am trying to do a clean build of agar 1.4.1 on a new fedora 15 build.
The kernel is 2.6.40.3-0.fc15.x86_64 and gcc version is 4.6.0.

Make fails with several errors, and the config.log has the following:

conftest.c: In function ‘main’:
conftest.c:5:9: error: variable ‘d’ set but not used [-Werror=unused-but-set ]
conftest.c:4:8: error: variable ‘f’ set but not used [-Werror=unused-but-set ]
cc1: all warnings being treated as errors

Make, it you continue, reports the following:
In file included from core.h:12:0,
                 from variable.c:26:
/home/MAP/Downloads/agar-1.4.1/include/agar/core/types.h:103:16: warning:
useless storage class specifier in empty declaration [enabled by default]
In file included from /home/MAP/Downloads/agar-1.4.1/include/agar/cor
/begin.h:8:0,
from /home/MAP/Downloads/agar-1.4.1/include/agar/core/threads.h:28,
from core.h:20,
from variable.c:26:

Can you point me in the right direction for fixing this?

Thanks Mike.




_______________________________________________
Agar mailing list
Agar&amp;lt; at &amp;gt;hypertriton.com
http://libagar.org/lists.html
&lt;/pre&gt;</description>
    <dc:creator>MAP</dc:creator>
    <dc:date>2011-09-06T21:01:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/655">
    <title>unable to cross-compile agar</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/655</link>
    <description>&lt;pre&gt;Hi,
I'm trying to cross compile agar here what I did:

$&amp;gt; ./configure --host=sh4-linux-

the script detect the cross-compiler but fails to point to the correct
include files and libs

it is using the ''/usr/include'' but it should point to
''/opt/STM/STLinux-2.4/devkit/sh4/target/usr/include''

any idea how to fix this ?

regards
haithem

&lt;/pre&gt;</description>
    <dc:creator>haithem rahmani</dc:creator>
    <dc:date>2011-09-03T20:28:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/652">
    <title>64 Bit Install</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/652</link>
    <description>&lt;pre&gt;I am installing AGAR 1.4.1 on linux 2.6.32-71.el6.x86_64, using configure, make,
make install.  Which appears to compile just fine.

I have configured with the option --libdir=-L/usr/lib64 (and several variants
there of) yet the library libag_gui.so.4 file still appears to be built in
/usr/local/lib.

This appears to result in the following when executing the demos:

../minimal: error while loading shared libraries: libag_gui.so.4: cannot open
shared object file: No such file or directory.

Can someone tell me how to get the libraries built and installed in the "proper"
x64 locations.  Or am I completely missing an issue here?

Thanks, MAP
&lt;/pre&gt;</description>
    <dc:creator>MAP</dc:creator>
    <dc:date>2011-07-30T00:39:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/651">
    <title>Compiling Agar natively on Windows mingw, revisited</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/651</link>
    <description>&lt;pre&gt;Hi folks,

i've managed to get Agar to build natively on mingw and i posted the patches
to the Agar repository. In short, you can build it now in one of the
Agar/Packages/mingw* directories. Main issue was that it now stops processing
the header files but links them.

Issues still around:

*pthreads compile but don't work! And that sucks i have to agree but Agar
itself is working fine. The one library that it needs for nice graphics is
freetype that you have to install first.

* you need to add -lwinmm to your program to link correctly for windows time
functions

* you need to add -lglu32 if you use glu calls

Thats all folks,

Reinoud
&lt;/pre&gt;</description>
    <dc:creator>Reinoud Zandijk</dc:creator>
    <dc:date>2011-07-27T10:24:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/648">
    <title>RFC: Compiling Agar (and applications) on Windows</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/648</link>
    <description>&lt;pre&gt;Dear folks,

reading ppl's experiences here it almost seems like compiling Agar on Windows
is neigh impossible. I've tried myself on MINGW and cygwin but i have to admit
i haven't been able to do so yet.

The most viable way seems to be to install cygwin and cross-compile for MINGW
on it since the MINGW environment is somewhat broken. This is not really a
good way forward it seems since cygwin only seems to be for 32 bit? Running on
a 64 bit host thus gives weird results and linkage errors it seems.

Maybe the MINGW for 64 bits is better suited?

Rests us the MicroSoft Visual Studio `Express' way. Has anyone tried it? I
know `bsdbuild' can create project files but the last time i tried it molested
my makefile!! thus running `make proj' can only be done once... and it relies
on some tool that seems to be passed a wrong environment....

My solution for MSVSE would be to enhance the `make proj' section to make a
nice project file WITHOUT mangling the makefile and creating the project file
for MSVSE.  This then can then be distributed i'd say for ppl. to explore.

Rests us with the problems with freetype and sdl.... Would it be feasable to
distribute a completely instalable Agar+Freetype+SDL+pthread ? that only needs
to be extracted at the right place in MingW or cygwin? ;) That would help a
lot! Even IF you want to develop/recompile Agar the others are then at least
in the right place and installed correctly for Agar to find!

Reactions most welcome!

With regards,
Reinoud
&lt;/pre&gt;</description>
    <dc:creator>Reinoud Zandijk</dc:creator>
    <dc:date>2011-07-22T19:10:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/647">
    <title>Linker error with math.h</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/647</link>
    <description>&lt;pre&gt;Hi, I get the following linker error when I try to compile while including
math.h and its library:
Error12error LNK2001: unresolved external symbol __imp__hypot
C:\Users\Chaosed0\Documents\Visual Studio
2010\Projects\PROJECTNAME\ag_math.lib(m_vector2_fpu.obj)
This is the only error I get. I'm using the Visual Studio 2010 IDE. I have
included WINMM.lib as suggested by

http://wiki.libagar.org/wiki/Install/Windows_%28Visual_Studio%29

but it did nothing. Help is appreciated!
&lt;/pre&gt;</description>
    <dc:creator>Ed Lu</dc:creator>
    <dc:date>2011-06-14T22:27:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/645">
    <title>configure fails</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/645</link>
    <description>&lt;pre&gt;checking for the getaddrinfo() function...no
*
* --enable-network was requested, but this system
* does not seem to support getaddrinfo().
*
when i compile conftest.c using gcc (4.4.5/4.6.0) it segfaults. on
debian i get the following output:

*** glibc detected *** ./a.out: free(): invalid pointer: 0xb768bac0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6a81a)[0xb764f81a]
/lib/libc.so.6(+0x6c078)[0xb7651078]
/lib/libc.so.6(cfree+0x6d)[0xb765417d]
/lib/libc.so.6(freeaddrinfo+0x30)[0xb7688bd0]
../a.out[0x80484bc]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb75fbe16]
../a.out[0x80483c1]
======= Memory map: ========
08048000-08049000 r-xp 00000000 08:06 163076     /home/choli/a.out
08049000-0804a000 rw-p 00000000 08:06 163076     /home/choli/a.out
081a8000-081c9000 rw-p 00000000 00:00 0          [heap]
b75c7000-b75e3000 r-xp 00000000 08:01 91988      /lib/libgcc_s.so.1
b75e3000-b75e4000 rw-p 0001b000 08:01 91988      /lib/libgcc_s.so.1
b75e4000-b75e5000 rw-p 00000000 00:00 0
b75e5000-b7723000 r-xp 00000000 08:01 92031      /lib/libc-2.13.so
b7723000-b7724000 ---p 0013e000 08:01 92031      /lib/libc-2.13.so
b7724000-b7726000 r--p 0013e000 08:01 92031      /lib/libc-2.13.so
b7726000-b7727000 rw-p 00140000 08:01 92031      /lib/libc-2.13.so
b7727000-b772a000 rw-p 00000000 00:00 0
b7733000-b7734000 rw-p 00000000 00:00 0
b7734000-b7735000 r-xp 00000000 00:00 0          [vdso]
b7735000-b7750000 r-xp 00000000 08:01 92033      /lib/ld-2.13.so
b7750000-b7751000 r--p 0001b000 08:01 92033      /lib/ld-2.13.so
b7751000-b7752000 rw-p 0001c000 08:01 92033      /lib/ld-2.13.so
bface000-bfae3000 rw-p 00000000 00:00 0          [stack]
Aborted

any idea? cheers, jose
&lt;/pre&gt;</description>
    <dc:creator>Jozef Riha</dc:creator>
    <dc:date>2011-06-13T21:13:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/637">
    <title>Agar Installation</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/637</link>
    <description>&lt;pre&gt;Greetings.  I'm new to Agar and having a bit of trouble with the install.  I am
using Ubuntu 11.04 x64.  I am executing the build as follows:

../configure --prefix=/usr/local/agar
make depend all
sudo make install

The compile and all appears to have been fine, I have the .libs folders with the
built libraries in them.  The problem seems to be with the install script
itself.  After the "sudo make install" completes I only have the following
folder tree.

+lib
  --libag_core.a
  --libag_core.la
  --libag_core.so
  --libag_core.so.4
  --libag_core.so.4.0.0
+man
  -- (populated with cat(1-9) &amp;amp; man(1-9)


The problem is the headers and the libs for the gui, math, and others didn't
move.  I tried to manually copy the headers over but they don't seem to collate
correctly (the headers explode, specifically the config stuff when trying to
compile the helloworld.c).

Just wondering if anyone has any ideas.  Thanks for the consideration.
&lt;/pre&gt;</description>
    <dc:creator>Jeremy Quandt</dc:creator>
    <dc:date>2011-06-01T00:52:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/635">
    <title>Agar demos fail to start "No graphics drivers are available"</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/635</link>
    <description>&lt;pre&gt;I downloaded agar-1.4.1 did a config, make, make install.

I see no errors with the install, or with compilation of demos, but on executing 
any of the demos I get the following error:

"No graphics drivers are available"

Has anyone else encountered this? and can you point me at place to start?

This is the first time I have attempted to use Agar on Fedora 14, but have 
successfully used it in F12.
&lt;/pre&gt;</description>
    <dc:creator>MAP</dc:creator>
    <dc:date>2011-05-19T00:43:32</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/633">
    <title>Pending topics</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/633</link>
    <description>&lt;pre&gt;Hello,

Thanks for Agar's library, which is neat.

For the sake of users' feedback, I tried to make a kind of list of bug 
reports/suggested improvements dealing with it.

Here it is (based on latest version of libagar from SVN, rev 8973, on 
Ubuntu  Maverick 64-bit):

While using AG_InitGraphics, some window-related problems arose *only* 
with the OpenGL (glx) driver (thus not with the SDL one):

  * O1: A main window created with:
   AG_Window &amp;amp; win = * AG_WindowNew( /* flags */ AG_WINDOW_KEEPABOVE
     | AG_WINDOW_PLAIN | AG_WINDOW_NORESIZE | AG_WINDOW_NOBUTTONS
     | AG_WINDOW_NOMOVE ) ;

will let top and bottom parts of the desktop (applet bar/task bar) be 
seen as soon as a modal window is created, at least with:
  AG_Window &amp;amp; errorWin = * AG_WindowNew( AG_WINDOW_DIALOG | AG_WINDOW_MODAL
     | AG_WINDOW_NORESIZE | AG_WINDOW_NOCLOSE | AG_WINDOW_NOMINIMIZE
     | AG_WINDOW_NOMOVE | AG_WINDOW_NOMAXIMIZE | AG_WINDOW_NOBORDERS
     | AG_WINDOW_KEEPABOVE ) ;

   * O2: when a modal window is created, its initial client area is 
apparently in my case the content of another surface/texture: I can see 
a clone of a label of the main window which flashes, being replaced by 
its expected content as soon as the modal window decides to redraw 
itself, a few milliseconds later

   * O3: despite having a modal window on top, I can push buttons on the 
main window underneath and trigger events


Same code, with the SDL driver:

  * S1: could not succeed in having the main window being fullscreen 
(tried AG_WindowMaximize, AG_WindowSetGeometry, AG_WindowSetGeometryMax, 
whereas the same code with OpenGL is fullscreen)

  * S2: if maximizing that window, most content goes out of the screen 
(as if the virtual screen was twice as wide), and it is not possible to 
return to the initial normal screen layout

  * S3: even when being fully minimized, redraws are triggered permanently!


Other unrelated problems:

     - U1: if having configured Agar without the math module 
(--disable-math), attempts to build demos using that module (ex: 
'plotting') will still be done and will fail at link time (ex: 
plotting.o: In function `ComputeSquaredSineConstants': 
plotting.c:(.text+0x86e): undefined reference to `M_PlotLabelSetText'); 
by the way, it is a surprise it compiles at all, as one could expect the 
configure step to have set something like #define AGAR_USES_MATH false 
and the math headers to be wrapped in the corresponding preprocessor 
test (conditionally defining their symbols)

     - U2: font rendering might be incorrectly truncated into client 
area (see http://esperide.com/agar-font-rendering-truncated.png)

     - U3: fix the -L/usr/lib64 linking problem by putting in at end 
rather than at begin of the link paths

     - U4: ensure that widgets are rendered a lot less frequently, 
ideally only needed (currently they are many useless renderings, as 
shown when displaying a message in the console at each, say, label redrawing


Suggested enhancements:

     - E1: allow to define the "focus chain"
     - E2: have AG_TEXTBOX_ABANDON_FOCUS de-select the current widget 
and select the next one in the focus chain (or define 
AG_TEXTBOX_TRANSMIT_FOCUS or alike)
     - E3: improve struct declarations 
(http://article.gmane.org/gmane.comp.lib.agar.general/612)
     - E4: decrease the use of macros, especially declared in installed 
headers
     - E5: some other elements listed in 
http://article.gmane.org/gmane.comp.lib.agar.general/609 probably still 
apply
     - E6: support per-label font definition

I do not know how this could be organized (ex: should we used the 
bugtracker in http://bugs.hypertriton.com/enter_bug.cgi?product=Agar? 
Would branches be useful? etc.), but maybe that the community could help 
a bit improving Agar. I may be able to contribute some fixes. Some 
topics (ex: E6) are definitively more easily tackled than others (build 
or alike).

Thanks for this library,
Best regards,

Olivier Boudeville.
&lt;/pre&gt;</description>
    <dc:creator>Olivier Boudeville</dc:creator>
    <dc:date>2011-04-19T13:41:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/629">
    <title>Possible error in agar library.</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/629</link>
    <description>&lt;pre&gt;I am a beginner at Agar, and probably don't understand enough yet.  But,
I am having a problem in a project that I am working on which can be
demonstrated using the demos that are provided in Agar 1.4.1.

I am running the ..../demo/console/console program using the sdlfb
driver (i.e. ./console -d sdlfb).

Can someone explain what is going.  If I run this program and do nothing
except dismiss the console via the "X" (the interior one, not the
controling window) the console remains on the screen.  I would expect it
to disappear and leave only the black window.  On the other hand, if I
execute the same demo program and this time select the "SelFont" button,
and now either (or both) will close as expected when the "X" is clicked.

It is important to understand that I need this to work using the sdlfb
driver since I am trying to use Agar within an existing SDL application.

Thanks in advance for your comments,

&lt;/pre&gt;</description>
    <dc:creator>Kenneth Berry</dc:creator>
    <dc:date>2011-04-13T19:50:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/628">
    <title>Issues with Dynamic Libraries in Windows and FreeBSD</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/628</link>
    <description>&lt;pre&gt;I've tried the below code in Windows and FreeBSD. In both cases, it can load some, but not all functions from the DLLs/SOs. Does anyone know what I'm doing wrong? I am using the DLLs downloaded from here: http://libagar.org/download.html.en (MSVC - agar-1.4.1-win32-i386.zip) and building Agar in FreeBSD.

Thanks,
-Jim Stapleton


===== test.c =====

/*           Public domain    */
/*
* Test dynamic loading of libagar
*/

//compile:
//in the Visual Studio command line:
//    cl test.c &amp;amp;&amp;amp; test.exe
//in *NIX
//    gcc test.c &amp;amp;&amp;amp; ./a.out

#include &amp;lt;stdio.h&amp;gt;
//#include &amp;lt;agar/core.h&amp;gt;
//#include &amp;lt;agar/gui.h&amp;gt;


#ifdef _WIN32
#define COREDL    "c:/windows/ag_core.dll"
#define GUIDL     "c:/windows/ag_gui.dll"
#include &amp;lt;windows.h&amp;gt;
#define DLTYPE    HINSTANCE
#else
#define COREDL    "/usr/local/lib/libag_core.so"
#define GUIDL     "/usr/local/lib/libag_gui.so"
#include &amp;lt;dlfcn.h&amp;gt;
#define DLTYPE    void *
#endif

char esbuff[1000];
//dynamic library references
DLTYPE dl_agcore = NULL;
DLTYPE dl_aggui  = NULL;

int (*AG_Getopt)(int argc, char * const argv[], const char *, char **, int*);
int (*AG_InitCore)(const char * title, int flags);
char* (*AG_GetError)(void);
int (*AG_InitGraphics)(const char * drv);
void (*AG_Destroy)(void);
//something I know is exported
void (*AG_SDL_BlitSurface)(void*, void*, void*, int, int);


//like dlload, but return a non-zero on error, and printf a message
int edload(void **handle, char *name, int flags);
int loadfn(void **fn, void *handle, char *name, char *handle_name);
void cleanup();
//load all function pointers we use
int fpinit();


int main(int argc, char *argv[])
{
  int ret=-1;
  fprintf(stderr, "executing main\n");
  if(fpinit()==0)
  {
    ret=_main(argc, argv);
  }
  else
  {
    fprintf(stderr, "Failed to load dynamic libraries. Last error: %s", esbuff);
  }
  cleanup();
  return ret;
}

int _main(int argc, char *argv[])
{
  //AG_Window *win;
  char *driverSpec = NULL, *optArg;
  int c, i;

  fprintf(stderr, "Parsing opts.\n");

  while ((c = AG_Getopt(argc, argv, "?hd:", &amp;amp;optArg, NULL)) != -1)
  {
    switch (c)
    {
      case 'd':
                driverSpec = optArg;
                break;
      case '?':
      case 'h':
      default:
                printf("Usage: windows [-d agar-driver-spec]\n");
                return (1);
    }
  }

  fprintf(stderr, "Core Init.\n");

  if (AG_InitCore("agar-windows-demo", 0) == -1)
  {
    fprintf(stderr, "%s\n", AG_GetError());
    return 1;
  }
  printf("After Core Init success/AGERR: %s\n\n",AG_GetError());
                AG_Destroy();
                return (0);
}


int fpinit()
{
  char errstr;
  fprintf(stderr, "loading libraries.\n");
  if((errstr = esdlo(&amp;amp;dl_agcore, COREDL, 0))) return 1;
  if((errstr = esdlo(&amp;amp;dl_aggui,  GUIDL,  0))) return 1;

  fprintf(stderr, "loading functions.\n");
  //test, should work
  if(loadfn((void**)(&amp;amp;AG_SDL_BlitSurface), dl_aggui, "AG_SDL_BlitSurface", "ag_gui")) return 1;

  if(loadfn((void**)(&amp;amp;AG_Getopt),       dl_agcore, "AG_Getopt",       "ag_core")) return 1;
  if(loadfn((void**)(&amp;amp;AG_InitCore),     dl_agcore, "AG_InitCore",     "ag_core")) return 1;
  if(loadfn((void**)(&amp;amp;AG_GetError),     dl_agcore, "AG_GetError",     "ag_core")) return 1;
  if(loadfn((void**)(&amp;amp;AG_Destroy),      dl_agcore, "AG_Destroy",      "ag_core")) return 1;
  if(loadfn((void**)(&amp;amp;AG_InitGraphics), dl_aggui, "AG_InitGraphics", "ag_gui"))  return 1;
  fprintf(stderr, "done.\n");

  return 0;
}

void cleanup()
{
#ifdef _WIN32
  if(dl_agcore) FreeLibrary(dl_agcore);
  if(dl_aggui)  FreeLibrary(dl_aggui);
#else
  if(dl_agcore) dlclose(dl_agcore);
  if(dl_aggui)  dlclose(dl_aggui);
#endif
}

int loadfn(void **fn, DLTYPE handle, char *name, char *handle_name)
{
#ifdef _WIN32
                (*(FARPROC*)(fn)) = GetProcAddress(handle, name);
#else
                *fn = dlsym(handle, name);
#endif
  if(!(*fn))
  {
    sprintf(esbuff, "Error loading function %s::%s\n", handle_name, name);
    return 1;
  }
  return 0;
}

int esdlo(DLTYPE *handle, char *name, int flags)
{
#ifdef _WIN32
  (*handle) = LoadLibrary(name);
#else
  (*handle) = dlopen(name, flags);
#endif
  if(!(*handle))
  {
#ifdef _WIN32
#else
    sprintf(esbuff, "Error loading dll %s (%s)\n", name, dlerror());
#endif
    printf(esbuff);
    return 1;
  }
  return 0;
}

_______________________________________________
Agar mailing list
Agar-xWq8P/a1moLx9BLsLxWUfA&amp;lt; at &amp;gt;public.gmane.org
http://libagar.org/lists.html
&lt;/pre&gt;</description>
    <dc:creator>Stapleton, Steven J.</dc:creator>
    <dc:date>2011-04-04T19:04:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/626">
    <title>Focus questions</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/626</link>
    <description>&lt;pre&gt;Hi,

Is there a way of defining a "focus chain" (elements and order of a 
cycling focus)? I typically would like the focus to be set on a login 
textbox, then on a password textbox, then on a "Go!" button. Currently 
that chain happens to follow the order that I wanted (it must correspond 
to the creation order of the focus-enabled widgets?), but otherwise I 
was wondering how I could have set the focus chaining.

Moreover AG_TEXTBOX_ABANDON_FOCUS is a nice feature, as indeed hitting 
Enter removes the focus of the textbox (ex: from the login one), but 
apparently the focus is not then given to the next element which would 
have been selected if tab was hit multiple times instead (ex: to the 
password textbox). This prevents having a mouse-less interface, the user 
having to click on the password textbox to give it the focus (or to use 
the tab key). How could the focus be automatically given to the next 
element in the focus chain once Enter is hit?

(if it matters, using AG_InitGraphics with the OpenGL driver with Ubuntu 
10.10 and latest Agar from SVN)

Thanks in advance for any hint,
Best regards,

Olivier Boudeville.
&lt;/pre&gt;</description>
    <dc:creator>Olivier Boudeville</dc:creator>
    <dc:date>2011-03-29T14:22:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/623">
    <title>JPEG library selection bug</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/623</link>
    <description>&lt;pre&gt;Hi,

I am using the Agar configure option --with-jpeg (based on latest Agar's 
SVN), pointing to a user-space libjpeg install. It seems appropriately 
managed (ex: agar-config --libs points to the right paths), until I run 
a Agar-using program which crashed, being unable to load a JPEG.

Despite specifying the right -L/-l pair at build time and using proper 
LD_LIBRARY_FLAGS at runtime, as shown with ldd that executable was 
linked to the system-level JPEG library, not the user-space one. If 
"hiding" the system-level JPEG libraries and rebuilding Agar, ldd tells 
the link was then made to the right user-level JPEG, and indeed the 
program worked.

Same thing with Agar tests, in 'demos' directory: no matter what I do 
(including with LD_LIBRARY_PATH; I suppose rpath is thus being used ; 
proper -L/-l are specified there as well), they will be linked to the 
wrong libjpeg, unless it is hidden before the build.

Curiously, the problem does not occur for SDL or Freetype.
By the way: agar-config --cflags does not mention the -I for any 
user-space JPEG apparently.

Thanks in advance for any hint,
Best regards,

Olivier Boudevillle.
&lt;/pre&gt;</description>
    <dc:creator>Olivier Boudeville</dc:creator>
    <dc:date>2011-03-29T09:43:45</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/622">
    <title>troubles compiling 1.4.1</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/622</link>
    <description>&lt;pre&gt;hello,

anyone could please help to compile agar 1.4.1?

i'm running
  ./configure --prefix=/usr \
          --enable-network \
          --bindir=/usr/bin/    \
          --libdir=/usr/lib/${pkgname} \
          --infodir=/usr/share/info \
          --sharedir=/usr/share
  make  DESTDIR=$pkgdir MANDIR=/usr/share/man install

and getting

....
install -c -m 644 AG_Getopt.3
/home/jose/tarballs/pacman/agar/pkg/usr/share/man/man3
install -c -m 644 AG_Execute.3
/home/jose/tarballs/pacman/agar/pkg/usr/share/man/man3
install -c -m 644 [xxx]/home/jose/tarballs/pacman/agar/pkg/usr/share/man/cat3
install: cannot stat `\177': No such file or directory
install-manpages.sh failed
make[1]: *** [install-man] Error 1
make[1]: Leaving directory `/home/jose/tarballs/pacman/agar/src/agar-1.4.1/core'
make: *** [install-subdir] Error 1

[xxx] is \177 (Esc character).

i already tried to locate the source of this problem but failed :-(

cheers,

jose
&lt;/pre&gt;</description>
    <dc:creator>Jozef Riha</dc:creator>
    <dc:date>2011-03-27T10:46:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/621">
    <title>Another issue</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/621</link>
    <description>&lt;pre&gt;In FreeBSD I can't load up the ag_gui.so

I have a C program using dlopen/dlsym to figure out why Mono won't load the 
ag_gui shared object. I have had no issues with ag_core so far (AG_ 
InitCore, Getopt, Destory, GetError). However I dlopen returns null for 
ag_gui. dlerror reports:
  /usr/local/lib/libag_gui.so: Undefined symbol "agTimingLock"

nm reports that this symbol is there, with a 'U' and no address. The only 
..so with this symbol, no 'U' and an address is ag_core, which has a 'B' 
(defined/uninitialized). By this point, ag_core is already loaded.

Any suggestions regarding this issue?

If you want to see my code, should I paste it inline, attach it, or put it 
up on a web server?

Thanks,
-Jim Stapleton 
&lt;/pre&gt;</description>
    <dc:creator>S James S Stapleton</dc:creator>
    <dc:date>2011-03-22T14:28:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.agar.general/620">
    <title>Agar / Windows+Visual Studio 2010 / dumpbin</title>
    <link>http://comments.gmane.org/gmane.comp.lib.agar.general/620</link>
    <description>&lt;pre&gt;I am trying to write a .NET wrapper around Agar (or at least the portions 
that make sense for such a wrapping), and I am running into troubles.

With the 1.4.0 and 1.4.1 libraries, I am getting "EntryPoint not found" 
errors. I have run microsoft's `dumpbin /EXPORTS` application within Visual 
Studios, and it says there are no entry points in the libraries (1.4.0) and 
only a few entry points (1.4.1) - not including AG_Getopts and AG_InitCore 
in ag_core.dll. Does anyone know a good workaround? I tried building the 
1.4.0 library (VS 2010 Express), but did not get any further exports. I 
haven't managed to build 1.4.1 yet.

So:
1.4.0 - downloaded/win32 -&amp;gt; no entry points
1.4.0 - built/VS 2010 -&amp;gt; no entry points
1.4.1 - downloaded/VS -&amp;gt; some entry points, but most are missing
1.4.1 - downloaded/MinGW -&amp;gt; no dlls
1.4.1 -&amp;gt; built/VS 2010 -&amp;gt; can't yet get it to compile

from the visual studio command prompt (not the normal windows prompt), 
`dumpbin /EXPORTS ag_core.dll` is an analog to `nm ag_core.so` in *NIX.

As another experiment, I tried the wrapper in FreeBSD, and it could load 
ag_core just fine, and call AG_Getopts, AG_InitCore, and AG_GetError.

I'll try writing a sample C app in windows using Agar via dlopen today or 
tomorrow. Sorry for not waiting until after it is written, but I'd like to 
get one or two demos of my wrapper done by next week, when I'll get busy 
again.


Thanks,
-Jim Stapleton 
&lt;/pre&gt;</description>
    <dc:creator>S James S Stapleton</dc:creator>
    <dc:date>2011-03-22T11:28:42</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lib.agar.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lib.agar.general</link>
  </textinput>
</rdf:RDF>

