Problems with compilations

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
antoniorand
Posts: 1
Joined: Wed Feb 03, 2021 4:48 pm

Problems with compilations

Post by antoniorand »

So, I'm using the latest Irrlicht version (which is Irrlicht SDK 1.8.4) and I'm using the manjaro linux distro.

I need to compile the library both for linux (regular .a file) and for windows (cross-compiling using mingw).

I've already compiled the linux library part, just there's something that bugs me: COSOperator.cpp can't be compiled due to this error.

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COSOperator.o COSOperator.cpp
COSOperator.cpp:16:10: error fatal: sys/sysctl.h: No existe el fichero o el directorio
   16 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
compilación terminada.
make: *** [<integrado>: COSOperator.o] Error 1
I commented the line with include in COSOperator.o. I don't know if that will provoke any bugs or error, but It worked fine for me. Still bugs me though.

So the big problem. Makefile says to run "make win32" to crosscompile using mingw-32, the problem is that:

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -DIRRLICHT_EXPORTS=1 -DNO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_ -DNO_IRR_COMPILE_WITH_DIRECT3D_9_ -DIRR_COMPILE_WITH_DX9_DEV_PACK -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL  -c -o CBSPMeshFileLoader.o CBSPMeshFileLoader.cpp
En el fichero incluido desde ../../include/IReferenceCounted.h:8,
                 desde ../../include/IMeshLoader.h:8,
                 desde CBSPMeshFileLoader.h:8,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/irrString.h: En el constructor ‘irr::core::string<T, TAlloc>::string(double)’:
../../include/irrTypes.h:125:18: error: no hay argumentos para ‘_snprintf’ que dependan de un parámetro de plantilla, por lo cual una declaración de ‘_snprintf’ debe estar disponible [-fpermissive]
  125 | #define snprintf _snprintf
      |                  ^~~~~~~~~
../../include/irrString.h:109:3: nota: en expansión de macro ‘snprintf’
  109 |   snprintf(tmpbuf, 255, "%0.6f", number);
      |   ^~~~~~~~
../../include/irrTypes.h:125:18: nota: (si utiliza ‘-fpermissive’, G++ aceptará su código, pero permitir el uso de un nombre sin declarar es obsoleto)
  125 | #define snprintf _snprintf
      |                  ^~~~~~~~~
../../include/irrString.h:109:3: nota: en expansión de macro ‘snprintf’
  109 |   snprintf(tmpbuf, 255, "%0.6f", number);
      |   ^~~~~~~~
En el fichero incluido desde CBSPMeshFileLoader.cpp:5:
../../include/irrXML.h: En el ámbito global:
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:438:2: nota: en expansión de macro ‘IRRLICHT_API’
  438 |  IRRLICHT_API IrrXMLReader* IRRCALLCONV createIrrXMLReader(const char* filename);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:450:2: nota: en expansión de macro ‘IRRLICHT_API’
  450 |  IRRLICHT_API IrrXMLReader* IRRCALLCONV createIrrXMLReader(FILE* file);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:465:2: nota: en expansión de macro ‘IRRLICHT_API’
  465 |  IRRLICHT_API IrrXMLReader* IRRCALLCONV createIrrXMLReader(IFileReadCallBack* callback,
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:478:2: nota: en expansión de macro ‘IRRLICHT_API’
  478 |  IRRLICHT_API IrrXMLReaderUTF16* IRRCALLCONV createIrrXMLReaderUTF16(const char* filename);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:490:2: nota: en expansión de macro ‘IRRLICHT_API’
  490 |  IRRLICHT_API IrrXMLReaderUTF16* IRRCALLCONV createIrrXMLReaderUTF16(FILE* file);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:505:2: nota: en expansión de macro ‘IRRLICHT_API’
  505 |  IRRLICHT_API IrrXMLReaderUTF16* IRRCALLCONV createIrrXMLReaderUTF16(IFileReadCallBack* callback,
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:518:2: nota: en expansión de macro ‘IRRLICHT_API’
  518 |  IRRLICHT_API IrrXMLReaderUTF32* IRRCALLCONV createIrrXMLReaderUTF32(const char* filename);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:530:2: nota: en expansión de macro ‘IRRLICHT_API’
  530 |  IRRLICHT_API IrrXMLReaderUTF32* IRRCALLCONV createIrrXMLReaderUTF32(FILE* file);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:546:2: nota: en expansión de macro ‘IRRLICHT_API’
  546 |  IRRLICHT_API IrrXMLReaderUTF32* IRRCALLCONV createIrrXMLReaderUTF32(IFileReadCallBack* callback,
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/matrix4.h:2238:2: nota: en expansión de macro ‘IRRLICHT_API’
 2238 |  IRRLICHT_API extern const matrix4 IdentityMatrix;
      |  ^~~~~~~~~~~~
En el fichero incluido desde ../../include/SMaterial.h:14,
                 desde ../../include/IVideoDriver.h:16,
                 desde CBSPMeshFileLoader.h:10,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/SMaterialLayer.h: En la función miembro ‘irr::core::matrix4& irr::video::SMaterialLayer::getTextureMatrix()’:
../../include/SMaterialLayer.h:127:51: error: ‘IdentityMatrix’ no es un miembro de ‘irr::core’
  127 |     MatrixAllocator.construct(TextureMatrix,core::IdentityMatrix);
      |                                                   ^~~~~~~~~~~~~~
../../include/SMaterialLayer.h: En la función miembro ‘const matrix4& irr::video::SMaterialLayer::getTextureMatrix() const’:
../../include/SMaterialLayer.h:139:18: error: ‘IdentityMatrix’ no es un miembro de ‘irr::core’
  139 |     return core::IdentityMatrix;
      |                  ^~~~~~~~~~~~~~
En el fichero incluido desde ../../include/IVideoDriver.h:16,
                 desde CBSPMeshFileLoader.h:10,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/SMaterial.h: En la función miembro ‘const matrix4& irr::video::SMaterial::getTextureMatrix(irr::u32) const’:
../../include/SMaterial.h:457:18: error: ‘IdentityMatrix’ no es un miembro de ‘irr::core’
  457 |     return core::IdentityMatrix;
      |                  ^~~~~~~~~~~~~~
En el fichero incluido desde CBSPMeshFileLoader.cpp:5:
../../include/SMaterial.h: En el ámbito global:
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/SMaterial.h:680:2: nota: en expansión de macro ‘IRRLICHT_API’
  680 |  IRRLICHT_API extern SMaterial IdentityMaterial;
      |  ^~~~~~~~~~~~
En el fichero incluido desde ../../include/IBoneSceneNode.h:8,
                 desde ../../include/ISkinnedMesh.h:9,
                 desde ../../include/ISceneManager.h:21,
                 desde CBSPMeshFileLoader.h:11,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/ISceneNode.h: En la función miembro ‘virtual irr::video::SMaterial& irr::scene::ISceneNode::getMaterial(irr::u32)’:
../../include/ISceneNode.h:408:18: error: ‘IdentityMaterial’ no es un miembro de ‘irr::video’
  408 |    return video::IdentityMaterial;
      |                  ^~~~~~~~~~~~~~~~
En el fichero incluido desde CBSPMeshFileLoader.cpp:5:
../../include/fast_atof.h: En el ámbito global:
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/fast_atof.h:18:2: nota: en expansión de macro ‘IRRLICHT_API’
   18 |  IRRLICHT_API extern irr::core::stringc LOCALE_DECIMAL_POINTS;
      |  ^~~~~~~~~~~~
En el fichero incluido desde ../../include/IQ3Shader.h:9,
                 desde CBSPMeshFileLoader.h:12,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/fast_atof.h: En la función ‘const char* irr::core::fast_atof_move(const char*, irr::f32&)’:
../../include/fast_atof.h:323:7: error: ‘LOCALE_DECIMAL_POINTS’ no se declaró en este ámbito
  323 |  if ( LOCALE_DECIMAL_POINTS.findFirst(*in) >= 0 )
      |       ^~~~~~~~~~~~~~~~~~~~~
make: *** [<integrado>: CBSPMeshFileLoader.o] Error 1
Any clue about what is happening here? It's the first time I cross-compile anything and I'm confused.
DebugBSD
Posts: 12
Joined: Tue Aug 01, 2017 7:14 am
Location: Madrid, Spain

Re: Problems with compilations

Post by DebugBSD »

antoniorand wrote:So, I'm using the latest Irrlicht version (which is Irrlicht SDK 1.8.4) and I'm using the manjaro linux distro.

I need to compile the library both for linux (regular .a file) and for windows (cross-compiling using mingw).

I've already compiled the linux library part, just there's something that bugs me: COSOperator.cpp can't be compiled due to this error.

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COSOperator.o COSOperator.cpp
COSOperator.cpp:16:10: error fatal: sys/sysctl.h: No existe el fichero o el directorio
   16 | #include <sys/sysctl.h>
      |          ^~~~~~~~~~~~~~
compilación terminada.
make: *** [<integrado>: COSOperator.o] Error 1
I commented the line with include in COSOperator.o. I don't know if that will provoke any bugs or error, but It worked fine for me. Still bugs me though.

So the big problem. Makefile says to run "make win32" to crosscompile using mingw-32, the problem is that:

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -DIRRLICHT_EXPORTS=1 -DNO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_ -DNO_IRR_COMPILE_WITH_DIRECT3D_9_ -DIRR_COMPILE_WITH_DX9_DEV_PACK -D__GNUWIN32__ -D_WIN32 -DWIN32 -D_WINDOWS -D_MBCS -D_USRDLL  -c -o CBSPMeshFileLoader.o CBSPMeshFileLoader.cpp
En el fichero incluido desde ../../include/IReferenceCounted.h:8,
                 desde ../../include/IMeshLoader.h:8,
                 desde CBSPMeshFileLoader.h:8,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/irrString.h: En el constructor ‘irr::core::string<T, TAlloc>::string(double)’:
../../include/irrTypes.h:125:18: error: no hay argumentos para ‘_snprintf’ que dependan de un parámetro de plantilla, por lo cual una declaración de ‘_snprintf’ debe estar disponible [-fpermissive]
  125 | #define snprintf _snprintf
      |                  ^~~~~~~~~
../../include/irrString.h:109:3: nota: en expansión de macro ‘snprintf’
  109 |   snprintf(tmpbuf, 255, "%0.6f", number);
      |   ^~~~~~~~
../../include/irrTypes.h:125:18: nota: (si utiliza ‘-fpermissive’, G++ aceptará su código, pero permitir el uso de un nombre sin declarar es obsoleto)
  125 | #define snprintf _snprintf
      |                  ^~~~~~~~~
../../include/irrString.h:109:3: nota: en expansión de macro ‘snprintf’
  109 |   snprintf(tmpbuf, 255, "%0.6f", number);
      |   ^~~~~~~~
En el fichero incluido desde CBSPMeshFileLoader.cpp:5:
../../include/irrXML.h: En el ámbito global:
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:438:2: nota: en expansión de macro ‘IRRLICHT_API’
  438 |  IRRLICHT_API IrrXMLReader* IRRCALLCONV createIrrXMLReader(const char* filename);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:450:2: nota: en expansión de macro ‘IRRLICHT_API’
  450 |  IRRLICHT_API IrrXMLReader* IRRCALLCONV createIrrXMLReader(FILE* file);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:465:2: nota: en expansión de macro ‘IRRLICHT_API’
  465 |  IRRLICHT_API IrrXMLReader* IRRCALLCONV createIrrXMLReader(IFileReadCallBack* callback,
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:478:2: nota: en expansión de macro ‘IRRLICHT_API’
  478 |  IRRLICHT_API IrrXMLReaderUTF16* IRRCALLCONV createIrrXMLReaderUTF16(const char* filename);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:490:2: nota: en expansión de macro ‘IRRLICHT_API’
  490 |  IRRLICHT_API IrrXMLReaderUTF16* IRRCALLCONV createIrrXMLReaderUTF16(FILE* file);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:505:2: nota: en expansión de macro ‘IRRLICHT_API’
  505 |  IRRLICHT_API IrrXMLReaderUTF16* IRRCALLCONV createIrrXMLReaderUTF16(IFileReadCallBack* callback,
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:518:2: nota: en expansión de macro ‘IRRLICHT_API’
  518 |  IRRLICHT_API IrrXMLReaderUTF32* IRRCALLCONV createIrrXMLReaderUTF32(const char* filename);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:530:2: nota: en expansión de macro ‘IRRLICHT_API’
  530 |  IRRLICHT_API IrrXMLReaderUTF32* IRRCALLCONV createIrrXMLReaderUTF32(FILE* file);
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/irrXML.h:546:2: nota: en expansión de macro ‘IRRLICHT_API’
  546 |  IRRLICHT_API IrrXMLReaderUTF32* IRRCALLCONV createIrrXMLReaderUTF32(IFileReadCallBack* callback,
      |  ^~~~~~~~~~~~
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/matrix4.h:2238:2: nota: en expansión de macro ‘IRRLICHT_API’
 2238 |  IRRLICHT_API extern const matrix4 IdentityMatrix;
      |  ^~~~~~~~~~~~
En el fichero incluido desde ../../include/SMaterial.h:14,
                 desde ../../include/IVideoDriver.h:16,
                 desde CBSPMeshFileLoader.h:10,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/SMaterialLayer.h: En la función miembro ‘irr::core::matrix4& irr::video::SMaterialLayer::getTextureMatrix()’:
../../include/SMaterialLayer.h:127:51: error: ‘IdentityMatrix’ no es un miembro de ‘irr::core’
  127 |     MatrixAllocator.construct(TextureMatrix,core::IdentityMatrix);
      |                                                   ^~~~~~~~~~~~~~
../../include/SMaterialLayer.h: En la función miembro ‘const matrix4& irr::video::SMaterialLayer::getTextureMatrix() const’:
../../include/SMaterialLayer.h:139:18: error: ‘IdentityMatrix’ no es un miembro de ‘irr::core’
  139 |     return core::IdentityMatrix;
      |                  ^~~~~~~~~~~~~~
En el fichero incluido desde ../../include/IVideoDriver.h:16,
                 desde CBSPMeshFileLoader.h:10,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/SMaterial.h: En la función miembro ‘const matrix4& irr::video::SMaterial::getTextureMatrix(irr::u32) const’:
../../include/SMaterial.h:457:18: error: ‘IdentityMatrix’ no es un miembro de ‘irr::core’
  457 |     return core::IdentityMatrix;
      |                  ^~~~~~~~~~~~~~
En el fichero incluido desde CBSPMeshFileLoader.cpp:5:
../../include/SMaterial.h: En el ámbito global:
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/SMaterial.h:680:2: nota: en expansión de macro ‘IRRLICHT_API’
  680 |  IRRLICHT_API extern SMaterial IdentityMaterial;
      |  ^~~~~~~~~~~~
En el fichero incluido desde ../../include/IBoneSceneNode.h:8,
                 desde ../../include/ISkinnedMesh.h:9,
                 desde ../../include/ISceneManager.h:21,
                 desde CBSPMeshFileLoader.h:11,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/ISceneNode.h: En la función miembro ‘virtual irr::video::SMaterial& irr::scene::ISceneNode::getMaterial(irr::u32)’:
../../include/ISceneNode.h:408:18: error: ‘IdentityMaterial’ no es un miembro de ‘irr::video’
  408 |    return video::IdentityMaterial;
      |                  ^~~~~~~~~~~~~~~~
En el fichero incluido desde CBSPMeshFileLoader.cpp:5:
../../include/fast_atof.h: En el ámbito global:
../../include/IrrCompileConfig.h:684:32: error: expected constructor, destructor, or type conversion before ‘(’ token
  684 | #define IRRLICHT_API __declspec(dllexport)
      |                                ^
../../include/fast_atof.h:18:2: nota: en expansión de macro ‘IRRLICHT_API’
   18 |  IRRLICHT_API extern irr::core::stringc LOCALE_DECIMAL_POINTS;
      |  ^~~~~~~~~~~~
En el fichero incluido desde ../../include/IQ3Shader.h:9,
                 desde CBSPMeshFileLoader.h:12,
                 desde CBSPMeshFileLoader.cpp:8:
../../include/fast_atof.h: En la función ‘const char* irr::core::fast_atof_move(const char*, irr::f32&)’:
../../include/fast_atof.h:323:7: error: ‘LOCALE_DECIMAL_POINTS’ no se declaró en este ámbito
  323 |  if ( LOCALE_DECIMAL_POINTS.findFirst(*in) >= 0 )
      |       ^~~~~~~~~~~~~~~~~~~~~
make: *** [<integrado>: CBSPMeshFileLoader.o] Error 1
Any clue about what is happening here? It's the first time I cross-compile anything and I'm confused.
Hi antoniorand, first of all, welcome to the forum.

After seeing the problems you had with the Linux distribution (manjaro), I sugest you to ask in the manjaro mailing list about support for that problem because, I think you haven't installed the headers development for your distribution and that's a problem with the distribution. You should have your development headers and libraries instaled on /usr/include or something like that. See in the manjaro distribution about how to install them. On debian systems, you should install something like glibc-dev or something like that.

When you have installed all dependencies, try to rebuild the irrlicht library and if there is still failling, please, let us know about it.

Guille
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problems with compilations

Post by CuteAlien »

First one is fixed in svn trunk, just didn't dare backporting it as I don't have all platforms for testing (and generally annoying if you accentally break plaforms for stable version which worked before).

In trunk it looks like this:

Code: Select all

 
#ifdef _IRR_OSX_PLATFORM_
#include <sys/sysctl.h>
#endif
 
I guess it might be discussable to backport this one, but anyway it's safe in your case to remove it.

I have unfortunately little experience with cross-compilation, but can you translate that message to english?
../../include/irrTypes.h:125:18: error: no hay argumentos para ‘_snprintf’ que dependan de un parámetro de plantilla, por lo cual una declaración de ‘_snprintf’ debe estar disponible [-fpermissive]

I'm not sure if it's missing on your platform or if this is about some wrong parameters.
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
Post Reply