libintl-8.dll not found?

Started by Snarky, 24 December 2018, 01:07:03

Snarky

As the title suggests CMake can't find libintl-8.dll. I am trying to follow this installation tutorial: https://tgui.eu/tutorials/0.8/codeblocks/.
I have the correct directory for the source code entered and a similar build directory. The generator is also correct but when I try to generate the files it brings up this error:
QuoteThe code execution cannot proceed because libintl-8.dll was not found. Reinstalling the program may fix this problem.

After clicking ok a few times CMake tells me to look at CMakeError.log and that has a whole bunch of errors (obviously) in it. What should I do? I'm trying to compile TGUI 0.8.2 for SFML 2.5.1

texus

#1
It's a problem with either CMake or your compiler installation. You will get that error when trying to build any cmake project. I've had the error go away in the past after removing and reinstalling cmake and codeblocks (and rebooting). If I had to guess then I would say that the real issue is just that the location of the compiler which you are using isn't in your PATH environment variable (or that you have multiple gcc compilers in your PATH and it chooses the wrong one).

Snarky

My compiler doesn't seem to be in my PATH at all. I reinstalled both codeblocks and cmake and then rebooted my computer and it still says that. If it's because the compiler isn't in my PATH how would I go about adding it?

texus

Guide on how to add path to to PATH variable: https://docs.alfresco.com/4.2/tasks/fot-addpath.html
The path that you should add contains a g++.exe and/or mingw32-g++.exe file from your compiler.

Edit: in some cases you need to reboot before the new PATH takes effect.

Snarky

It worked. Thank you so much!