MacOS Framework missing about 30 headers?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
kencu
Posts: 1
Joined: Tue Jan 17, 2017 4:42 am

MacOS Framework missing about 30 headers?

Post by kencu »

Hi, I'm bundling the Irrlicht library up for macports. I'm surprised it hasn't been in there earlier.

I have the installation working; macports prefers the dylib versions of libraries, and the easiest way to get this seems to be to build the xcode project ".source/Irrlicht/MacOSX/MacOSX.xcodeproj" with target being IrrFramework. This builds, installs, and works correctly to allow, for example, minetest to build and run.

But I notice there are 153 header files in the framework build, and 182 header files in ./include/*.h. A number of files (I'll list them below) are not moved into the framework's header directory.

Are these headers not needed? Some examples wouldn't build without them, I noticed.

Is the xcode project just out of date? I can easily enough move these headers manually into the framework's header folder if so -- but is the framework's library up to date, then? Will they find the proper objects to link against in the framework-built library?

There is a macosx dynamic library target in the unix makefile as well, but this was not building for me when I tried it. Actually, if that would work, that could be the preferred method, for various reasons. Macports likes to be able to specify the c++ standard library, for one, overriding xcode if necessary.

Open to thoughts and suggestions.

Ken

(here are the missing headers that are in the ./include/ directory but not in the framework's header directory:

CDynamicMeshBuffer.h \
CIndexBuffer.h \
CVertexBuffer.h \
EAttributes.h \
EDeviceTypes.h \
EPrimitiveTypes.h \
EShaderTypes.h \
IBillboardTextSceneNode.h \
IColladaMeshWriter.h \
IDynamicMeshBuffer.h \
IFileArchive.h \
IGUIImageList.h \
IGUITreeView.h \
IGeometryCreator.h \
IIndexBuffer.h \
ILightManager.h \
IRandomizer.h \
ISceneLoader.h \
ISceneNodeAnimatorCameraFPS.h \
ISceneNodeAnimatorCameraMaya.h \
IVertexBuffer.h \
IVolumeLightSceneNode.h \
SVertexIndex.h \
SVertexManipulator.h \
driverChoice.h \
fast_atof.h \
irrpack.h \
irrunpack.h \
path.h
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: MacOS Framework missing about 30 headers?

Post by CuteAlien »

My guess would be - it's just out of date and those headers never got added.
Sorry can't help much with otherwise it as I have no OS X :-(
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: MacOS Framework missing about 30 headers?

Post by Nadro »

Hi,

I'm not sure if v1.8.4 works properly on most recent versions of macOS (framework target is definitly outdated), however trunk should work properly. You can check it here: https://sourceforge.net/p/irrlicht/code ... /Irrlicht/ (it has Irrlicht.xcodeproj builded from scratch - in ogl-es branch this project is used for both macOS and iOS), however at now only static libraries are supported.

BTW. Trunk is much better than v1.8.4 ;)

Cheers,
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply