Page 1 of 2

hURL Linking on Linux arm fails

Posted: Mon May 06, 2019 5:51 pm
by fingus
On Raspberry pi i got the Error "This Program requires hurl.hwp".

Is linked with:

@REQUIRE "hurl", {Link = True}

in the Sourcecode.

Compiling System is Win10 Pro, with Hollywood 8.0.
I copied it from the C:\Users\user\Downloads\hURL_Linux.tar\hURL_Linux\Plugins\arm

to C:\Program Files\Hollywood\LinkerPlugins\arm-Linux

My Fault or defnitly a Hollywood-Error?

Re: hURL Linking on Linux arm fails

Posted: Tue May 07, 2019 9:45 pm
by airsoftsoftwair
Can you post the output that is shown when compiling the executable on Windows 10?

Re: hURL Linking on Linux arm fails

Posted: Wed May 08, 2019 12:40 pm
by fingus
Update: The same behaviour when Compiling the Beastscroll-Demos with SDL-Plungin Linked on Raspberry-Pi.

Here is the Compiling-Output for my initial Post:

Hollywood 8.0 [Windows] [64-bit] (c) by Andreas Falkenhahn
The Cross-Platform Multimedia Application Layer

Licenced to Niels **********

Loading plugin httpstreamer.hwp...failed
(Reason: Error loading plugin "httpstreamer.hwp"!)
Loading plugin hurl.hwp...done
Loading plugin rapagui.hwp...done
Loading plugin rebelsdl.hwp...done
Loading plugin sid.hwp...done
Loading plugin zip.hwp...done
Opening script Unnamed1.hws...done
Compiling script...done
Creating applet hol1664.tmp...
Linking compiled script...done
Compressing applet...gained 31%
Creating executable Unnamed1.exe...
Linking Hollywood Player [arm-linux]...done
Linking plugin hurl.hwp [arm-linux]...done
Linking applet...done

Linkage successful! Executable size: 2912889 bytes

Information: Hollywood has created a program for Linux [arm]. Note that if you have compiled this executable on a non-Linux system, it will be necessary to set execution permission on the file after you've copied it to your Linux installation or it won't run!

Re: hURL Linking on Linux arm fails

Posted: Wed May 08, 2019 10:14 pm
by airsoftsoftwair
Can you try to turn off compression?

Re: hURL Linking on Linux arm fails

Posted: Thu May 09, 2019 9:55 am
by fingus
airsoftsoftwair wrote:
Wed May 08, 2019 10:14 pm
Can you try to turn off compression?
Same result. Even when i copy the hurl.hwp File to the same Directory it doesn´t find it.

Re: hURL Linking on Linux arm fails

Posted: Thu May 09, 2019 2:37 pm
by airsoftsoftwair
Ok, then it's probably missing some dependencies. Do you have OpenSSL installed? If so, which version?

Re: hURL Linking on Linux arm fails

Posted: Thu May 09, 2019 2:42 pm
by fingus
airsoftsoftwair wrote:
Thu May 09, 2019 2:37 pm
Ok, then it's probably missing some dependencies. Do you have OpenSSL installed? If so, which version?
Host is Windows not Amiga and target ist plain Raspian on RaspPi.

Re: hURL Linking on Linux arm fails

Posted: Fri May 10, 2019 3:20 pm
by airsoftsoftwair
Yes, I know but there are dependencies on Linux as well, see:

Code: Select all

$ readelf -d hurl.hwp

Dynamic section at offset 0x76f08 contains 29 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libssl.so.1.0.0]
 0x00000001 (NEEDED)                     Shared library: [libcrypto.so.1.0.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [hurl.hwp]
 ...
 
libz, libpthread and libc should be available on every system but you must make sure that you have libssl (= OpenSSL) and libcrypto installed or it won't work. It could also be that you have an old version of OpenSSL (e.g. 0.9) installed. You need OpenSSL 1.x.

Re: hURL Linking on Linux arm fails

Posted: Tue Jul 28, 2020 5:38 pm
by fingus
airsoftsoftwair wrote:
Fri May 10, 2019 3:20 pm
Yes, I know but there are dependencies on Linux as well, see:

Code: Select all

$ readelf -d hurl.hwp

Dynamic section at offset 0x76f08 contains 29 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libssl.so.1.0.0]
 0x00000001 (NEEDED)                     Shared library: [libcrypto.so.1.0.0]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.6]
 0x0000000e (SONAME)                     Library soname: [hurl.hwp]
 ...
 
libz, libpthread and libc should be available on every system but you must make sure that you have libssl (= OpenSSL) and libcrypto installed or it won't work. It could also be that you have an old version of OpenSSL (e.g. 0.9) installed. You need OpenSSL 1.x.
I proof that, all shared object librarys are there in the expected minimal versions.

Re: hURL Linking on Linux arm fails

Posted: Thu Jul 30, 2020 11:06 am
by fingus
I did the sudo apt-get libssl-dev update but i get still this error when trying ot load the hurl-plugin with Loadplugin:

Code: Select all

Can´t load plugin: libssl.so 1.0.0: cannot open shared onject file: No such file or directoy.
When trying to link hurl to the exe i got this error:

Code: Select all

This program requries hurl.hwp
I did Download the Linux Version of hurl and choose the arm-version for my RaspBerry Pi Zero on Raspbian.