[Mono-dev] Issue with zlib.

Ricardo Ruiz ricardo.ruiz at ignitetech.com
Tue Dec 18 12:30:28 EST 2007


Hello! We've been evaluating Mono for a few weeks now with the idea of
using it as a cross-platform development framework. That said, I've had
some issues with certain parts of the product and I would love some
feedback as to what I might be doing wrong. 

I am using Mono v1.2.5.2 and cygwin under Windows XP for my shell. I'm
bundling my application using mkbundle.exe but I'm having an issue with
compression under Windows.

_______________________________________

$ mono mkbundle.exe -z -o ./Bundled/Bundled.exe --deps --config-dir .
MyConsole.exe 

OS is: Windows
Sources: 1 Auto-dependencies: True
embedding: c:\Temp\Mono Test\Linked\MyConsole.exe
compression ratio: 42.61%
embedding: c:\Mono\lib\mono\2.0\mscorlib.dll
compression ratio: 34.58%
embedding:
c:\Mono\lib\mono\gac\System\2.0.0.0__b77a5c561934e089\System.dll
compression ratio: 37.09%
embedding:
c:\Mono\lib\mono\gac\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\Syst
em.Configuration.dll
compression ratio: 39.93%
embedding:
c:\Mono\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
compression ratio: 33.93%
embedding:
c:\Mono\lib\mono\gac\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Se
curity.dll
compression ratio: 39.30%
embedding:
c:\Mono\lib\mono\gac\Mono.Security\2.0.0.0__0738eb9f132ed756\Mono.Securi
ty.dll
compression ratio: 39.96%
Compiling:
as -o temp.o temp.s
gcc -mno-cygwin -g -o ./Bundled/Bundled.exe -Wall temp.c `pkg-config
--cflags --libs mono` -lz temp.o [Fail]

_______________________________________
gcc is failing. So I copy that line and run it again:

$ gcc -mno-cygwin -g -o ./Bundled/Bundled.exe -Wall temp.c `pkg-config
--cflags --libs mono` -lz temp.o

temp.c:46:18: zlib.h: No such file or directory
** and some other errors and warnings ** 

_______________________________________
If I change the gcc command line by adding the path to Mono's include
directory:

$ gcc -mno-cygwin -g -o ./Bundled/Bundled.exe -Wall temp.c `pkg-config
--cflags --libs mono` -I/cygdrive/c/Mono/include -lz temp.o

Everything works fine!! So I guess I'm missing an environment variable
to allow mkbundle to find zlib.h?

Thanks for your help!!
_______________________________________
Ricardo Ruiz, Development
Ignite Technologies
3211 Internet Blvd., Suite 300 
Frisco, Texas 75034
Phone - 972.348.6429
ricardo.ruiz at ignitetech.com <mailto:ricardo.ruiz at ignitetech.com> 

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you have
received it in error, please notify the sender immediately and delete
the original. Any other use of the email is prohibited.




More information about the Mono-devel-list mailing list