1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OpenVBSをビルドしてみよう

Last updated at Posted at 2019-11-19

リポジトリへアクセス

cd c:\gits
c:\gits>git clone https://github.com/yrm006/openvbs.git

環境構築

  1. http://www.mingw.org/ へアクセス
  2. メニューのDownloads
  3. MinGW Installation Manager (mingw-get) を選択
  4. mingw-get-setup.exeを選択
  5. 起動
  6. デフォルト設定のままimage.png
  7. インストールしたいものを選択image.png
    • mingw32-gcc-g++
    • mingw32-base-bin
    • msys-gcc-g++
    • mingw32-developer-toolkit-bin
  8. メニューから Installation -> Apply Changes
  9. パスを通す PathC:\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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?