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

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: SFML static build: Unresolved externals from sf::priv namespace
« Last post by Laurent on February 18, 2020, 01:09:45 pm »
You correctly changed SFML_DIR to point to the install folder instead of the build folder, right?

You shouldn't have to copy anything manually, as I said, the INSTALL target produces a release similar to what you can download on the website and thus should work out of the box.
2
General / Re: SFML static build: Unresolved externals from sf::priv namespace
« Last post by LeksiDor on February 18, 2020, 12:35:56 pm »
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!
3
General / Re: SFML static build: Unresolved externals from sf::priv namespace
« Last post by Laurent on February 18, 2020, 12:13:20 pm »
So you didn't compile the INSTALL target?

Quote from: Laurent
Once you've built the "install" target, you have a SFML folder that is similar to the official releases.
4
General / Re: SFML static build: Unresolved externals from sf::priv namespace
« Last post by LeksiDor on February 18, 2020, 08:53:40 am »
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.
5
General / Re: SFML static build: Unresolved externals from sf::priv namespace
« Last post by Laurent on February 18, 2020, 07:57:03 am »
Can you describe what you did (how you built SFML) in detail?
6
General / Re: SFML static build: Unresolved externals from sf::priv namespace
« Last post by LeksiDor on February 17, 2020, 09:25:37 pm »
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!
7
Window / Re: Window style
« Last post by G. on February 17, 2020, 08:40:32 pm »
You have to call the create function again with the desired style.
8
Window / Window style
« Last post by another27 on February 17, 2020, 07:33:05 pm »
How can I change style of the Window, after creation?

I have a sf::RenderWindow mainWindow; variable in my game class, and I want change style after creation.

thx in advance 4 ur attention
9
Window / Re: Valgrind reports 464 bytes lost in simple Window program
« Last post by Rosme on February 17, 2020, 02:17:47 pm »
That's normal. Due to some global variable in the SFML code. No worries there.
10
DotNet / Re: SFML on Linux with MonoDevelop
« Last post by Recoil on February 17, 2020, 01:47:50 pm »
Thanks for the reply Balnian.

I've been trying to get simple projects up and running in both MonoDevelop and Visual Studio Code IDE's, but with both I am running into dependency issues (wrong version, unable to locate, etc.).  I do have the latest .Net Core installed on this system, but being new to using Linux I am honestly not sure if everything is configured correctly - which is most likely the root of the problem.

I guess I have been pampered using Visual Studio on Win7 for so long that switching to anything else has been difficult.  It looks like if I want to continue with SFML I am going to have to install Win10 and sell my soul back to M$FT  :-[
Pages: [1] 2 3 ... 10