Skip to content

Instantly share code, notes, and snippets.

@UnaNancyOwen
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UnaNancyOwen/48c6f946f11d8134683c to your computer and use it in GitHub Desktop.
Save UnaNancyOwen/48c6f946f11d8134683c to your computer and use it in GitHub Desktop.
Building openNURBS with Visual Studio

Building openNURBS with Visual Studio

Download

  1. C++ openNURBS SDK(opennurbs_20130711.zip)をダウンロードしてファイルを解凍する。(C:\opennurbs_20130711)
    ダウンロードにはメールアドレスを入力する必要がある。
    http://www.rhino3d.com/opennurbs

Build

  1. Visual Studioを起動してopenNURBSのソリューションファイル(C:\opennurbs_20130711\build_opennurbs_vs2010.sln)を開く。

  2. ソースコードを修正する。

    • opennurbs_20130711\opennurbs.rc
      10 line

      //#include "afxres.h"
      #include <windows.h>
      #define IDC_STATIC -1
      
  3. ソリューションのビルドから不要なexampleを外す。

    1. [ビルド]>[構成マネージャ]を開く。
    2. 対象のアクティブソリューション構成とアクティブソリューションプラットフォームを設定する。
    3. example(example_brep、example_read、example_roundtrip、example_userdata、example_write)のビルド欄のチェック☑を外す。
    4. [閉じる]を押す。
  4. openNURBSをビルドする。

    1. ソリューションの構成(Debug, Release)を設定する。
    2. [ビルド]>[ソリューションのビルド]を押してopenNURBSをビルドする。
  5. openNURBSをインストールする。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment