Skip to content

Building net6.0 for windows #1

@zzstuzor

Description

@zzstuzor

Hi @slater1, this looks like a great project, thanks for putting it together.

I've just gone through and built the irrlicht-mirror .lib files successfully and copied the x64 lib files over to the irrlicht.net repo /irrlicht/bin folders etc. I had to disable DX9 support by commenting out _IRR_COMPILE_WITH_DIRECT3D_9_ in IrrCompileConfig.h.

I'm using the Irrlicht17.0.sln file, with Visual Studio 2022 (v143) and the Windows SDK Version 10.0 (latest installed version).

I unloaded the irrlicht.netFramework project, but when I try to build irrlicht.netcore, I get the following error:

LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in ArchiveLoader.obj Irrlicht.NetCore D:\code\irrlicht.net.git\Irrlicht.NetCore\Irrlicht.lib(Irrlicht.obj)

I think I need to build the (/MD) but for curiosity I tried changing the RuntimeLibrary property to (/MT) but then I just get the following:

D8016 '/clr:netcore' and '/MT' command-line options are incompatible Irrlicht.NetCore

Is there something I'm doing wrong in the building of the irrlicht engine? I noticed in the comments it suggests Windows SDK v7.1 - would this potentially be causing my problems?

Also to build the .net wrapper, is it currently configured to build for netcore 3.1 or something? How do I specify I want to compile it for net6.0?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions