Author Topic: BASS for iOS (iPhone/iPad)  (Read 697151 times)

Chris

  • Posts: 1945
Re: BASS for iOS (iPhone/iPad)
« Reply #1425 on: 20 May '21 - 12:00 »
Just try 
Code: [Select]
dependency 'stdc++'

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1426 on: 21 May '21 - 16:46 »
[DCC Error] E2597 ld: library not found for -lstdc++
 :'(

Chris

  • Posts: 1945
Re: BASS for iOS (iPhone/iPad)
« Reply #1427 on: 21 May '21 - 22:31 »
which sdk have you in your SETUP?
Tools|Options, Deployment > SDK Manager ?

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1428 on: 24 May '21 - 15:27 »
already sayd 14.5. The previous sdk (13.6) worked great,
don't tell me use 13.6 becouse apple now need 14.5 to publish an app... :'( :'( :'(

Ian @ un4seen

  • Administrator
  • Posts: 23619
Re: BASS for iOS (iPhone/iPad)
« Reply #1429 on: 25 May '21 - 13:17 »
Does RAD Studio have a "Deployment Target" option? If so, what is that set to, and does lowering it help? Can you try other iOS 14 SDK versions (eg. 14.0) or is 14.5 the only version available?

The BASS_APE and TAGS add-ons also require the standard C++ library, so I guess you get the same errors if you try removing BASS_FX from your code and using either of them?

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1430 on: 25 May '21 - 17:47 »
yes i use developement target... A.Store only when i must publish..
Never used BASS_APE , can you tell me some function in .pas like this below??
eg .. function BASS_Encode_Start(handle:HSTREAM; cmdline:PChar; flags:DWORD; proc:ENCODEPROC; user:Pointer): HENCODE;cdecl; external 'libbassenc.a' name 'BASS_Encode_Start';
Actually cannot downgrade less of 14.5 (need this version of xcode)

Ian @ un4seen

  • Administrator
  • Posts: 23619
Re: BASS for iOS (iPhone/iPad)
« Reply #1431 on: 26 May '21 - 15:34 »
yes i use developement target... A.Store only when i must publish..

No, I meant the "Deployment Target" setting, which sets the minimum iOS version that's required by the app. Here's what it looks like in Xcode:

   https://developer.apple.com/library/archive/documentation/ToolsLanguages/Conceptual/Xcode_Overview/WorkingwithTargets.html

Does RAD Studio have that option?

Never used BASS_APE , can you tell me some function in .pas like this below??

BASS_APE only has 2 functions: BASS_APE_StreamCreateFile and BASS_APE_StreamCreateFileUser. You can get the BASS_APE.PAS file from the Win32 BASS_APE package (on the BASS webpage).

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1432 on: 26 May '21 - 15:39 »
i found my self...
BASS_APE is OK!! , bass_FX not :-\

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1433 on: 26 May '21 - 15:47 »
i've
in compiler -> linking options
Minimum iOS version supported = 11.0

Ian @ un4seen

  • Administrator
  • Posts: 23619
Re: BASS for iOS (iPhone/iPad)
« Reply #1434 on: 26 May '21 - 16:46 »
i found my self...
BASS_APE is OK!! , bass_FX not :-\

That's strange. Did you add a BASS_APE function call to your code? If not, please try that, because the linker probably won't include the BASS_APE library in the app if it isn't actually used.

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1435 on: 26 May '21 - 17:25 »
Yes , if you see the attachement you can see your self..
i added
function BASS_APE_StreamCreateFile(mem: BOOL; f: Pointer; offset, length: QWORD; flags: DWORD): HSTREAM; cdecl; external 'libbass_ape.a' name 'BASS_APE_StreamCreateFile';
and libbass_ape.a in the project root (where is bass, bassmidi etc..)... and it work
edit : In the example i send you i don't call BASS_FX and dont call BASS_APE..just declare bass_fx and crash

EDIT2.... While bassfx fails also if it is not call, bass_ape fails when i call in the code
now i added   : tests:=BASS_APE_StreamCreateFile(false,nil,128,0,0);  and compiler fails with same errors...
_ZdlPv etc.... 
Any solutions?? i need use bass_fx..
« Last Edit: 27 May '21 - 10:35 by promusicbisceglie »

promusicbisceglie

  • Posts: 20
Re: BASS for iOS (iPhone/iPad)
« Reply #1436 on: 27 May '21 - 12:02 »
I found a solution!!
I 've copied libc++.dylib from ...SDKs\iPhoneOS13.6.sdk\usr\lib  to ...SDKs\iPhoneOS14.5.sdk\usr\lib
with old libc++.dylib compilation has been success !

Remember to add dependency 'c++' in BASS_FX declare funcion for iOS
« Last Edit: 27 May '21 - 18:00 by promusicbisceglie »

Ian @ un4seen

  • Administrator
  • Posts: 23619
Re: BASS for iOS (iPhone/iPad)
« Reply #1437 on: 27 May '21 - 16:41 »
Good to see that you've found a solution! If anyone else encounters the same problem, they'll know what to do now.