Cmake error on windows 8.1

Please, for the love of God, I was doing a very difficult challenge by installing Gazebo Ignition Citadel on Windows 8.1 using source code.

I was able to build Ruby, gz-cmake, ign-cmake2, and I am currently working on math for gz-sim’s requirements.

Please let me know what I need to do to fix this.

the error:

koko@revenant ~/gz-math-ign-math6/gz-math-ign-math6/build
$ make
[  0%] Building CXX object src/CMakeFiles/ignition-math6.dir/Angle.cc.o
[  1%] Building CXX object src/CMakeFiles/ignition-math6.dir/AxisAlignedBox.cc.o
[  1%] Building CXX object src/CMakeFiles/ignition-math6.dir/Color.cc.o
[  2%] Building CXX object src/CMakeFiles/ignition-math6.dir/DiffDriveOdometry.cc.o
[  3%] Building CXX object src/CMakeFiles/ignition-math6.dir/Frustum.cc.o
[  3%] Building CXX object src/CMakeFiles/ignition-math6.dir/GaussMarkovProcess.cc.o
[  4%] Building CXX object src/CMakeFiles/ignition-math6.dir/Helpers.cc.o
[  5%] Building CXX object src/CMakeFiles/ignition-math6.dir/Kmeans.cc.o
[  5%] Building CXX object src/CMakeFiles/ignition-math6.dir/Material.cc.o
[  6%] Building CXX object src/CMakeFiles/ignition-math6.dir/MecanumDriveOdometry.cc.o
[  7%] Building CXX object src/CMakeFiles/ignition-math6.dir/PID.cc.o
[  7%] Building CXX object src/CMakeFiles/ignition-math6.dir/Rand.cc.o
[  8%] Building CXX object src/CMakeFiles/ignition-math6.dir/RollingMean.cc.o
[  8%] Building CXX object src/CMakeFiles/ignition-math6.dir/RotationSpline.cc.o
[  9%] Building CXX object src/CMakeFiles/ignition-math6.dir/RotationSplinePrivate.cc.o
[ 10%] Building CXX object src/CMakeFiles/ignition-math6.dir/SemanticVersion.cc.o
[ 10%] Building CXX object src/CMakeFiles/ignition-math6.dir/SignalStats.cc.o
[ 11%] Building CXX object src/CMakeFiles/ignition-math6.dir/SpeedLimiter.cc.o
[ 12%] Building CXX object src/CMakeFiles/ignition-math6.dir/SphericalCoordinates.cc.o
[ 12%] Building CXX object src/CMakeFiles/ignition-math6.dir/Spline.cc.o
[ 13%] Building CXX object src/CMakeFiles/ignition-math6.dir/SplinePrivate.cc.o
[ 14%] Building CXX object src/CMakeFiles/ignition-math6.dir/Stopwatch.cc.o
[ 14%] Building CXX object src/CMakeFiles/ignition-math6.dir/Temperature.cc.o
[ 15%] Building CXX object src/CMakeFiles/ignition-math6.dir/Vector3Stats.cc.o
[ 16%] Linking CXX shared library ../bin/cygignition-math6-6.dll
[ 16%] Built target ignition-math6
[ 17%] Building CXX object test/CMakeFiles/gtest.dir/gtest/src/gtest-all.cc.o
In file included from /home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-internal.h:39,
                 from /home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/gtest.h:58,
                 from /home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/src/gtest-all.cc:39:
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-port.h: In function ‘int testing::internal::posix::FileNo(FILE*)’:
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-port.h:2476:40: error: ‘fileno’ was not declared in this scope; did you mean ‘FileNo’?
 2476 | inline int FileNo(FILE* file) { return fileno(file); }
      |                                        ^~~~~~
      |                                        FileNo
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-port.h: In function ‘char* testing::internal::posix::StrDup(const char*)’:
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-port.h:2482:47: error: ‘strdup’ was not declared in this scope; did you mean ‘StrDup’?
 2482 | inline char* StrDup(const char* src) { return strdup(src); }
      |                                               ^~~~~~
      |                                               StrDup
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-port.h: In function ‘FILE* testing::internal::posix::FDOpen(int, const char*)’:
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/include/gtest/internal/gtest-port.h:2510:56: error: ‘fdopen’ was not declared in this scope; did you mean ‘fopen’?
 2510 | inline FILE* FDOpen(int fd, const char* mode) { return fdopen(fd, mode); }
      |                                                        ^~~~~~
      |                                                        fopen
In file included from /home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/src/gtest-all.cc:45:
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/src/gtest-port.cc: In constructor ‘testing::internal::CapturedStream::CapturedStream(int)’:
/home/koko/gz-math-ign-math6/gz-math-ign-math6/test/gtest/src/gtest-port.cc:993:29: error: ‘mkstemp’ was not declared in this scope; did you mean ‘mkdtemp’?
  993 |     const int captured_fd = mkstemp(name_template);
      |                             ^~~~~~~
      |                             mkdtemp
make[2]: *** [test/CMakeFiles/gtest.dir/build.make:76: test/CMakeFiles/gtest.dir/gtest/src/gtest-all.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2839: test/CMakeFiles/gtest.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

koko@revenant ~/gz-math-ign-math6/gz-math-ign-math6/build

Repo steps I took prior to this error:

  1. cd ~/gz-math-ign-math6/gz-math-ign-math6/build
  2. cmake
  3. make

Then I reach to this error.

I’m using this link: GitHub - gazebosim/gz-math at ign-math6

I genuinely believe I can install gazebo on windows 8.1 for fun!

im really really stuck at this part since I dont have a good knowledge on cpp

I couldn’t build msg 5 bec of no math6.

ign gui 3 couldnt built due to no msg 5.

ign common 3 couldnt be built due to no math6. Sounds like math 6 is the next step and it must be completed

seems like -DBUILD_TESTING=OFF did the trick. im on msg now and soon gui

what possibly can go wrong anyway