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.h> does not exist on linux #2

Open
506independent opened this issue Feb 28, 2021 · 8 comments
Open

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

506independent opened this issue Feb 28, 2021 · 8 comments

Comments

@506independent
Copy link

506independent commented Feb 28, 2021

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
Copy link

AuracleTech commented Feb 28, 2021

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
Copy link

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

@sausix
Copy link

sausix commented Mar 2, 2021

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

https://github.com/nivkner/FractalSoundExplorer

@Nv7-GitHub
Copy link

How do you compile this fork?

@nivkner
Copy link

nivkner commented Mar 4, 2021

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

@NicolasGoeddel
Copy link

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. 😆

@NSGolova
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants