I've been trying to compile Ogre for weeks now, alternately trying to use the precompiled version (which was apparently incompatible with the same compiler it was built with), and now I've figured enough was enough. I ran CMake 2.8.11 on the Ogre 1.8.1 source to generate the Code::Blocks 12.11 project. Pressing the "compile" button in C::B gives me the following:
Build log:
-------------- Build: all in OGRE (compiler: GNU GCC Compiler)---------------
Running command: C:\MinGW\bin\mingw32-make.exe -f "C:/Users/Conscious Code/Desktop/ogre_src_v1-8-1/Makefile" VERBOSE=1 all
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -H"C:\Users\Conscious Code\Desktop\ogre_src_v1-8-1" -B"C:\Users\Conscious Code\Desktop\ogre_src_v1-8-1" --check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_start "C:\Users\Conscious Code\Desktop\ogre_src_v1-8-1\CMakeFiles" "C:\Users\Conscious Code\Desktop\ogre_src_v1-8-1\CMakeFiles\progress.marks"
C:/MinGW/bin/mingw32-make -f CMakeFiles\Makefile2 all
mingw32-make[1]: Entering directory `C:/Users/Conscious Code/Desktop/ogre_src_v1-8-1'
C:/MinGW/bin/mingw32-make -f OgreMain\CMakeFiles\OgreMain.dir\build.make OgreMain/CMakeFiles/OgreMain.dir/depend
mingw32-make[2]: Entering directory `C:/Users/Conscious Code/Desktop/ogre_src_v1-8-1'
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report "C:\Users\Conscious Code\Desktop\ogre_src_v1-8-1\CMakeFiles"
[ 0%]
Generating OgreWin32Resources.rc.obj
cd /d OgreMain && "C:\Program Files (x86)\CodeBlocks\MinGW\bin\windres.exe" "-IC:/Users/Conscious Code/Desktop/ogre_src_v1-8-1/OgreMain/src/WIN32" "-iC:/Users/Conscious Code/Desktop/ogre_src_v1-8-1/OgreMain/src/WIN32/OgreWin32Resources.rc" "-oC:/Users/Conscious Code/Desktop/ogre_src_v1-8-1/OgreMain/OgreWin32Resources.rc.obj"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files (x86)\CodeBlocks\MinGW\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [OgreMain/OgreWin32Resources.rc.obj] Error 1
mingw32-make[1]: *** [OgreMain/CMakeFiles/OgreMain.dir/all] Error 2
mingw32-make: *** [all] Error 2
mingw32-make[2]: Leaving directory `C:/Users/Conscious Code/Desktop/ogre_src_v1-8-1'
mingw32-make[1]: Leaving directory `C:/Users/Conscious Code/Desktop/ogre_src_v1-8-1'
Process terminated with status 2 (0 minutes, 1 seconds)
1 errors, 0 warnings (0 minutes, 1 seconds)
Build messages:
=== OGRE, all ===
preprocessing failed.
=== Build finished: 1 errors, 0 warnings (0 minutes, 1 seconds) ===
From the error, it seems like some kind of issue with windres when it's generating OgreWin32Resource.rc.obj. What can I do to fix this?
Turns out it was a combination issue of spaces in the project path (which I had tried to fix earlier, getting the error anyway) and a improperly set CXX_MAKE_COMPILER that led to the "Program Files (x86)" folder (which was wrong anyway, I had a newer compiler in C:\MinGW). Fixing that, compilation went a little longer and then snagged on an issue of dependency architectures.
After realizing FreeImage required Visual Studio to compile, I threw in the towel and switched to Irrlicht. Compiling a library has never been more simple than with Irrlicht...
tl;dr: Irrlicht is just plain better for ease of compilation. Ogre will try its hardest to murder you.
Related
sometimes when i try to build a cpp program "mingw32-make.exe *** all error 1" error occurs and error goes away when you rebuild the program although it does not happens every time. i use gcc++ compiler on codelite.
here is the full build error i get:
C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j8
SHELL=cmd.exe -e -f Makefile
"----------Building project:[ lab1 - Debug ]----------"
The system cannot find the path specified.
mingw32-make.exe: *** [All] Error 1
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====*
would be grateful if someone could help me fixing this.
I'm using CLion 2021.1.1 version. I'm a new user. I've done some cpp programs on codeblocks. But Whenever I open an existing folder the files are showing but there is no debug option. It says Add configuration. There is no run option. I've added MingW in buil, execution, Deployment -> Toolchains-> mingw but still it says add configuration. I've close it open new projects in CPP but still getting add configuration. How can open the existing folder and it has many cpp files that I can run each and every cpp file. How can achieve this?
sometimes I get this error:
CMake Error at C:/Program Files/JetBrains/CLion 2021.1.1/bin/cmake/win/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"C:/MinGW/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: O:/1.Fourth Semester/Programming/Algorithm/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_d8b71/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_d8b71.dir\build.make CMakeFiles/cmTC_d8b71.dir/build
mingw32-make.exe[1]: Entering directory 'O:/1.Fourth Semester/Programming/Algorithm/cmake-build-debug/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d8b71.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_d8b71.dir\testCCompiler.c.obj -c "O:\1.Fourth Semester\Programming\Algorithm\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c"
CMakeFiles\cmTC_d8b71.dir\build.make:83: recipe for target 'CMakeFiles/cmTC_d8b71.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_d8b71.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'O:/1.Fourth Semester/Programming/Algorithm/cmake-build-debug/CMakeFiles/CMakeTmp'
Makefile:139: recipe for target 'cmTC_d8b71/fast' failed
mingw32-make.exe: *** [cmTC_d8b71/fast] Error 2
CMake will not be able to correctly generate this project
Someone help, please
Building mono from downloaded source on an Android device. Ran make get-monolite-latest and still get the following errors
make[2]: Entering directory `/bld/mono/mono-4.0.0/runtime'
if test -w /bld/mono/mono-4.0.0/mcs; then :; else chmod -R +w /bld/mono/mono-4.0.0/mcs; fi
cd /bld/mono/mono-4.0.0/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES='binary_reference_assemblies net_4_5 xbuild_12 xbuild_14 monodroid ' CC='gcc --sysroot=/usr/gcc-4.9.2/sysroot' all-profiles
make[6]: mcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
*** The compiler 'mcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
Illegal instruction
make[8]: *** [build/deps/basic-profile-check.exe] Error 132
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
I've found what I think is the mcs executable in runtime/_tmpdir/bin, but copying it to where the build seems to be looking for it doesn't help.
How do I resolve this?
As the error message suggests: You may want to try the command 'make get-monolite-latest'
You need a certain mono version for building mono 4, I think it was >= 3.8 or so. The monolite should help out in this case.
So I am attempting to build Qt Static 5.3.2. The build is being automated by a windowspowershell script I found at http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC. I am getting errors I don't fully understand, because I have verified the existence of the following files in the source, and I have checked to see if they have been copied to the correct directory and they are there.
copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\examples\widgets\widgets.pro C:\Qt\Static\5.3.2\examp
les\widgets
1 file(s) copied.
mingw32-make[3]: Target 'install' not remade because of errors.
mingw32-make[3]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase/examples/widgets'
Makefile:415: recipe for target 'sub-widgets-install_subtargets' failed
mingw32-make[2]: *** [sub-widgets-install_subtargets] Error 2
copy /y C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\examples\README C:\Qt\Static\5.3.2\examples
1 file(s) copied.
mingw32-make[2]: Target 'install' not remade because of errors.
mingw32-make[2]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase/examples'
Makefile:78: recipe for target 'sub-examples-install_subtargets' failed
mingw32-make[1]: *** [sub-examples-install_subtargets] Error 2
xcopy /s /q /y /i C:\Qt\Static\src\qt-everywhere-opensource-src-5.3.2\qtbase\doc\global C:\Qt\Static\5.3.2\doc\global
59 File(s) copied
mingw32-make[1]: Target 'install' not remade because of errors.
mingw32-make[1]: Leaving directory 'C:/Qt/Static/src/qt-everywhere-opensource-src-5.3.2/qtbase'
Makefile:75: recipe for target 'module-qtbase-install_subtargets' failed
mingw32-make: *** [module-qtbase-install_subtargets] Error 2
mingw32-make: Target 'install' not remade because of errors.
Try to output powershell script output (.\windows-build-qt-static.ps1 > out.txt) and find strings with error information to get more understanding.
I've had the same final error and when I've inspected script output, I've found out that WATCOM headers were used in the process of compilation.
...
Environment:
INCLUDE=
C:\WATCOM\H
C:\WATCOM\H\NT
C:\WATCOM\H\NT\DIRECTX
C:\WATCOM\H\NT\DDK
...
The source of the problem was INCLUDE environment variable that was set to WATCOM compiler headers
INCLUDE
C:\WATCOM\H;C:\WATCOM\H\NT;C:\WATCOM\H\NT\DIRECTX;C:\WATCOM\H\NT\DDK
I've modified it to point to MinGw headers
INCLUDE
C:\Qt\Qt5.3.1\Tools\mingw482_32\i686-w64-mingw32\include;C:\Qt\Qt5.3.1\Tools\mingw482_32\include
This solved problem for me.
This may be not your error, but the point is, you should look at script output.
May be you don't installed ActivePerl or Python. Try it. It helped me.
I need some help compiling Node source code on cygwin. Every time I try to make the build, it throws the following error message. I am using Windows 8 and Cygwin 1.7.28. I have tried installing YASM. Please help!
python tools/gyp_node -f make
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory '/home/vineet/node-v0.8.22/out'
*LD_LIBRARY_PATH=/home/vineet/node-v0.8.22/out/Release/lib.host:/home/vineet/node-v0.8.22/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/openssl; mkdir -p /home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni; ml64.exe /Zi /Fo "/home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni/aes-x86_64.obj" /c "/home/vineet/node-v0.8.22/deps/openssl/asm/x64-win32-masm/aes/aes-x86_64.asm"
/bin/sh: ml64.exe: command not found
deps/openssl/openssl.target.mk:10: recipe for target '/home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni/aes-x86_64.obj' failed
make[1]: *** [/home/vineet/node-v0.8.22/out/Release/obj.target/openssl/geni/aes-x86_64.obj] Error 127
make[1]: Leaving directory '/home/vineet/node-v0.8.22/out'
Makefile:26: recipe for target 'node' failed
make: *** [node] Error 2*
Well, since it's complaining about ml64, you have to establish:
Do you actually have masm/x64 on your system? It's probably in a directory like C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\
Is your path set up within CygWin to reference that directory, so that the executable can be found?
By the error message:
/bin/sh: ml64.exe: command not found
it's almost certainly one of those two problems.
in fact , you can download a VC++ express from Microsoft, it is free. and just open a VC++ X86 Command Prompt, then simple execute VCbuild.bat, cygwin is useless in this case.