0
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.

PowerVR InsiderSDK のサンプルのビルド

Last updated at Posted at 2013-06-06

Mac版のSDKでのビルド

Examplesフォルダをホームディレクトリにコピーして作業しました。
OGLES2HelloAPI をビルドしてみました。

SDKのインストール

SDKは標準のインストール方法でインストールしました。

XCode4の設定

プロジェクト(OGLES2HelloAPI)を選択して、Build Settings ペインを開きます。

ヘッダとライブラリのパスを編集します。

Header Search Paths: /Users/Shared/Imagination/PowerVR/GraphicsSDK/SDK_3.1/Builds/Include
Library Search Paths: /Users/Shared/Imagination/PowerVR/GraphicsSDK/SDK_3.1/Builds/OSX/x86/Lib

ビルドします。

ビルドボタンでビルドします。

エラーが出るので修正します。

次のようなエラーがでます。
/Users/Shared/Imagination/PowerVR/GraphicsSDK/SDK_3.1/Builds/Include/GLES2/gl2.h:570:37: Conflicting types for 'glShaderSource'

glShaderSourceが競合しているというエラーです。

OGLES2HelloAPI_OSX.mm ファイルを修正します。

2行めの #include を削除するかコメントアウトします。

実行結果です。

再度ビルドすると次の実行結果が得られます。

OGLES2HelloAPI_mac.png

0
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
0
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?