Robin Haberkorn | 10 Jan 23:26

sdlfb missing redraws and other bugs

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.
(Continue reading)

rafael ff1 | 28 Sep 01:26
Picon

Fwd: AGAR Build

(sending my reply to mail list too...)

---------- Forwarded message ----------
>From: rafael ff1 <rafael.f.f1@...>
Date: 2011/9/27
Subject: Re: [Agar] AGAR Build
To: Michael <mapollock2@...>

2011/9/27 Michael <mapollock2@...>:

> I have managed to make progress following Rafael and Julien's thread "Build fail
> on Archlinux" and have completed the make step.
>
> However, I now get to the same error:
>
> install -c -m 644 AG_Execute.3 /usr/local/man/man3
> install -c -m 644   /usr/local/man/cat3
> install: cannot stat `\177': No such file or directory
> install-manpages.sh failed
> make[1]: *** [install-man] Error 1
>
> I have tried using make install with "SH=dash", as well as trying to make from
> other shells.
>
> Can you provide a bit more detail on how to clear this error?
>
> Thanks Michael
>

I added "--with-catman=no" to "./configure" as I notice this error
(Continue reading)

rafael ff1 | 16 Sep 21:54
Picon

Build fail on Archlinux

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 @ 1.50GHz GenuineIntel GNU/Linux

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

Thanks in advance,

Rafael
MAP | 6 Sep 23:01
Picon

AGAR Build

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 <at> hypertriton.com
http://libagar.org/lists.html
(Continue reading)

haithem rahmani | 3 Sep 22:28
Picon

unable to cross-compile agar

Hi,
I'm trying to cross compile agar here what I did:

$> ./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

--
"If you ask a question - you will be a fool for 5 minutes, otherwise ignorant for rest of your life"

_______________________________________________
Agar mailing list
Agar@...
http://libagar.org/lists.html
MAP | 30 Jul 02:39
Picon

64 Bit Install

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
Reinoud Zandijk | 27 Jul 12:24

Compiling Agar natively on Windows mingw, revisited

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
Reinoud Zandijk | 22 Jul 21:10

RFC: Compiling Agar (and applications) on Windows

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
Ed Lu | 15 Jun 00:27
Picon

Linker error with math.h

Hi, I get the following linker error when I try to compile while including
math.h and its library:
Error	12	error 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!
Jozef Riha | 13 Jun 23:13
Picon
Gravatar

configure fails

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
Jeremy Quandt | 1 Jun 02:52
Picon

Agar Installation

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) & 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.

Gmane