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

I'm a coding noob #10

Open
N0crossha1rboy opened this issue Jul 20, 2023 · 7 comments
Open

I'm a coding noob #10

N0crossha1rboy opened this issue Jul 20, 2023 · 7 comments

Comments

@N0crossha1rboy
Copy link

N0crossha1rboy commented Jul 20, 2023

Experiencing this error
Screenshot 2023-07-20 155839

@wickedchicken
Copy link
Owner

Hey @N0crossha1rboy, I haven't looked at this repository in a long time so I'm not sure how much I can help. The first thing I would say is to try and compile using make as described in https://github.com/wickedchicken/sndpeek/blob/master/INSTALL. It looks like you're trying to compile directly with your IDE, and I think the makefile sets up some additional flags and such.

@N0crossha1rboy
Copy link
Author

Hey @N0crossha1rboy, I haven't looked at this repository in a long time so I'm not sure how much I can help. The first thing I would say is to try and compile using make as described in https://github.com/wickedchicken/sndpeek/blob/master/INSTALL. It looks like you're trying to compile directly with your IDE, and I think the makefile sets up some additional flags and such.

Thanks for replying.

@N0crossha1rboy
Copy link
Author

N0crossha1rboy commented Jul 24, 2023

Learning new things.
This is what the output I got from the terminal:

make[1]: Entering directory 'C:/Users/god85/Documents/Coding/sndpeek141/src/sndpeek'
makefile.win32:68: warning: ignoring prerequisites on suffix rule definition
makefile.win32:71: warning: ignoring prerequisites on suffix rule definition
gcc -D__WINDOWS_DS__ -D__WINDOWS_PTHREAD__ -D__LITTLE_ENDIAN__ -D__USE_GLUT__ -I../marsyas/ -I/usr/include/directx/ -O3 -c chuck_fft.c
gcc -D__WINDOWS_DS__ -D__WINDOWS_PTHREAD__ -D__LITTLE_ENDIAN__ -D__USE_GLUT__ -I../marsyas/ -I/usr/include/directx/ -O3 -c RtAudio.cpp
RtAudio.cpp:5119:20: fatal error: dsound.h: No such file or directory
 #include <dsound.h>
                    ^
compilation terminated.
make[1]: *** [makefile.win32:71: RtAudio.o] Error 1
make[1]: Leaving directory 'C:/Users/god85/Documents/Coding/sndpeek141/src/sndpeek'
make: [makefile:8: win32] Error 2 (ignored)

It produced the file chuck_fft.o. Could you help me decode this.

@wickedchicken
Copy link
Owner

wickedchicken commented Jul 24, 2023

dsound.h is from DirectX, but it's been so long I don't know remember it's normally obtained. Is there an SDK somewhere? I also came across this, but I don't think it's what you want: https://github.com/thestk/rtaudio/blob/master/include/dsound.h.

@N0crossha1rboy
Copy link
Author

N0crossha1rboy commented Jul 24, 2023

You got to me first, yes I found that exact file. Just don't know where it goes, doesn't go with src.

@wickedchicken
Copy link
Owner

This is for C, not C++, but it might help: https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art026.
Looking at the Windows makefile, I can see that -I/usr/include/directx/ is passed to the compiler. This means the files should be in /usr/include/directx/, which doesn't really work on a Windows system unless you have something like cygwin. Maybe you can change that -I directive to something such as -IC:/Users/god85/Documents/Coding/sndpeek141/src/sndpeek (I don't know if that's the right syntax) in makefile.win32.

That would make the line something like

INCLUDES=-I../marsyas/ -IC:/Users/god85/Documents/Coding/sndpeek141/src/sndpeek

or even

INCLUDES=-I../marsyas/  -I.

(I don't know if this will work, just a guess. The period . is required).

@N0crossha1rboy
Copy link
Author

Thanks for reply, much appreciated.

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

2 participants