FractalSoundExplorer icon indicating copy to clipboard operation
FractalSoundExplorer copied to clipboard

<windows.h> does not exist on linux

Open 506independent opened this issue 4 years ago • 8 comments

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!

506independent avatar Feb 28 '21 15:02 506independent

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

AuracleTech avatar Feb 28 '21 19:02 AuracleTech

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

mjrochford avatar Feb 28 '21 23:02 mjrochford

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

https://github.com/nivkner/FractalSoundExplorer

sausix avatar Mar 02 '21 15:03 sausix

How do you compile this fork?

Nv7-GitHub avatar Mar 03 '21 00:03 Nv7-GitHub

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

nivkner avatar Mar 04 '21 14:03 nivkner

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:

NicolasGoeddel avatar Mar 07 '21 12:03 NicolasGoeddel

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

NSGolova avatar Mar 10 '21 05:03 NSGolova