project-navigation
Personal tools

Author Topic: V2.2 trunk 11883 Can not compile WinXP  (Read 4332 times)

Offline clint

  • Rookie
  • ***
  • Posts: 11
    • View Profile
V2.2 trunk 11883 Can not compile WinXP
« on: September 20, 2007, 07:10:13 pm »
Hi
When I try to compile (ufo.workspace) I get this error

-------------- Build: windows in ufo ---------------
Linking executable: ..\..\ufo.exe
C:\development\MinGW\lib/libcurl.a(version.o): undefined reference to `zlibVersion'
C:\development\MinGW\lib/libcurl.a(version.o): undefined reference to `zlibVersion'
C:\development\MinGW\lib/libcurl.a(content_encoding.o): undefined reference to `inflateInit_'
C:\development\MinGW\lib/libcurl.a(content_encoding.o): undefined reference to `zlibVersion'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
4 errors, 0 warnings

What is wrong? should I install new libcurl?
Can you help me?

I use code::block from your site.
 (earlier revisions (<11871) worked ok)
regards

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: V2.2 trunk 11883 Can not compile WinXP
« Reply #1 on: September 20, 2007, 07:33:15 pm »
there is also an updated codeblock package at http://mattn.ninex.info/download/ - please try that one. I've added libcurl into this release today

Offline clint

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Re: V2.2 trunk 11883 Can not compile WinXP
« Reply #2 on: September 20, 2007, 08:43:38 pm »
Thanks
This works

but this error still occurs
AIR_Load()... Too many bullets on map (255)
Bug tracker 1798185
http://sourceforge.net/tracker/index.php?func=detail&aid=1798185&group_id=157793&atid=805242

Tip for day:
Don't use your inreceptors or use them without bullets ;)
could you add kamikaze attack? ;)
regards

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: V2.2 trunk 11883 Can not compile WinXP
« Reply #3 on: September 20, 2007, 11:04:34 pm »
this bug is now fixed (hopefully) - see https://sourceforge.net/support/tracker.php?aid=1798185 for more infos

but you still might be in trouble with your 'old' savegames (because they may already contain the wrong value)

Offline clint

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Re: V2.2 trunk 11883 Can not compile WinXP
« Reply #4 on: September 21, 2007, 12:16:08 pm »
Ohh thanks
Can I change in hex editor this value at saved game(slot7)?
Could you write me at what position in savegame(slot7) file and what value I should write by hex editor? (this was very tough mission)
If not, can I use without problem one step earlier savegame slot6? (I think there is this value about 240)

This is so great project. Game supeeerrr, support, supeerrr. I never thought that is possible.
I have got feeling that I give a little (very small) for this.

I want to help more but my play with programming was ended at turbo C, turbo pascal, basic.
English  - as you can see - hmmm,
but I'm quite good at looking for best solution at particular issue (I see issue from different point of view).
If I could help help I will do this.
Kind regards

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: V2.2 trunk 11883 Can not compile WinXP
« Reply #5 on: September 21, 2007, 12:55:18 pm »
Code: [Select]
Index: src/client/cl_aircraft.c
===================================================================
--- src/client/cl_aircraft.c    (Revision 11889)
+++ src/client/cl_aircraft.c    (Arbeitskopie)
@@ -2102,7 +2102,7 @@
        /* Load bullets. */
        numBullets = MSG_ReadByte(sb);
        if (numBullets > MAX_BULLETS_ON_GEOSCAPE)
-               Sys_Error("AIR_Load()... Too many bullets on map (%i)\n", numBullets);
+               numBullets = 0;
        for (i = 0; i < numBullets; i++) {
                for (j = 0; j < BULLETS_PER_SHOT; j++)
                        MSG_Read2Pos(sb, bulletPos[i][j]);

Apply this small patch and you should be able to load your game again
after that save it again and revert the patch.

About your offers - bugreports are always welcome - as detailed as possible - see the bugs article in our wiki

Offline clint

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Re: V2.2 trunk 11883 Can not compile WinXP
« Reply #6 on: September 21, 2007, 09:38:13 pm »
It works, thanks.