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: Niklas Saers <niklas AT saers.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Cross-compiling for Mac Catalyst
  • Date: Fri, 1 May 2020 16:09:33 +0200

Hi Frediano and the rest of the team,
Sorry for the delay, I’m no-where closer than I was 1,5 month ago although
having given it many evenings.

To build the macOS Catalyst only version, I made a branch that does that:
https://github.com/niklassaers/freetds-ios/tree/catalyst-only
<https://github.com/niklassaers/freetds-ios/tree/catalyst-only>

Here I’ve included the full log with the make V=1:

https://raw.githubusercontent.com/niklassaers/freetds-ios/catalyst-only/build-catalyst.log

<https://raw.githubusercontent.com/niklassaers/freetds-ios/catalyst-only/build-catalyst.log>

Also, I’ve inlined in
https://raw.githubusercontent.com/niklassaers/freetds-ios/catalyst-only/build-catalyst-2.sh

<https://raw.githubusercontent.com/niklassaers/freetds-ios/catalyst-only/build-catalyst-2.sh>
some of the many different ways I’ve tried, and how the errors I’ve received
have been a bit different.

Does this ring a bell? Any suggestions to what I should try?

If anyone wants to give it a shot but doesn’t have access to macOS Catalina,
I have prepared a macOS VM on my iMac, that is available via SSH from the
internet. I’d be happy to give access to anyone who wants to give building it
a shot. Just shoot me a private email and I’ll provide the details

Cheers

Niklas

> On 9 Mar 2020, at 09.49, Frediano Ziglio <freddy77 AT gmail.com> wrote:
>
> 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 <mailto: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>
>> <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 <mailto:FreeTDS AT lists.ibiblio.org>
>> https://lists.ibiblio.org/mailman/listinfo/freetds
>> <https://lists.ibiblio.org/mailman/listinfo/freetds>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org <mailto:FreeTDS AT lists.ibiblio.org>
> https://lists.ibiblio.org/mailman/listinfo/freetds
> <https://lists.ibiblio.org/mailman/listinfo/freetds>




Archive powered by MHonArc 2.6.24.

Top of Page