Main Menu
Menu

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.

Show posts Menu

Messages - aikk

#1
Installation help / Re: Problem at make install
21 December 2022, 16:22:16
Hi,

I was using the official MinGw version that comes with gcc 6.3.0 ...
It works now with the MinGW-w64(MSVCRT) that you sent.

Many thanks. :)
#2
Installation help / Re: Problem at make install
21 December 2022, 00:39:31
Apparently the error :

[ 11%] Building CXX object src/CMakeFiles/tgui.dir/Global.cpp.obj
C:\TGUI-0.9\src\Global.cpp: In function 'std::unique_ptr<unsigned char []> tgui::readFileToMemory(const tgui::String&, std::size_t&)':
C:\TGUI-0.9\src\Global.cpp:133:72: error: '_wfopen_s' was not declared in this scope
             if (_wfopen_s(&file, filename.toWideString().c_str(), L"rb") != 0)
                                                                        ^
C:\TGUI-0.9\src\Global.cpp: In function 'bool tgui::writeFile(const tgui::String&, const CharStringView&)':
C:\TGUI-0.9\src\Global.cpp:181:67: error: '_wfopen_s' was not declared in this scope
         if (_wfopen_s(&file, filename.toWideString().c_str(), L"w") != 0)
                                                                   ^
make[2]: *** [src/CMakeFiles/tgui.dir/Global.cpp.obj] Erreur 1
make[1]: *** [src/CMakeFiles/tgui.dir/all] Erreur 2

might be caused because _wfopen_s is declared in Microsoft's stdio.h but not in stdio.h that GCC is using on Windows (?)
#3
Installation help / Problem at make install
20 December 2022, 22:54:24
Hi,

I'm having some trouble installing tgui. I already built and installed sfml, then I built successfully tgui but when I'm trying to install it via make install I'm getting this error :

http://www.noelshack.com/2022-51-2-1671573110-capture.png

Any idea ?
Thanks.