Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows compile issues #89

Merged

Conversation

slizzered
Copy link
Contributor

There were a bunch of issues still wrong with the project when I tried to build for Windows. This is a cumulative PullRequest for all the issues that were blocking the build. One commit for each problem:

  • M_PI only defined when some magic definition is set. This did work with <math.h> but had some problems with <cmath>. Found a good solution.
  • filename.compare was not 100% clear to the microsoft compiler, I did make it explicit which is nice.
  • the time calculation did have a small bug that resulted in a compile error.
  • The conditional compilation had some small bugs (I forgot some lines and had a typo)
  • Colored output did not work on windows. This did not produce a compile-error, but the output was very ugly to look at. Also, the progressbar sine-wave does not look like a wave on Windows and the characters produced some problems. So I replaced it with a boring bar. I don't really like the solution with dout very much, see dout Windows compatibility is really ugly #90 and ray_histogram.cc has separate implementation for Windows #91

 - less #defines in code
 - works now also with <cmath> (previous fix only worked with <math.h>)
 - CMakeLists.txt did not remove graybat correctly
 - `#ifdef` sections in `types.cc` was missing
 - Printing of colors is very different in windows and linux
 - `dout` has a lot of `#ifdef` now. This needs to be changed in the future (will create an issue)
 - `ray_histogram.cc` apparently uses colors directly. So I added a lot of code for that as well (probably going to be another issue)
 - length of the progressbar was reduced from 50 to 16 for Windows, since the Terminals have a (short) maximum fixed width. This appears to be a mit better with PowerShell, but is an issue nevertheless.
@slizzered slizzered added this to the 1.5 - extended features milestone Aug 31, 2015
erikzenker added a commit that referenced this pull request Sep 1, 2015
@erikzenker erikzenker merged commit b5548d3 into ComputationalRadiationPhysics:dev Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants