CentOS 6 Compilation errors
by Caolan ODomhnaill · in Torque 2D Beginner · 05/22/2017 (3:55 pm) · 1 replies
hey there,
I just downloaded Torque2D and am trying to compile in CentOS 6.9. Up until it hits the AnimationAsset.cc file, everythign compiles perfectly fine.
I am executing "make" from the Torque2D/engine/compilers/Make directory. I changed the flag -std=c++0x
I get the following errors:
Building debug object Debug/2d/assets/AnimationAsset.cc.o
gcc -c -std=c++0x -MMD -I. -Wfatal-errors -Wunused -m32 -msse -march=i686 -pipe -I/usr/include -I/usr/include/freetype2 -I../../source -I../../source/persistence/rapidjson/include -I../../lib/ljpeg -I../../lib/zlib -I../../lib/lpng -I../../lib/freetype -I../../lib/libvorbis/include -I../../lib/libogg/include -DLINUX -ggdb -DTORQUE_DEBUG -DTORQUE_DEBUG_GUARD -DTORQUE_NET_STATS ../../source/2d/assets/AnimationAsset.cc -o Debug/2d/assets/AnimationAsset.cc.o
In file included from ../../source/platform/types.h:87,
from ../../source/platform/platform.h:31,
from ../../source/collection/vector.h:28,
from ../../source/sim/simBase.h:27,
from ../../source/console/consoleBaseType.h:27,
from ../../source/console/consoleTypes.h:27,
from ../../source/2d/assets/AnimationAsset.cc:23:
../../source/platform/types.gcc.h:153:4: error: #error "GCC: Unsupported Target CPU"
In file included from ../../source/platform/platform.h:47,
from ../../source/collection/vector.h:28,
from ../../source/sim/simBase.h:27,
from ../../source/console/consoleBaseType.h:27,
from ../../source/console/consoleTypes.h:27,
from ../../source/2d/assets/AnimationAsset.cc:23:
../../source/platform/platformEndian.h:205:2: error: #error "Endian define not set"
In file included from ../../source/io/fileStream.h:31,
from ../../source/persistence/tinyXML/tinyxml.h:30,
from ../../source/console/consoleObject.h:42,
from ../../source/sim/simBase.h:39,
from ../../source/console/consoleBaseType.h:27,
from ../../source/console/consoleTypes.h:27,
from ../../source/2d/assets/AnimationAsset.cc:23:
../../source/io/stream.h: In member function ‘bool Stream::write(S16)’:
../../source/io/stream.h:174: error: ‘convertHostToLEndian’ was not declared in this scope
compilation terminated due to -Wfatal-errors.
make: *** [Debug/2d/assets/AnimationAsset.cc.o] Error 1
Anyone have any ideas on how to resolve this?
TIA
-Caolan
I just downloaded Torque2D and am trying to compile in CentOS 6.9. Up until it hits the AnimationAsset.cc file, everythign compiles perfectly fine.
I am executing "make" from the Torque2D/engine/compilers/Make directory. I changed the flag -std=c++0x
I get the following errors:
Building debug object Debug/2d/assets/AnimationAsset.cc.o
gcc -c -std=c++0x -MMD -I. -Wfatal-errors -Wunused -m32 -msse -march=i686 -pipe -I/usr/include -I/usr/include/freetype2 -I../../source -I../../source/persistence/rapidjson/include -I../../lib/ljpeg -I../../lib/zlib -I../../lib/lpng -I../../lib/freetype -I../../lib/libvorbis/include -I../../lib/libogg/include -DLINUX -ggdb -DTORQUE_DEBUG -DTORQUE_DEBUG_GUARD -DTORQUE_NET_STATS ../../source/2d/assets/AnimationAsset.cc -o Debug/2d/assets/AnimationAsset.cc.o
In file included from ../../source/platform/types.h:87,
from ../../source/platform/platform.h:31,
from ../../source/collection/vector.h:28,
from ../../source/sim/simBase.h:27,
from ../../source/console/consoleBaseType.h:27,
from ../../source/console/consoleTypes.h:27,
from ../../source/2d/assets/AnimationAsset.cc:23:
../../source/platform/types.gcc.h:153:4: error: #error "GCC: Unsupported Target CPU"
In file included from ../../source/platform/platform.h:47,
from ../../source/collection/vector.h:28,
from ../../source/sim/simBase.h:27,
from ../../source/console/consoleBaseType.h:27,
from ../../source/console/consoleTypes.h:27,
from ../../source/2d/assets/AnimationAsset.cc:23:
../../source/platform/platformEndian.h:205:2: error: #error "Endian define not set"
In file included from ../../source/io/fileStream.h:31,
from ../../source/persistence/tinyXML/tinyxml.h:30,
from ../../source/console/consoleObject.h:42,
from ../../source/sim/simBase.h:39,
from ../../source/console/consoleBaseType.h:27,
from ../../source/console/consoleTypes.h:27,
from ../../source/2d/assets/AnimationAsset.cc:23:
../../source/io/stream.h: In member function ‘bool Stream::write(S16)’:
../../source/io/stream.h:174: error: ‘convertHostToLEndian’ was not declared in this scope
compilation terminated due to -Wfatal-errors.
make: *** [Debug/2d/assets/AnimationAsset.cc.o] Error 1
Anyone have any ideas on how to resolve this?
TIA
-Caolan
About the author
Employee Michael Perry
ZombieShortbus