Blockers:
Builded binary deltachat-core need testing:
https://github.com/deltachat/deltachat-core/issues/306#issuecomment-461026117
Possible problems: Windows does not support utf-8 coding, windows uses ansi encoding. (need fix).
I did more more then 300+ commits for testing with travis-ci build deltachat-node under Windows
Now you can reproduce and build with some manual hands command core module under Windows
My testing repository for build under Win is:
Stable - recommended
Testing/Dev version - for next deployment
I would continue to work build under Windows, then you can help repair the assembly with version 0.40 (lates build under win only 0.39).
Please test under Windows. Thanks)
Wow! Very awesome :+1: Thanks a lot for your work! I will test it out tomorrow, need to get my hands on that one windows laptop :)
I've tried to install the build environment using the cygwin, pyton 3, ninja, manson etc.
The build failed with:
./step1-bzip.sh: Zeile 74: patch: Kommando nicht gefunden.
./step1-bzip.sh: Zeile 79: make: Kommando nicht gefunden.
can you help to fix this problem with my development environment? Which required package is missing?
Hello.
Rerun setup cygwin again and install missing packages.
All files and requirements are writed in file
https://github.com/homdx/deltachat-windows/blob/master/setup-cygwin-packages.cmd
You need install: openssl-devel, patch, dos2unix, make, cmake, libtool, automake, unzip, wget, gcc
Maybe some package, I will missing to write, but you can sea and found it at cyg-get command in this file.
With all the news above, how large are the remaining steps to set up an experimental deltachat-desktop windows build system and releases?
I don't know how long it takes, but for me it is acual to complex.
I would test the windows build if it where more easy to install. Sorry, it seems I missed some skills for that stage of developing.
With all the news above, how large are the remaining steps to set up an experimental deltachat-desktop windows build system and releases?
Still hard and unknown how it works in the end. Currently the deltachat-node bindings don't work with the compiled cygwin windows library binaries. The more exact problem is that pthread on windows might work a bit different than the one for windows and is not 100% compatible. Needs more investigation.
@Jikstra Hello again)
You have successfully build the version 0.39 with my instruction on you notebok, under windows and cygwin.
You not started console appliction with electron.exe ?( with deltachatcmd.exe binary)?
Currently, no one else has ever compiled the application?
Logfile: C:\Users\User1\AppData\Local\DeltaChat\logs\2019-05-08T13:19:11.201Z.log
App threw an error during load
Error: No native build was found for runtime=electron abi=69 platform=win32glibc arch=x64
at Function.load.path (H:\Code\deltachat-node\node_modules\node-gyp-build\index.js:59:9)
at load (H:\Code\deltachat-node\node_modules\node-gyp-build\index.js:19:30)
at Object.<anonymous> (H:\Code\deltachat-node\binding.js:1:198)
at Object.<anonymous> (H:\Code\deltachat-node\binding.js:3:3)
at Module._compile (internal/modules/cjs/loader.js:693:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
How I include compiled file deltachat.exe to node module, then I want' to start npm run dev desktop application under win?
full log
User1@User1-鈻掆枓 /cygdrive/h/Code/deltachat-desktop
$ npm run dev
> [email protected] dev H:\Code\deltachat-desktop
> npm run build && npm run start
> [email protected] build H:\Code\deltachat-desktop
> npm run build-css && npm run build-js && npm run build-translations
> [email protected] build-css H:\Code\deltachat-desktop
> node-sass css/conversations/manifest.scss static/conversations.css
Rendering Complete, saving .css file...
Wrote CSS to H:\Code\deltachat-desktop\static\conversations.css
> [email protected] build-js H:\Code\deltachat-desktop
> webpack --mode=development --progress --profile --colors
5514ms building s
3ms finish module graph
2ms sealing
1ms basic dependencies optimization
0ms dependencies optimization
0ms advanced dependencies optimization
0ms after dependencies optimization
7ms chunk graph
1ms after chunk graph
0ms optimizing
0ms basic module optimization
0ms module optimization
0ms advanced module optimization
0ms after module optimization
3ms basic chunk optimization
0ms chunk optimization
6ms advanced chunk optimization
0ms after chunk optimization
1ms module and chunk tree optimization
0ms after module and chunk tree optimization
0ms basic chunk modules optimization
0ms chunk modules optimization
0ms advanced chunk modules optimization
1ms after chunk modules optimization
0ms module reviving
0ms module order optimization
0ms advanced module order optimization
3ms before module ids
0ms module ids
2ms module id optimization
0ms chunk reviving
1ms chunk order optimization
0ms before chunk ids
1ms chunk id optimization
0ms after chunk id optimization
1ms record modules
0ms record chunks
20ms hashing
2ms content hashing
0ms after hashing
0ms record hash
0ms module assets processing
15ms chunk assets processing
1ms additional chunk assets processing
0ms recording
0ms additional asset processing
1ms chunk asset optimization
93% after chunk asset optimization SourceMapDevToolPlugin bundle.js generate So 93% after chunk asset optimization SourceMapDevToolPlugin bundle.js attach Sour643ms after chunk asset optimization
1ms asset optimization
0ms after asset optimization
6ms after seal
13ms emitting
1ms after emitting
Hash: 2fe687ac29d329f18f18
Version: webpack 4.29.3
Time: 6271ms
Built at: 2019-05-08 13:19:06
Asset Size Chunks Chunk Names
bundle.js 672 KiB main [emitted] main
Entrypoint main = bundle.js
[./src/localize.js] 2.9 KiB {main} [built]
[./src/renderer/main.js] 1132ms -> factory:9ms building:78ms dependencies:2ms = 1221ms
[./src/logger.js] 1.56 KiB {main} [built]
[./src/renderer/main.js] 1132ms -> factory:9ms building:78ms dependencies:2ms = 1221ms
[./src/renderer/App.js] 612 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> factory:9ms building:78ms dependencies:2ms = 1221ms
[./src/renderer/ScreenController.js] 7.42 KiB {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/renderer/App.js] 87ms -> factory:54ms building:314ms dependencies:0ms = 1587ms
[./src/renderer/main.js] 1.23 KiB {main} [built]
factory:156ms building:976ms = 1132ms
[@blueprintjs/core] external "@blueprintjs/core" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/renderer/App.js] 87ms -> [./src/renderer/ScreenController.js] 368ms -> factory:923ms building:127ms dependencies:658ms = 3295ms
[electron] external "electron" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> factory:9ms building:78ms dependencies:2ms = 1221ms
[error-stack-parser] external "error-stack-parser" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/logger.js] 87ms -> factory:0ms building:1ms = 1220ms
[fs] external "fs" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/localize.js] 87ms -> factory:2ms building:0ms = 1221ms
[lodash.merge] external "lodash.merge" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/localize.js] 87ms -> factory:2ms building:0ms = 1221ms
[path] external "path" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/localize.js] 87ms -> factory:2ms building:0ms = 1221ms
[react] external "react" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> factory:9ms building:78ms dependencies:2ms = 1221ms
[react-dom] external "react-dom" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> factory:9ms building:78ms dependencies:2ms = 1221ms
[react-intl] external "react-intl" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/renderer/App.js] 87ms -> factory:54ms building:314ms dependencies:0ms = 1587ms
[react-intl/locale-data/en] external "react-intl/locale-data/en" 42 bytes {main} [built]
[./src/renderer/main.js] 1132ms -> [./src/renderer/App.js] 87ms -> factory:54ms building:314ms dependencies:0ms = 1587ms
+ 72 hidden modules
> [email protected] build-translations H:\Code\deltachat-desktop
> node bin/convert-translations-from-xml-to-json.js && node bin/extract_local_language_names.js
Converting translations from xml to json... (converted 29 files in 376 ms)
> [email protected] start H:\Code\deltachat-desktop
> electron . --debug --log-debug --log-to-console --disable-http-cache
Logfile: C:\Users\User1\AppData\Local\DeltaChat\logs\2019-05-08T13:19:11.201Z.log
App threw an error during load
Error: No native build was found for runtime=electron abi=69 platform=win32glibc arch=x64
at Function.load.path (H:\Code\deltachat-node\node_modules\node-gyp-build\index.js:59:9)
at load (H:\Code\deltachat-node\node_modules\node-gyp-build\index.js:19:30)
at Object.<anonymous> (H:\Code\deltachat-node\binding.js:1:198)
at Object.<anonymous> (H:\Code\deltachat-node\binding.js:3:3)
at Module._compile (internal/modules/cjs/loader.js:693:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
at Module.load (internal/modules/cjs/loader.js:602:32)
at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
at Function.Module._load (internal/modules/cjs/loader.js:533:3)
at Module.require (internal/modules/cjs/loader.js:640:17)
Windows build is not ready, yet the issue is closed, how so?
Because it builds and starts on windows.
@sergeevabc with the last efforts of porting deltacht-core/libdeltachat to rust and removing most/all of the c dependencies, it's now possible to compile the rust core on windows and integrate it into deltachat-desktop. So the first people are already using it on windows. I guess there soon will be more info about building it and maybe the first public usable builds :)
Most helpful comment
I did more more then 300+ commits for testing with travis-ci build deltachat-node under Windows
Now you can reproduce and build with some manual hands command core module under Windows
My testing repository for build under Win is:
Stable - recommended
Testing/Dev version - for next deployment
I would continue to work build under Windows, then you can help repair the assembly with version 0.40 (lates build under win only 0.39).
Please test under Windows. Thanks)