Runtime error
Runtime error
Hi all,
I am newbie to this awesome project Please help me out of this:
I've got the same problem with sicanjal and I have added the compile directives as DevUrandom recommended.
>> Try adding -lz and -lwsock32 to the list of LDFLAGS in makerules/configure.mk (behind -lSDL_net)
Now the MinGW's compile result is OK (I am newbie to MinGW, too). I've got the executable file warzone2100.exe.
But when I execute warzone2100.exe with it's dependencies DLL, it said that the libogg-0.dll was not found. Even if I copy ogg.lib to libogg-0.dll and execute it again. The application outputs the two empty files: stderr.txt and stdout.txt and flip the screen once. There's nothing in the process list of Windows XP. That's all I've got.
Any recommend would be appreciated.
P/S: I've built the release source version 2.0.5 with MSVC and it's worked well.
I am newbie to this awesome project Please help me out of this:
I've got the same problem with sicanjal and I have added the compile directives as DevUrandom recommended.
>> Try adding -lz and -lwsock32 to the list of LDFLAGS in makerules/configure.mk (behind -lSDL_net)
Now the MinGW's compile result is OK (I am newbie to MinGW, too). I've got the executable file warzone2100.exe.
But when I execute warzone2100.exe with it's dependencies DLL, it said that the libogg-0.dll was not found. Even if I copy ogg.lib to libogg-0.dll and execute it again. The application outputs the two empty files: stderr.txt and stdout.txt and flip the screen once. There's nothing in the process list of Windows XP. That's all I've got.
Any recommend would be appreciated.
P/S: I've built the release source version 2.0.5 with MSVC and it's worked well.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Runtime error
If it wants a DLL at all (besides OpenAL or OpenGL) you did something wrong...
Additionaly even the old DLLs didn't have a "-0" in their name.
Try this devpkg: http://download.gna.org/warzone/develop ... 0060108.7z
(And wipe the old one.)
(Updated link.)
Additionaly even the old DLLs didn't have a "-0" in their name.
Try this devpkg: http://download.gna.org/warzone/develop ... 0060108.7z
(And wipe the old one.)
(Updated link.)
Last edited by DevUrandom on 09 Jan 2007, 18:37, edited 1 time in total.
Re: Runtime error
Thanks but the new package (exactly warzone-devpkg-mingw32-20060108.7z) causes a lot of errors in devpkg/include/jpeglib.h and wz/src/screen.c
I think you should build from the beginning on a clean-test machine following the instruction of this website to get the same case as me.
I know there's something wrong in the MinGW's make configuration :'( because I can build the source well on MSVC
Here's the compile output:
I think you should build from the beginning on a clean-test machine following the instruction of this website to get the same case as me.
I know there's something wrong in the MinGW's make configuration :'( because I can build the source well on MSVC
Here's the compile output:
Sorry for don't know how to use small text boxD:/Downloads/dev_package/include/jpeglib.h:179: error: syntax error before '}' t
oken
D:/Downloads/dev_package/include/jpeglib.h:179: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:254: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:254: warning: no semicolon at end of
struct or union
D:/Downloads/dev_package/include/jpeglib.h:259: error: syntax error before '}' t
oken
D:/Downloads/dev_package/include/jpeglib.h:269: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:269: warning: no semicolon at end of
struct or union
D:/Downloads/dev_package/include/jpeglib.h:299: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:299: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:302: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:302: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:305: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:305: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:306: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:306: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:320: error: syntax error before "raw_
data_in"
D:/Downloads/dev_package/include/jpeglib.h:320: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:321: error: syntax error before "arit
h_code"
D:/Downloads/dev_package/include/jpeglib.h:321: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:322: error: syntax error before "opti
mize_coding"
D:/Downloads/dev_package/include/jpeglib.h:322: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:323: error: syntax error before "CCIR
601_sampling"
D:/Downloads/dev_package/include/jpeglib.h:323: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:337: error: syntax error before "writ
e_JFIF_header"
D:/Downloads/dev_package/include/jpeglib.h:337: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:347: error: syntax error before "writ
e_Adobe_marker"
D:/Downloads/dev_package/include/jpeglib.h:347: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:363: error: syntax error before "prog
ressive_mode"
D:/Downloads/dev_package/include/jpeglib.h:363: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:379: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:379: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:396: error: 'SDL_main' redeclared as
different kind of symbol
D:/Downloads/dev_package/include/SDL/SDL_main.h:53: error: previous declaration
of 'SDL_main' was here
D:/Downloads/dev_package/include/jpeglib.h:396: error: 'SDL_main' redeclared as
different kind of symbol
D:/Downloads/dev_package/include/SDL/SDL_main.h:53: error: previous declaration
of 'SDL_main' was here
D:/Downloads/dev_package/include/jpeglib.h:406: error: syntax error before '}' t
oken
D:/Downloads/dev_package/include/jpeglib.h:412: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:412: warning: no semicolon at end of
struct or union
D:/Downloads/dev_package/include/jpeglib.h:436: error: syntax error before "buff
ered_image"
D:/Downloads/dev_package/include/jpeglib.h:436: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:437: error: syntax error before "raw_
data_out"
D:/Downloads/dev_package/include/jpeglib.h:437: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:440: error: syntax error before "do_f
ancy_upsampling"
D:/Downloads/dev_package/include/jpeglib.h:440: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:441: error: syntax error before "do_b
lock_smoothing"
D:/Downloads/dev_package/include/jpeglib.h:441: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:443: error: syntax error before "quan
tize_colors"
D:/Downloads/dev_package/include/jpeglib.h:443: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:446: error: syntax error before "two_
pass_quantize"
D:/Downloads/dev_package/include/jpeglib.h:446: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:449: error: syntax error before "enab
le_1pass_quant"
D:/Downloads/dev_package/include/jpeglib.h:449: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:450: error: syntax error before "enab
le_external_quant"
D:/Downloads/dev_package/include/jpeglib.h:450: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:451: error: syntax error before "enab
le_2pass_quant"
D:/Downloads/dev_package/include/jpeglib.h:451: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:522: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:522: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:525: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:525: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:526: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:526: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:535: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:535: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:538: error: syntax error before "prog
ressive_mode"
D:/Downloads/dev_package/include/jpeglib.h:538: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:539: error: syntax error before "arit
h_code"
D:/Downloads/dev_package/include/jpeglib.h:539: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:550: error: syntax error before "saw_
JFIF_marker"
D:/Downloads/dev_package/include/jpeglib.h:550: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:557: error: syntax error before "saw_
Adobe_marker"
D:/Downloads/dev_package/include/jpeglib.h:557: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:560: error: syntax error before "CCIR
601_sampling"
D:/Downloads/dev_package/include/jpeglib.h:560: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:597: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:597: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:619: error: conflicting types for 'ma
ster'
D:/Downloads/dev_package/include/jpeglib.h:395: error: previous declaration of '
master' was here
D:/Downloads/dev_package/include/jpeglib.h:620: error: conflicting types for 'SD
L_main'
D:/Downloads/dev_package/include/jpeglib.h:396: error: previous declaration of '
SDL_main' was here
D:/Downloads/dev_package/include/jpeglib.h:621: error: conflicting types for 'co
ef'
D:/Downloads/dev_package/include/jpeglib.h:398: error: previous declaration of '
coef' was here
D:/Downloads/dev_package/include/jpeglib.h:624: error: conflicting types for 'ma
rker'
D:/Downloads/dev_package/include/jpeglib.h:399: error: previous declaration of '
marker' was here
D:/Downloads/dev_package/include/jpeglib.h:625: error: conflicting types for 'en
tropy'
D:/Downloads/dev_package/include/jpeglib.h:403: error: previous declaration of '
entropy' was here
D:/Downloads/dev_package/include/jpeglib.h:628: error: conflicting types for 'cc
onvert'
D:/Downloads/dev_package/include/jpeglib.h:400: error: previous declaration of '
cconvert' was here
D:/Downloads/dev_package/include/jpeglib.h:630: error: syntax error before '}' t
oken
D:/Downloads/dev_package/include/jpeglib.h:718: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:718: warning: no semicolon at end of
struct or union
D:/Downloads/dev_package/include/jpeglib.h:720: error: syntax error before '}' t
oken
D:/Downloads/dev_package/include/jpeglib.h:730: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:730: warning: no semicolon at end of
struct or union
D:/Downloads/dev_package/include/jpeglib.h:732: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:732: error: `boolean' declared as fun
ction returning a function
D:/Downloads/dev_package/include/jpeglib.h:732: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:734: error: syntax error before '}' t
oken
D:/Downloads/dev_package/include/jpeglib.h:768: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:774: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:781: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:786: error: syntax error before "bool
ean"
D:/Downloads/dev_package/include/jpeglib.h:809: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:809: error: `boolean' declared as fun
ction returning a function
D:/Downloads/dev_package/include/jpeglib.h:809: error: 'boolean' redeclared as d
ifferent kind of symbol
D:/Downloads/dev_package/include/jpeglib.h:732: error: previous declaration of '
boolean' was here
D:/Downloads/dev_package/include/jpeglib.h:809: error: 'boolean' redeclared as d
ifferent kind of symbol
D:/Downloads/dev_package/include/jpeglib.h:732: error: previous declaration of '
boolean' was here
D:/Downloads/dev_package/include/jpeglib.h:932: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:932: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:933: error: syntax error before '*' t
oken
D:/Downloads/dev_package/include/jpeglib.h:933: warning: data definition has no
type or storage class
D:/Downloads/dev_package/include/jpeglib.h:975: error: `jpeg_start_decompress' d
eclared as function returning a function
D:/Downloads/dev_package/include/jpeglib.h:979: error: `jpeg_finish_decompress'
declared as function returning a function
D:/Downloads/dev_package/include/jpeglib.h:987: error: `jpeg_has_multiple_scans'
declared as function returning a function
D:/Downloads/dev_package/include/jpeglib.h:988: error: `jpeg_start_output' decla
red as function returning a function
D:/Downloads/dev_package/include/jpeglib.h:990: error: `jpeg_finish_output' decl
ared as function returning a function
D:/Downloads/dev_package/include/jpeglib.h:991: error: `jpeg_input_complete' dec
lared as function returning a function
D:/Downloads/dev_package/include/jpeglib.h:1011: error: syntax error before "jpe
g_marker_parser_method"
D:/Downloads/dev_package/include/jpeglib.h:1037: error: `jpeg_resync_to_restart'
declared as function returning a function
screen.c: In function `my_error_exit':
screen.c:261: error: dereferencing pointer to incomplete type
screen.c: At top level:
screen.c:268: error: `fill_input_buffer' declared as function returning a functi
on
screen.c: In function `fill_input_buffer':
screen.c:272: error: dereferencing pointer to incomplete type
screen.c:273: error: dereferencing pointer to incomplete type
screen.c: At top level:
screen.c:279: error: 'skip_input_data' redeclared as different kind of symbol
D:/Downloads/dev_package/include/jpeglib.h:731: error: previous declaration of '
skip_input_data' was here
screen.c: In function `skip_input_data':
screen.c:281: error: dereferencing pointer to incomplete type
screen.c:282: error: dereferencing pointer to incomplete type
screen.c:285: error: dereferencing pointer to incomplete type
screen.c:286: error: dereferencing pointer to incomplete type
screen.c: At top level:
screen.c:290: error: 'term_source' redeclared as different kind of symbol
D:/Downloads/dev_package/include/jpeglib.h:733: error: previous declaration of '
term_source' was here
screen.c: In function `image_load_from_jpg':
screen.c:294: error: storage size of 'cinfo' isn't known
screen.c:300: error: storage size of 'jsrc' isn't known
screen.c:311: error: invalid application of `sizeof' to incomplete type `jpeg_de
compress_struct'
screen.c:330: warning: passing arg 2 of `jpeg_read_header' makes pointer from in
teger without a cast
screen.c: At top level:
screen.c:482: error: field `pub' has incomplete type
screen.c: In function `init_destination':
screen.c:489: error: dereferencing pointer to incomplete type
screen.c: At top level:
screen.c:499: error: `empty_output_buffer' declared as function returning a func
tion
screen.c: In function `empty_output_buffer':
screen.c:500: error: dereferencing pointer to incomplete type
screen.c: At top level:
screen.c:510: error: 'term_destination' redeclared as different kind of symbol
D:/Downloads/dev_package/include/jpeglib.h:719: error: previous declaration of '
term_destination' was here
screen.c: In function `term_destination':
screen.c:511: error: dereferencing pointer to incomplete type
screen.c: In function `screenDoDumpToDiskIfRequired':
screen.c:522: error: storage size of 'cinfo' isn't known
screen.c:550: error: invalid application of `sizeof' to incomplete type `jpeg_co
mpress_struct'
screen.c:562: warning: passing arg 3 of `jpeg_set_quality' makes pointer from in
teger without a cast
screen.c:564: warning: passing arg 2 of `jpeg_start_compress' makes pointer from
integer without a cast
mingw32-make[2]: *** [screen.o] Error 1
mingw32-make[2]: Leaving directory `D:/Downloads/warzone2100-2.0.5/lib/ivis_open
gl'
mingw32-make[1]: *** [ivis_opengl] Error 2
mingw32-make[1]: Leaving directory `D:/Downloads/warzone2100-2.0.5/lib'
mingw32-make: *** [lib] Error 2
D:\Downloads\warzone2100-2.0.5>
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Runtime error
That jpeg thingy is horrible... Caused a lot of problems with macros being defined or not in a seemingly random way...
I'll have a look.
You are using the 2.0.5 source, correct?
I'll have a look.
You are using the 2.0.5 source, correct?
Re: Runtime error
Yes, the released source version 2.0.5 which work well with MSVC but not MinGW.
I also try the SVN version but nothing better :'(
I also try the SVN version but nothing better :'(
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Runtime error
Well, the problem is certainly not Warzone... The problem lies with those *#* jpeg headers...
But actually I can't fix it, since I have no system where it doesn't work...
But actually I can't fix it, since I have no system where it doesn't work...
Re: Runtime error
Please give MinGW's users a chance. You know what I mean.
---
Is this project open source? If it is, never build it from MSVC.
Totally open source is better.
---
Is this project open source? If it is, never build it from MSVC.
Totally open source is better.
Last edited by DevUrandom on 10 Jan 2007, 13:14, edited 1 time in total.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Runtime error
???
Don't know what you want to tell me...
And no, we are not supporting MSVC only. It's just that I can't figure out what's wrong with the jpeg headers. You could have a look yourself and report to us how you fixed it. Should be tough, most of the time it was just a broken define.
Don't know what you want to tell me...
And no, we are not supporting MSVC only. It's just that I can't figure out what's wrong with the jpeg headers. You could have a look yourself and report to us how you fixed it. Should be tough, most of the time it was just a broken define.
Re: Runtime error
OK. Here I go
I'll be back
Now then it works! yeah!!!!! I didn't do anything (I don't know why).
I've just recompiled using MinGW with the following configuration:
source: released version 2.0.5
devpkg: original mingw's devpkg as the attachment (not the one you've posted on Jan/8)
I've undefined typedef boolean (comment the line 227 of devpkg/include/jmorecfg.h)
I'll be back
Now then it works! yeah!!!!! I didn't do anything (I don't know why).
I've just recompiled using MinGW with the following configuration:
source: released version 2.0.5
devpkg: original mingw's devpkg as the attachment (not the one you've posted on Jan/8)
I've undefined typedef boolean (comment the line 227 of devpkg/include/jmorecfg.h)
Last edited by tuant20 on 11 Jan 2007, 06:03, edited 1 time in total.
Re: Runtime error
original mingw's devpkg
- Attachments
-
- warzone-devpkg-mingw32.7z
- (1.25 MiB) Downloaded 364 times
Re: Runtime error
and makerules' files
- Attachments
-
[The extension has been deactivated and can no longer be displayed.]
-
[The extension has been deactivated and can no longer be displayed.]
Re: Runtime error
This is my way to solve the compilation errors in the SVN version:
just comment and uncomment the line 227 of devpkg/include/jmorecfg.h till the gcc link comes up... :'(
sorry for that because I have no time to have a look at the source. DevUrandom should need to know this issue.
This time I used the original mingw's dev package again.
I think we should have someone in charge of release management.
Drop me a line in any case.
just comment and uncomment the line 227 of devpkg/include/jmorecfg.h till the gcc link comes up... :'(
sorry for that because I have no time to have a look at the source. DevUrandom should need to know this issue.
This time I used the original mingw's dev package again.
I think we should have someone in charge of release management.
Drop me a line in any case.
Re: Runtime error
Code: Select all
E:\Warzone2100Resurrection\trunk>mingw32-make -f Makefile.raw
mingw32-make -f Makefile.raw -C win32
VERSION set to TRUNK
PLATFORM set to windows
MODE set to release
DEVDIR set to E:/Warzone2100Resurrection/devpkg
BISON is set to bison
FLEX is set to flex
mingw32-make[1]: Entering directory `E:/Warzone2100Resurrection/trunk/win32'
mingw32-windres -owarzone2100.o warzone2100.rc
process_begin: CreateProcess(NULL, mingw32-windres -owarzone2100.o warzone2100.r
c, ...) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
mingw32-make[1]: *** [warzone2100.o] Error 2
mingw32-make[1]: Leaving directory `E:/Warzone2100Resurrection/trunk/win32'
mingw32-make: *** [win32] Error 2
We all have the same heaven, but not the same horizon.
Re: Runtime error
To Kamaze: you need the configure.mk file which I posted above and maybe you need to change the line 28 (last line) of the file win32/warzone2100.rc to 2 ICON "../win32/warzone2100.ico"
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: Runtime error
Grml... Seems as if MinGW on Windows doesn't use the mingw32 prefix for the binaries...
Please look into your MinGW folder's bin folder. Look for *gcc *windres *ar and so on. Are they named plain "gcc" "windres" "ar" or are there also files named "mingw32-gcc" "mingw32-windres" "mingw32-ar"?
After several recompiles I found the problem, too. I tried to fix it and am uploading a new devkpg atm. Please tell me if that one fixes the problems.
Please look into your MinGW folder's bin folder. Look for *gcc *windres *ar and so on. Are they named plain "gcc" "windres" "ar" or are there also files named "mingw32-gcc" "mingw32-windres" "mingw32-ar"?
After several recompiles I found the problem, too. I tried to fix it and am uploading a new devkpg atm. Please tell me if that one fixes the problems.