3.0版里的 build/ 里有
build-mingw32-gcc-make.sh
$ ./build-mingw32-gcc-make.sh
警告:mingw-w64-x86_64-glfw-3.0.4-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-glew-1.10.0-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-libwebp-0.4.0-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-libjpeg-turbo-1.3.1-2 已经为最新 -- 跳过
警告:mingw-w64-x86_64-libpng-1.6.10-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-freetype-2.5.3-2 已经为最新 -- 跳过
警告:mingw-w64-x86_64-libiconv-1.14-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-zlib-1.2.8-2 已经为最新 -- 跳过
警告:mingw-w64-x86_64-curl-7.36.0-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-make-4.0.2289.432cb65-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-gcc-4.9.0-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-binutils-2.24-8 已经为最新 -- 跳过
警告:mingw-w64-x86_64-headers-svn-4.0.0.6601-1 已经为最新 -- 跳过
警告:mingw-w64-x86_64-cmake-2.8.12.2-4 已经为最新 -- 跳过
今日无事可做
-- The C compiler identification is GNU 4.9.0
-- The CXX compiler identification is GNU 4.9.0
-- Check for working C compiler: X:/msys64/mingw64/bin/x86_64-w64-mingw32-gcc.exe
-- Check for working C compiler: X:/msys64/mingw64/bin/x86_64-w64-mingw32-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: X:/msys64/mingw64/bin/x86_64-w64-mingw32-g++.exe
-- Check for working CXX compiler: X:/msys64/mingw64/bin/x86_64-w64-mingw32-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Using chipmunk ...
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: E:/DevTools/lib-extern/cocos2d-x/v3.0/build/mingw64
2%] Built target kazmath
7%] Built target chipmunk_static
15%] Built target box2d
15%] Built target unzip
15%] Built target tinyxml2
16%] Built target xxhash
16%] Building CXX object cocos/audio/CMakeFiles/audio.dir/win32/MciPlayer.cpp.obj
X:\cocos2d-x\v3.0\cocos\audio\win32\MciPlayer.cpp: In member function 'void CocosDenshion::MciPlayer::Resume()':
X:\lib-extern\cocos2d-x\v3.0\cocos\audio\win32\MciPlayer.cpp:145:73: error: cast from 'void*' to 'DWORD {aka long unsigned int}' loses precision -fpermissive]
_SendGenericCommand(MCI_STATUS, MCI_STATUS_ITEM,(DWORD)(LPVOID)&mciStatusParms); // MCI_STATUS
^
X:\cocos2d-x\v3.0\cocos\audio\win32\MciPlayer.cpp:147:65: error: cast from 'void*' to 'DWORD {aka long unsigned int}' loses precision -fpermissive]
_SendGenericCommand(MCI_PLAY, MCI_FROM, (DWORD)(LPVOID)&mciPlayParms); // MCI_FROM
^
cocos\audio\CMakeFiles\audio.dir\build.make:81: recipe for target 'cocos/audio/CMakeFiles/audio.dir/win32/MciPlayer.cpp.obj' failed
mingw32-make: *** Error 1
CMakeFiles\Makefile2:392: recipe for target 'cocos/audio/CMakeFiles/audio.dir/all' failed
mingw32-make: *** Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** Error 2
新装的 mingw64,有人试过并且成功编译过的吗,求经验,求大神!
没事挺一挺!