Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Linux版での使用手順 #1

@YASAI03

Description

@YASAI03

libcurlのbuild

git clone https://github.com/curl/curl.git
cd curl
./buildconf
./configure --disable-shared --enable-static --with-ssl
make
make install

これでlibcurl+opensslのstaticlibがビルドされ/usr/lib/など既定の位置にインストールされるはず。


CMakeLists.txtの変更

このリポジトリの

  • HTTPClient.hpp
  • SivHTTPClient.cpp
  • Main.cpp(任意)
    App/にコピーする。
    32行目"./Main.cpp"の下に "./SivHTTPClient.cpp"
    38行目target_link_libraries(内に-lcurlと書き込む。
    その後、
cmake
make
./Siv3D_App

により通常通りビルドすれば実行できる。
参考としてCMakeLists.txtを添付する。


動作確認環境

  • ManjaroLinux(Xcfe) 20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions