Skip to Content.
Sympa Menu

freetds - Re: [freetds] Cross-compiling for Mac Catalyst

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Cross-compiling for Mac Catalyst
  • Date: Fri, 6 Mar 2020 10:32:41 +0000

Il giorno mer 26 feb 2020 alle ore 16:18 Niklas Saers
<niklas AT saers.com> ha scritto:
>
> Hi,
> First of all thanks for all the hard work that has been put into this
> project, and thank you very much for letting me join the list.
>
> I'm trying to cross-compile FreeTDS for the different iOS platforms and for
> Mac Catalyst. I've made a project with my scripts at
> https://github.com/niklassaers/freetds-ios
>
> If you clone it and run go.sh, it compiles iOS versions for arm64e, arm64,
> armv7s, armv7 and the simulator, plus a catalyst version. It goes seemingly
> fine for the iOS versions, but for Mac Catalyst, I get the following error:
>
> ld: building for Mac Catalyst, but linking in dylib built for macOS, file
> '../../dblib/.libs/libsybdb.dylib' for architecture x86_64h
>
> Any idea why I get this linker error, and how I can resolve it?
>
> My build script for the Mac Catalyst build by itself is here:
> https://raw.githubusercontent.com/niklassaers/freetds-ios/master/build-catalyst-2.sh
>
> Cheers
>
> Niklas

Hi,
did you solve this?

>From the message looks like some kind of leftover from an old build or
picking up a library for another architecture.
Unless for some reason you manage to compile for x86_64 and attempting
linking with arm.

Regards,
Frediano




Archive powered by MHonArc 2.6.24.

Top of Page