Comments (2)
Hi there,
Do you know how CMake was invoked? You mention having to specify SFML libraries path by hand... What is the first error message you encountered? Also, it looks like you are working from Visual Studio, do you have a more precise version?
Sorry for this long delay!
from sfgui.
Here is the steps I took to build on my Windows box today (full disclosure, I am a linux user at heart, so the following is command line interaction)
- Configure the project using CMake;
cmake -H".\" -B"Build" -DSFML_DIR="D:\Libraries\SFML32\SFML-2.5.0\lib\cmake\SFML\"
I provide CMake with the path to a file called
SFMLConfig.cmake
, which allowsfind_package
to know where the libraries are. - Build using MSBUILD
cmake --build Build -j 6
-j 6
tells MSBUILD to use 6 threads. You can also do-- /m
to pass the "native" option of multicore build. - Wait... Compilation takes much longer than on a unix-box ;)
It completes after a while with:
23 Warning(s)
0 Error(s)
Finally, I have:
SFGUI> ls .\Build\lib\Debug\
Directory: SFGUI\Build\lib\Debug
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 1/19/2019 1:34 PM 3656704 sfgui-d.dll
-a---- 1/19/2019 1:34 PM 215320 sfgui-d.exp
-a---- 1/19/2019 1:34 PM 21160384 sfgui-d.ilk
-a---- 1/19/2019 1:34 PM 352610 sfgui-d.lib
-a---- 1/19/2019 1:34 PM 14929920 sfgui-d.pdb
When CMake starts configuring, you can see what it picked as compilation tools, in this case:
-- Building for: Visual Studio 15 2017
-- Selecting Windows SDK version 10.0.17134.0 to target Windows 10.0.16299.
-- The CXX compiler identification is MSVC 19.15.26730.0
To run examples, I found it easier to use static libraries for both SFML and SFGUI (I am not sure of Windows rules regarding shared libraries...).
-DSFGUI_BUILD_SHARED_LIBS=OFF
-DSFML_STATIC_LIBRARIES=ON
from sfgui.
Related Issues (20)
- Can't expand ScrolledWindow children
- No obvious way to prevent window dragging. HOT 2
- sfgui apps crash immediately HOT 9
- Better integration in modern workflow HOT 4
- Font doesn't render properly HOT 4
- Trying to use with codeblocks HOT 13
- Update include/SFGUI/Config.hpp Version Information HOT 1
- Clipboard support HOT 1
- Undefined reference while trying to static linking with mingw32 HOT 1
- Sample projects crash when run in debug on Windows HOT 4
- Can't build on macOS 10.15 HOT 1
- Global state HOT 4
- Create The Style Reference
- How can I set the size of a widget or of a button? HOT 1
- Examples are miniature on Mac OS (Retina) HOT 2
- Password cursor moves away from current typing point HOT 2
- feature request: color picker
- Naming of engine's source files
- Problem on RenderBatch.hpp could not be found!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfgui.