Closed nnn1590 closed 5 years ago
Ubuntu 17.10 Artful amd64 (LXDE) OLD:Intel Core i3-3110M → NEW:Intel Core i5-2450M I'm sorry. Now, when I retry, the error no longer exists.|ごめんなさい。今、再試行したらエラーはなくなりました。
Command(Build DxPortLib / bash + gnome-terminal):
~ $ sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libvorbis-dev libvorbisfile3
~ $ git clone https://github.com/mauvecow/DxPortLib.git
~ $ cd DxPortLib
~/DxPortLib $ mkdir lib;cd lib
~/DxPortLib/lib $ cmake ..;make
Command(Build TestApplication / bash + gnome-terminal):
~ $ mkdir DXTRY2;cd $_
~/DXTRY2 $ mkdir build;cd $_
(Create the following files)
~/DXTRY2/build $ cmake..;make;./build.out
Files:
📂~/DXTRY2/ ├📁build/ ├📄CMakeLists.txt └📃main.cpp
CMakeLists.txt:
cmake_minimum_required (VERSION 2.8)
project(DXTRY2)
set(CMAKE_CXX_FLAGS "-std=c++1y")
link_directories("~/DxPortLib/lib/")
include_directories("~/Documents/DxPortLib/include")
add_executable(build.out main.cpp)
target_link_libraries(build.out SDL2 libDxPortLib.so)
main.cpp:
#include "DxLib.h"
int main(int argc, char **argv) {
SetUseCharSet(DX_CHARSET_EXT_UTF8);
SetWindowSizeChangeEnableFlag(TRUE);
SetWaitVSyncFlag(TRUE);
SetGraphMode(640, 480, 32);
SetWindowText(_T("DxPortLib Test"));
ChangeWindowMode(TRUE);
DxLib_Init();
while (ProcessMessage() == 0) {
WaitTimer(1);
}
DxLib_End();
return 0;
}
Reference:|参考:https://qiita.com/ikaro1192/items/3d2f5a38bc69e2d5434c Translation:|翻訳:https://translate.google.co.jp
OS: Ubuntu 17.10 amd64 CPU: Intel Core i3 DxPortLibTest.zip
command: