hello i'm on ubuntu 20.04 with lazarus...
i've downloaded Bass to try and play music or just to test if it's working:
Copied libbass.so to /usr/lib and ran sudo ldconfig. No errors.
now I am trying to compile this code but I get errors
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, bass;
type
{ TForm1 }
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
if not BASS_Init(-1, 44100, 0, Pointer(Handle), nil) then showMessage ('Error');
end;
end.
the errors I get are these:
Compile Project, Target: project1: Exit code 1, Errors: 1
linker: /usr/bin/ld: skipping incompatible /lib//libbass.so when searching for -lbass
linker: /usr/bin/ld: skipping incompatible /usr/lib//libbass.so when searching for -lbass
linker: /usr/bin/ld: skipping incompatible /lib/libbass.so when searching for -lbass
linker: /usr/bin/ld: skipping incompatible /usr/lib/libbass.so when searching for -lbass
linker: /usr/bin/ld: cannot find -lbass
project1.lpr(21,1) Error: Error while linking
so is libbass.io library compatible with ubuntu linux?
what am I doing wrong?
thank you any help will be appreciated...