I use Visual Studio 2019 x86 running on Winx64, and want use SFML to build x86 apps, so I tried to build SFML but failed.
I followed the provided tut:
https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php...and I
did get it to work, having it show that demo window with a green circle.
But it was only if the configuration is set to x64(I used Debug x64). Using x86 gives me a
"LNK1112: module machine type 'x64' conflicts with target machine type 'x86'" error.
I figured I have built the library for x64, not x86, so I attempted to rebuild a x86 one.
I re-opened CMake and during Gererator Setup(CMake Setup), below "Specify the generator for this project" is "Optional platform for generator(if empty, generator uses: x64)", and I set it to "Win32". The rest if the process is the same as before.
But now(config: Debug x86), I get another error
"LNK1104: cannot open file'sfml-audio-d.lib'". As I did got it to work, I know that the paths are right, so apparently now the new files I made can't be opened.
So, my question is, how do you properly build a lib for x86? What went wrong?