Author Topic: Using BASS with Delphi for ARM Macs  (Read 138 times)

dbaxter

  • Posts: 86
Using BASS with Delphi for ARM Macs
« on: 8 Nov '24 - 14:38 »
An application using BASS builds nicely for non-ARM Apple devices, but gives "[dccosxarm64 Error] E2597 ld: library not found for -lbass" error when set to build for ARM devices. This is using Delphi 12.2 on a Windows 11 machine connected to a Mac Mini. I realize this is on the fringe for this group, but hoping there are some BASS/Delphi users participating here. I suspect I'm missing a configuration setting somewhere. Thanks.

Ian @ un4seen

  • Administrator
  • Posts: 26172
Re: Using BASS with Delphi for ARM Macs
« Reply #1 on: 8 Nov '24 - 16:12 »
That looks like the linker can't find the libbass.dylib file. Is where you have it now working when you target x86_64 instead of arm64? If so, perhaps Delphi has a separate library search path setting for arm64? Also check you haven't removed the arm64 architecture from the libbass.dylib file, eg. using the makefile in the BASS package. If you have, you can re-download to get the full version.

dbaxter

  • Posts: 86
Re: Using BASS with Delphi for ARM Macs
« Reply #2 on: 8 Nov '24 - 22:42 »
Thanks, Ian. I am using the latest release (dated 9/23/23) as it comes. I agree it seems to be a path issue, but darned if I can figure out where Delphi wants it as opposed to the x86_64 version.

dbaxter

  • Posts: 86
Re: Using BASS with Delphi for ARM Macs
« Reply #3 on: 9 Nov '24 - 15:38 »
The problem was indeed a configuration issue. You need to add the location of the dylib by typing it into Project > Options > Building > Delphi Compiler > Target > Search Path > click the dots and enter the directory. Not exactly your usual default path setting method.