Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linux(ubuntu20.04) build #29

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Fix linux(ubuntu20.04) build #29

merged 2 commits into from
Jan 25, 2022

Conversation

zchrissirhcz
Copy link
Contributor

在 Linux(ubuntu20.0) 用 cmake 鼓捣了一下,可以编译生成 GUI 程序了。

删掉 FindSDL2.cmake 是因为:

  • apt 安装的 sdl2 版本太老,因此用户需要编译安装 SDL2
  • SDL2 的 CMake 支持比较好, 可直接 cmake 方式编译安装
  • 直接 cmake 编译安装的 SDL2,若使用原本的 FindSDL2.cmake 会找不到SDL2,删掉后则可找到

@zchrissirhcz
Copy link
Contributor Author

第二次commnit,把 overlook.cmake 放进来了,修复了一些 waring。

有一些 if 中的条件逻辑顺序, 不是很确定,盲猜的。 还请 BT 老师 @scarsty 检查。

@scarsty scarsty merged commit 4c6dfbf into scarsty:main Jan 25, 2022
@zchrissirhcz zchrissirhcz deleted the fix-linux-cmake-build branch January 25, 2022 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants