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: Mon, 9 Mar 2020 08:49:00 +0000

Hi,
no much ideas, I would check the commands to see if there are some
weird options.
I usually do a clean and another "make V=1" to see the full commands.
The important ones are a compile command and a final link one, with
all options. Can you post them?
I don't have a Mac to try myself.

Regards,
Frediano


Il giorno ven 6 mar 2020 alle ore 15:17 Niklas Saers
<niklas AT saers.com> ha scritto:
>
> Hi Frediano,
> No, I haven’t made any progress, and I’d really appreciate some help. :-)
>
> The build script go.sh in https://github.com/niklassaers/freetds-ios
> <https://github.com/niklassaers/freetds-ios> will download FreeDTS, and
> build it from clean. So unless I’ve done something odd, I don’t think there
> should be leftovers from an old build. I just verified it by downloading
> the repo to an clean dir and running it. I still get the same error:
>
> ld: building for Mac Catalyst, but linking in dylib built for macOS, file
> '../../dblib/.libs/libsybdb.dylib' for architecture x86_64h
>
> If you’re on a Mac running Catalina, would you mind downloading the repo
> and running go.sh ? I expect you’ll get the same error, but perhaps you’ll
> have a better understanding as to why it comes?
>
> PS, Mac Catalyst architecture is x86_64-apple-ios13.0-macabi - no arm
> involved
>
> Cheers
>
> Niklas
>
>
> > On 6 Mar 2020, at 11.32, Frediano Ziglio <freddy77 AT gmail.com> wrote:
> >
> > 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
> > _______________________________________________
> > FreeTDS mailing list
> > FreeTDS AT lists.ibiblio.org
> > https://lists.ibiblio.org/mailman/listinfo/freetds
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> https://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page