>mingw32-make process_begin: CreateProcess(NULL, type builds\newline, ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: *** [dos_setup] Error 2
After scouring through many of the makefiles, I finally narrowed the problem to the builds\detect.mk file. Specifically, starting at line 134. After puzzling about that for a while, I finally managed to figure out the reason: I had cygwin binaries in the path. They were conflicting with the mingw files. Removing the cygwin files from the path fixed the problem:
>mingw32-make FreeType build system -- automatic system detection The following settings are used: platform win32 compiler gcc configuration directory .\builds\win32 configuration rules .\builds\win32\w32-gcc.mk If this does not correspond to your system or settings please remove the file 'config.mk' from this directory then read the INSTALL file for help. Otherwise, simply type 'make' again to build the library. or 'make refdoc' to build the API reference (the latter needs python).
Doing another 'mingw32-make' command finished up the compilation, putting the resulting files in \objs.
Now we'll see if it works...
Edit:
It did indeed work. I copied libfreetype.a to mingw/lib. I also copied ft2build.h and the freetype folder with the other header files to mingw/include. Using the library involved including the appropriate headers:
#include <ft2build.h>
#include FT_FREETYPE_H
- and then following the example on the Freetype website. The only other problem was that the Qt .pro file needed to be updated to include the following line:
LIBS += -lfreetype
this totally solved your problem!!!
ReplyDeleteHi there, I have the same problem when compiling freetype-2.4.11 in mingw under windows. I check the PATH, nothing with cygwin in the PATH. But if I run mingw32-make, it shows the error
ReplyDeleteprocess_begin: CreateProcess(NULL, ver, ...) failed.
process_begin: CreateProcess(NULL, type builds\newline, ...) failed.
make (e=2): twC
builds/detect.mk:135: recipe for target 'dos_setup' failed
mingw32-make: *** [dos_setup] Error 2
Any idea how to fix it? Thanks
I tried to recreate your problem, but I wasn't able to. I downloaded a fresh copy of freetype-2.4.11. Then, I set the command prompt window path to C:\WINDOWS\system32;C:\WINDOWS\system32\Wbem;C:\Qt\2010.05\mingw\bin. Note that I am using the mingw package that is bundled with the Qt builder. I doubt that would make a difference, but you never know. After running mingw32-make twice, the library was compiled.
ReplyDeleteSorry I couldn't reply earlier. Life gets busy.
Thanks! You saved my day.
ReplyDeleteI was searching for the solution all over the internet, and you were holding the key.
In my computer, both mingw and msys have been installed.
When I ran mingw32-make.exe, the exact same error appeared.
After removing msys from the PATH, I was able to build with mingw32-make.
It's been a while since you posted that but thanks man!!
ReplyDeleteYou're welcome. Glad it helped.
Delete