Opened 19 years ago

Closed 19 years ago

Last modified 6 years ago

#2074 closed defect (fixed)

ScummVM no longer compiles on my Debian box

Reported by: eriktorbjorn Owned by: fingolfin
Priority: normal Component: Port: Linux
Version: Keywords:
Cc: Game:

Description

With the addition of the endian.h file in the latest CVS snapshot, ScummVM no longer compiles on my Debian box. Apparently this file interfers with one of the system headers, i.e. instead of the system header file it includes ours.

I can almost fix this by adding -I- to INCLUDES in our Makefile. A lot of our files break since they assume they assume that #include "file" will look in the current directory, and with -I- that's no longer true. This is fixable.

Unfortunately it also breaks FLAC and Vorbis. Possibly other libraries as well, but that's where I gave up.

Another way which *should* work - I haven't tried - would be to not include our 'common' directory in the include path. That, too, will break a lot of our files - every file that includes "stdafx.h" would have to be changed to include "common/stdafx.h" instead for instance - but, again, this is fixable.

Ticket imported from: #1226522. Ticket imported from: bugs/2074.

Change History (8)

comment:1 by eriktorbjorn, 19 years ago

Owner: set to fingolfin

comment:2 by fingolfin, 19 years ago

Actually, getting rid of -Icommon would be what I'd prefer.

comment:3 by eriktorbjorn, 19 years ago

Ok. Will you look into that, or should I? I won't have the time to do it tonight.

comment:4 by fingolfin, 19 years ago

I added the "common/" in all places I could find, and removed the -Icommon. I hope it now compiles again for you?

comment:5 by fingolfin, 19 years ago

Resolution: fixed

comment:6 by eriktorbjorn, 19 years ago

Status: newclosed

comment:7 by eriktorbjorn, 19 years ago

Works for me now. Closing.

comment:8 by digitall, 6 years ago

Component: --Unset--Port: Linux
Note: See TracTickets for help on using tickets.