LetoDBF

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: LetoDBF

Post by apais »

In harbour group there is a more actual fork of LetoDB ( By Elch I think ) that has a LOT of bugs fixed.
HTH
Angel
Angel Pais
Web Apps consultant/architect/developer.
HW_apache (webserver modules) co-developer.
HbTron (Html GUI for harbour desktop hybrid apps) co-developer.
https://www.hbtron.com
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LetoDBF

Post by mol »

I'll try to compile it. But, it uses Borland C++ compiler :(
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LetoDBF

Post by mol »

Is anybody able to build leto with MinGW compiler?
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LetoDBF

Post by mol »

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: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: LetoDBF

Post by gfilatov »

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: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LetoDBF

Post by mol »

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: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LetoDBF

Post by mol »

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: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: LetoDBF

Post by mol »

Server compiled by me runs as daemon, but leaves console screen. How can I hide console screen?
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: LetoDBF

Post by bpd2000 »

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: 269
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: LetoDBF

Post by Mario Mansilla »

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