[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
hstokset@xxxxxxxxxx wrote:
I did'n say that. Sven said the allegro demo etc. worked without
> -mno-cygwin, not lowlevel allegro code. That requires some work.
I didn't say that. :-) Actually, if I try to compile a program without
-mno-cygwin, it gives an error because allegro.h (indirectly) includes
direct.h, which is only in the search path if you specify -mno-cygwin.
If I understand correctly the -mno-cygwin document, along with answers
from people on the cygwin mailing list (archived at
http://www.cygwin.com/ml/cygwin/2002-05/msg01665.html), you must never
mix libraries/object files that are compiled with -mno-cygwin with
those compiled without, and you must not mix MinGW32 headers (such as
direct.h) with cygwin headers.
Btw, I ran 'autoconf', then './configure', then 'make' from the Cygwin
bash shell, just because I think it would be kind of cool if it worked.
gcc said the following:
[for most files]
include/allegro/internal/alconfig.h:213: warning: `stricmp'
redefined
/usr/include/string.h:80: warning: this is the location of the
previous definition
(./configure claimed that stricmp was missing)
[for all files]
cc1.exe: warning: -fPIC ignored for target (all code is position
independent)
./src/unix/uossmidi.c:245: too few arguments to function `ioctl'
./src/unix/usystem.c:207: storage size of `timeout' isn't known
After commenting out the lines causing errors (no real problem if
I don't use midi, I suppose), make stopped after executing
'gcc -shared -o lib/unix/liballeg-4.1.0.so [OBJECT FILES]', which
gave 435 undefined references to what I guess is all Allegro's
assembler routines.
Then I ran
'./configure --enable-static --enable-shared=no --enable-asm=no',
followed my 'make'. Now it completes, giving only the (apparantly
harmless) stricmp warnings, but all generated executables just do
nothing and quit. I don't have time and patience to finish this,
but I thought I'd let you know.
--
Sven Sandberg svsa1977@xxxxxxxxxx home.student.uu.se/svsa1977