Giter Site home page Giter Site logo

Windows support? about xenodon HOT 3 OPEN

snektron avatar snektron commented on May 24, 2024
Windows support?

from xenodon.

Comments (3)

Snektron avatar Snektron commented on May 24, 2024

Hello, i haven't tried to compile Xenodon on Windows yet, and i don't have much experience with visual studio. I usually either use MSYS2 or WSL. That said, the code without the xorg/direct backend should be portable enough to get it running. I will try to get a VM spinning and see if i can compile it with VS.

For the record, there is nothing limiting interactive usage on Windows, it's just not implemented. GLFW would seem like the best option to do so because of its cross-platform support, but i opted for using X.org because GLFW does not support creating multiple windows on different GPUs. Currently i have no plans to implement it due to time constraints on my thesis, even though it shouldn't be much work.

from xenodon.

Snektron avatar Snektron commented on May 24, 2024

I was not able to get it working, i couldn't get meson to generate a vs project. A friend who i asked to try to compile it on windows with msys reported a few compile errors: notably, on windows std::filesystem::path seems to be a wrapper around std::wstring, instead of std::string, which doesnt work with .c_str() i used to pass it to libtiff. Also it doesnt work with {fmt}, which results in a bunch of template errors. Could those be the same as what you are getting?

from xenodon.

oscarbg avatar oscarbg commented on May 24, 2024

Hi,
sorry for delay in answering..
will not spend more effort on this.. so just sharing what I did:
modified meson build file
meson.zip
did a change I don't like:
resources.S to resources.txt
it's important?
I'm on VS2019 16.1 and needed latest Meson 0.51 ..
with that you can generate project..

source changes:

#define __PRETTY_FUNCTION__ __FUNCSIG__
#define ssize_t size_t

also trying to avoid template issues:
started commenting code:

//{args::int_range_opt(&opts.render_params.repeat), "frame repeat", "--repeat"}

std::string_view extension = "";// render_params.volume_path.extension().native();

	/*
    template <typename T, typename = std::enable_if_t<std::numeric_limits<T>::is_integer>>
    constexpr auto int_range_opt(T* var, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) {
        return [var, min, max](std::string_view arg) {
            T value;
            auto [end, err] = std::from_chars(arg.begin(), arg.end(), value);
            if (err != std::errc() || end != arg.end()) {
                return false;
            } else if (value < min || value > max) {
                return false;
            }

            *var = value;
            return true;
        };
    }
	*/

from xenodon.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.