![]() I added multi-display support to this program, but adding/removing monitors while program is running is not supported, and you should not do this. If you run this program in windowed mode ( -w), only one display is supported. Multi-display is only supported in fullscreen mode. If you want to install this to your system, it is suggested to build with mkdir build & cd build & meson setup -prefix=/usr -buildtype=release.mkdir build & cd build & cmake -DCMAKE_BUILD_TYPE=Debug.If you want to install this to your system, it is suggested to build with mkdir build & cd build & cmake -DCMAKE_INSTALL_PREFIX=/usr.Just download file with win in its name from lastest release page, extract it and right click flipclock.scr to install it as a screensaver. NOTICE: I saw a windows user says "This program has dlls in its folder so it's not simple!" and I got angry. This user knows nothing about compiling, linking and loading. It might be not so easy for some windows users to understand how complicated building static libraries is and what dynamically libraries are. Windows is a horrible platform for developers: no package manager for easy distribution, slowly visual studio, complicated tool chains. Create a prefix directory, for example d:/flipclock-prefix, program files will be installed into it.īut thanks to Meson which handles all dirty things for me, it's SDL2 wrap works now and I managed to tweak it to build a static linked program automatically if no pre-built dependency found.Open 圆4 Native Tools Command Prompt for VS 2019 from Start Menu, or other architectures you need.Change dir to where you put this project.Run mkdir build & cd build & meson setup -prefix=d:/flipclock-prefix -buildtype=release. You can change prefix argument to other path you created in Step 2, but you need to use UNIX style slash instead of backslash because it's escape character in C. Go to flipclock dir under your prefix directory, you can now find flipclock.scr and right click it to install it as a screensaver.Download SDL2 and SDL2_ttf devel files and extract.Please refer to deps/README.md for links. Open CMake GUI, select source as this project, then choose build path, press Configure and Finish.When Configure failed, set CMAKE_INSTALL_PREFIX to where you want to save all runtime files, fill SDL2_DIR to where you extract SDL2 devel files, then press Configure again.When Configure failed again, fill SDL2_TTF_DIR to where you extract SDL2_ttf devel files, then press Configure again. When Configure finished, press Generate, then press Open Project to open Visual Studio.Select Release, and right click INSTALL in the right panel, and build it.Go to flipclock dir under your CMAKE_INSTALL_PREFIX, you can now find flipclock.scr and right click it to install it as a screensaver.On Linux, program will first use $XDG_CONFIG_HOME/nf, if XDG_CONFIG_HOME is not set, it will use $HOME/.config/nf. If you want some features and you can implement it, a PR is always welcome, but there are some rules or personal habits: On Windows, program will use nf under the same directory as program.įnf will be automatically created if program does not find it, so please run program once before editing configuration file. If you are writing multi-line comment, please use the same style with existing comments.Comments should always occupy a new line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |