problems compiling programs with libhpdf

199 views
Skip to first unread message

Domenico D'Oria

unread,
Apr 6, 2021, 4:38:34 AM4/6/21
to Harbour Users
My configuration.

Linux Ubuntu 20.04.2 lts 64

harbour r2103311837 64

harbour generated correctly using article on Harbour Language Wiki by Alain

all libs correctly generated

this is the hbhpdf.hbc content located in

/usr/local/share/harbour/contrib/hbhpdf/

description=libharu wrapper (PDF)

incpaths=.

headers=harupdf.ch

libs=${_HB_DYNPREF}${hb_name}${_HB_DYNSUFF}
libs=3rd/libhpdf/libhpdf.hbc

i found it in /opt/TuxPrograms/harbour/contrib/hbhpdf/3rd/libhpdf/

How to solve the problem ?

regards

Domenico

Alain Aupeix

unread,
Apr 6, 2021, 10:23:20 AM4/6/21
to harbou...@googlegroups.com, Domenico D'Oria
It seems you use my script to update harbour.
With it, it's normal that it's located in this folder. I must say that I don't use libhpdf

Can you give the command you launch to build harupdf ?

Thanks
A+
--

Alain Aupeix
Sites web : JujuLand | Pissobi-Lacassagne | Gadel
X.ubuntu 16.04 [ H.arbour 3.2.0dev (r2020-11-03 09:37) | Hw.gui 2.22-4-r2921 | G.ramps 5.1.2


Domenico D'Oria

unread,
Apr 6, 2021, 12:10:12 PM4/6/21
to Harbour Users

Hi Alain , tank for your interest in this problem,

i have downloaded libharu from http://libharu.org/ -> ./configure -> make install in my home directory /home/nikko/libharu  as suggested in harbour core github page

after i found it in /usr/local/lib/

libhpdf.a
libhpdf.so ( link to libhpdf-2.4.0dev-so )
libhpdf-2.4.0dev-so

Domenico D'Oria

unread,
Apr 7, 2021, 6:44:54 AM4/7/21
to Harbour Users
after more investigation on two ubuntu 20.04.02 servers

i have copied the source on the "old" ubuntu 20.04.02 lts server, ( updated ) from 20.04
in this server i have harbour 2011030937

if i compile the same hbp with hpdf non problems all is linked correctly

on the new server ubuntu 20.04.02 lts server, installed from the last iso but with harbour 2103321837
when i compile the same hbp with hpdf the problem arise and the binary cannot be created.

So i suppose, even if i'm not sure at 100% that something change with the last commit

So i have to ask to  Aleksander Czajczynski or any other,  if could investigate on this issue

regards

Domenico

Francesco Perillo

unread,
Apr 7, 2021, 7:17:04 AM4/7/21
to harbou...@googlegroups.com
if you use hbmk2 add the flag to display all the commands issued by the program (can't remember, verbos? debug?) and check on the working server which directories and files it is using
do the same on the other server and please check if hbmk2 reports a missing element... hbmk2 doesn't stop in it can't find a .hbc, for example...

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/2f6cbf16-5a1f-447e-b849-34168bed02a1n%40googlegroups.com.

Domenico D'Oria

unread,
Apr 7, 2021, 10:01:58 AM4/7/21
to Harbour Users
I must apologize,  probably i have not see well the terminal, even with harbour 2011030937 i receive this error

Warning: Cannot find 3rd/libhpdf/libhpdf.hbc (referenced from
                  /usr/local/share/harbour/contrib/hbhpdf/hbhpdf.hbc)

clearly 3rd/libhpdf/libhpdf.hbc  does not exists

so i create the directories and copy from harbour the file libhpdf.hbc

this is the output

hbmk2: Auto-detected platform: linux
hbmk2: Auto-detected C compiler: gcc
hbmk2: Using Harbour: /usr/local/bin /usr/local/include/harbour
       /usr/local/lib/harbour /usr/local/lib/harbour
       /usr/local//share/harbour/contrib /usr/local//share/harbour/addons
hbmk2: Processing: /usr/local/share/harbour/contrib/hbtip/hbtip.hbc
hbmk2: Processing: /usr/local/share/harbour/contrib/hbhpdf/hbhpdf.hbc
hbmk2: Processing:
       /usr/local/share/harbour/contrib/hbhpdf/3rd/libhpdf/libhpdf.hbc

this is the hpdf.hbc content

description=libharu wrapper (PDF)

incpaths=.

headers=harupdf.ch

libs=${_HB_DYNPREF}${hb_name}${_HB_DYNSUFF}
libs=3rd/libhpdf/libhpdf.hbc

same error

after i tried sudo ldconfig -v

same error

probably there be something wrong on ubuntu 20.04.02 lts

should be interesting if someone could make test with this library on other recent linux  debian based distros

regards
Reply all
Reply to author
Forward
0 new messages