libintl-8.dll not found?

  • 4 Replies
  • 432 Views
libintl-8.dll not found?
« on: 24 December 2018, 01:07:03 »
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:
Quote
The 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

  • *****
  • 1480
    • View Profile
    • Texus's Blog
Re: libintl-8.dll not found?
« Reply #1 on: 24 December 2018, 10:19:07 »
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).
« Last Edit: 24 December 2018, 10:22:28 by texus »

Re: libintl-8.dll not found?
« Reply #2 on: 24 December 2018, 19:40:46 »
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

  • *****
  • 1480
    • View Profile
    • Texus's Blog
Re: libintl-8.dll not found?
« Reply #3 on: 24 December 2018, 20:01:22 »
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.

Re: libintl-8.dll not found?
« Reply #4 on: 24 December 2018, 20:09:27 »
It worked. Thank you so much!