Re: [Xournal-devel] mingw compilation

2014-06-09 Thread dmg
With the help of Denis I got my cross-compilation environment to compile to windows working So I tested the windows binary under Windows and it works. The only "bug" i can see is that once one selects touch-as-handtool and one writes, the canvas no longer responds to touch. But... there is an inte

Re: [Xournal-devel] mingw compilation

2014-06-09 Thread dmg
Oh, it is probably that it requries a newer version of zlib --dmg On Tue, Jun 10, 2014 at 1:40 PM, dmg wrote: > Thanks. That fixed that problem. Now I am getting another one. I think > it is non-declared dependency. Where is gzopen_w supposed to be > defined? > > make[3]: Entering directory

Re: [Xournal-devel] mingw compilation

2014-06-09 Thread dmg
Thanks. That fixed that problem. Now I am getting another one. I think it is non-declared dependency. Where is gzopen_w supposed to be defined? make[3]: Entering directory `/home/dmg/git.dmg/hacking/mingw/xournal-denis/src' i686-w64-mingw32-gcc -g -O2 -lz -lm -o xournal.exe main.o xo-misc.o xo-f

Re: [Xournal-devel] mingw compilation

2014-06-09 Thread Denis Auroux
Oh, interesting. Somehow I don't get this error, even though the headers declare mkdir() to only take one argument. I'll need to look again more closely next time I'm in Windows. The correct fix is probably to use g_mkdir() instead of mkdir() (It's a wrapper that does exactly what you think: d

[Xournal-devel] mingw compilation

2014-06-09 Thread D M German
Hi Denis, under mingw I get the following compilation error: w64-mingw32/include/poppler -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function ‘init_stuff’: main.c:60:3: error: too many arguments to function ‘mkdir’ mkdir(tmppath, 0700); // safer (MRU data