LetoDBF

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
apais
Posts: 274
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 33 times
Been thanked: 21 times
Contact:

Re: LetoDBF

Post by apais » Wed Apr 04, 2018 2:33 pm

In harbour group there is a more actual fork of LetoDB ( By Elch I think ) that has a LOT of bugs fixed.
HTH
Angel

User avatar
mol
Posts: 2985
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 160 times
Been thanked: 85 times
Contact:

Post by mol » Wed Apr 04, 2018 3:20 pm

I'll try to compile it. But, it uses Borland C++ compiler :(

User avatar
mol
Posts: 2985
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 160 times
Been thanked: 85 times
Contact:

Post by mol » Wed Apr 04, 2018 5:06 pm

Is anybody able to build leto with MinGW compiler?

User avatar
mol
Posts: 2985
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 160 times
Been thanked: 85 times
Contact:

Post by mol » Wed Apr 04, 2018 6:27 pm

My enthusiasm was too big :(
In Alex Kresin there are a lot of bugs to use it in production mode.
I don't know how to build nNew LetoDBF fork with mingw compiler to get fill compatibility with HMG.
I must abandon this work - 3 days of testing lost :(

User avatar
gfilatov
Posts: 545
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 10 times
Been thanked: 116 times
Contact:

Post by gfilatov » Wed Apr 04, 2018 6:43 pm

mol wrote:
Wed Apr 04, 2018 5:06 pm
Is anybody able to build leto with MinGW compiler?
Yes, it is.

My batch file for building of the rddleto library is below
@echo off
set OLDPATH=%PATH%

SET HMGPATH=c:\hmg

SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\mingw32\bin;%PATH%

HBMK2 rddleto %*

set HMGPATH=
set HMGRPATH=
set PATH=%OLDPATH%
You can build letodb server also if replace 'rddleto ' parameter with 'letodb' 8-)

Hope that helps :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein

User avatar
mol
Posts: 2985
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 160 times
Been thanked: 85 times
Contact:

Post by mol » Wed Apr 04, 2018 7:11 pm

I got an error:

Code: Select all

d:\projekty\letodbf>build_leto
hbmk2: Linking... bin\letodb.exe
bin/.hbmk/win/mingw/server.o:server.c:(.data+0xa18): undefined reference to `HB_FUN_HB_MEMIO'
collect2.exe: error: ld returned 1 exit status
hbmk2[letodb]: Error: Running linker. 1
gcc.exe bin/.hbmk/win/mingw/server.o bin/.hbmk/win/mingw/errorsys.o bin/.hbmk/win/mingw/common.o bin/.hbmk/win/mingw/errint.o bin/.hbmk/win/mingw/leto_win.o bin/.hbmk/win/mingw/letoacc.o bin/.hbmk/win/mingw/letovars.o bin/.hbmk/win/mingw/letofunc.o bin/.hbmk/win/mingw/letolist.o bin/.hbmk/win/mingw/leto_2.o bin/.hbmk/win/mingw/blowfish.o bin/.hbmk/win/mingw/common_c.o bin/.hbmk/win/mingw/_hbmkaut_server.o    -mwindows -Wl,--start-group -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib   -Wl,--end-group -obin/letodb.exe  -Ld:/hmg344/harbour/lib/win/mingw

hbmk2: Hint: Add option 'hbmemio.hbc' for missing function(s): HB_MEMIO()
I don't know how to include hb_memio()

User avatar
mol
Posts: 2985
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 160 times
Been thanked: 85 times
Contact:

Post by mol » Thu Apr 05, 2018 8:00 am

A little success!
I've compiled newest version of LetoDB by elch downloaded from GitHub.
It looks indexes works OK in this version.
I'll test it again :) and I'll report, maybe it will be useful for somebody...

User avatar
mol
Posts: 2985
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 160 times
Been thanked: 85 times
Contact:

Post by mol » Thu Apr 05, 2018 9:29 am

Server compiled by me runs as daemon, but leaves console screen. How can I hide console screen?

User avatar
bpd2000
Posts: 1013
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 163 times
Been thanked: 70 times

Post by bpd2000 » Thu Apr 05, 2018 10:25 am

mol wrote:
Thu Apr 05, 2018 9:29 am
Server compiled by me runs as daemon, but leaves console screen. How can I hide console screen?
It may help you
http://hmgforum.com/viewtopic.php?f=5&t ... ole#p46781
BPD
Convert Dream into Reality through HMG

Mario Mansilla
Posts: 223
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina
Been thanked: 2 times

Post by Mario Mansilla » Wed May 30, 2018 1:27 pm

Hola Mol :
me interesa conocer como trabaja LETODB para implementarlo en una pequeña aplicacion que solo lee stock de mercaderia entre sucursales distantes .
Pudiste crear la libreria para usarla con Mingw ?

Saludos
Mario Mansilla

Hello mol :
I am interested in knowing how LETODB works to implement it in a small application that only reads stock of merchandise among distant branches.
Could you create the library to use with Mingw?

regards
Mario Mansilla

Post Reply