Error compiling gravit

45 views
Skip to first unread message

Simeon L.

unread,
Feb 26, 2013, 12:09:06 PM2/26/13
to gra...@googlegroups.com
Hey,

tried to built gravit under Ubuntu (Kernel 3.2.0-38-generic)

Building agar with files from svn was succesfull.
I ran ./autogen.sh und the ./configure:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for C compiler vendor... gnu
checking for gcc option to support OpenMP... -fopenmp
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking omp.h usability... yes
checking omp.h presence... yes
checking for omp.h... yes
checking for x86 cpuid  output... unknown
checking for x86 cpuid 0x00000001 output... 300f10:1020800:802009:178bfbff
checking whether mmx is supported... yes
checking whether sse is supported... yes
checking whether C compiler accepts -mmmx... yes
checking whether C compiler accepts -msse... yes
checking whether C compiler accepts -Ofast... yes
checking whether C compiler accepts -fomit-frame-pointer... yes
checking whether C compiler accepts -ffast-math... yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pow in -lm... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for floor... yes
checking for ftime... yes
checking for memset... yes
checking for mkdir... yes
checking for pow... yes
checking for select... yes
checking for sqrt... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking intrin.h usability... no
checking intrin.h presence... no
checking for intrin.h... no
checking x86intrin.h usability... yes
checking x86intrin.h presence... yes
checking for x86intrin.h... yes
checking xmmintrin.h usability... yes
checking xmmintrin.h presence... yes
checking for xmmintrin.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for memalign... yes
checking for _mm_malloc... no
checking for _mm_free... no
checking for _aligned_malloc... no
checking for __mingw_aligned_malloc... no
checking for working posix_memalign... yes
checking for windres... no
checking for linux-gnu-windres... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... yes
checking for IMG_Load in -lSDL_image... yes
checking for TTF_Init in -lSDL_ttf... yes
checking for GL... yes
checking for GLU... yes
checking if lua support is requested... yes
checking for lua-config... no
checking for pkg-config lua... lua5.1
checking for LUA... yes
checking for LIBPNG... yes
checking if agar support is requested... yes
checking for agar-config... /usr/local/bin/agar-config
checking agar/core.h usability... yes
checking agar/core.h presence... yes
checking for agar/core.h... yes
found AGAR library 1.5.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands



Then I did make and the following error occurred:

  CC     color.o
In file included from src/color.c:22:0:
src/gravit.h:598:5: error: unknown type name 'AG_Style'
src/color.c: In function 'setColoursByMass':
src/color.c:233:17: warning: variable 'p' set but not used [-Wunused-but-set-variable]
make: *** [color.o] Error 1


Hope you can help me

Regards
Simeon

Gerald Kaszuba

unread,
Feb 26, 2013, 3:12:00 PM2/26/13
to gra...@googlegroups.com
Hi Simeon,

Looks like you don't have the Agar library built (i.e., AG_Style is missing).

Check out http://gravit.slowchop.com/BuildingFromSourceLinux/ for the commands to build it.

Gerald

Simeon L.

unread,
Feb 28, 2013, 10:59:41 AM2/28/13
to gra...@googlegroups.com
I have built the svn Version, as described.

./cofigure even recognized it:

checking if agar support is requested... yes
checking for agar-config... /usr/local/bin/agar-config
checking agar/core.h usability... yes
checking agar/core.h presence... yes
checking for agar/core.h... yes
found AGAR library 1.5.0

Gerald Kaszuba

unread,
Feb 28, 2013, 4:36:36 PM2/28/13
to gra...@googlegroups.com
Simeon,

Ah I see. I'll need some more info from you. It looks like the linking to Agar is not working.

Can you show me the output of "agar-config --version" and "agar-config --libs" and also run a `nm` on the library mentioned in `agar-config --libs`.

Also can you show the compiler command that executed that caused the error?

In the mean time it should be possible to disable agar by adding "--without-agar" to your configure command.

Gerald

Frank M.

unread,
Jun 2, 2013, 1:33:38 PM6/2/13
to gra...@googlegroups.com
Hi Simeon,

I can reproduce your problem. It seems that substantial changes to AG_SetStyle() have been performed
in the agar SVN development trunk. Welcome to refactoring hell ;-)

This mean that executing "svn checkout http://dev.hypertriton.com/agar/trunk agar-trunk"
will give you an AGAR version that does not work with gravit any more.

Revision 9102 work for me; you can retrieve it this way:
svn checkout -r 9102 http://dev.hypertriton.com/agar/trunk agar-trunk

After configure and make install, agar-config --version should return "1.4.2-beta".


I hope this is helpful for you.
  cheers,
      Frank.

@all: If you are using a later SVN revison of agar with gravit, please let us know :).
     (you can use "svn info" to find the revision number)



Am Dienstag, 26. Februar 2013 18:09:06 UTC+1 schrieb Simeon L.:
Hey,

tried to built gravit under Ubuntu (Kernel 3.2.0-38-generic)

Building agar with files from svn was succesfull.
I ran ./autogen.sh und the ./configure:

found AGAR library 1.5.0
  CC     color.o
In file included from src/color.c:22:0:
src/gravit.h:598:5: error: unknown type name 'AG_Style'
make: *** [color.o] Error 1

Gerald Kaszuba

unread,
Jun 2, 2013, 5:15:13 PM6/2/13
to gra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages