kosmonaut icon indicating copy to clipboard operation
kosmonaut copied to clipboard

Windows XP and Windows 7

Open ConLenov opened this issue 5 years ago • 5 comments
trafficstars

How do I compile a kosmonaut to run under Windows XP and Windows 7?

ConLenov avatar Aug 28 '20 10:08 ConLenov

Hi @ConLenov!

I haven't yet had luck getting Kosmonaut compiled for Windows (but to be fair, I haven't tried very hard). I did try to include Windows in our Travis CI builds a while back, but was unsuccessful due to some missing DLLs. At that time, Travis support for Windows self-described as "beta", so it may have been a problem on their end.

Unfortunately, the build requirements have also complicated since then, namely step 2 in in the instructions. Kosmonaut uses servo/font-kit for text rendering, which under the hood uses an arbitrary combination of platform-specific font loaders and sources (e.g. Core Text, DirectWrite) in tandem with FreeType, a cross-platform loader and source. I believe with the way Kosmonaut is currently written, FreeType will be required for compilation on all platforms.

I do have a Windows 10 box I can test compilation on, so I'll give that a shot when I find some time. I don't have any machines running Windows XP nor Windows 7, so I won't be able to test builds for those environments personally.

twilco avatar Aug 28 '20 15:08 twilco

I was able to build and run Kosmonaut on Windows 10 simply pulling the repository down, running cargo build, and then cargo run. Still not sure about XP or Windows 7 / 8 -- if you have access to machines running those, feel free to give it a try and report back.

twilco avatar Aug 28 '20 19:08 twilco

Rust only has tier 3 support for Windows XP, so issues are quite likely, and probably not worth fixing.

Windows 7 is fully supported, so that should be simpler.

See: https://doc.rust-lang.org/nightly/rustc/platform-support.html

timw4mail avatar Sep 01 '20 15:09 timw4mail

After installing vc_redist on win 7 x86 command "kosmonaut.exe https://twilco.github.io/assets/html/rainbow-divs.html" tried to start the application, but got this output:

thread 'main' panicked at 'called Result::unwrap() on an Err value: NoAvailablePixelFormat', components\gfx\src\headed.rs:40:10 stack backtrace: 0: 0x1b3498a - ... 13: 0x12f2fb2 - 14: 0x774a3c45 - BaseThreadInitThunk 15: 0x773637f5 - RtlInitializeExceptionChain 16: 0x773637c8 - RtlInitializeExceptionChain

I think, its because old OpenGL version on my old laptop. Apparently it will start with a newer OpenGL.

aaveter avatar Oct 09 '21 22:10 aaveter

But tell me, do you have any idea why it is so slow on Windows 10 (core i5 16 Rb ram), do you know about it?

aaveter avatar Oct 09 '21 22:10 aaveter