AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Cross-Platform-Entwicklung iOS Wie kann ich eine unter C++ compilierte Static-Library für iOS deployen?
Thema durchsuchen
Ansicht
Themen-Optionen

Wie kann ich eine unter C++ compilierte Static-Library für iOS deployen?

Ein Thema von philipp.hofmann · begonnen am 12. Apr 2021 · letzter Beitrag vom 13. Apr 2021
 
philipp.hofmann

Registriert seit: 21. Mär 2012
Ort: Hannover
864 Beiträge
 
Delphi 10.4 Sydney
 
#1

Wie kann ich eine unter C++ compilierte Static-Library für iOS deployen?

  Alt 12. Apr 2021, 15:34
Hi,

für Windows deploye ich ein dll-Datei via Project-Deployment-Settings in den Remote-Path .\ und importiere die Funktionen:
  function initANTplus(): boolean; cdecl; external ANTplusLib; Für MacOS deploye ich die dylib-Datei via Project-Deployment-Settings in den Remote-Path Contents\MacOS\ und importiere die Funktionen folgendermaßen:
Delphi-Quellcode:
    handle:=LoadLibrary(PChar(IncludeTrailingPathDelimiter(libPath)+ANTplusLib));
    if (handle<>0) then
    begin
      @initANTplus:=GetProcAddress(handle,'initANTplus');
Aber wie erfolgt dies für iOS. Ich habe jetzt die static-Library (libAntPlusConnector.a) kompiliert, aber wie deploye ich diese mit meiner Delphi-App?
Ich gehe davon aus, dass ich die Funktionen analog zu MacOS importiere (nur ohne Pfadangabe bei LoadLibrary), aber aktuell findet er die Library einfach nicht:
Delphi-Quellcode:
    handle:=LoadLibrary(PChar(ANTplusLib));
    if (handle<>0) then
    begin
      @initANTplus:=GetProcAddress(handle,'initANTplus');
Wo muss ich die Datei libAntPlusConnector der Anwendung bekannt machen?

Grüße, Philipp

Geändert von philipp.hofmann (12. Apr 2021 um 15:40 Uhr)
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:14 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz