project-navigation
Personal tools

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rimo

Pages: [1]
1
Mac / Compile error in unix_main.c; some libs missing?
« on: June 10, 2011, 01:42:29 pm »
Hi,
wanted to try the game again after a while.
I just set up my development environment on macos (snow leopard) via macports as described on wiki (but without the +universal tag, since it is a intel based macbook pro).
Checked out the latest version with git:
Code: [Select]
commit 0cd2abda8aec6c9950c4ecff7c988f38338d15a3
Author: Tamás Fehérvári <geever@users.sourceforge.net>
Date:   Wed Jun 8 20:05:21 2011 +0200

During compilation I got the following errors:
Code: [Select]
>make
===> CC [ufo] src/ports/unix/unix_main.c
src/ports/unix/unix_main.c:164: warning: ‘struct dl_phdr_info’ declared inside parameter list
src/ports/unix/unix_main.c:164: warning: its scope is only this definition or declaration, which is probably not what you want
src/ports/unix/unix_main.c: In function ‘find_matching_file’:
src/ports/unix/unix_main.c:169: warning: ISO C forbids nested functions
src/ports/unix/unix_main.c:169: warning: type qualifiers ignored on function return type
src/ports/unix/unix_main.c:169: warning: return type defaults to ‘int’
src/ports/unix/unix_main.c:169: warning: no previous declaration for ‘ElfW’
src/ports/unix/unix_main.c: In function ‘ElfW’:
src/ports/unix/unix_main.c:169: error: expected declaration specifiers before ‘*’ token
src/ports/unix/unix_main.c:170: error: expected declaration specifiers before ‘ElfW’
src/ports/unix/unix_main.c:171: error: expected declaration specifiers before ‘phdr’
src/ports/unix/unix_main.c:172: error: expected declaration specifiers before ‘for’
src/ports/unix/unix_main.c:172: error: expected declaration specifiers before ‘--’ token
src/ports/unix/unix_main.c:172: error: expected declaration specifiers before ‘phdr’
src/ports/unix/unix_main.c:182: error: expected declaration specifiers before ‘return’
src/ports/unix/unix_main.c:183: error: expected declaration specifiers before ‘}’ token
src/ports/unix/unix_main.c:186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/ports/unix/unix_main.c:238: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
src/ports/unix/unix_main.c:280: warning: type of ‘Phdr’ defaults to ‘int’
src/ports/unix/unix_main.c:280: error: expected ‘{’ at end of input
src/ports/unix/unix_main.c: In function ‘find_matching_file’:
src/ports/unix/unix_main.c:280: error: expected declaration or statement at end of input
src/ports/unix/unix_main.c: At top level:
src/ports/unix/unix_main.c:168: warning: unused variable ‘n’
src/ports/unix/unix_main.c:166: warning: unused variable ‘match’
make: *** [debug-darwin-i386/ufo/ports/unix/unix_main.c.o] Error 1

I guess there is something missing in my build environment. Here is what ./configure reports:
Code: [Select]
>./configure --disable-uforadiant
Found xvid.h
Found theora/theora.h
Found execinfo.h
Found bfd.h
Found sys/utsname.h
Could not find link.h
Found CUnit/Basic.h
Could not find mxml.h
Debug build
Compile for darwin
Compile for i386
Found cc cc
Found cxx c++
Using bindir /usr/local/bin
Using datadir /usr/local/games/ufoai
Using libdir /usr/local/lib
Using prefix /usr/local
Build modules:
Build cgame-multiplayer
Build cgame-skirmish
Build game
Build testall
Build ufo
Build ufo2map
Build ufoded
Build ufomodel
Disable uforadiant
Enable hard linked cgame
Setting custom data directory
Setting custom library directory

Two things were not found:
Code: [Select]
Could not find link.h
Could not find mxml.h
What libraries are needed for this two?

2
Bugs prior to release 2.4 / Solders can not be moved
« on: May 26, 2010, 03:32:55 am »
Hi,

just upgraded to the newest version r30156 from svn.

And now when entering a battle the box below the mouse cursor does not appear and therefore you neither can move the solders nor can shoot.

Didn't see any errors on the console.
Not sure if it is just an issue on a mac or a general error.

Here also the console info about my game environment:
Code: [Select]
----- network initialization -------
libcurl/7.20.0 OpenSSL/0.9.8n zlib/1.2.5 libidn/1.18 initialized.

------ server initialization -------
added 7 maps to the mapcycle

----- console initialization -------
Console initialized.

------- video initialization -------
SDL version: 1.2.14
I: desktop depth: 32bpp
I: video memory: 0
I: Available resolutions: 1440x900 1280x800 1152x720 1024x768 1024x640 800x600 800x500 720x480 640x480 (9)
I: video driver: Quartz
I: setting mode -1
I: set swap control to 0
I: 1024x768 (fullscreen: no)
I: got 8 bits of stencil
I: got 24 bits of depth buffer
I: got double buffer
I: got 8 bits for red
I: got 8 bits for green
I: got 8 bits for blue
I: got 8 bits for alpha
I: got 0 multisample buffers
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA GeForce 8600M GT OpenGL Engine
GL_VERSION: 2.0 NVIDIA-1.5.48
GL_EXTENSIONS: ...
using GL_ARB_texture_non_power_of_two
using GL_ARB_shading_language_100
GLSL Version: 1.20
using GL_ARB_framebuffer_object
max draw buffers: 8
max render buffer size: 8192
max color attachments: 8
using GL_ARB_draw_buffers
max supported lights: 8
max texture units: 4
max texture coords: 8
max vertex attributes: 16
max texture size: detected 8192
...but using 2048 as requested
Using low resolution globe textures as requested.
R_LoadProgram: 'world' loaded.
R_LoadProgram: 'warp' loaded.
R_LoadProgram: 'geoscape' loaded.
R_LoadProgram: 'combine2' loaded.
R_LoadProgram: 'convolve3' loaded.
R_LoadProgram: 'atmosphere' loaded.
R_LoadProgram: 'simple_glow' loaded.
SDL_image version 1.2.10
SDL_ttf version 2.0.9 - we need at least 2.0.7

------- sound initialization -------
SDL_mixer version: 1.2.11
... requested audio rate: 44100
... driver: 'coreaudio'
... audio rate: 44100
... audio channels: 2
... loaded ogg vorbis support

------- input initialization -------
0 possible joysticks
no joystick found.

----------- parse scripts ----------
50 script files
47 ui script files
Shared Client/Server Info loaded
...108 items parsed
... 32 damage types parsed
... 79 map definitions parsed
... 29 equipment definitions parsed
... 10 inventory definitions parsed
... 22 team definitions parsed
executing keys.cfg
music change to van_theme (from PsymongN3)
executing autoexec.cfg
"version" is "UFO: Alien Invasion 2.4-dev IA-32 May 25 2010 MacOSX DEBUG build 30156"
CL_LanguageInit: language settings are stored in configuration: de
...using language: de_CH.UTF-8
SDL_ttf version 2.0.9 - we need at least 2.0.7
...registering 10 fonts
144 static models loaded
====== UFO Initialized ======
=============================
Switch grab input off
Change gametype to 'Campaign mode'
...

Rimo
--------
MacOS 10.5.8

3
Yes, it works now.

Thanks,
Rimo

4
Mac / [FIXED] compile error: conflicting types for ‘SDL_main’
« on: May 04, 2010, 09:57:06 pm »
Hi,

since last week I can't compile afoai anymore. make exits with an arror:

Code: [Select]
macbook$ make
 * [MOD] src/tools/ufomodel/ufomodel.c
src/tools/ufomodel/ufomodel.c:608: error: conflicting types for ‘SDL_main’
/opt/local/include/SDL/SDL_main.h:57: error: previous declaration of ‘SDL_main’ was here
...

The ./configure script went through.
The compilation worked already before too. And I don't remember to have changed anything in the build environment (may be updated macports).

Here is also the list of installed SDL libs:
Code: [Select]
macbook$ port list installed |grep libsdl
libsdl                         @1.2.14         devel/libsdl
libsdl_image                   @1.2.10         devel/libsdl_image
libsdl_mixer                   @1.2.11         audio/libsdl_mixer
libsdl_ttf                     @2.0.9          devel/libsdl_ttf

Any idea what the problem might be.


Rimo
===============
System: Mac OS 10.5.8

5
Bugs prior to release 2.3 / Re: Can't start mission
« on: February 12, 2010, 01:16:39 am »
Hi,

I updated today to R28545.

The error: LE_NotFoundError didn't occure anymore.

-rimo

6
Thanks, it worked.
Installed libsdl_image and it solved the problem.

-rimo

7
Hi,

just updated to R28538 and got an compile error.

Code: [Select]
* [UFO] src/client/renderer/r_image.c
In file included from src/client/renderer/r_image.c:28:
src/client/renderer/../../shared/images.h:32:23: error: SDL_image.h: No such file or directory
{standard input}:3538:non-relocatable subtraction expression, "_imageHash" minus "L00000000018$pb"
{standard input}:3538:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:3347:non-relocatable subtraction expression, "_imageHash" minus "L00000000016$pb"
{standard input}:3347:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:3329:non-relocatable subtraction expression, "_imageHash" minus "L00000000016$pb"
{standard input}:3329:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:2968:non-relocatable subtraction expression, "_imageHash" minus "L00000000013$pb"
{standard input}:2968:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:2905:non-relocatable subtraction expression, "_imageHash" minus "L00000000012$pb"
{standard input}:2905:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:2898:non-relocatable subtraction expression, "_imageHash" minus "L00000000012$pb"
{standard input}:2898:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:2892:non-relocatable subtraction expression, "_imageHash" minus "L00000000012$pb"
{standard input}:2892:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:2886:non-relocatable subtraction expression, "_imageHash" minus "L00000000012$pb"
{standard input}:2886:symbol: "_imageHash" can't be undefined in a subtraction expression
{standard input}:2608:non-relocatable subtraction expression, "_r_dayandnightAlpha" minus "L00000000011$pb"
{standard input}:2608:symbol: "_r_dayandnightAlpha" can't be undefined in a subtraction expression
{standard input}:2480:non-relocatable subtraction expression, "_r_dayandnightAlpha" minus "L00000000011$pb"
{standard input}:2480:symbol: "_r_dayandnightAlpha" can't be undefined in a subtraction expression
make: *** [debug-darwin-i386/client/client/renderer/r_image.o] Error 1

Yesterday i was able to compile R28525, so my build environmant should be fine.
I also could not find the file SDL_image.h in the src tree, so it seems to be really missing.

-rimo

8
Bugs prior to release 2.3 / Re: Can't start mission
« on: February 10, 2010, 06:43:41 pm »
Hi,
I have a similar error. After reading this post I updated to revision 28525.
But still got same error when starting a mission.
Code: [Select]
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
Revision: 28525
Letzter Autor: geever
Last Update: 2010-02-10 17:40:17 +0100 (Mi, 10. Feb 2010)


Error message:
Code: [Select]
load material file: 'materials/oriental.mat'
Starting the game...
rimo has joined team 1
music change to ufo1 (from van_geoscape)
music change to MarineBacktheAttack (from ufo1)
(player 0) It's team 1's round
rimo has taken control over team 1.
number | entnum | type | inuse | invis | pnum | team | size |  HP | state | level | model/ptl
#    0 | #    1 |    2 |     1 |     0 |    0 |    1 |    1 |   0 |     0 |     0 | models/soldiers/femalelight/body.md2
********************
ERROR: LE_NotFoundError: Could not get LE with entnum 1 (src/client/battlescape/events/event/actor/e_event_actorstatechange.c:41)


-rimo

Pages: [1]