<div dir="ltr">I used Firebird a few years ago, I'm not sure what could be wrong. How do you inicialize Firebird? I had to load libraries manually with something like this:<div><br></div><div><div> LoadLibrary(ExtractFilePath(Application.ExeName) + 'lib/libstdc++.so.5.0.7');</div><div> LoadLibrary(ExtractFilePath(Application.ExeName) + 'lib/libicudata.so.30.0');</div><div> LoadLibrary(ExtractFilePath(Application.ExeName) + 'lib/libicuuc.so.30.0');</div><div> LoadLibrary(ExtractFilePath(Application.ExeName) + 'lib/libicui18n.so.30.0');</div><div> DataBase.DatabaseName := fDataDir + 'cqrlog.fdb';</div><div> DataBase.UserName := 'SYSDBA';</div><div> DataBase.PassWord := 'masterkey';</div><div> DataBase.LibraryName := ExtractFilePath(Application.ExeName) + 'lib/libfbembed.so.2.1.1';</div></div><div><br></div><div>but I used UIB components. Also had to do some changes to firebird.conf. I'm sorry, don't remeber details :(.</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-27 16:19 GMT+02:00 FreeMan <span dir="ltr"><<a href="mailto:freeman35@delphiturkiye.com" target="_blank">freeman35@delphiturkiye.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On <a href="tel:27.08.2015%2016" value="+12708201516" target="_blank">27.08.2015 16</a>:25, Petr Hložek wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My app has also 64bit support and works. I use setenv also in 64bit system but only in linux. Maybe that is the problem. The link I sent before, was from old source code.<br>
<br>
I use this unit to disable Ubuntu scrollbars using LIBOVERLAY_SCROLLBAR variable. It doesn't use libc unit in uses but loads it directly from so file.<br>
<br>
<a href="https://github.com/ok2cqr/cqrlog/blob/master/src/uScrollBars.pas" rel="noreferrer" target="_blank">https://github.com/ok2cqr/cqrlog/blob/master/src/uScrollBars.pas</a><br>
<br>
Petr<br>
</blockquote></span>
Thank you Petr,<br>
First link in <a href="http://sourceforge.net" rel="noreferrer" target="_blank">sourceforge.net</a>, This files and "src" folder not there. I founded similar code in some gtk..... file and I tried from that. But this last example from your link, and file. setenv function result return 0 If I'm not wrong this mean is success. Someting is wrong but what is wrong ? :)<br>
<br>
program fb_embed_test;<br>
<br>
{$mode objfpc}{$H+}<br>
<br>
uses<br>
{$IFDEF UNIX}{$IFDEF UseCThreads}<br>
cthreads,<br>
{$ENDIF}{$ENDIF}<br>
Interfaces, // this includes the LCL widgetset<br>
sysutils,<br>
Forms, Unit1<br>
{ you can add units after this };<br>
<br>
{$IFDEF UNIX}<br>
function setenv(_para1:Pchar; _para2:Pchar; _para3:longint):longint;cdecl;external 'libc' name 'setenv';<br>
{$ENDIF UNIX}<br>
<br>
{$R *.res}<br>
var L : LongInt;<br>
begin<br>
L := setenv(PChar('FIREBIRD'), PChar(ExtractFilePath(Application.Exename)), 1);<br>
L := setenv(PChar('LD_LIBRARY_PATH'), PChar(ExtractFilePath(Application.Exename)), 1);<br>
RequireDerivedFormResource := True;<br>
Application.Initialize;<br>
Application.CreateForm(TForm1, Form1);<br>
Application.Run;<br>
end.<br>
<br>
<br>
and this is for test in unit1<br>
Memo1.Lines.Clear;<br>
Application.GetEnvironmentList(Memo1.Lines);<br>
I can not see that added variables. And can not access fbembeded.<div><div><br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br></div></div>