From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.5 required=3.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:6684:0:b0:3a8:2b88:81cd with SMTP id d4-20020ac86684000000b003a82b8881cdmr3908457qtp.176.1673520716101; Thu, 12 Jan 2023 02:51:56 -0800 (PST) X-Received: by 2002:a0c:8e8a:0:b0:531:913e:3ba3 with SMTP id x10-20020a0c8e8a000000b00531913e3ba3mr3624061qvb.37.1673520715942; Thu, 12 Jan 2023 02:51:55 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 12 Jan 2023 02:51:55 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=118.208.176.39; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 118.208.176.39 References: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com> <9becf5e6-1e77-4711-a4bb-1c7a5465e804n@googlegroups.com> <8f87c00c-1043-4452-8cee-ce437c0fafcfn@googlegroups.com> <29948ab4-9b39-4996-bcb8-3a2f7f509225n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <624d767b-ce04-46b0-8a5c-1999a86d3a1an@googlegroups.com> Subject: Re: Artificial Intelligence libraries in ADA From: Roger Mc Injection-Date: Thu, 12 Jan 2023 10:51:56 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 3112 Xref: reader01.eternal-september.org comp.lang.ada:64811 List-Id: On Thursday, January 12, 2023 at 9:32:23 PM UTC+11, roda...@gmail.com wrote: > I doubt using a path to one of the Python system versions will work :/ . Yes, it fails due to c_api.h wanting to reference other tensorflow/c header files I've just succeeded building tier-1 tensorflow by 1. modifying tier-1/tensorflow/library/tensorflow.gpr: for Source_Dirs use (".", "../source/**", "../../../../../Users/rogermcmurtrie/miniconda3/envs/tf/lib/python3.9/site-packages/tensorflow/include"); 2. modifying tensorflow_wrap: #include hello_TF compiles but link fails with: ld: library not found for -ltensorflow I think I should be able to fix this. > > Which OS are you using ? MacBook Air (13-inch, Early 2015). although purchased new from Apple in 2018! OSX restricted to version 10.13.6 High Sierra thanks to Apples planned obscelence policy. (although somewhat a blessing in disguise) GNAT Community 2021 (20210519) I also have a Mac_mini running OSX Ventura which has its own problems! However, I do have the latest GNAT working on it. If I can get this working on my MacBook Air I'll next try a Mac_mini Ventura version. I think tensorflow will build from source under Ventura.