I have downloaded CodeBlocks 17.02 without mingw and installed it, then I downloaded MinGW64 from here(https://mingw-w64.org/doku.php/download) and only changed the architecture option from i686 to x86_64 during the installation and left the rest as default. Then tried to add this path to system paths: C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\x86_64-w64-mingw32\bin. But when I opened the CodeBlocks, it couldn't find the compiler. Also when I go to settings>compiler and try to set GNU GCC compiler it says: can not find the compiler!
How should I specify the MinGW64 for CodeBlocks om Windows 10?
You need to setup the MinGW 8.1.0 in CodeBlocks.
The steps are: Settings -> Compiler -> GNU GCC Compiler -> Toolchain executables -> path\to\mingw64 (without bin). Then confirm.
Related
I'm currently working on a C++ project that build successfully on Linux using CMake, Make & GCC, and also on Windows using CMake & VS2015.
For some reason, i'd like to build it using the same toolchain everywhere, so i planned to use CMake, Clang & Ninja.
I started to try to build it on Windows, but i did not find any documentation to build using libc++ and without anything from the MSVC toolchain.
Am I forced to install MSVC build tools in order to build with CMake & Clang ?
Use a MinGW-w64 of GCC on Windows (e.g. the one from http://winlibs.com, or any other one listed at http://mingw-w64.org/).
If you combine this with the MSYS2 shell (http://www.msys2.org/), you can build a lot using the same tools as on Linux (autoconf, CMake, meson, ...).
I have a freebsd 8.4 machine. I want to use to use pyinstaller to create a binary for freebsd. However it looks like pyinstaller does not support freebsd by default so i have to go in the bootloader and create stuff specific to the target system.
This is giving me errors that gcc/cc is not found on the system. Here is the first error message
Platform : FreeBSD-64bit detected
Checking for 'gcc' (C compiler) : not found
Checking for 'clang' (C compiler) : not found
So then i try to install gcc via ports. I do this
cd /usr/ports/lang/gcc49
make install
It fails :
checking whether the C compiler works... no
So i checked in the file system and there is no gcc or clang or cc. It only has ccache. Here are the details from /usr/bin
CC -> /usr/local/bin/ccache
gcc -> /usr/local/bin/ccache
There is nothing in /usr/local/bin (either CC or GCC)
so if i just do gcc at the command line i get this :
ccache: FATAL: Could not find compiler "gcc" in PATH
how do i fix this. This thing is driving me nuts. pkg install is also not working with error "No repositories found "
On FreeBSD 8.4 the standard compiler is gcc (4.2), and it's located in /usr/bin. It has to be there.
It seems that ccache installation created some problem removing/overwriting something. ccache package installs compiler links in /usr/local/libexec/ccache, but if you installed it manually I'm not sure what happened.
FreeBSD 8.4 is not maintained anymore and there's no package repository anymore for it.
My suggestion is to update your system to FreeBSD 10.2 and use clang, that's the new standard compiler.
I've just build a gcc 5.2.0 on windows according to this material:
http://preshing.com/20141108/how-to-install-the-latest-gcc-on-windows/
Everything went well. But then I've tried to build Qt with this newly built gcc and I'm getting an error that there is no mingw32-make. Checked directory and no, there isn't one.
But then I checked previously installed gcc, which was work of TDM, downloaded from:
http://tdm-gcc.tdragon.net/
and yes, in his build there is mingw32-make.
So, the question is, how is it that he has that tool, and many other which are absent in my build are present in his?
if you create from the gcc5.2.0 source, a build then you've just created the gcc compiler with all its necessary files. e.g. gcc-5.2.0.exe, gcc.exe, g++.exe, etc.
NOT the MinGW runtime environment for gcc, which contains the mingw32-make.exe !
if you follow your link from your question here you build it with the cygwin make.exe.
It's better to download the mingw 32 binary runtime environment for gcc
or
MinGW64 runtime environment for gcc
Then you have all the files needed to work with QT.
if you want to create a mingw build from source, you need first a MinGW runtime environment then you can use that to build your own mingw32-make.exe.
I just downloaded the latest versions of MinGW and Boost 1.54.0 (on Windows 7).
The first one installed smoothly (g++ 4.7.2).
When installing Boost, this is all I get:
boost_1_54_0> bootstrap.bat mingw
Building Boost.Build engine
The system cannot find the batch label specified - Test_Option
\CMake was unexpected at this time.
The compiler's path is set (from any directory, g++.exe --version returns 4.7.2).
Is there anything wrong in the way I specify MinGW?
For example I have
D:/MinGW with gcc version 4.6.1
D:/cygwin/usr/bin/gcc has version 4.5.x
I would like to make Cygwin use my 4.6.1 version of GCC
Thanks
okey you have installed cygwin and Mingw both so now to use gcc 4.6.1 version of cygwin
1> go in cygwin folder you will find cygwin.bat file so run that file and use gcc
2> if you are planning to use gcc 4.6.1 in your IDE then set path of cygwin folder in that IDE and also set your windows environment path to cygwin/bin
3> if you have already set environment path to cygwin then open cmd write "bash" and start to use gcc 4.6.1
more you can find at here
You can usually do this with a symlink or changing PATH
Cygwin (and most platforms) will run the first gcc it finds in the PATH environment variable. So:
If PATH is: /usr/local/bin:/usr/bin:/bin then you can symlink your 4.6 version of gcc into /usr/local/bin or you can add /cygdrive/d/MinGW/ to the start of PATH.
However, note that cygwin and mingw are too separate platforms!