I don’t know I’m trying to install 10 times already, probably, and all the same error

I install this instruction http://habrahabr.ru/post/212027/

Here is the error when entering the 3rd line enter image description here I really want to deliver but I cannot solve this problem.

  • Google wxwidgets regcustom.h stdio.h no such file or directory , something is located. For example, here (I didn’t check it myself, because I prefer not to eat cacti for days, but rather to have a few seconds on sudo apt-get install libwxbase3.0-dev libwxgtk3.0-dev ) - user6550
  • your link to codelight, and I have codebloks - MaximPro
  • So the installation of wxwidgets with a specific IDE is little connected, at least at this stage. But in general, how important is it to use mingw? In C :: B, you can specify any compiler. When I had fun with wx under Windows, I remember that I collected it with a wadcom, simply connecting them with * .lib to the project. - user6550
  • I need to write visual applications, but I cannot because WXWIDGETS does not want to be installed, as you can see in the picture, the installation catches the battery and everything, but actually when you download the codeblock from the off site there is a version with a compiler, but I don’t neither helped either - MaximPro

3 answers 3

If you just need to solve the problem of installing the wxWidgets library without understanding the features of its assembly, you can use the msys2 package, which will provide the required one.

First, install msys2, as shown in detail in the screenshots at the link provided, and then, after opening the msys2 terminal from the Windows menu, enter the command:

 pacman -Ss wxwidgets 

It will list the available packages of this framework. In my case it turned out like this:

 $ pacman -Ss wxwidgets mingw32/mingw-w64-i686-wxPython 3.0.2.0-1 (mingw-w64-i686) A wxWidgets GUI toolkit for Python (mingw-w64) mingw32/mingw-w64-i686-wxWidgets 3.0.2-5 (mingw-w64-i686) A C++ library that lets developers create applications for Windows, Linux and UNIX (mingw-w64) mingw64/mingw-w64-x86_64-wxPython 3.0.2.0-1 (mingw-w64-x86_64) A wxWidgets GUI toolkit for Python (mingw-w64) mingw64/mingw-w64-x86_64-wxWidgets 3.0.2-5 (mingw-w64-x86_64) A C++ library that lets developers create applications for Windows, Linux and UNIX (mingw-w64) 

Select the package and install it. The package manager will resolve all dependencies automatically. In general, everything turns out just as in Linux.

 $ pacman -S mingw-w64-i686-wxWidgets разрешение зависимостей... проверка конфликтов... Пакеты (7) mingw-w64-i686-cppunit-1.13.2-3 mingw-w64-i686-jbigkit-2.1-1 mingw-w64-i686-libjpeg-turbo-1.4.0-2 mingw-w64-i686-libpng-1.6.16-1 mingw-w64-i686-libtiff-4.0.3-4 mingw-w64-i686-xz-5.2.1-1 mingw-w64-i686-wxWidgets-3.0.2-5 Будет загружено: 9,58 MiB Будет установлено: 62,19 MiB :: Приступить к установке? [Y/n] 
  • what is msys? and what do I get in the end? I need to end up with codeblocks seeing these widgets - MaximPro
  • From the wiki: "In addition, the MinGW component, known as MSYS (Minimal SYStem) provides win32 ports for a lightweight Unix-like shell environment that includes rxvt and a POSIX toolkit sufficient to run autoconf scripts." Speaking more simply, you get the environment ready for building projects through mingw. MSys2 is the same, only easier to install and in terms of package management. At the exit, get compiled from wxWidgets sources. Further, probably, you can already connect it to your IDE. - alexis031182

Judging by the compilation errors, the problem is that the compiler does not find the standard header files located in the include folder.

1) You need to make sure that the path to the MinGW installation directory does not contain spaces and Russian characters.

2) Set the environment variables CPLUS_INCLUDE_PATH and LIBRARY_PATH. For example, if the installation directory is C: \ mingw, then CPLUS_INCLUDE_PATH should contain the value C: \ mingw \ include, and LIBRARY_PATH should be C: \ mingw \ lib.

3) Restart the computer after setting the environment variables.

Read more here.

  • did not help! set variables, even set the compiler separately from codeblocks, do not plow, write the same error! The computer restarted - MaximPro

Faced with a similar error in Windows7-x64 . Everything was decided using the shell bundled with TDM-GCC-32 5.1.0-3 . Strange, but true, standard cmd tupit and loses the way. Build did with the following commands:

 cd %WXWIN%\build\msw mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport" >log.txt 2>&1 mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1 VENDOR=cb CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport" >log2.txt 2>&1 

wxWidgets-3.0.3 compiled perfectly and with all the libraries needed to run. All other installation steps are similar to those in most installation instructions.

PS Try to avoid long paths, spaces and Cyrillic when installing. As can be seen from the parameters of the wall of the text during the assembly are not displayed in the console, and in the log file.