vraid/earthgen-old

58 errors when trying to run this

EdgeCaseLord opened this issue · 1 comments

Hi, I'm using a fresh install of Visual Studio 2022 on Windows 11 and tried to run this code. Since I'm quite new to C++ development, the error log is here for you:

1>------ Build started: Project: Earthgen-old, Configuration: Debug|Win32 ------
1> axisBox.cpp
1>C:\Users...\dev\earthgen-old\source\gui\axisBox.h(4,10): fatal error C1083: Cannot open include file: 'QGroupBox': No such file or directory
1> climateBox.cpp
1>C:\Users...\dev\earthgen-old\source\gui\climateBox.h(4,10): fatal error C1083: Cannot open include file: 'QGroupBox': No such file or directory
1> diplayBox.cpp
1>C:\Users...\dev\earthgen-old\source\gui\displayBox.h(4,10): fatal error C1083: Cannot open include file: 'QGroupBox': No such file or directory
1> mainMenu.cpp
1>C:\Users...\dev\earthgen-old\source\gui\mainMenu.h(4,10): fatal error C1083: Cannot open include file: 'QWidget': No such file or directory
1> mainWindow.cpp
1>C:\Users...\dev\earthgen-old\source\gui\mainWindow.h(4,10): fatal error C1083: Cannot open include file: 'QWidget': No such file or directory
1> planetHandler.cpp
1>C:\Users...\dev\earthgen-old\source\gui\planetHandler.h(4,10): fatal error C1083: Cannot open include file: 'QObject': No such file or directory
1> planetWidget.cpp
1>C:\Users...\dev\earthgen-old\source\gui\planetWidget.h(4,10): fatal error C1083: Cannot open include file: 'QGLWidget': No such file or directory
1> terrainBox.cpp
1>C:\Users...\dev\earthgen-old\source\gui\terrainBox.h(4,10): fatal error C1083: Cannot open include file: 'QGroupBox': No such file or directory
1> util.cpp
1>C:\Users...\dev\earthgen-old\source\gui\util.h(4,10): fatal error C1083: Cannot open include file: 'QString': No such file or directory
1> md5.cpp
1>C:\Users...\dev\earthgen-old\source\hash\md5.cpp(343,5): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> main.cpp
1>C:\Users...\dev\earthgen-old\source\main.cpp(2,10): fatal error C1083: Cannot open include file: 'QApplication': No such file or directory
1> matrix2.cpp
1>C:\Users...\dev\earthgen-old\source\math\matrix2.cpp(30,16): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\matrix2.cpp(29,16): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> matrix3.cpp
1>C:\Users...\dev\earthgen-old\source\math\matrix3.cpp(32,30): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\matrix3.cpp(31,30): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\matrix3.cpp(30,30): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> quaternion.cpp
1>C:\Users...\dev\earthgen-old\source\math\quaternion.cpp(65,28): warning C4244: 'argument': conversion from 'const double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\quaternion.cpp(65,23): warning C4244: 'argument': conversion from 'const double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\quaternion.cpp(65,18): warning C4244: 'argument': conversion from 'const double' to 'float', possible loss of data
1> vector2.cpp
1>C:\Users...\dev\earthgen-old\source\math\vector2.cpp(23,23): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\vector2.cpp(23,18): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> vector3.cpp
1>C:\Users...\dev\earthgen-old\source\math\vector3.cpp(31,28): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\vector3.cpp(31,23): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\math\vector3.cpp(31,18): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> climate.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate.cpp(16,33): warning C4305: 'return': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate.cpp(17,41): warning C4305: 'return': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate.cpp(25,10): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
1> climate_corner.cpp
1> climate_edge.cpp
1> climate_generation.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(38,48): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(39,32): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(60,71): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(63,82): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(66,72): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(66,34): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(86,17): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(91,88): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(91,66): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(94,12): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(109,46): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(124,5): warning C4244: '-=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(131,13): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(143,5): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(156,5): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(171,5): warning C4244: '+=': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(178,18): warning C4305: 'initializing': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_generation.cpp(223,29): warning C4244: '*=': conversion from 'double' to '_Ty', possible loss of data
1> with
1> [
1> _Ty=float
1> ]
1> Generating Code...
1> Compiling...
1> climate_tile.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> climate_variables.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> season.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> corner.cpp
1> create_grid.cpp
1>C:\Users...\dev\earthgen-old\source\planet\grid\create_grid.cpp(18,10): warning C4305: 'initializing': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\grid\create_grid.cpp(19,10): warning C4305: 'initializing': truncation from 'double' to 'float'
1> edge.cpp
1> grid.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\grid\grid.cpp(31,49): warning C4244: 'return': conversion from 'double' to 'int', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\grid\grid.cpp(32,39): warning C4244: 'return': conversion from 'double' to 'int', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\grid\grid.cpp(33,37): warning C4244: 'return': conversion from 'double' to 'int', possible loss of data
1> tile.cpp
1> planet.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> river.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> terrain.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> terrain_corner.cpp
1> terrain_edge.cpp
1> terrain_generation.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\planet\terrain\terrain_generation.cpp(76,32): warning C4244: 'initializing': conversion from 'double' to 'unsigned int', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\terrain\terrain_generation.cpp(237,46): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\terrain\terrain_generation.cpp(237,35): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\planet\terrain\terrain_generation.cpp(237,23): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> terrain_tile.cpp
1> terrain_variables.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> colour.cpp
1>C:\Users...\dev\earthgen-old\source\render\colour.cpp(4,64): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\render\colour.cpp(4,45): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\render\colour.cpp(4,26): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> globe_renderer.cpp
1>C:\Users...\dev\earthgen-old\source\render\planet_renderer.h(4,10): fatal error C1083: Cannot open include file: 'QGLWidget': No such file or directory
1> hammer_projection.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\hammer_projection.cpp(22,109): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\render\hammer_projection.cpp(22,78): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\render\hammer_projection.cpp(22,36): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\render\hammer_projection.cpp(35,58): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1>C:\Users...\dev\earthgen-old\source\render\hammer_projection.cpp(35,34): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
1> hammer_tile.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1> Generating Code...
1> Compiling...
1> map_renderer.cpp
1>C:\Users...\dev\earthgen-old\source\render\planet_renderer.h(4,10): fatal error C1083: Cannot open include file: 'QGLWidget': No such file or directory
1> planet_colours.cpp
1>C:\Users...\dev\earthgen-old\source\planet\climate\climate_parameters.h(22,21): warning C4305: '=': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(35,42): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(36,55): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(36,50): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(39,15): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(40,15): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(43,10): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(44,20): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(44,15): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(44,10): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(77,54): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(77,48): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(77,42): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(78,57): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(78,51): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(78,45): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(79,52): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(79,46): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(79,40): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(80,51): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(80,46): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(80,41): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(81,55): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(81,49): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(81,42): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(105,10): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(110,15): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(111,10): warning C4305: 'argument': truncation from 'double' to 'float'
1>C:\Users...\dev\earthgen-old\source\render\planet_colours.cpp(164,47): warning C4305: 'argument': truncation from 'double' to 'float'
1> planet_renderer.cpp
1>C:\Users...\dev\earthgen-old\source\render\planet_renderer.h(4,10): fatal error C1083: Cannot open include file: 'QGLWidget': No such file or directory
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

vraid commented

Hi Daniel, and thank you for the interest in my project!

As you may tell by the commit history, it's been over a decade since it was in active development. I do remember is that it was built using the QT framework, and your errors hint to it not being installed. I wouldn't be able to tell you how to install it, but a good starting point would be to download QT 4.8 (corresponding to late 2012, the time this was developed) and proceed from there. The truncation from 'double' to 'float' warnings can safely be ignored, there's nothing critical about the data generated internally in this program.