Skip to content

fix _IRR_STATIC_LIB_#2818

Merged
mercury233 merged 1 commit into
Fluorohydride:masterfrom
mercury233:patch-irrlicht-static-define-1
Jun 8, 2025
Merged

fix _IRR_STATIC_LIB_#2818
mercury233 merged 1 commit into
Fluorohydride:masterfrom
mercury233:patch-irrlicht-static-define-1

Conversation

@mercury233

@mercury233 mercury233 commented May 31, 2025

Copy link
Copy Markdown
Collaborator

To build Irrlicht as a static library, you must define _IRR_STATIC_LIB_ in both the Irrlicht build, and in the user application, before #including <irrlicht.h>

Currently, this constant is not added when including <irrlicht.h> in CGUITTFont.cpp, and the ISceneNode::getMaterial function used there returns video::IdentityMaterial, which is declared as:

IRRLICHT_API extern SMaterial IdentityMaterial;

The value of IRRLICHT_API is related to _IRR_STATIC_LIB_.

There may be other similar issues in the project, but they do not affect the compilation.

@mercury233 mercury233 merged commit 081b7e9 into Fluorohydride:master Jun 8, 2025
8 checks passed
@mercury233 mercury233 deleted the patch-irrlicht-static-define-1 branch June 8, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant