deltachat / deltachat-core

Delta.Chat C-Library with e2e chat-over-email functionality & Python bindings
https://c.delta.chat
Other
304 stars 26 forks source link

enabling build for windows #306

Open angelo-fuchs opened 5 years ago

angelo-fuchs commented 5 years ago

Currently the build structure only works on linux and mac. There also are no binaries for windows. They should be provided.

angelo-fuchs commented 5 years ago

Setup (this is what I did while I did it, this needs to be cleaned up)

  1. Install some git element (e.G. GitDesktop)
  2. Setup Python https://www.python.org/downloads/windows/ Current Version 3.7.0 https://www.python.org/ftp/python/3.7.0/python-3.7.0-amd64.exe Download run, "Install now" (without customization) CAREFUL: I hit 'disable Path limit' on the Success page, I suspect not doing this is a source of unexpected problems later.

Restart Windows Test if successful: run pip3 from shell FAIL, even though I selected pip to be installed :( ... Found https://mesonbuild.com/Getting-meson.html#windows-python3-quirks Deinstalled python and installed it again in the way the quirks page suggested. I think the 'add Python to PATH' thing is the most important change I did. Second Setup Successfull page did no longer contain 'disable Path Limit', so I assume that the changes of the first install are still active.

Closing and opening shell, pip3 is now on the PATH.

  1. Delta-Core git clone ...delta-core, done with Git Desktop opened git bash at the directory. Actually I downloaded Meson first, but in the middle of figuring out how to run it, I cloned this to make sure I have a meson buildfile present.

  2. Meson https://mesonbuild.com/Getting-meson.html -> Installing Meson with pip
    I installed it as root.

First round did not work, but suggested that I upgrade pip from Version 10 to Version 18. I tried that. Permission problems... Restarted GitBash as root (from Start-Menu -> Right click -> Run as Admin) upgrade then worked. Meson installation then worked.

Test: Run meson on newly opened non-root shell failed. Restarted Windows.

Searching online, figuring out that its probably called 'meson.py' instead. Run that, got an error, run 'python /c/Program\ Files/Python37/Scripts/meson.py' got error from meson, so setup worked so far.

Some errors and tries later: created a build directory in delta-core and nailed the command down to: 'python /c/Program\ Files/Python37/Scripts/meson.py . build' to be run in delta-core directory.

Now it misses a C compiler.

  1. C Compiler Downloading https://visualstudio.microsoft.com/de/vs/express/ Community Edition as contributer to an open source project. Selecting additional packages: Desktopdevelopment with C++ Mobiledevelopment with C++ Linuxdevelopment with C++ (Takes forever, go to lunch here)

Starting Visual C++ for C++ Development in dark theme Following this instructions: http://mesonbuild.com/Using-with-Visual-Studio.html This command worked: python "C:\Program Files\Python37\Scripts\meson.py" builddir --backend vs2017

--- Now you have a Visual Studio project in your builddir, that you have to compile in Visual Studio

angelo-fuchs commented 5 years ago

Currently I'm stuck at building the openssl dependency, will try to work with https://wiki.openssl.org/index.php/Compilation_and_Installation#Windows to get it to work.

angelo-fuchs commented 5 years ago

tracking some progress here: https://github.com/deltachat/deltachat-core/tree/windows

hpk42 commented 5 years ago

it'd be better to do this as a personal fork.

"git pull" pulls hundred(s?) of MBs on deltachat-core. so i suggest you fork it or move the branch content to your personal fork and then we remove the branch from delta-core to get back to the time where delta-core was nice and tiny to pull :)

On Wed, Sep 26, 2018 at 06:43 -0700, Angelo Fuchs wrote:

tracking some progress here: https://github.com/deltachat/deltachat-core/tree/windows

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/deltachat/deltachat-core/issues/306#issuecomment-424720174

flub commented 5 years ago

thanks for posting the updates. from what i can see you didn't update any code or meson files. from the logs it seems the only dependencies which built where zlib and sqlite. everything else, including delta-core, would need porting work, and more then just figuring the mesonbuild parts.

/cc @r10s

angelo-fuchs commented 5 years ago

@hpk42 Done. https://github.com/angelo-fuchs/deltachat-core/tree/windows

angelo-fuchs commented 5 years ago

Dependencies that need to be present before delta can be build

angelo-fuchs commented 5 years ago

I don't seem to be getting any progress on this, so I'll leave it for now. @flub Maybe we can sit together in kyev for this?

flub commented 5 years ago

On Mon 15 Oct 2018 at 00:51 -0700, Angelo Fuchs wrote:

@flub Maybe we can sit together in kyev for this?

Yes, that's a good plan

hpk42 commented 5 years ago

FWIW mailspring (another mail app project) uses Mailcore ... which uses libetpan ... and builds on all platforms we are interested in ... see https://github.com/MailCore/mailcore2

r10s commented 5 years ago

windows does not have dirent.h and the unix opendir() and related functions afaik.

however, just found a lightweight implementation that could be just by adding the dirent.c file to the windows build:

http://www.two-sdg.demon.co.uk/curbralan/code/dirent/dirent.html

however, maybe this is also no longer an issue nowadays :)

angelo-fuchs commented 5 years ago

@Jikstra worked on libetpan and provided a binary and instructions upstream:

https://github.com/dinhviethoa/libetpan/tree/master/build-windows

homdx commented 5 years ago

My current status. Compiled :-)

Some lines are commented in file stress.c (need for launch exe) Please test under Windows

delta-chat-core-test.zip

Files for build node libdeltachat.dll.a, libetpan.a, libnetpgp.a for-node-build-windows.zip

buildlog:

 $ meson
The Meson build system
Version: 0.48.1
Source dir: /cygdrive/c/Project/deltachat-node/deltachat-core
Build dir: /cygdrive/c/Project/deltachat-node/deltachat-core/builddir
Build type: native build
Project name: deltachat-core
Project version: 0.0.0
Native C compiler: cc (gcc 7.4.0 "cc (GCC) 7.4.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Program git found: YES (/cygdrive/c/Program Files/Git/cmd/git)
Dependency threads found: YES
Library m found: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Dependency zlib found: YES 1.2.11
Dependency openssl found: YES 1.0.2p
Dependency libsasl2 found: YES 2.1.26
Dependency sqlite3 found: YES 3.21.0
Program libetpan-config found: YES (/usr/local/bin/libetpan-config)
Message: Dependency libetpan found: 1.9.3-dev-20190208. Checking for compatibility.
Message: Check done. Installed libetpan version is compatible.

|
|Executing subproject netpgp
|
|Project name: netpgp
|Project version: 20140220
|Native C compiler: cc (gcc 7.4.0 "cc (GCC) 7.4.0")
|Dependency threads found: YES (cached)
|Dependency zlib found: YES (cached)
|Dependency openssl found: YES (cached)
|Library bz2 skipped: feature netpgp:bzip2 disabled
|Has header "zlib.h": YES
|Has header "CommonCrypto/CommonDigest.h": NO
|Has header "direct.h": NO
|Has header "errno.h": YES
|Has header "fcntl.h": YES
|Has header "inttypes.h": YES
|Has header "limits.h": YES
|Has header "stdint.h": YES
|Has header "sys/cdefs.h": YES
|Has header "sys/mman.h": YES
|Has header "sys/param.h": YES
|Has header "termios.h": YES
|Has header "unistd.h": YES
|Has header "openssl/aes.h": YES
|Has header "openssl/bn.h": YES
|Has header "openssl/camellia.h": YES
|Has header "openssl/cast.h": YES
|Has header "openssl/des.h": YES
|Has header "openssl/dsa.h": YES
|Has header "openssl/err.h": YES
|Has header "openssl/idea.h": YES
|Has header "openssl/md5.h": YES
|Has header "openssl/rand.h": YES
|Has header "openssl/rsa.h": YES
|Has header "openssl/sha.h": YES
|Configuring config-netpgp-meson.h using configuration
|Compiler for C supports arguments -Wno-misleading-indentation -Wmisleading-indentation: YES
|Build targets in project: 1
|
|Subproject netpgp finished.
Build targets in project: 3
Found ninja-1.8.2 at /usr/bin/ninja

$ ninja
[58/60] Linking target src/cygdeltachat-0.dll.
/usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible /cygdrive/c/Project/libetpan/third-party/lib/libsasl2.dll when searching for -lsasl2
[60/60] Linking target cmdline/delta.exe.
/usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible /cygdrive/c/Project/libetpan/third-party/lib/libsasl2.dll when searching for -lsasl2
#This is commented lines for pass stres.c (for release exe with pass stres.c)
 git diff ../cmdline/stress.c
diff --git a/cmdline/stress.c b/cmdline/stress.c
index e3e27669..8b492336 100644
--- a/cmdline/stress.c
+++ b/cmdline/stress.c
@@ -502,7 +502,7 @@ void stress_functions(dc_context_t* context)
                free(buf1);

                buf1 = dc_decode_header_words("=?utf-8?B?dGVzdMOkw7bDvC50eHQ=?=");
-               assert( strcmp(buf1, "testäöü.txt")==0 );
+               //assert( strcmp(buf1, "testäöü.txt")==0 );
                free(buf1);

                buf1 = dc_decode_header_words("just ascii test");
@@ -516,12 +516,12 @@ void stress_functions(dc_context_t* context)
                buf1 = dc_encode_header_words("testäöü.txt");
                assert( strncmp(buf1, "=?utf-8", 7)==0 );
                buf2 = dc_decode_header_words(buf1);
-               assert( strcmp("testäöü.txt", buf2)==0 );
+               //assert( strcmp("testäöü.txt", buf2)==0 );
                free(buf1);
                free(buf2);

                buf1 = dc_decode_header_words("=?ISO-8859-1?Q?attachment=3B=0D=0A_filename=3D?= =?ISO-8859-1?Q?=22test=E4=F6=FC=2Etxt=22=3B=0D=0A_size=3D39?=");
-               assert( strcmp(buf1, "attachment;\r\n filename=\"testäöü.txt\";\r\n size=39")==0 );
+               //assert( strcmp(buf1, "attachment;\r\n filename=\"testäöü.txt\";\r\n size=39")==0 );
                free(buf1);

                buf1 = dc_encode_ext_header("Björn Petersen");
@@ -532,8 +532,8 @@ void stress_functions(dc_context_t* context)
                free(buf2);

                buf1 = dc_decode_ext_header("iso-8859-1'en'%A3%20rates");
-               assert( strcmp(buf1, "£ rates") == 0 );
-               assert( strcmp(buf1, "\xC2\xA3 rates") == 0 );
+       //      assert( strcmp(buf1, "£ rates") == 0 );
+       //      assert( strcmp(buf1, "\xC2\xA3 rates") == 0 );
                free(buf1);

                buf1 = dc_decode_ext_header("wrong'format"); // bad format -> should return given string

Attached compiled deltachat-core with bug Then I launch : have error (

deltachat-core--with-bug-test-win.zip

H:\Code\deltachat-core\build\cmdline>delta.exe
[Warning] Cannot convert 6 bytes from "us-ascii" to "utf-8"; errorcode is 1.
assertion "strcmp(buf1, "test├д├╢├╝.txt")==0" failed: file "../cmdline/stress.c"
, line 505, function: stress_functions
      1 [main] delta 3588 cygwin_exception::open_stackdumpfile: Dumping stack tr
ace to delta.exe.stackdump

If i convert UTF-8 coding file cmdline/stress.c to ANSI and recompile give another error:

H:\Code\deltachat-core\build\cmdline>delta.exe
assertion "strcmp(plain, "<>\"'& aAoOuU? foo?cC ж&noent;")==0" failed: file "../
cmdline/stress.c", line 189, function: stress_functions
      2 [main] delta 2576 cygwin_exception::open_stackdumpfile: Dumping stack tr
ace to delta.exe.stackdump
Jikstra commented 5 years ago

@homdx you can try to not include stress.c and also don't call the stress.c methods. If I remember it correctly, in the beginning of the mac builds i had problems with that too and @dignifiedquire just commented it out. It's testing some stuff to make sure it works correctly, but in general it's optional. At least for seeing what actually breaks (paths and stuff will most likely break on windows).

Very very cool that you successfully compiled it. What did you do? How can we reproduce that? Any Ideas if we can make this work with meson?

homdx commented 5 years ago

Later, I can provide instruction, how build binary file under windows (under CygWin). @Jikstra Now, you can write, there are you stopit and have problem? You can sea at my message (history), how was my progress and I solved new problems)

r10s commented 5 years ago

just released deltachat-core 0.40.0 which fixes a problem with iconv that may have caused the stress-asserts. might be that this helps on windows as well.

homdx commented 5 years ago

just released deltachat-core 0.40.0 which fixes a problem with iconv that may have caused the stress-asserts. might be that this helps on windows as well.

We have are new problem with this version. Not compiled(

[165/165] Linking target cmdline/delta.exe.
FAILED: cmdline/delta.exe
gcc @cmdline/delta.exe.rsp
libs\libetpan\libetpan.a(src_data-types_charconv.c.obj): In function `mail_iconv':
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:72: undefined reference to `libiconv'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:72:(.text+0x72): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:91: undefined reference to `libiconv'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:91:(.text+0x11e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv'
libs\libetpan\libetpan.a(src_data-types_charconv.c.obj): In function `charconv':
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:192: undefined reference to `libiconv_open'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:192:(.text+0x485): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_open'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:216: undefined reference to `libiconv_close'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:216:(.text+0x54a): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_close'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:231: undefined reference to `libiconv_close'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:231:(.text+0x5aa): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_close'
libs\libetpan\libetpan.a(src_data-types_charconv.c.obj): In function `charconv_buffer':
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:294: undefined reference to `libiconv_open'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:294:(.text+0x6fe): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_open'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:320: undefined reference to `libiconv_close'
/cygdrive/c/Project/deltachat-node/deltachat-core/builddir/../libs/libetpan/src/data-types/charconv.c:320:(.text+0x7c1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `libiconv_close'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with code 1
r10s commented 5 years ago

@homdx thanks for testing :)

however, the linker errors are "okay" and point to some progress :) seems as if libiconv is missing. it's this library: http://www.gnu.org/software/libiconv/ - might be there is also a windows library or dll or so.

@flub not sure why this is missing on windows-meson - on linux libiconv included in the stdlib iirc?

homdx commented 5 years ago

@flub @r10s 1) under Windows libiconv are installed and have are sources. But problem are persist. (latest version)

2) Now I am working on building automation builder under Windows for deltachat-node with using travis-ci This repository will be renamed later (it's temporatory for working). https://github.com/homdx/test-win-build After then I will done, I write instruction and give pull request, how compile with "Hand made" under Windows or with usage auto scripts )

homdx commented 5 years ago

@homdx thanks for testing :)

however, the linker errors are "okay" and point to some progress :) seems as if libiconv is missing. it's this library: http://www.gnu.org/software/libiconv/ - might be there is also a windows library or dll or so.

@flub not sure why this is missing on windows-meson - on linux libiconv included in the stdlib iirc?

Maybe you need to modify sources? https://unix.stackexchange.com/questions/445374/compiling-i3-under-cygwin-cannot-find-libiconv-library

flub commented 5 years ago

iconv is provided inside of libc on Linux. On windows (and Android) it needs a lib, most commonly the gnu one. However in this case after you made the lib available you still need to tell the linker where to find this lib, otherwise the symbol still won't be found. The current meson script doesn't do this since on Linux libc is linked automatically so this isn't necessary.

On Mon, 11 Feb 2019, 23:54 homdx <notifications@github.com wrote:

@homdx https://github.com/homdx thanks for testing :)

however, the linker errors are "okay" and point to some progress :) seems as if libiconv is missing. it's this library: http://www.gnu.org/software/libiconv/ - might be there is also a windows library or dll or so.

@flub https://github.com/flub not sure why this is missing on windows-meson - on linux libiconv included in the stdlib iirc?

Maybe you need to modify sources? https://unix.stackexchange.com/questions/445374/compiling-i3-under-cygwin-cannot-find-libiconv-library

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/deltachat/deltachat-core/issues/306#issuecomment-462527967, or mute the thread https://github.com/notifications/unsubscribe-auth/AAI9IFglfnnpnf7Fu85MNNvWqb5Vc-Zmks5vMfSmgaJpZM4W4MQw .

homdx commented 5 years ago

@flub I think you need to add this requirements in the ninja either then we will have the last build version 0.39 for Windows and I did a worthless job building the application under Windows

flub commented 5 years ago

Hey @homdx, you certainly did not do anything worthless or useless. We still don't have a working windows build so any work towards figuring this out is valuable. I think you've got two options, either disable iconv usage for windows, I believe deltachat works in this case but just won't be handling some text correctly. Or figure out how to get a libiconv dll and then update the meson.build file to link against it on windows. For example have a look how libm is handled in meson.build, maybe something similar to this will work once you have libiconv.

hpk42 commented 5 years ago

Hey @homdx -- very much appreciate that you help tyring to tackle the long-standing missing Windows support. I think at first ignoring the iconv issue and somehow producing a first Windows Desktop download (even if by hand) would be a great break through! Despite all the experience combined in the project, we were not able to achieve that yet.

On Wed, Feb 13, 2019 at 13:08 -0800, Floris Bruynooghe wrote:

Hey @homdx, you certainly did not do anything worthless or useless. We still don't have a working windows build so any work towards figuring this out is valuable. I think you've got two options, either disable iconv usage for windows, I believe deltachat works in this case but just won't be handling some text correctly. Or figure out how to get a libiconv dll and then update the meson.build file to link against it on windows. For example have a look how libm is handled in meson.build, maybe something similar to this will work once you have libiconv.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/deltachat/deltachat-core/issues/306#issuecomment-463371350

homdx commented 5 years ago

@flub @hpk42 Thanks you for the support. I am currently working in a temporary repository https://github.com/homdx/test-win-build . as a last resort I will collect version 0.39. And then pull up and other assistants

Now travis have uknown error. And correctly can't check for build. But you can reproduce manual build in Windows (in CygWin shell):

dos2unix  build-all-sh.sh
./build-all-sh.sh
homdx commented 5 years ago

Hello. Now you can reproduce build under Windows with: https://github.com/deltachat/deltachat-desktop/issues/606#issuecomment-465064978

Jikstra commented 5 years ago

@homdx went through almost all your steps, currently at patching libetpan which failed because of Hung #1 failed at 279 <different line endings>. I suspect that it's because of some dos2unix stuff or something. Will investigate tomorrow :)

r10s commented 5 years ago

/me reading this thread with great interest :)

adbenitez commented 5 years ago

/me hides behind @r10s and lurks

Jikstra commented 5 years ago

Sooo i managed to compile deltachat-core/node on windows 7 with your instructions @homdx. By uncommenting the stress.c stuff also the delta.exe (cmd/cli version of deltachat-core) runs on windows, at least in the cygwin environment. I wasn't able to execute the .exe outside of cygwin, it complaints that a cygcrypto-1.0.0.dll is missing.

What I wasn't able to get to work yet is the node-gyp-build stuff. Replacing the install line as its in your instructions doesn't actually compile the bindings but only rebuild the core. Building the bindings is the missing step.

@homdx if we compile all that stuff in a cygwin environment, are we able to run this also outside of cygwin? Or is it easily possible to ship the needed stuff with our application? I don't know much about it, maybe you can give me some insights :)

EDIT: So i was able to get the delta.exe working on a non cygwin environment by simply copying over all the needed *.dll which are in /bin. The bigger problem seems to be that node-gyp doesn't really support mingw/cygwin, so we somehow need to be able to compile the bindings with vs studio and our cygwin core lib. Not sure if that's easy, currently it fails because of a missing pthread.h. Maybe we shouldn't use pthread.h in our bindings?

user@user-PC ~/test-win-build/deltachat-node
$ npx node-gyp-build
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@11.10.0 | win32 | x64
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node\\node_modules\\node-gyp\\gyp\\gyp_m
ain.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node\\node_modules\\node-gyp\\addon.gypi
',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\user\\.node-gyp\\11.10.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\user\\.node-gyp\\11.10.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node\\node_modules\\node-
gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\user\\.node-gyp\\11.10.0\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Si
e den Schalter "/m" hinzufügen.
  module.c
  eventqueue.c
  strtable.c
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\eventqueue.c(25): fatal error C1083: Datei (Include) kann n
icht geöffnet werden: "pthread.h": No such file or directory [C:\tools\cygwin\home\user\test-win-build\deltachat-node\b
uild\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\strtable.c(25): fatal error C1083: Datei (Include) kann nic
ht geöffnet werden: "pthread.h": No such file or directory [C:\tools\cygwin\home\user\test-win-build\deltachat-node\bui
ld\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(36): error C2061: Syntaxfehler: Bezeichner "pthrea
d_mutex_t" [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(37): error C2061: Syntaxfehler: Bezeichner "dc_eve
nt_http_cond" [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(37): error C2059: Syntaxfehler: ";" [C:\tools\cygw
in\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(40): error C2059: Syntaxfehler: "}" [C:\tools\cygw
in\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(55): error C2065: "dcn_context_t": nichtdeklariert
er Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(55): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(55): error C2059: Syntaxfehler: ")" [C:\tools\cygw
in\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(59): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(59): error C2223: Der linke Teil von "->strtable"
muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(59): warning C4047: "Funktion": Anzahl der Derefer
enzierungen bei "strtable_t *" und "int" unterschiedlich [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build
\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(59): warning C4024: "strtable_get_str": unterschie
dliche Typen für formalen und übergebenen Parameter 1 [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\de
ltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(59): error C2198: "strtable_get_str": Nicht genüge
nd Argumente für Aufruf. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(63): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(63): error C2223: Der linke Teil von "->event_queu
e" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(64): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(64): error C2223: Der linke Teil von "->event_queu
e" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(64): warning C4047: "Funktion": Anzahl der Derefer
enzierungen bei "eventqueue_t *" und "int" unterschiedlich [C:\tools\cygwin\home\user\test-win-build\deltachat-node\bui
ld\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(64): warning C4024: "eventqueue_push": unterschied
liche Typen für formalen und übergebenen Parameter 1 [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\del
tachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(64): error C2198: "eventqueue_push": Nicht genügen
d Argumente für Aufruf. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(66): warning C4013: "pthread_mutex_lock" undefinie
rt; Annahme: extern mit Rückgabetyp int [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(66): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(66): error C2223: Der linke Teil von "->dc_event_h
ttp_mutex" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat
.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(68): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(68): error C2223: Der linke Teil von "->dc_event_h
ttp_done" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.
vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(70): warning C4013: "pthread_cond_wait" undefinier
t; Annahme: extern mit Rückgabetyp int [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(70): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(70): error C2223: Der linke Teil von "->dc_event_h
ttp_cond" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.
vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(70): error C2223: Der linke Teil von "->dc_event_h
ttp_mutex" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat
.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(72): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(72): error C2223: Der linke Teil von "->dc_event_h
ttp_response" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltac
hat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(73): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(73): error C2223: Der linke Teil von "->dc_event_h
ttp_response" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltac
hat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(74): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(74): error C2223: Der linke Teil von "->dc_event_h
ttp_done" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.
vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(75): warning C4013: "pthread_mutex_unlock" undefin
iert; Annahme: extern mit Rückgabetyp int [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxp
roj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(75): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(75): error C2223: Der linke Teil von "->dc_event_h
ttp_mutex" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat
.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(92): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(92): error C2223: Der linke Teil von "->event_queu
e" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(93): error C2065: "dcn_context": nichtdeklarierter
 Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(93): error C2223: Der linke Teil von "->event_queu
e" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(93): warning C4047: "Funktion": Anzahl der Derefer
enzierungen bei "eventqueue_t *" und "int" unterschiedlich [C:\tools\cygwin\home\user\test-win-build\deltachat-node\bui
ld\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(93): warning C4024: "eventqueue_push": unterschied
liche Typen für formalen und übergebenen Parameter 1 [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\del
tachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(93): error C2198: "eventqueue_push": Nicht genügen
d Argumente für Aufruf. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(168): error C2065: "dcn_context_t": nichtdeklarier
ter Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(168): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(168): error C2059: Syntaxfehler: ")" [C:\tools\cyg
win\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(169): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(169): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(175): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(175): error C2223: Der linke Teil von "->loop_thre
ad" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(188): error C2065: "dcn_context_t": nichtdeklarier
ter Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(188): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(188): error C2059: Syntaxfehler: ")" [C:\tools\cyg
win\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(189): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(189): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(195): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(195): error C2223: Der linke Teil von "->loop_thre
ad" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(208): error C2065: "dcn_context_t": nichtdeklarier
ter Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(208): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(208): error C2059: Syntaxfehler: ")" [C:\tools\cyg
win\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(209): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(209): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(215): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(215): error C2223: Der linke Teil von "->loop_thre
ad" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(227): error C2065: "dcn_context_t": nichtdeklarier
ter Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(227): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(227): error C2059: Syntaxfehler: ")" [C:\tools\cyg
win\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(228): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(228): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(234): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(234): error C2223: Der linke Teil von "->loop_thre
ad" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(270): error C2065: "dcn_context_t": nichtdeklarier
ter Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(270): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(270): error C2059: Syntaxfehler: ")" [C:\tools\cyg
win\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(271): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(271): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(271): error C2198: "dc_context_unref": Nicht genüg
end Argumente für Aufruf. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(272): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(272): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(273): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(273): error C2223: Der linke Teil von "->event_que
ue" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(274): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(274): error C2223: Der linke Teil von "->event_que
ue" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(274): error C2198: "eventqueue_unref": Nicht genüg
end Argumente für Aufruf. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(275): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(275): error C2223: Der linke Teil von "->event_que
ue" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(278): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(278): error C2223: Der linke Teil von "->strtable"
 muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(278): error C2198: "strtable_unref": Nicht genügen
d Argumente für Aufruf. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(279): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(279): error C2223: Der linke Teil von "->strtable"
 muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(281): warning C4013: "pthread_cond_destroy" undefi
niert; Annahme: extern mit Rückgabetyp int [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcx
proj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(281): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(281): error C2223: Der linke Teil von "->dc_event_
http_cond" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat
.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(282): warning C4013: "pthread_mutex_destroy" undef
iniert; Annahme: extern mit Rückgabetyp int [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vc
xproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(282): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(282): error C2223: Der linke Teil von "->dc_event_
http_mutex" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltacha
t.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(284): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(284): warning C4022: "free": Zeigertyp für übergeb
enen Parameter 1 stimmt nicht mit dem deklarierten Zeigertyp überein [C:\tools\cygwin\home\user\test-win-build\deltacha
t-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(342): error C2065: "dcn_context_t": nichtdeklarier
ter Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(342): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(342): warning C4047: "=": Anzahl der Dereferenzier
ungen bei "int" und "void *" unterschiedlich [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.v
cxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(342): error C2106: "=": Linker Operand muss ein L-
Wert sein [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(343): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(343): error C2223: Der linke Teil von "->dc_contex
t" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj
]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(343): warning C4022: "dc_context_new": Zeigertyp f
ür übergebenen Parameter 2 stimmt nicht mit dem deklarierten Zeigertyp überein [C:\tools\cygwin\home\user\test-win-buil
d\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(347): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(347): error C2223: Der linke Teil von "->event_que
ue" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(349): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(349): error C2223: Der linke Teil von "->strtable"
 muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(351): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(351): error C2223: Der linke Teil von "->imap_thre
ad" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(352): error C2065: "dcn_context": nichtdeklarierte
r Bezeichner [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(352): error C2223: Der linke Teil von "->smtp_thre
ad" muss auf eine Struktur/Union zeigen [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxpro
j]
c:\tools\cygwin\home\user\test-win-build\deltachat-node\src\module.c(352): fatal error C1003: Mehr als 100 Fehler gefun
den; Kompilierung wird abgebrochen. [C:\tools\cygwin\home\user\test-win-build\deltachat-node\build\deltachat.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` faile
d with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\tools\cygwin\home\user\test-win-build\deltachat-node\node_modules\node-gyp
\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\tools\\cygwin\\home\\user\\test-win-build\\deltachat-node\\n
ode_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\tools\cygwin\home\user\test-win-build\deltachat-node
gyp ERR! node -v v11.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

user@user-PC ~/test-win-build/deltachat-node
$

@ralphtheninja any ideas if we somehow can throw out pthread in our bindings?

homdx commented 5 years ago

@jikstra you can see missing dll from my first compilation

https://github.com/deltachat/deltachat-core/issues/306#issuecomment-461026117 Download file zip and unpack. Sea the dll.

Now you can found this dll in you C:\tools\cygwin\bin ..\lib ..usr\local\bin and ...\usr\local\lib

Copy all missing dll to deltachat.exe and run without cygwin

Jikstra commented 5 years ago

@homdx yup that works. The -node bindings are the missing part. delta.exe seems to work fine.

Simon-Laux commented 5 years ago

I just tried cross compiling (/me is a noob at compiling stuff) and I hit the openSSL wall. I used this command for setting up the meson stuff:

meson ./builddirWin64 --default-library=static --cross-file ./win64.crossfile.txt

win32.crossfile.txt or win64.crossfile.txt And here is the error: ninja_output.log.txt