Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LeksiDor

Pages: [1]
1
I've just ran INSTALL, and then copied resulting SFML folder in "C:\Program Files (x86)\SFML" to the proper location in my HelloWorld. Then, run CMake, and got the same CMake errors ("dependencies are missing").

Then, I just manually copied missing libs (flac.lib, freetype.lib, ogg.lib, openal32.lib, vorbis.lib, vorbisenc.lib, vorbisfile.lib), and put them in "SFML\lib" folder.

Now everything works.

Thank you very much for time and effort!

2
1. Open Git bash in "D:\Work". Run "git clone https://github.com/SFML/SFML.git".
2. Open CMake GUI and run with parameters as on screenshot (see "cmake.png" attached).
3. Open MSVC solution. Compile all, in both Debug and Release.
4. Run examples. Everything is fine.
5. Create folder "D:\Work\TestSFML". It now contains "TestSFML\CMakeLists.txt" and "TestSFML\src\HelloWorld\main.cpp".
6. Run CMake with Source "D:\Work\TestSFML" and Build "D:\Work\TestSFML\build", and get mentioned errors.

3
I've modified CMakeLists.txt in my HelloWorld project once again, and that's how it looks now:
(click to show/hide)

Value SFML_DIR now points to locally built Git repo.
But CMake refuses to build HelloWorld project, and shows this output:
(click to show/hide)

Any guesses what should I change now?

Thanks!

4
Ok, I have downloaded SFML binaries (2.5.1 x64 VC15), and changed CMakeLists.txt correspondingly. Now everything works.

That's my new CMakeListst.txt:
(click to show/hide)

However, how can I use SFML lib that is built from currrent git repo?

Also, how can I have Debug and Release versions of SFML for my HelloWorld Debug and Release builds correspondingly?

Thanks!

5
General / SFML static build: Unresolved externals from sf::priv namespace
« on: February 16, 2020, 10:18:27 pm »
Hello!
I've managed to clone SFML git repo, then build with CMake and compile together with examples. All examples are working, no errors were detected. Then, I wrote a simple HelloWorld project using locally-built SFML lib, but when I compile it, I get 10 unresolved externals. All of them refer to system-specific functions implemented in sf::priv namespace. Could you help me to fix it? I have no clues what's wrong...

My environment: Windows 10, CMake 3.14.1, MSVC 16 2019.
My folder structure:
    * cloned SFML project: D:\Work\SFML ;
    * HelloWorld project: D:\Work\TestSFML ;
    * content of TestSFML folder: CMakeLists.txt, Initialize3rdparty.sh (copies SFML lib and headers), src\HelloWorld\main.cpp .

CMakeLists.txt:
(click to show/hide)

Initialize3rdparty.sh:
(click to show/hide)

src\HelloWorld\main.cpp:
(click to show/hide)

MSVC build output:
(click to show/hide)

Thanks!

Pages: [1]