Coder Social home page Coder Social logo

Building net6.0 for windows about irrlicht.net HOT 3 OPEN

nref avatar nref commented on September 24, 2024
Building net6.0 for windows

from irrlicht.net.

Comments (3)

nref avatar nref commented on September 24, 2024

Hey @zzstuzor , thanks for posting the issue, and sorry for the trouble!

It's configured for net6.0-windows in Irrlicht.NetCore.vcxproj.

The dynamic linkage (/MD) should work. The Irrlicht solution outputs static libs as well as dynamic libs. The dynamic ones are expected by the netcore wrapper. Then at runtime Irrlicht.dll should be in the bin directory. There is a script Irrlicht.Net/get-irrlicht.ps1 which copies the right files to the right places.

So after building Irrlicht17.0.sln you have the .lib and .dll:

Irrlicht lib folder
image

Irrlicht bin folder
image

Then after running get-irrlicht.ps1, Irrlicht.NetCore has copies of both:
image

Sorry that's not more straightforward.

from irrlicht.net.

nref avatar nref commented on September 24, 2024

By the way, you can install the DX9 SDK if you want to use Direct3D.

https://www.microsoft.com/en-us/download/details.aspx?id=6812

When installing, you'll likely encounter error S1023. Super easy workaround.

https://learn.microsoft.com/en-us/troubleshoot/windows/win32/s1023-error-when-you-install-directx-sdk

from irrlicht.net.

zzstuzor avatar zzstuzor commented on September 24, 2024

It's configured for net6.0-windows in Irrlicht.NetCore.vcxproj.

OK great.

The Irrlicht solution outputs static libs as well as dynamic libs.

Ah ok so I just had to build both configuratoins - [Release] and [Static lib - Release] in Irrlicht17.0.sln.

There is a script Irrlicht.Net/get-irrlicht.ps1 which copies the right files to the right places.

FYI this seems a little bit broken. The irrlicht-mirror that your repo refers to (commit 7448cdf) outputs to folders named lib/Win32-visualstudio, lib/Win64-visualStudio, bin/Win32-VisualStudio and bin/Win64-VisualStudio - whereas the script is expecting Win32 and x64. I tried to fix them but then it started complaining that irrlicht.net/irrlicht.dll doesn't exist - so I just copied the files manually.

image

Also note your repo has already has irrlicht.dll in the irrlicht.net/bin folders, for both debug and release - are they supposed to be there? I copied over them and now irrlicht.net builds successfully.

Thank you @slater1 , you are a legend!

from irrlicht.net.

Related Issues (1)

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.