compiling the openal example from the latest version?

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
maurosebastian91
Posts: 30
Joined: Mar 21, 2021 18:22

compiling the openal example from the latest version?

Post by maurosebastian91 »

Hello colleagues, my name is Mauro and this is my first post.
these days I re-downloaded the freebasic, and it was more pleasant than the other time, my congratulations to all who participate in this project.

I'm wanting to compile the openal sample bas, and I can't find the correct version of the dlls because it always tells me that it can't find the file, and the 2 dlls are next to the source code.

Could anyone provide me with the correct files, or tell me where I can find them?
I already downloaded several and nothing, and I can't find the correct version of the alut.dll dll.

Thank you very much in advance who can help me,
greetings to all.
TJF
Posts: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: compiling the openal example from the latest version?

Post by TJF »

Hi Mauro, welcome to the forum!

You didn't get an answer for a week now. Perhaps you can be a bit more specific in your question, ie:
  • Send a link to the source code you want to test.
  • Copy/paste the exact error message.
  • Most important: which operating system are you using?
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: compiling the openal example from the latest version?

Post by dodicat »

make sure the .bi files use the correct dll
(if you did not know this already)
example:
(start of al.bi)
...
#pragma once

#ifdef __FB_WIN32__
#inclib "OpenAL32"
#else
#inclib "openal"
#endif

So depending on you using win 32 or win 64
the dll names are OpenAl32.dll or openal.dll
One of these dll files should be with your source code.
If not you can adjust the .bi files, or you can copy all your required .bi files into your source code folder and adjust the .bi files there, this saves altering distribution files.
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: compiling the openal example from the latest version?

Post by srvaldez »

I copied the required DLL's from msys2 and uploaded it here https://drive.google.com/file/d/1ZR420q ... sp=sharing
maurosebastian91
Posts: 30
Joined: Mar 21, 2021 18:22

Re: compiling the openal example from the latest version?

Post by maurosebastian91 »

Hello,
Thank you very much mate, it was what I was looking for.
now it compiles correctly.

After searching a lot, it seems to me that the implementation of open al in freebasic, is the best I found.

that they go very well,
a greeting.
srvaldez wrote:I copied the required DLL's from msys2 and uploaded it here https://drive.google.com/file/d/1ZR420q ... sp=sharing
srvaldez
Posts: 3373
Joined: Sep 25, 2005 21:54

Re: compiling the openal example from the latest version?

Post by srvaldez »

when compiling to 64-bit, the program may complain that alu.dll is missing, if that happens then simply copy libalut-0.dll to alut.dll keeping libalut-0.dll
I am not happy with this dll mess but have not found another solution
maurosebastian91
Posts: 30
Joined: Mar 21, 2021 18:22

Re: compiling the openal example from the latest version?

Post by maurosebastian91 »

I've used the 64-bit one, and luckily it didn't say anything. equally, I will take it into account. Thank you.

and please excuse my english, I am using the translator.
srvaldez wrote:when compiling to 64-bit, the program may complain that alu.dll is missing, if that happens then simply copy libalut-0.dll to alut.dll keeping libalut-0.dll
I am not happy with this dll mess but have not found another solution
Post Reply