[SOLVED?] compiling under mingw32 4.4.1 & msys fails

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

[SOLVED?] compiling under mingw32 4.4.1 & msys fails

Postby LordHexahedron » Sat Sep 03, 2016 10:27 pm

UPDATE: The problem was quite simply that CMAKE outputs broken makefiles, the mingw32 makefile included compiles after minor syntax adjustments. see post #3 for patch file/makefile download, whichever you want - perhaps I should do a merge request on master because the same broken makefile is there but w/e I'm not going to because it's a 3 line makefile update and it feels pretentious of me to even imply it's worth a proper pull, surely that can be merged with a more substantial edit (although if you really want I can make a pull request, if so - just drop a reply)

Can't build newton dynamics master branch due to compile errors, can't compile 3.13 because it can't build the visual debugger bindings, it can't build these because it can't find enet, commenting out all visual debugger related content from the CMakeLists.txt still won't let it compile.
solution? try to compile enet [from ./packates/thirdparty/enet], after manually fixing the autoconf config, and the output makefile it still won't compile (presumably due to a mingw bug in parsing the makefile because it can't contain shell special characters, but for the makefile to work it has to be allowed the characters in question)

But w/e, let's focus on master branch because that one seemingly doesn't require enet.

relevant changes to default cmake config: disabled examples, they depend on wxwidgets and I don't need them anyway.
added "-w -march=core2 -mfpmath=sse" to the compile line [to see if it was lack of sse2+ that caused it, it was not and has no additional effect]

cmake config:
Code: Select all
# This is the CMakeCache file.
# For build in directory: c:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/1
# It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_AR:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/ar.exe

//Choose the type of build, options are: None (CMAKE_CXX_FLAGS
// or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/g++.exe

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release builds for minimum
// size.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during release builds with debug info.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG -w --march=core2 -mfpmath=sse

//Libraries linked by default with all C++ applications.
CMAKE_CXX_STANDARD_LIBRARIES:STRING=-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32

//C compiler
CMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/gcc.exe

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g

//Flags used by the compiler during release builds for minimum
// size.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG

//Flags used by the compiler during release builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG

//Flags used by the compiler during release builds with debug info.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG -w -march=core2 -mfpmath=sse

//Libraries linked by default with all C applications.
CMAKE_C_STANDARD_LIBRARIES:STRING=-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Convert GNU import libraries to MS format (requires Visual Studio)
CMAKE_GNUtoMS:BOOL=OFF

//Newton SDK install directory prefix
CMAKE_INSTALL_PREFIX:PATH=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/sdk

//Path to a program.
CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/ld.exe

//make program
CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/nm.exe

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/objcopy.exe

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/objdump.exe

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=NewtonSDK

//Path to a program.
CMAKE_RANLIB:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/ranlib.exe

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/windres.exe

//Flags for Windows Resource Compiler.
CMAKE_RC_FLAGS:STRING=' '

//Path to a program.
CMAKE_SH:FILEPATH=CMAKE_SH-NOTFOUND

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=OFF

//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=C:/Program Files (x86)/CodeBlocks/MinGW/bin/strip.exe

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=OFF

//Build demos sandbox
NEWTON_DEMOS_SANDBOX:BOOL=OFF

//Value Computed by CMake
NewtonLib_BINARY_DIR:STATIC=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/1/coreLibrary_300

//Value Computed by CMake
NewtonLib_SOURCE_DIR:STATIC=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/coreLibrary_300

//Value Computed by CMake
NewtonSDK_BINARY_DIR:STATIC=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/1

//Value Computed by CMake
NewtonSDK_SOURCE_DIR:STATIC=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master

//Dependencies for the target
NewtonStatic_LIB_DEPENDS:STATIC=general;timeTracker;

//Dependencies for the target
Newton_LIB_DEPENDS:STATIC=general;timeTracker;

//Cleared.
WX_adv:FILEPATH=WX_adv-NOTFOUND

//Cleared.
WX_advd:FILEPATH=WX_advd-NOTFOUND

//Cleared.
WX_aui:FILEPATH=WX_aui-NOTFOUND

//Cleared.
WX_auid:FILEPATH=WX_auid-NOTFOUND

//Cleared.
WX_base:FILEPATH=WX_base-NOTFOUND

//Cleared.
WX_based:FILEPATH=WX_based-NOTFOUND

//Cleared.
WX_core:FILEPATH=WX_core-NOTFOUND

//Cleared.
WX_cored:FILEPATH=WX_cored-NOTFOUND

//Cleared.
WX_dbgrid:FILEPATH=WX_dbgrid-NOTFOUND

//Cleared.
WX_dbgridd:FILEPATH=WX_dbgridd-NOTFOUND

//Cleared.
WX_expat:FILEPATH=WX_expat-NOTFOUND

//Cleared.
WX_expatd:FILEPATH=WX_expatd-NOTFOUND

//Cleared.
WX_gl:FILEPATH=WX_gl-NOTFOUND

//Cleared.
WX_gld:FILEPATH=WX_gld-NOTFOUND

//Cleared.
WX_html:FILEPATH=WX_html-NOTFOUND

//Cleared.
WX_htmld:FILEPATH=WX_htmld-NOTFOUND

//Cleared.
WX_jpeg:FILEPATH=WX_jpeg-NOTFOUND

//Cleared.
WX_jpegd:FILEPATH=WX_jpegd-NOTFOUND

//Cleared.
WX_media:FILEPATH=WX_media-NOTFOUND

//Cleared.
WX_mediad:FILEPATH=WX_mediad-NOTFOUND

//Cleared.
WX_mono:FILEPATH=WX_mono-NOTFOUND

//Cleared.
WX_monod:FILEPATH=WX_monod-NOTFOUND

//Cleared.
WX_net:FILEPATH=WX_net-NOTFOUND

//Cleared.
WX_netd:FILEPATH=WX_netd-NOTFOUND

//Cleared.
WX_odbc:FILEPATH=WX_odbc-NOTFOUND

//Cleared.
WX_odbcd:FILEPATH=WX_odbcd-NOTFOUND

//Cleared.
WX_png:FILEPATH=WX_png-NOTFOUND

//Cleared.
WX_pngd:FILEPATH=WX_pngd-NOTFOUND

//Cleared.
WX_propgrid:FILEPATH=WX_propgrid-NOTFOUND

//Cleared.
WX_propgridd:FILEPATH=WX_propgridd-NOTFOUND

//Cleared.
WX_qa:FILEPATH=WX_qa-NOTFOUND

//Cleared.
WX_qad:FILEPATH=WX_qad-NOTFOUND

//Cleared.
WX_regex:FILEPATH=WX_regex-NOTFOUND

//Cleared.
WX_regexd:FILEPATH=WX_regexd-NOTFOUND

//Cleared.
WX_ribbon:FILEPATH=WX_ribbon-NOTFOUND

//Cleared.
WX_ribbond:FILEPATH=WX_ribbond-NOTFOUND

//Cleared.
WX_richtext:FILEPATH=WX_richtext-NOTFOUND

//Cleared.
WX_richtextd:FILEPATH=WX_richtextd-NOTFOUND

//Cleared.
WX_scintilla:FILEPATH=WX_scintilla-NOTFOUND

//Cleared.
WX_scintillad:FILEPATH=WX_scintillad-NOTFOUND

//Cleared.
WX_stc:FILEPATH=WX_stc-NOTFOUND

//Cleared.
WX_stcd:FILEPATH=WX_stcd-NOTFOUND

//Cleared.
WX_tiff:FILEPATH=WX_tiff-NOTFOUND

//Cleared.
WX_tiffd:FILEPATH=WX_tiffd-NOTFOUND

//Cleared.
WX_webview:FILEPATH=WX_webview-NOTFOUND

//Cleared.
WX_webviewd:FILEPATH=WX_webviewd-NOTFOUND

//Cleared.
WX_xml:FILEPATH=WX_xml-NOTFOUND

//Cleared.
WX_xmld:FILEPATH=WX_xmld-NOTFOUND

//Cleared.
WX_xrc:FILEPATH=WX_xrc-NOTFOUND

//Cleared.
WX_xrcd:FILEPATH=WX_xrcd-NOTFOUND

//Cleared.
WX_zlib:FILEPATH=WX_zlib-NOTFOUND

//Cleared.
WX_zlibd:FILEPATH=WX_zlibd-NOTFOUND

//Dependencies for the target
dAnimation_LIB_DEPENDS:STATIC=general;dMath;general;dContainers;

//Dependencies for the target
dContainers_LIB_DEPENDS:STATIC=general;dMath;

//Dependencies for the target
dCustomJoints_LIB_DEPENDS:STATIC=general;dContainers;general;NewtonStatic;

//Dependencies for target
dMath_LIB_DEPENDS:STATIC=

//Dependencies for the target
dScene_LIB_DEPENDS:STATIC=general;dAnimation;general;dMath;general;dContainers;general;NewtonStatic;

//Value Computed by CMake
demosSandbox_BINARY_DIR:STATIC=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/1/applications/demosSandbox

//Value Computed by CMake
demosSandbox_SOURCE_DIR:STATIC=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/applications/demosSandbox

//Dependencies for the target
timeTracker_LIB_DEPENDS:STATIC=general;dMath;general;dContainers;

//Cleared.
wxWidgets_LIB_DIR:PATH=wxWidgets_LIB_DIR-NOTFOUND

//wxWidgets base/installation directory
wxWidgets_ROOT_DIR:PATH=C:/wxWidgets-3.0.2


########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/Thunder/Documents/projects/archives/newton-dynamics-master/1
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=6
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files/CMake/bin/ctest.exe
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES
CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=C:/Program Files/CMake/bin/cmake-gui.exe
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=MinGW Makefiles
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/Thunder/Documents/projects/archives/newton-dynamics-master
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=4
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=C:/Program Files/CMake/share/cmake-3.6
//ADVANCED property for variable: CMAKE_SH
CMAKE_SH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
HAVE_PTR_SIZE:INTERNAL=TRUE
//CHECK_TYPE_SIZE: sizeof(void*)
PTR_SIZE:INTERNAL=4
//wxWidgets_LIB_DIR
WX_LIB_DIR:INTERNAL=wxWidgets_LIB_DIR-NOTFOUND
//wxWidgets_ROOT_DIR
WX_ROOT_DIR:INTERNAL=C:/wxWidgets-3.0.2
//ADVANCED property for variable: WX_adv
WX_adv-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_advd
WX_advd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_aui
WX_aui-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_auid
WX_auid-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_base
WX_base-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_based
WX_based-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_core
WX_core-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_cored
WX_cored-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_dbgrid
WX_dbgrid-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_dbgridd
WX_dbgridd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_expat
WX_expat-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_expatd
WX_expatd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_gl
WX_gl-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_gld
WX_gld-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_html
WX_html-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_htmld
WX_htmld-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_jpeg
WX_jpeg-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_jpegd
WX_jpegd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_media
WX_media-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_mediad
WX_mediad-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_mono
WX_mono-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_monod
WX_monod-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_net
WX_net-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_netd
WX_netd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_odbc
WX_odbc-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_odbcd
WX_odbcd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_png
WX_png-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_pngd
WX_pngd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_propgrid
WX_propgrid-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_propgridd
WX_propgridd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_qa
WX_qa-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_qad
WX_qad-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_regex
WX_regex-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_regexd
WX_regexd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_ribbon
WX_ribbon-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_ribbond
WX_ribbond-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_richtext
WX_richtext-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_richtextd
WX_richtextd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_scintilla
WX_scintilla-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_scintillad
WX_scintillad-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_stc
WX_stc-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_stcd
WX_stcd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_tiff
WX_tiff-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_tiffd
WX_tiffd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_webview
WX_webview-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_webviewd
WX_webviewd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xml
WX_xml-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xmld
WX_xmld-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xrc
WX_xrc-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_xrcd
WX_xrcd-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_zlib
WX_zlib-ADVANCED:INTERNAL=1
//ADVANCED property for variable: WX_zlibd
WX_zlibd-ADVANCED:INTERNAL=1



error log:
Code: Select all
[  1%] Building CXX object packages/CMakeFiles/dMath.dir/dMath/dLinearAlgebra.cpp.obj
[  1%] Building CXX object packages/CMakeFiles/dMath.dir/dMath/dMathDefines.cpp.obj
[  2%] Building CXX object packages/CMakeFiles/dMath.dir/dMath/dMatrix.cpp.obj
[  3%] Building CXX object packages/CMakeFiles/dMath.dir/dMath/dQuaternion.cpp.obj
[  3%] Building CXX object packages/CMakeFiles/dMath.dir/dMath/dStdAfxMath.cpp.obj
[  4%] Building CXX object packages/CMakeFiles/dMath.dir/dMath/dVector.cpp.obj
[  4%] Linking CXX static library ..\lib\libdMath.a
[  4%] Built target dMath
[  5%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dBaseHierarchy.cpp.obj
[  5%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dBezierSpline.cpp.obj
[  6%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dCRC.cpp.obj
[  7%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dClassInfo.cpp.obj
[  7%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dContainersAlloc.cpp.obj
[  8%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dContainersStdAfx.cpp.obj
[  8%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dRefCounter.cpp.obj
[  9%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dString.cpp.obj
[  9%] Building CXX object packages/CMakeFiles/dContainers.dir/dContainers/dTree.cpp.obj
[ 10%] Linking CXX static library ..\lib\libdContainers.a
[ 10%] Built target dContainers
[ 11%] Building CXX object coreLibrary_300/CMakeFiles/NewtonObj.dir/source/core/dg.cpp.obj
[ 11%] Building CXX object coreLibrary_300/CMakeFiles/NewtonObj.dir/source/core/dgAABBPolygonSoup.cpp.obj
In file included from C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgMatrix.h:28,
                 from C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgAABBPolygonSoup.cpp:26:
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1182: error: expected ',' or '...' before 'type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1187: error: expected ',' or '...' before 'type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1187: error: 'dgVector::dgVector(int)' cannot be overloaded
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1182: error: with 'dgVector::dgVector(int)'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1575: error: '__m128' does not name a type
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1576: error: '__m128i' does not name a type
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(int)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1183: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1183: error: 'type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(int)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1188: error: class 'dgVector' does not have any field named 'm_typeInt'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1188: error: 'type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(dgFloat32)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1193: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1193: error: '_mm_set_ps1' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(const dgFloat32*)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1198: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1198: error: '_mm_loadu_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1200: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1200: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1200: error: '_mm_and_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In copy constructor 'dgVector::dgVector(const dgVector&)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1204: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1204: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(const dgBigVector&)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1210: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1210: error: '_mm_set_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(dgFloat32, dgFloat32, dgFloat32, dgFloat32)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1215: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1215: error: '_mm_set_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In constructor 'dgVector::dgVector(dgInt32, dgInt32, dgInt32, dgInt32)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1220: error: class 'dgVector' does not have any field named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1220: error: '_mm_set_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'void dgVector::Store(dgFloat32*) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1234: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1234: error: '_mm_storeu_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::BroadcastX() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1239: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1239: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1239: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::BroadcastY() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1244: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1244: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1244: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::BroadcastZ() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1249: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1249: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1249: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::BroadcastW() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1254: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1254: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1254: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::Scale3(dgFloat32) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1260: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1260: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1260: error: '_mm_mul_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::Scale4(dgFloat32) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1265: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1265: error: '_mm_set_ps1' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1265: error: '_mm_mul_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator+(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1284: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1284: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1284: error: '_mm_add_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator-(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1289: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1289: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1289: error: '_mm_sub_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector& dgVector::operator+=(const dgVector&)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1294: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1294: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1294: error: '_mm_add_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector& dgVector::operator-=(const dgVector&)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1299: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1299: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1299: error: '_mm_sub_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::CrossProduct3(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1317: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1317: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1317: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1317: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1317: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1317: error: '_mm_mul_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1318: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1318: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1318: error: '_mm_sub_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::CompProduct3(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1382: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1382: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1382: error: '_mm_mul_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::Reciproc() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1387: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1387: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1387: error: '_mm_div_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::CompProduct4(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1393: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1393: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1393: error: '_mm_mul_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::AddHorizontal() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1398: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1398: error: '_mm_hadd_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1399: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1399: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::Abs() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1406: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1406: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1406: error: '_mm_and_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::GetMax(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1411: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1411: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1411: error: '_mm_max_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::GetMin(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1416: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1416: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1416: error: '_mm_min_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::GetInt() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1421: error: 'class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1421: error: '_mm_cvtps_epi32' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::TestZero() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1426: error: 'm_typeInt' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1426: error: 'class dgVector' has no member named 'm_typeInt'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1426: error: '_mm_cmpeq_epi32' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::Floor() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1434: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1434: error: '_mm_cvttps_epi32' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1434: error: '_mm_cvtepi32_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::Sqrt() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1446: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1446: error: '_mm_sqrt_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::InvSqrt() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1451: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1451: error: '_mm_rsqrt_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator>(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1464: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1464: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1464: error: '_mm_cmpgt_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator==(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1469: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1469: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1469: error: '_mm_cmpeq_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator<(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1474: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1474: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1474: error: '_mm_cmplt_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator>=(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1479: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1479: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1479: error: '_mm_cmpge_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator<=(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1484: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1484: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1484: error: '_mm_cmple_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator&(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1490: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1490: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1490: error: '_mm_and_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator|(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1495: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1495: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1495: error: '_mm_or_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::operator^(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1500: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1500: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1500: error: '_mm_xor_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::AndNot(const dgVector&) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1505: error: 'const class dgVector' has no member named 'm_type'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1505: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1505: error: '_mm_andnot_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgInt32 dgVector::GetSignMask() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1510: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1510: error: '_mm_movemask_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::ShiftTripleRight() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1515: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1515: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1515: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::ShiftTripleLeftt() const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1520: error: 'm_type' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1520: error: '_MM_SHUFFLE' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1520: error: '_mm_shuffle_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In member function 'dgVector dgVector::ShiftRightLogical(int) const':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1525: error: 'm_typeInt' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1525: error: '_mm_srli_epi32' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1525: error: '_mm_castsi128_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h: In static member function 'static void dgVector::Transpose4x4(dgVector&, dgVector&, dgVector&, dgVector&, const dgVector&, const dgVector&, const dgVector&, const dgVector&)':
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1554: error: '__m128' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1554: error: expected ';' before 'tmp0'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1556: error: expected ';' before 'tmp1'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1558: error: expected ';' before 'tmp2'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1560: error: expected ';' before 'tmp3'
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1563: error: 'tmp0' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1563: error: 'tmp1' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1563: error: '_mm_movelh_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1565: error: '_mm_movehl_ps' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1567: error: 'tmp2' was not declared in this scope
C:\Users\Thunder\Documents\projects\archives\newton-dynamics-master\coreLibrary_300\source\core\dgVector.h:1567: error: 'tmp3' was not declared in this scope
mingw32-make[2]: *** [coreLibrary_300/CMakeFiles/NewtonObj.dir/source/core/dgAABBPolygonSoup.cpp.obj] Error 1
mingw32-make[1]: *** [coreLibrary_300/CMakeFiles/NewtonObj.dir/all] Error 2
mingw32-make: *** [all] Error 2


As the title implies I tried both under native and msys (mostly for the convenience of make 2>&1 | tee build.log), both of which output the same error(s).
Last edited by LordHexahedron on Wed Sep 07, 2016 3:45 am, edited 4 times in total.
LordHexahedron
 
Posts: 11
Joined: Sat Sep 03, 2016 10:05 pm

Re: compiling under mingw32 4.4.1 & msys fails

Postby Julio Jerez » Sun Sep 04, 2016 7:25 pm

nothing in the engine depend on Enet stuff. Rather than trying to fix the confit file just remove all references to Enet and it should be find.
I suggest using the Posit make file which build fine. I do not know much about CMake.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: compiling under mingw32 4.4.1 & msys fails

Postby LordHexahedron » Mon Sep 05, 2016 2:37 am

[this post chronicles my entire journey to the solution, most of the error logs can be safely ignored - they're just there for SEO in case anyone else encounters the same error under a similar environment - that way search engines will properly index]

huh. the docs really should be updated to mention these even exist, the docs only mention CMake.
as for removing all references to enet, that did not solve the problem - rather it just spawned new irrelevant errors.
However there are far fewer errors when using the makefile, only a handful of scope issues.
presumably coreLibrary_300/projects/posix32 is the one you reference.


In any case, using the posix32 makefile (mingw32 one doesn't even work because incorrect syntax, makefiles cannot contain space indents and especially not 3-space indents, no matter - fixed that and it didn't work, so posix32 it is and it errs out)

relevant section of new error log:
Code: Select all
gcc -c -Wall -Wno-strict-aliasing -D_POSIX_VER -m32 -O2 -fpic -g -msse -msse3 -msse4 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -I../../source/core -I../../source/physics -I../../source/meshUtil -I../../source/openCL -o ../../source/core/dgTypes.o ../../source/core/dgTypes.cpp
../../source/core/dgTypes.cpp:1: warning: -fpic ignored for target (all code is position independent)
../../source/core/dgTypes.cpp: In function 'dgUnsigned64 dgGetTimeInMicrosenconds()':
../../source/core/dgTypes.cpp:55: error: 'CLOCK_REALTIME' was not declared in this scope
../../source/core/dgTypes.cpp:55: error: 'clock_gettime' was not declared in this scope
../../source/core/dgTypes.cpp:58: error: 'CLOCK_REALTIME' was not declared in this scope
../../source/core/dgTypes.cpp:58: error: 'clock_gettime' was not declared in this scope
mingw32-make: *** [../../source/core/dgTypes.o] Error 1


emergent pattern: all errors seem to stem from dgTypes, they're different ones depending on CMake/premade makefile but they still err out when relating to dgtypes

This problem is quite simply because we are not running under a proper posix environment like a real unix, msys only exports some tools - not the full env.

Rather, if we remove -D_POSIX_VER those errors go away, but in return we now get the same set of errrors we got with cmake generated makefile

Code: Select all
gcc -c -Wall -Wno-strict-aliasing -m32 -O2 -fpic -g -msse -msse3 -msse4 -mfpmath=sse -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -I../../source/core -I../../source/physics -I../../source/meshUtil -I../../source/openCL -o ../../source/core/dgTypes.o ../../source/core/dgTypes.cpp
../../source/core/dgTypes.cpp:1: warning: -fpic ignored for target (all code is position independent)
In file included from ../../source/core/dgStdafx.h:25,
                 from ../../source/core/dgTypes.cpp:22:
../../source/core/dgTypes.h: In function 'dgInt32 dgAtomicExchangeAndAdd(dgInt32*, dgInt32)':
../../source/core/dgTypes.h:827: warning: no return statement in function returning non-void
../../source/core/dgTypes.h: In function 'dgInt32 dgInterlockedExchange(dgInt32*, dgInt32)':
../../source/core/dgTypes.h:845: warning: no return statement in function returning non-void
../../source/core/dgTypes.h: In function 'void dgPrefetchMem(const void*)':
../../source/core/dgTypes.h:875: error: '_MM_HINT_T0' was not declared in this scope
../../source/core/dgTypes.h:875: error: '_mm_prefetch' was not declared in this scope
In file included from ../../source/core/dgTypes.cpp:25:
../../source/core/dgVector.h: At global scope:
../../source/core/dgVector.h:652: error: ISO C++ forbids declaration of '__m128' with no type
../../source/core/dgVector.h:652: error: expected ',' or '...' before 'type'
../../source/core/dgVector.h:657: error: ISO C++ forbids declaration of '__m128i' with no type
../../source/core/dgVector.h:657: error: expected ',' or '...' before 'type'
../../source/core/dgVector.h:657: error: 'dgVector::dgVector(int)' cannot be overloaded
../../source/core/dgVector.h:652: error: with 'dgVector::dgVector(int)'
../../source/core/dgVector.h:1025: error: '__m128' does not name a type
../../source/core/dgVector.h:1026: error: '__m128i' does not name a type
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(int)':
../../source/core/dgVector.h:653: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:653: error: 'type' was not declared in this scope
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(int)':
../../source/core/dgVector.h:658: error: class 'dgVector' does not have any field named 'm_typeInt'
../../source/core/dgVector.h:658: error: 'type' was not declared in this scope
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(dgFloat32)':
../../source/core/dgVector.h:663: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:663: error: '_mm_set_ps1' was not declared in this scope
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(const dgFloat32*)':
../../source/core/dgVector.h:668: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:668: error: '_mm_loadu_ps' was not declared in this scope
../../source/core/dgVector.h:670: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:670: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:670: error: '_mm_and_ps' was not declared in this scope
../../source/core/dgVector.h: In copy constructor 'dgVector::dgVector(const dgVector&)':
../../source/core/dgVector.h:674: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:674: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(const dgBigVector&)':
../../source/core/dgVector.h:680: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:680: error: '_mm_set_ps' was not declared in this scope
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(dgFloat32, dgFloat32, dgFloat32, dgFloat32)':
../../source/core/dgVector.h:685: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:685: error: '_mm_set_ps' was not declared in this scope
../../source/core/dgVector.h: In constructor 'dgVector::dgVector(dgInt32, dgInt32, dgInt32, dgInt32)':
../../source/core/dgVector.h:690: error: class 'dgVector' does not have any field named 'm_type'
../../source/core/dgVector.h:690: error: '_mm_set_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'void dgVector::Store(dgFloat32*) const':
../../source/core/dgVector.h:704: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:704: error: '_mm_storeu_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::BroadcastX() const':
../../source/core/dgVector.h:709: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:709: error: '_MM_SHUFFLE' was not declared in this scope
../../source/core/dgVector.h:709: error: '_mm_shuffle_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::BroadcastY() const':
../../source/core/dgVector.h:714: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:714: error: '_MM_SHUFFLE' was not declared in this scope
../../source/core/dgVector.h:714: error: '_mm_shuffle_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::BroadcastZ() const':
../../source/core/dgVector.h:719: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:719: error: '_MM_SHUFFLE' was not declared in this scope
../../source/core/dgVector.h:719: error: '_mm_shuffle_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::BroadcastW() const':
../../source/core/dgVector.h:724: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:724: error: '_MM_SHUFFLE' was not declared in this scope
../../source/core/dgVector.h:724: error: '_mm_shuffle_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::Scale3(dgFloat32) const':
../../source/core/dgVector.h:731: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:731: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:731: error: '_mm_mul_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::Scale4(dgFloat32) const':
../../source/core/dgVector.h:736: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:736: error: '_mm_set_ps1' was not declared in this scope
../../source/core/dgVector.h:736: error: '_mm_mul_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator+(const dgVector&) const':
../../source/core/dgVector.h:756: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:756: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:756: error: '_mm_add_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator-(const dgVector&) const':
../../source/core/dgVector.h:762: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:762: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:762: error: '_mm_sub_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector& dgVector::operator+=(const dgVector&)':
../../source/core/dgVector.h:767: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:767: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:767: error: '_mm_add_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector& dgVector::operator-=(const dgVector&)':
../../source/core/dgVector.h:772: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:772: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:772: error: '_mm_sub_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator*(const dgVector&) const':
../../source/core/dgVector.h:799: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:799: error: '_MM_SHUFFLE' was not declared in this scope
../../source/core/dgVector.h:799: error: '_mm_shuffle_ps' was not declared in this scope
../../source/core/dgVector.h:799: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:799: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:799: error: '_mm_mul_ps' was not declared in this scope
../../source/core/dgVector.h:800: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:800: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:800: error: '_mm_sub_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::CompProduct3(const dgVector&) const':
../../source/core/dgVector.h:846: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:846: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:846: error: '_mm_mul_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::Reciproc() const':
../../source/core/dgVector.h:851: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:851: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:851: error: '_mm_div_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::CompProduct4(const dgVector&) const':
../../source/core/dgVector.h:857: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:857: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:857: error: '_mm_mul_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::AddHorizontal() const':
../../source/core/dgVector.h:862: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:862: error: '_mm_hadd_ps' was not declared in this scope
../../source/core/dgVector.h:863: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:863: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h: In member function 'dgVector dgVector::Abs() const':
../../source/core/dgVector.h:870: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:870: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:870: error: '_mm_and_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::GetMax(const dgVector&) const':
../../source/core/dgVector.h:875: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:875: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:875: error: '_mm_max_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::GetMin(const dgVector&) const':
../../source/core/dgVector.h:880: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:880: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:880: error: '_mm_min_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::GetInt() const':
../../source/core/dgVector.h:887: error: 'class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:887: error: '_mm_cvtps_epi32' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::TestZero() const':
../../source/core/dgVector.h:892: error: 'm_typeInt' was not declared in this scope
../../source/core/dgVector.h:892: error: 'class dgVector' has no member named 'm_typeInt'
../../source/core/dgVector.h:892: error: '_mm_cmpeq_epi32' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::Floor() const':
../../source/core/dgVector.h:902: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:902: error: '_mm_cvttps_epi32' was not declared in this scope
../../source/core/dgVector.h:902: error: '_mm_cvtepi32_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::Sqrt() const':
../../source/core/dgVector.h:913: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:913: error: '_mm_sqrt_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::InvSqrt() const':
../../source/core/dgVector.h:918: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:918: error: '_mm_rsqrt_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator>(const dgVector&) const':
../../source/core/dgVector.h:931: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:931: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:931: error: '_mm_cmpgt_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator==(const dgVector&) const':
../../source/core/dgVector.h:936: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:936: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:936: error: '_mm_cmpeq_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator<(const dgVector&) const':
../../source/core/dgVector.h:941: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:941: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:941: error: '_mm_cmplt_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator>=(const dgVector&) const':
../../source/core/dgVector.h:946: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:946: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:946: error: '_mm_cmpge_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator<=(const dgVector&) const':
../../source/core/dgVector.h:951: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:951: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:951: error: '_mm_cmple_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator&(const dgVector&) const':
../../source/core/dgVector.h:957: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:957: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:957: error: '_mm_and_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator|(const dgVector&) const':
../../source/core/dgVector.h:962: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:962: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:962: error: '_mm_or_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::operator^(const dgVector&) const':
../../source/core/dgVector.h:967: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:967: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:967: error: '_mm_xor_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::AndNot(const dgVector&) const':
../../source/core/dgVector.h:972: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:972: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:972: error: '_mm_andnot_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgInt32 dgVector::GetSignMask() const':
../../source/core/dgVector.h:977: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:977: error: '_mm_movemask_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::ShiftTripleRight() const':
../../source/core/dgVector.h:982: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:982: error: '_MM_SHUFFLE' was not declared in this scope
../../source/core/dgVector.h:982: error: '_mm_shuffle_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::MoveLow(const dgVector&) const':
../../source/core/dgVector.h:988: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:988: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:988: error: '_mm_movelh_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::MoveHigh(const dgVector&) const':
../../source/core/dgVector.h:993: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:993: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:993: error: '_mm_movehl_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::PackLow(const dgVector&) const':
../../source/core/dgVector.h:998: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:998: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:998: error: '_mm_unpacklo_ps' was not declared in this scope
../../source/core/dgVector.h: In member function 'dgVector dgVector::PackHigh(const dgVector&) const':
../../source/core/dgVector.h:1003: error: 'm_type' was not declared in this scope
../../source/core/dgVector.h:1003: error: 'const class dgVector' has no member named 'm_type'
../../source/core/dgVector.h:1003: error: '_mm_unpackhi_ps' was not declared in this scope
../../source/core/dgTypes.cpp: In function 'dgUnsigned64 dgGetTimeInMicrosenconds()':
../../source/core/dgTypes.cpp:75: warning: no return statement in function returning non-void
mingw32-make: *** [../../source/core/dgTypes.o] Error 1


presumably thus we really should export something like -D_MINGW_32_VER
this finally solved it, since the mingw32 makefile is broken here's a diff of the fixed one:

Code: Select all
THERE WAS DIFF OUTPUT HERE
BUT AS EXPECTED PHPBB CONVERTED THE TABS TO SPACES.
MAKE DOESN'T LIKE THAT.
DOWNLOAD THE PATCH OR UPDATED MAKEFILE INSTEAD


Dropbox folder of updated makefile and patch file, whichever you prefer (lazy/not good enough at diff to effectively utilize a -Naur patch)
https://www.dropbox.com/sh/e1r5vivtbp4y ... bb-Ka?dl=0

Left to figure out is if it'll actually link correctly - I haven't looked over the log fully yet, what I care about is that it produced libNewton.a - that's a start.


So yes, my general advise here is: fix the docu, it currently recommends against the makefiles (and even then it only mentions the unix ones, they won't work under mignw32 - they might work under cygwin but I haven't tried it)
OR
fix the cmake config, it generates an invalid makefile [but I've narrowed down what probably breaks it based on managing to break a makefile manually to produce the same compiler errors, presumably the cmake config forgets (or mangles) the -D_MINGW_32_VER flag.

There are Unix makefiles in the project folders mentioned above, but it is highly recommended to use CMake indstead.


either that or change the recommendation to CMake as a fallback option.

Anyway, thanks for pointing out the makefiles (no seriously, I wouldn't have thought of trying them myself becuase in part I didn't even remember them existing) - it builds now (after a short enough tweak to the makefile in question) so that's really all I care about.), the worst part about building for windows is trying to figure out the subtly different ways in which things break, but it is what it is - since I want to build on win/*nix
LordHexahedron
 
Posts: 11
Joined: Sat Sep 03, 2016 10:05 pm

Re: [SOLVED] compiling under mingw32 4.4.1 & msys fails

Postby Julio Jerez » Mon Sep 05, 2016 12:27 pm

Over more than ten years a build mingwin once or twice each time using the POSIT makefile and editing it. The CMake script is created by the user base.

But yes since I do not have a mingwin system, I do not know if the POSIT makefile will still work, my guess is that it needs some minor modification, mainly on the places where the engine needs to link to OS system libraries.
I hope you get it to work because I am not in the position to set up Mingwin G on my computer and I am not an expert on CMake or any other automatic build system.
I limit my knowledge of Build systems to Makefiles that works on Unit Systems, xcode IDE and visual studio ID. Beyond that the Unix make file is the source that every user interested in using the engine uses as the start point for their prefer platform.
all I know about makefiles I learned from a book R.S. TARE Unix Utilities, so is very generic and very old.
Sorry for not been of more help, but this is outside my are of expertise.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: [SOLVED] compiling under mingw32 4.4.1 & msys fails

Postby LordHexahedron » Mon Sep 05, 2016 1:00 pm

well, it built - haven't done any extensive testing yet but it should work.

As for the mingw32 makefile requiring some modifications, already provided them - feel free to take them or ignore them, the link will stay up for the foreseeable future as it may come in handy for someone else if you choose not to merge it.

nonetheless, the patched makefile builds fine under mingw32 and should probably replace the one in the mingw32 directory [the patch can be diff'd onto the mingw32/makefile makefile, not the posix32/64 one]

CMAKE is terrible imo, too much complexity as compared to crafting a solid makefile, the time spent on figuring out why it broke is trivial compared to the time it took to just rewrite the makefile to work. oh well.
LordHexahedron
 
Posts: 11
Joined: Sat Sep 03, 2016 10:05 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests

cron