project-navigation
Personal tools

Author Topic: CodeBlocks: Very much build errors  (Read 7256 times)

Offline marcinator_2

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
CodeBlocks: Very much build errors
« on: January 31, 2010, 05:14:09 pm »
Hi guys!
I've tried to compile the Files with CB (SVN 6080) but im gettin over 50 errors. Ive compiled an older version of UFOAI about a year ago, and everything went fine. But then my OS was XP Prof. x86 and now I have Win 7 x64.
Ive downloaded the files with TortoiseSVN. Ive taken the settings in CB from the wiki-manual.
One thing I can read from the log is that I dont have all header-files. But Ive copied the 4.4.1 directory to the UFO folder and the headerfiles are there. The other errors seem to me as if there are program errors. But that is real unlikely I think.
Is there anything I forgot to do? In my memory Ive done the same last year.
Cheers

Heres the log:

Quote
||=== game, windows ===|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\ufotypes.h|34|error: inttypes.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\ufotypes.h|42|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\byte.h|33|error: expected ')' before 'l'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\byte.h|34|error: expected ')' before 'l'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\byte.h|35|error: expected ')' before 'l'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\byte.h|36|error: expected ')' before 'l'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|35|error: errno.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|36|error: assert.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|37|error: math.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|38|error: stdio.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|40|error: string.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|41|error: stdlib.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|42|error: time.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\shared.h|43|error: ctype.h: No such file or directory|
e:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include-fixed\limits.h|122|error: no include path in which to search for limits.h|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\mathlib.h|42|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\mathlib.h|43|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos3_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\mathlib.h|44|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pos4_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\mathlib.h|109|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dvright'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\mathlib.h|110|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dvleft'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\q_shared.h|46|error: direct.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\q_shared.h|47|error: io.h: No such file or directory|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\q_shared.h|68|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\q_shared.h|75|warning: type defaults to 'int' in declaration of 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\q_shared.h|75|error: expected ';', ',' or ')' before '*' token|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\common\filesys.h|56|error: expected specifier-qualifier-list before 'FILE'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\common\filesys.h|141|error: expected declaration specifiers or '...' before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|101|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|226|error: expected specifier-qualifier-list before 'uint32_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|316|error: expected specifier-qualifier-list before 'uint32_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|361|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|696|error: expected ')' before '*' token|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|697|warning: type defaults to 'int' in declaration of 'uint32_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|697|error: expected ';', ',' or ')' before '*' token|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|698|warning: type defaults to 'int' in declaration of 'uint32_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|698|error: expected ';', ',' or ')' before 'shape'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\inv_shared.h|699|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'INVSH_ShapeRotate'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\typedefs.h|23|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\typedefs.h|41|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\typedefs.h|185|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\typedefs.h|193|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\typedefs.h|240|error: expected specifier-qualifier-list before 'uint32_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\..\shared\typedefs.h|312|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\game.h|169|error: expected declaration specifiers or '...' before 'pos3_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\game.h|169|error: expected declaration specifiers or '...' before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\game.h|169|error: expected declaration specifiers or '...' before 'pos_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\game.h|171|error: expected specifier-qualifier-list before 'pos_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|130|error: expected specifier-qualifier-list before 'byte'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|198|error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|283|warning: type defaults to 'int' in declaration of 'pos3_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|283|error: expected ';', ',' or ')' before 'pos'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|315|warning: type defaults to 'int' in declaration of 'pos3_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|315|error: expected ';', ',' or ')' before 'pos'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|337|warning: type defaults to 'int' in declaration of 'pos3_t'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|337|error: expected ';', ',' or ')' before 'at'|
E:\Program Files (x86)\UFOAI-2.3-dev\src\game\g_local.h|344|error: expected declaration specifiers or '...' before 'byte'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 6 warnings ===|
||=== Build finished: 50 errors, 6 warnings ===|


Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: CodeBlocks: Very much build errors
« Reply #1 on: January 31, 2010, 06:00:48 pm »
it looks like the c::b package is broken - we need a windows user to fix it (contrib/scripts/codeblocks.sh). some patches were commited recently but i haven't uploaded a new package yet as nobody confirmed that those fixes led to a working c::b package again.

Offline marcinator_2

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: CodeBlocks: Very much build errors
« Reply #2 on: January 31, 2010, 11:52:36 pm »
Hi,
thanks for the answer! Ive tried to compile it under Ubuntu (Im not used working under Ubuntu/Linux, just have it for emergency). Ive done all the things in Wiki. Downloading worked fine and the "./configure" command worked as well. But when i enter "make "or "make lang" the Terminal says :"make: *** Keine Targets.  Schluss." in english (translated from german) : "make: *** No Targets.  End."
Now to my question: How can I make it that the "make" command gets his targets.
Sorry for the dumb question, but i havent found sth. similar here.
Cheers

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: CodeBlocks: Very much build errors
« Reply #3 on: February 01, 2010, 12:01:54 am »
Hi,
thanks for the answer! Ive tried to compile it under Ubuntu (Im not used working under Ubuntu/Linux, just have it for emergency). Ive done all the things in Wiki. Downloading worked fine and the "./configure" command worked as well. But when i enter "make "or "make lang" the Terminal says :"make: *** Keine Targets.  Schluss." in english (translated from german) : "make: *** No Targets.  End."
Now to my question: How can I make it that the "make" command gets his targets.
Sorry for the dumb question, but i havent found sth. similar here.
Cheers

Are you sure ./configure finished successfully? make alone calls the all target, and lang is a target. If they don't work most probably there is no Makefile in the directory which can be the case if configuring failed.

-geever

Offline marcinator_2

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Code Blocks: Very much build errors
« Reply #4 on: February 01, 2010, 12:21:39 am »
Hi,
Im not really  sure if it was successful. But there was no error message.
Here is the log:
Quote
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking system... UNIX (GNU/Linux)
checking for sed... yes
checking for echo... yes
checking target OS... linux-gnu
checking target CPU... x86_64
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
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 size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of int*... 8
checking for rm... yes
checking for mkdir... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for getaddrinfo... yes
checking for freeaddrinfo... yes
checking whether AI_NUMERICSERV is declared... yes
checking for setpriority... yes
checking for strncasecmp... yes
checking for stdint.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for library containing dlopen... -ldl
checking for library containing cos... -lm
checking for library containing stricmp... no
checking for library containing strcasecmp... none required
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_CreateDecompress in -ljpeg... yes
checking ogg/ogg.h usability... yes
checking ogg/ogg.h presence... yes
checking for ogg/ogg.h... yes
checking for ogg_sync_init in -logg... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for VORBIS... yes
checking xvid.h usability... yes
checking xvid.h presence... yes
checking for xvid.h... yes
checking for xvid_decore in -lxvidcore... yes
checking for THEORA... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for library containing gettext... none required
checking for sdl-config... yes
checking SDL.h usability... yes
checking SDL.h presence... yes
checking for SDL.h... yes
checking SDL_mixer.h usability... yes
checking SDL_mixer.h presence... yes
checking for SDL_mixer.h... yes
checking for library containing Mix_OpenAudio... -lSDL_mixer
checking SDL_ttf.h usability... yes
checking SDL_ttf.h presence... yes
checking for SDL_ttf.h... yes
checking for library containing TTF_Init... -lSDL_ttf
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_info_struct in -lpng... yes
checking for library containing newwin... -lcurses
configure: Without msys
configure: UFORadiant dependencies: gtk2, gtkglext, gtksourceview-2.0, glib2 and libxml2
checking for RADIANT... yes
checking for OPENAL... yes
checking for library containing CU_initialize_registry... no
configure: Without tests - cunit library not found
configure: Enabling client
configure: Enabling dedicated server
configure: Enabling ufo2map
configure: Enabling UFORadiant
configure: Enabling debug build
configure: Enabling signal handling
configure: creating ./config.status
config.status: creating Makefile
sed: -e expression #1, char 359: unknown option to `s'
config.status: creating config.h
config.status: config.h is unchanged

It seems to me that it is ok. But as i said, Linux is new land for me..

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Code Blocks: Very much build errors
« Reply #5 on: February 01, 2010, 05:24:56 pm »
Hi,
Im not really  sure if it was successful. But there was no error message.
Here is the log:
It seems to me that it is ok. But as i said, Linux is new land for me..

This isn't look good:
Code: [Select]
sed: -e expression #1, char 359: unknown option to `s'

maybe a bug in configure script....

-geever

Offline Muton

  • Sergeant
  • *****
  • Posts: 496
    • View Profile
Re: CodeBlocks: Very much build errors
« Reply #6 on: February 02, 2010, 10:01:44 am »
sed error
http://ufoai.ninex.info/forum/index.php?topic=4282.msg33725#msg33725

btw.
use Codeblocks.exe and project files build\projects\*.cbp to compile under Win32

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: CodeBlocks: Very much build errors
« Reply #7 on: February 02, 2010, 07:12:04 pm »
that was fixed already in the codeblocks.sh script - thanks to Muton