What do I have to do to enable mingw to find these header files? Any help is appreciated. — |
I would like to debug the dnd plugin for Windows. But if possible, I did not want to install cygwin additionally as I prefer WSL ... — |
Hi Christoph.
WSL = Windows Subsystem for Linux? Can you even build Windows binaries from within WSL? I don't know. Using Cygwin, you can build Windows binaries that link against Cygwin1.dll. Using MinGW (not necessarily out of Cygwin) you can build Windows binaries that directly link to Windows libraries. MinGW provides all the header files such as windows.h. But you can also use the MSVC compiler. :-) I think. There are people doing that. Best, Marcel
|
In reply to this post by David T Lewis
Hi Marcel,
Exactly. :-) I tried installing Cygwin now, too, but I still do not succeed. However, I tried MSVC, too (this would be my preferred way over Cygwin). So, again strictly following the
So I guess the Best, — |
In reply to this post by David T Lewis
Technically, we don't build a cygwin application (requiring Cygwin1.dll). We use cross-compiler for a mingw64 target. Maybe it's possible to use WSL if you installed enough tools for cross-compiling a mingw target, but you'll be alone then, I think no one ever tried that. installCygwin.bat requires parameters, at least x86_64, otherwise, it will install tools for 32bit (i686) VM. — |
In reply to this post by David T Lewis
As said, this would be optimal, but at the moment I will be happy if I manage to build it anyhow :-)
Yes, I had specified these parameters ( — |
WSL runs a Linux, so without cross-compilation you don't make Windows binaries there, unlike with mingw or Cygwin. If you want a VM that runs in WSL, build a Linux VM. Don't use WSL to build a Windows VM. Kind regards, Jakob Christoph Thiede <[hidden email]> schrieb am Sa., 13. Juni 2020, 21:21:
|
In reply to this post by David T Lewis
Alright, thanks for all your help. Marcel has explained to me that I need to start cygwin via the I still don't understand why it did work for me via MSVC, but at least I can build now, so everything else is secondary :-) — |
In reply to this post by David T Lewis
... I can build the VM, but I cannot load any image file. After running — |
In reply to this post by David T Lewis
Is it the win64 (64 bits) VM? There is an issue opened #498 AFAIK, the build using LLVM clange.exe is working OK though... — |
In reply to this post by David T Lewis
— |
In reply to this post by David T Lewis
No, just installed cygwin 32 bit and built everything again. Still segfault ... — |
In reply to this post by David T Lewis
No progress on this so far. Does there exist something like a docker file I could use to skip all these error-prone setup steps? — |
In reply to this post by David T Lewis
Hi Christoph, On Jun 13, 2020, at 11:07 AM, Christoph Thiede <[hidden email]> wrote:
_,,,^..^,,,_ (phone)
|
In reply to this post by David T Lewis
Hi Christoph, > On Jun 19, 2020, at 11:56 AM, Christoph Thiede <[hidden email]> wrote: > > > Is it the win64 (64 bits) VM? > > build.win32x86, no 64 bit. Hm ... could this occur because I have installed 64-bit version of cygwin? > No. 64-bit Cygwin will build the 32-bit vm. The problem is that its gdb won’t debug the 32-big exe :-(. So if you do want to debug you have to install 32-big Cygwin, & IIRC it had to be on a 32-bit OS. Hence use a VM :-( > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub, or unsubscribe. — |
In reply to this post by David T Lewis
Hi all, here are my current results of building the spur versions on Windows, using commit 16ffd5b + patch from #498 (comment)
Additional notes:
If anyone succeeds to build, we should really encapsulate the necessary tech stack. I believe this could make things really easier ... — |
In reply to this post by David T Lewis
Hi Christoph, please read my message here: http://forum.world.st/Win64-Builds-broken-slow-build-times-tp5116826p5120506.html It explains the bug and how to fix it. _,,,^..^,,,_ (phone) > On Sep 1, 2020, at 9:34 AM, Christoph Thiede <[hidden email]> wrote: > > > Hi all, > > here are my current results of building the spur versions on Windows, using commit 16ffd5b + patch from #498 (comment) > > cygwin32/cygwin64 for build.win32x86: > $ ./mvm -f > <lots of output with exit code zero> > $ ./build/vm/SqueakConsole ..\relative\path\to\valid\squeak.image > Could not open the Squeak image file <C:\absolute\path\to\valid\squeak.image> > <...> > Aborting... > Smalltalk stack dump: > <end of output> > cygwin32 for build.win64x64: > $ ./mvm -f > <lots of output with exit code zero> > $ ./build/vm/SqueakConsole ..\relative\path\to\valid\squeak.image > <no output> > cygwin64 for build.win64x64: > $ ./mvm -f > <less but still a lot of output> > rm: cannot remove 'build/vm/ADPCMCodecPlugin.lib': No such file or directory > make[1]: [/cygdrive/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk-vm/build.win64x64/common/Makefile.plugin:139: build/vm/ADPCMCodecPlugin.lib] Error 1 (ignored) > x86_64-w64-mingw32-ar rc build/vm/ADPCMCodecPlugin.lib build/ADPCMCodecPlugin/ADPCMCodecPlugin.o > make[1]: x86_64-w64-mingw32-ar: No such file or directory > make[1]: *** [/cygdrive/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk- vm/build.win64x64/common/Makefile.plugin:140: build/vm/ADPCMCodecPlugin.lib] Error 127 > make[1]: Leaving directory „/cygdrive/c/Users/Christoph/OneDrive/Dokumente/Squeak/Christoph/git/opensmalltalk- vm/build.win64x64/squeak.cog.spur“ > make: *** [../common/Makefile:271: build/vm/ADPCMCodecPlugin.lib] Error 2 > <exit code nonzero> > Additional notes: > > When I run SqueakConsole.exe from Cygwin, the output listed above is appended by a "Segmentation fault" line. When run in PowerShell, this line is not displayed, but everything else looks identically. > Running Squeak.exe (without "Console") did not work better, but as is known does not log errors to the console. > Despite I passed the image path to the executable, I have to choose it manually in a dialog. > Same problems when using squeak.stack.spur instead of squeak.cog.spur. So this is not a JIT problem (is this correct?). > If anyone succeeds to build, we should really encapsulate the necessary tech stack. I believe this could make things really easier ... 😅 > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub, or unsubscribe. — |
In reply to this post by David T Lewis
Thanks Eliot, @nicolas-cellier-aka-nice wrote that could fix the cygwin builds on his machine. This solution did not work for me, so is it possible that there is another problem? Otherwise, I will try soon again to build using MSVC ... — |
In reply to this post by David T Lewis
Closed #510. — |
In reply to this post by David T Lewis
I have to apologize for a stupid rookie mistake. The 32-bit builds "did not work" for me because I was trying to open a 64-bit image file in it, which Marcel kindly made we aware of ... So to correct the above description, I can say:
Because I did not ask a specific question, I'm going to close this now - yahoo, I can finally start developing for the OSVM Windows platform! — |
Free forum by Nabble | Edit this page |