FractalSoundExplorer
FractalSoundExplorer copied to clipboard
<windows.h> does not exist on linux
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!
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
He already used a cross platform graphics library he just used windows only sound code, I ported it to mess around with here
nivker has forked this and added independend audio support by SFML library.
https://github.com/nivkner/FractalSoundExplorer
How do you compile this fork?
g++ Main.cpp -lsfml-system -lsfml-window -lsfml-graphics -lsfml-audio -lGL -I/usr/include/SFML -o FractalSoundExplorer
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:
I have ported this project even further on WebGL. https://github.com/radulov/FractalSoundWeb It should work on Linux too =)