Giter Club home page Giter Club logo

Comments (8)

github-actions avatar github-actions commented on June 25, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from maui.

jaosnz-rep avatar jaosnz-rep commented on June 25, 2024

Hi @janne-hmp ,
I can't build GnollHackM (.NET MAUI 9.0 project), the error is as follows, can you update the repository to help us reproduce the error?
image

Thanks for your patience.

from maui.

TommiGustafsson-HMP avatar TommiGustafsson-HMP commented on June 25, 2024

You need to follow these instructions:

https://github.com/hyvanmielenpelit/GnollHack/wiki/Build-Instructions-for-Android-Version-on-Windows-%28.NET-MAUI%29

The instructions require you also to build the Xamarin.Forms version of the game. You can copy the tileset images and sound banks from here:

The instructions are for Android. @janne-hmp can provide instructions for Windows.

@janne-hmp : We should add the build instructions for the MAUI Windows version to the wiki.

from maui.

janne-hmp avatar janne-hmp commented on June 25, 2024

Thanks for looking at this. The initial build instructions were a bit limited, since I wasn't sure if anybody checks this in fact out anytime soon. There are indeed a few files that GnollHackM requires for successful building that are not a part of the repository due to the large size or since they contain private information like passwords etc., as pointed out by Tommi. Also, the game relies on building the NetHack game data file (called nhdat) for the Windows MAUI version using GnollHack.sln solution, which is another necessary step. Let me do a more complete set of instructions to the wiki to enable building the Windows version, and I send you link soon. I didn't have a chance to do this earlier, since I started looking at the WinUI version last Thursday.

from maui.

janne-hmp avatar janne-hmp commented on June 25, 2024

Hi @janne-hmp , I can't build GnollHackM (.NET MAUI 9.0 project), the error is as follows, can you update the repository to help us reproduce the error? image

Thanks for your patience.

Here's the link to the more detailed version of the build instructions: https://github.com/hyvanmielenpelit/GnollHack/wiki/Build-Instructions-for-WinUI3-Version-on-Windows-(.NET-MAUI)

The whole Windows .NET MAUI version is very recent work-in-progress (started last week) so it was tough to say if the instructions are fully complete yet, but hopefully so. The build process is currently a bit intricately tied to both old NetHack / GnollHack Win32 Windows version (which generates Windows nhdat game data file) and old Xamarin.Forms version (originally just Android and iOS), where the rest of the code comes from, so it is not super-straightforward currently. The gnollhackwin project creates the GnollHack C library called gnollhackwin.dll to win\win32\xpl\GnollHackM\Platforms\Windows\libs. That said, I managed to make .NET MAUI version work for me (even getting debugging work for the C library), and the game works generally well for Android and iOS in both Xamarin and .NET MAUI.

In any case, let me know if you encounter any further problems, and I can fix the instructions, if need be.

from maui.

mattleibow avatar mattleibow commented on June 25, 2024

Please attach a small reproduction sample to help debug this issue. A large app may have other, unrelated side effects and it is hard to debug any specific issue when there are many steps to get working. A smaller sample will help us get to it faster.

Also, please attach the full stack trace even if it does not make sense as there may be hints in there for the Windows teams.

from maui.

dotnet-policy-service avatar dotnet-policy-service commented on June 25, 2024

Hi @janne-hmp. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

from maui.

janne-hmp avatar janne-hmp commented on June 25, 2024

I actually figured out where this was coming from. It was caused by me accidently calling a non-exported function from a DLL, which the system did not find. The error message was just extremely weird, indicating something wrong with combase while in fact P/Invoke did not find the function from the DLL. Perhaps that can be made a bit clearer going forward. I added now the __declspec(dllexport) attribute to the function on the DLL side, and this work out now ok in that respect.

from maui.

Related Issues (20)

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.