リポジトリへアクセス
cd c:\gits
c:\gits>git clone https://github.com/yrm006/openvbs.git
環境構築
- http://www.mingw.org/ へアクセス
- メニューのDownloads
-
MinGW Installation Manager (mingw-get)
を選択 -
mingw-get-setup.exe
を選択 - 起動
- デフォルト設定のまま
- インストールしたいものを選択
- mingw32-gcc-g++
- mingw32-base-bin
- msys-gcc-g++
- mingw32-developer-toolkit-bin
- メニューから Installation -> Apply Changes
- パスを通す
Path
にC:\MinGW\bin
を追加
ビルド
makefile.winでビルド→失敗
c:\gits\openvbs>mingw32-make -f makefile.win
cl /Ox /EHa /D_CRT_STDIO_ISO_WIDE_SPECIFIERS oscript.cpp jujube.cpp npole.cpp /link /DEF:oscript.def
process_begin: CreateProcess(NULL, cl /Ox /EHa /D_CRT_STDIO_ISO_WIDE_SPECIFIERS oscript.cpp jujube.cpp npole.cpp /link /DEF:oscript.def, ...) failed.
make (e=2): wウスt@CェゥツゥワケB
makefile.win:6: recipe for target 'oscript.exe' failed
mingw32-make: *** [oscript.exe] Error 2
makefile.osxでビルド→失敗→これが一番動きそう
c:\gits\openvbs>mingw32-make -f makefile.osx
g++ -Wall -std=c++14 -O0 -g oscript.cpp jujube.cpp npole.cpp -ldl -o oscript
In file included from jujube.h:1,
from oscript.cpp:1:
npole.h:2:14: fatal error: comdef.h: No such file or directory
#include <comdef.h>
^~~~~~~~~~
compilation terminated.
In file included from jujube.h:1,
from jujube.cpp:1:
npole.h:2:14: fatal error: comdef.h: No such file or directory
#include <comdef.h>
^~~~~~~~~~
compilation terminated.
In file included from npole.cpp:1:
npole.h:2:14: fatal error: comdef.h: No such file or directory
#include <comdef.h>
^~~~~~~~~~
compilation terminated.
makefile.osx:11: recipe for target 'oscript' failed
mingw32-make: *** [oscript] Error 1
makefile.linuxでビルド→失敗
c:\gits\openvbs>mingw32-make -f makefile.win
cl /Ox /EHa /D_CRT_STDIO_ISO_WIDE_SPECIFIERS oscript.cpp jujube.cpp npole.cpp /link /DEF:oscript.def
process_begin: CreateProcess(NULL, cl /Ox /EHa /D_CRT_STDIO_ISO_WIDE_SPECIFIERS oscript.cpp jujube.cpp npole.cpp /link /DEF:oscript.def, ...) failed.
make (e=2): wウスt@CェゥツゥワケB
makefile.win:6: recipe for target 'oscript.exe' failed
mingw32-make: *** [oscript.exe] Error 2
c:\gits\openvbs>mingw32-make -f makefile.linux
g++ -std=c++14 -O0 -g oscript.cpp jujube.cpp npole.cpp -static-libgcc -static-libstdc++ -rdynamic -ldl -o oscript
g++: error: unrecognized command line option '-rdynamic'
makefile.linux:9: recipe for target 'oscript' failed
mingw32-make: *** [oscript] Error 1