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

libjpeg-turboのインストール

Last updated at Posted at 2020-02-09

(メモ程度の内容 + プログラミング初心者なので,間違っているかもです...)

事前準備

NASMのインストール

https://www.nasm.us/
を開き,BuildsのListを選択,最新版のwin64内のinstallerをダウンロードし実行する.
テスト環境では
nasm-2.14.03rc2-installer-x64.exe
環境変数PATHにNASMをインストールしたパス
C:\Program Files\NASM
を追加する.

1. libjpeg-turboのソースコードをGitHubからダウンロードする

libjpeg-turboはsubmoduleを利用しないので,ZIPで落としてOK
https://github.com/libjpeg-turbo/libjpeg-turbo

2. CMAKEを立ち上げ,ダウンロードしたlibjpeg-turboのフォルダを選択する.

3. libjpeg-turboのフォルダにbuildフォルダを作成し,そのフォルダを出力先として指定する.

4. Configureを押し,VisualStudio2017, 64Bitを生成対象とする.Generate,OpenProjectを順に実行し,VisualStudioを起動させる.

32Bit版も必要なら以降同様の手順でビルドする.

5. VS上でALL_BUILDのソリューションを右クリックし,ビルドを選択する

上部タブの「ローカルWindowsデバッガー」で実行すると
実行に失敗したと表示されるが,無視してOK

6. 作成したbuildのDebugに生成されたバイナリデータや実行ファイルが存在する.

VisualStudio2017 on Windows10でビルドしたバイナリファイルは以下参照.

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