HackerPoet / FractalSoundExplorer

Explore fractals in an audio-visual sandbox
MIT License
1.13k stars 134 forks source link

<windows.h> does not exist on linux #2

Open 506independent opened 3 years ago

506independent commented 3 years ago

windows.h does not exist on linux. i am unable to compile and use. could you just make this cross-platform? i know it would be a lot of work, but i really want to try your program.

here is the output of my compiler:

$ g++ Main.cpp WinAudio.cpp
In file included from Main.cpp:3:
WinAudio.h:3:10: fatal error: windows.h: No such file or directory
    3 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
In file included from WinAudio.cpp:1:
WinAudio.h:3:10: fatal error: windows.h: No such file or directory
    3 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.

stop your windows-only party, and let linux users in!

AuracleTech commented 3 years ago

When you make something you make it for the majority of users (98% rule). Chairs shouldn't be 1 feet tall just because 0.006% of the population are dwarfs . They adapt to us.

Same principle here. You use linux, you adapt.

Note that this doesn't mean this issue shouldn't be solved, just that your statement

stop your windows-only party, and let linux users in!

Is not relevant

mjrochford commented 3 years ago

He already used a cross platform graphics library he just used windows only sound code, I ported it to mess around with here

sausix commented 3 years ago

nivker has forked this and added independend audio support by SFML library.

https://github.com/nivkner/FractalSoundExplorer

Nv7-GitHub commented 3 years ago

How do you compile this fork?

nivkner commented 3 years ago

g++ Main.cpp -lsfml-system -lsfml-window -lsfml-graphics -lsfml-audio -lGL -I/usr/include/SFML -o FractalSoundExplorer

NicolasGoeddel commented 3 years ago

l also had to install libsfml-dev before I was able to compile. I am able to run the program now on Ubuntu 20.10 but I guess my hardware is too old. The whole system begins to freeze when trying to zoom in and when I click on a region to hear the sound there are just very bad audio buffer overruns. :laughing:

NSGolova commented 3 years ago

I have ported this project even further on WebGL. https://github.com/radulov/FractalSoundWeb It should work on Linux too =)