hashlink icon indicating copy to clipboard operation
hashlink copied to clipboard

Linux Mint 19.3 with HashLink 1.11 (cmake) - Failed to load library openal.hdll

Open tommy3 opened this issue 4 years ago • 1 comments

Hello,

I'm new to Haxe and HashLink so maybe I'm doing something completely wrong.

I've downloaded linux binaries haxe-4.0.5 and built hashlink-1.11 from source and tried the example on hello-hashlink. Starting my hello.hl via hl it reports this error:

/.../Downloads/hashlink-1.11/src/module.c(352) : FATAL ERROR : Failed to load library openal.hdll

There are several hdll-files inside my installation directory:

-rw-r--r-- 1 root root 137856 Apr 16 05:55 fmt.hdll
-rw-r--r-- 1 root root 105272 Apr 16 05:55 sdl.hdll
-rw-r--r-- 1 root root 963376 Apr 16 05:55 sqlite.hdll
-rw-r--r-- 1 root root  13096 Apr 16 05:55 ui.hdll
-rw-r--r-- 1 root root  18800 Apr 16 05:55 uv.hdll

but openal.hdll seems to be missing. I took a look into hashlink-1.11/libs/CMakeLists.txt and it seems to me, that openal.hdll will only build for WIN32!?

My install directory for HL is a non-standard path and I but it into LD_LIBRARY_PATH, maybe that's a problem, but anyway openal.hdll doesn't exists.

I found a few closed issues according problems with openal.hdll but they are always windows specific. Perhaps I've missed something important?

Thank you in advance for your help!

tommy3 avatar Apr 16 '20 04:04 tommy3

I just found out, that build instruction says to use included Makefile not cmake. I chose cmake intuitively. 😖

At the end I just modified PREFIX in Makefile to my needs and did make && make install and it worked!

Now I wonder why the cmake way doesn't work. Is it just work-in-progress and experimental or did I get something wrong?

tommy3 avatar Apr 16 '20 05:04 tommy3

You need OpenAL32.dll to be able to use openal. These can be downloaded using openal-soft distribution.

ncannasse avatar Feb 06 '23 10:02 ncannasse