nifskope
nifskope copied to clipboard
Building on ppc64le requires editing NifSkope.pro
g++ -c -pipe -isystem ../nifskope/lib/qhull/src -isystem ../nifskope/lib/gli/gli -isystem ../nifskope/lib/gli/external -isystem ../nifskope/lib/zlib -O3 -mfpmath=sse -std=c++14 -msse2 -msse -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_URL_CAST_FROM_STRING -DQT_DISABLE_DEPRECATED_BEFORE=0x050300 -DNIFSKOPE_VERSION=\"2.0.dev7\" -DNIFSKOPE_REVISION=\"3a85ac5\" -DLZ4_STATIC -DXXH_PRIVATE_API -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -Ilib -Ilib/fsengine -Ilib/NvTriStrip -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtOpenGL -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -IGeneratedFiles/.moc -isystem /usr/include/libdrm -IGeneratedFiles/.ui -I/usr/lib64/qt5/mkspecs/linux-g++ -o GeneratedFiles/.obj/kfmmodel.o src/model/kfmmodel.cpp
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse2’
g++ -c -pipe -isystem ../nifskope/lib/qhull/src -isystem ../nifskope/lib/gli/gli -isystem ../nifskope/lib/gli/external -isystem ../nifskope/lib/zlib -O3 -mfpmath=sse -std=c++14 -msse2 -msse -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG_OUTPUT -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_URL_CAST_FROM_STRING -DQT_DISABLE_DEPRECATED_BEFORE=0x050300 -DNIFSKOPE_VERSION=\"2.0.dev7\" -DNIFSKOPE_REVISION=\"3a85ac5\" -DLZ4_STATIC -DXXH_PRIVATE_API -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -Ilib -Ilib/fsengine -Ilib/NvTriStrip -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtOpenGL -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -IGeneratedFiles/.moc -isystem /usr/include/libdrm -IGeneratedFiles/.ui -I/usr/lib64/qt5/mkspecs/linux-g++ -o GeneratedFiles/.obj/nifdelegate.o src/model/nifdelegate.cpp
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1249: GeneratedFiles/.obj/controllers.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:1207: GeneratedFiles/.obj/niftypes.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1377: GeneratedFiles/.obj/gltex.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1232: GeneratedFiles/.obj/bsshape.o] Error 1
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1215: GeneratedFiles/.obj/nifvalue.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
make: *** [Makefile:1285: GeneratedFiles/.obj/glmesh.o] Error 1
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1306: GeneratedFiles/.obj/glnode.o] Error 1
make: *** [Makefile:1389: GeneratedFiles/.obj/gltexloaders.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1263: GeneratedFiles/.obj/glcontroller.o] Error 1
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1418: GeneratedFiles/.obj/renderer.o] Error 1
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse2’
make: *** [Makefile:1424: GeneratedFiles/.obj/material.o] Error 1
make: *** [Makefile:1434: GeneratedFiles/.obj/nifstream.o] Error 1
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1266: GeneratedFiles/.obj/glmarker.o] Error 1
make: *** [Makefile:1340: GeneratedFiles/.obj/glproperty.o] Error 1
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1359: GeneratedFiles/.obj/glscene.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-msse’
g++: error: unrecognized command line option ‘-mfpmath=sse’
make: *** [Makefile:1447: GeneratedFiles/.obj/3ds.o] Error 1
make: *** [Makefile:1322: GeneratedFiles/.obj/glparticles.o] Error 1
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1458: GeneratedFiles/.obj/importex.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1398: GeneratedFiles/.obj/gltools.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1499: GeneratedFiles/.obj/basemodel.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1491: GeneratedFiles/.obj/qhull.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1471: GeneratedFiles/.obj/obj.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1482: GeneratedFiles/.obj/col.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1487: GeneratedFiles/.obj/nvtristripwrapper.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1509: GeneratedFiles/.obj/kfmmodel.o] Error 1
g++: error: unrecognized command line option ‘-mfpmath=sse’
g++: error: unrecognized command line option ‘-msse2’
g++: error: unrecognized command line option ‘-msse’
make: *** [Makefile:1524: GeneratedFiles/.obj/nifdelegate.o] Error 1
My main workstation is a Raptor Blackbird Power 9 and out of the box it doesn't compile on ppc64le. Removing x86 specific options is enough to make it build: https://github.com/darkbasic/nifskope/commit/e705e3994499ca60e67c5dd610210e08f43b6454