-
Notifications
You must be signed in to change notification settings - Fork 19
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
Miniaudiohelpers error #19
Comments
This is a new recent thing that I need to fix for linux, all you need to do is compile the file at rsrc/miniaudiohelper/miniaudiohelpers.c to make an so file you can install on your system. Haven't gotten around to writing this yet.
…On Sun, Jul 2, 2023, 18:01 OjciecPablito ***@***.***> wrote:
while trying running example i get this error
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
cannot find -lminiaudiohelpers (this usually means you need to install the
development package for libminiaudiohelpers): No such file or directory
collect2: error: ld returned 1 exit status
Error: execution of command failed with exit status 1: cc "${@}" -o
/home/pawel/.cache/crystal/home-pawel-Dokumenty-crystal_proj-learn-lib-raylib-cr-src-raylib-cr-miniaudio_fix-ma_sizes.cr/macro_run
-rdynamic -L/usr/lib64/crystal -lminiaudiohelpers -lpcre2-8 -lm -lgc
-lpthread -levent -lrt -lpthread -ldl
—
Reply to this email directly, view it on GitHub
<#19>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ5ARIKFCGPOOR3UMNSHH3XOIKX7ANCNFSM6AAAAAAZ3YXZWM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
What's this library supposed to help with? And do I need to install it into my system? |
It's necessary for me to be able to create the dummy structs for miniaudio. It does this by creating four new functions which check the size of the various structs I need a copy.
…On Sun, Jul 2, 2023, 19:45 Capital-EX ***@***.***> wrote:
What's this library supposed to help with? And do I need to install it
into my system?
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ5AROQPARFCF6A5YRNIE3XOIW4VANCNFSM6AAAAAAZ3YXZWM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Maybe i'm doing sometihng wrong but when i try to build i got this
|
Are you making sure to include miniaudio.h? I need to write Linux build
instructions for this.
…On Mon, Jul 3, 2023, 11:59 OjciecPablito ***@***.***> wrote:
Maybe i'm doing sometihng wrong but when i try to build i got this
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crt1.o: in function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.37/csu/../sysdeps/x86_64/start.S:103: undefined reference to `main'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_volume_linear_to_db':
miniaudiohelpers.c:(.text+0x1873f): undefined reference to `log'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_volume_db_to_linear':
miniaudiohelpers.c:(.text+0x187c4): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_lpf1_reinit':
miniaudiohelpers.c:(.text+0x26937): undefined reference to `exp'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_lpf2_get_heap_size':
miniaudiohelpers.c:(.text+0x26dd4): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x26e07): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_lpf2_init_preallocated':
miniaudiohelpers.c:(.text+0x270ec): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2711f): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_lpf2_reinit':
miniaudiohelpers.c:(.text+0x274a7): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o:miniaudiohelpers.c:(.text+0x274da): more undefined references to `sin' follow
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hpf1_reinit':
miniaudiohelpers.c:(.text+0x29699): undefined reference to `exp'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hpf2_get_heap_size':
miniaudiohelpers.c:(.text+0x29b06): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x29b39): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hpf2_init_preallocated':
miniaudiohelpers.c:(.text+0x29e36): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x29e69): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hpf2_reinit':
miniaudiohelpers.c:(.text+0x2a209): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o:miniaudiohelpers.c:(.text+0x2a23c): more undefined references to `sin' follow
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_peak2_get_heap_size':
miniaudiohelpers.c:(.text+0x2e367): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_peak2_init_preallocated':
miniaudiohelpers.c:(.text+0x2e65b): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2e68e): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2e6f1): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_peak2_reinit':
miniaudiohelpers.c:(.text+0x2ea7f): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2eab2): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2eb15): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_loshelf2_get_heap_size':
miniaudiohelpers.c:(.text+0x2eece): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2ef01): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2ef49): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2efcb): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2eff0): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_loshelf2_init_preallocated':
miniaudiohelpers.c:(.text+0x2f39c): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2f3cf): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2f417): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2f499): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2f4c4): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_loshelf2_reinit':
miniaudiohelpers.c:(.text+0x2f916): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2f949): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2f991): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2fa13): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2fa38): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hishelf2_get_heap_size':
miniaudiohelpers.c:(.text+0x2feba): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2feed): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2ff35): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2ffb7): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x2ffdc): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hishelf2_init_preallocated':
miniaudiohelpers.c:(.text+0x30384): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x303b7): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x303ff): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x30481): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x304ac): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_hishelf2_reinit':
miniaudiohelpers.c:(.text+0x308fa): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x3092d): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x30975): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x309f7): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x30a1c): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_vec3f_len':
miniaudiohelpers.c:(.text+0x33e4f): undefined reference to `sqrt'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_attenuation_exponential':
miniaudiohelpers.c:(.text+0x343a5): undefined reference to `pow'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_calculate_angular_gain':
miniaudiohelpers.c:(.text+0x35b95): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: miniaudiohelpers.c:(.text+0x35bd9): undefined reference to `sin'
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: /tmp/ccn0QwCf.o: in function `ma_waveform_sine_f32':
miniaudiohelpers.c:(.text+0x5192a): undefined reference to `sin'
collect2: error: ld returned 1 exit status
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ5ARNCQADJUAT3HCXWK2LXOMJBVANCNFSM6AAAAAAZ3YXZWM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
In miniaudiohelpers.c there is only '#include "miniadiohelpers.h" ' and in miniaudiohelpers.h there is '#include "miniaudio.h" ' |
Yeah, you're going to need to include the headers when you're compiling.
…On Mon, Jul 3, 2023, 12:09 OjciecPablito ***@***.***> wrote:
In miniaudiohelpers.c there is only '#include "miniadiohelpers.h" ' and in
miniaudiohelpers.h there is '#include "miniaudio.h" '
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ5ARPZY3P2GVOYQM3UIEDXOMKHNANCNFSM6AAAAAAZ3YXZWM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
i builded it without errors where this file is supposed to be? |
Install it like you would libraylib |
it supposed to be a build as shared |
it should be named libminiaudiohelpers.so |
thank you |
while trying running example i get this error
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot find -lminiaudiohelpers (this usually means you need to install the development package for libminiaudiohelpers): No such file or directory
collect2: error: ld returned 1 exit status
Error: execution of command failed with exit status 1: cc "${@}" -o /home/pawel/.cache/crystal/home-pawel-Dokumenty-crystal_proj-learn-lib-raylib-cr-src-raylib-cr-miniaudio_fix-ma_sizes.cr/macro_run -rdynamic -L/usr/lib64/crystal -lminiaudiohelpers -lpcre2-8 -lm -lgc -lpthread -levent -lrt -lpthread -ldl
The text was updated successfully, but these errors were encountered: