Recent Posts

Pages: [1] 2 3 ... 10
1
Installation help / Re: Error CMake couldn't find SFML
« Last post by Kvaz1r on 20 September 2020, 13:45:03 »
I removed Strawberry but still got the same error.
I tried to build another project that has SFML as dependency and also got the same result. So it's not TGUI issue, but SFML one. I am going to create MCVE and raise issue on SFML forum.
2
Installation help / Re: Error CMake couldn't find SFML
« Last post by Kvaz1r on 19 September 2020, 20:41:31 »
Could it be that C:/Strawberry/c/include/freetype2 is giving a conflict with the freetype that comes with SFML?
Maybe, in any case I am going to remove Strawberry and test it again to be sure.
3
Installation help / Re: Error CMake couldn't find SFML
« Last post by Kvaz1r on 19 September 2020, 20:38:23 »
I don't see anything wrong with those files, it says that it has freetype at T:/libraries/C++/SFML-2.5.1/extlibs/libs-msvc-universal/x86/freetype.lib

Did you download the SFML version from github?
You are setting TGUI_SHARED_LIBS to FALSE, right?
Could you send the CMakeCache.txt file from your TGUI build?
Could you send your entire SFML folder?
Yes, I download sourse for 2.5.1 release from Github.
Right.
CMakeCache.txt attached

Entire SFML folder is huge (.pdb files for samples are heavy) if it's really useful I'll build SFML without them and send folder.
4
Installation help / Re: Error CMake couldn't find SFML
« Last post by texus on 19 September 2020, 20:05:12 »
Could it be that C:/Strawberry/c/include/freetype2 is giving a conflict with the freetype that comes with SFML?
5
Installation help / Re: Error CMake couldn't find SFML
« Last post by texus on 19 September 2020, 20:01:39 »
I don't see anything wrong with those files, it says that it has freetype at T:/libraries/C++/SFML-2.5.1/extlibs/libs-msvc-universal/x86/freetype.lib

Did you download the SFML version from github?
You are setting TGUI_SHARED_LIBS to FALSE, right?
Could you send the CMakeCache.txt file from your TGUI build?
Could you send your entire SFML folder?

I'm not sure when I'll find enough time to look into this in detail, but if you send me those files then I'll try to find some explanation when I find the time.

By placing the old code back in TGUI's cmake you are changing the CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH variables and the issue is only solved as a side-effect of this (those lines existed in the cmake script for building the gui builder and tests, not for finding sfml). So although it works, it isn't really the solution (it only works by accident that way).
6
Installation help / Re: Error CMake couldn't find SFML
« Last post by Kvaz1r on 19 September 2020, 19:27:23 »
Yes, attached
7
Installation help / Re: Error CMake couldn't find SFML
« Last post by texus on 19 September 2020, 18:48:34 »
Could you send the SFML*.cmake files to me that you have inside your build folder?
8
Installation help / Re: Error CMake couldn't find SFML
« Last post by Kvaz1r on 19 September 2020, 18:47:39 »
No, same issue even when build SFML from source into separate folder.
9
Installation help / Re: Error CMake couldn't find SFML
« Last post by Kvaz1r on 19 September 2020, 14:18:27 »
Maybe it exactly the mess in folder, because I built SFML from source into the same folder. I'll try rebuilt it to different location.
10
Installation help / Re: Error CMake couldn't find SFML
« Last post by texus on 19 September 2020, 14:10:28 »
Then were did the SFML folder come from?
SFML doesn't has a SFMLConfig.cmake in the root by default. If you e.g. download it from the SFML website then the file will be in lib/cmake/SFML.
Did you build SFML yourself with CMake? If so, did you create a build directory?
The only case that I can think of where the file would be located there is when you build SFML with CMake and set the build directory to the same as the source directory, but even then it should be able to find freetype.
Pages: [1] 2 3 ... 10