Recent

Author Topic: Trying to Install 3.0.2 - No Xcode Message  (Read 5654 times)

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Trying to Install 3.0.2 - No Xcode Message
« on: July 22, 2017, 12:01:07 am »
Hi,

I am trying to install FP 3.0.2 on Mac OS 10.12.5 Sierra.   When I agree to license, the install program states Xcode is not installed.   But according to this it is:

Code: Pascal  [Select][+][-]
  1. Mac-OS-X-KUGS-C01:~ ds$ xcode-select --version
  2. xcode-select version 2347.
  3.  

I am using File Vault on the hard drive but I don't think that would cause a problem.  Please advise.

Thanks
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #1 on: July 22, 2017, 12:10:55 am »
I am trying to install FP 3.0.2 on Mac OS 10.12.5 Sierra.   When I agree to license, the install program states Xcode is not installed.   But according to this it is:

Variations of your question have been asked here before. Make sure you have the Apple command line tools installed.

See the Getting Started.rtf file included in fpc-3.0.2.intel-macosx.dmg.


Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #2 on: July 22, 2017, 12:17:11 am »
Mac-OS-X-KUGS-C01:~ ds$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

So appears command line tools are installed.  Should I do I re-install of Xocde?
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #3 on: July 22, 2017, 12:23:44 am »
So appears command line tools are installed.  Should I do I re-install of Xocde?

Those are the command line tools included with Xcode.app.

See if you have the command line tools installed separately:

ls -l /usr/bin/gcc


Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #4 on: July 22, 2017, 01:23:41 am »
Folder was empty.   Installed Xcode again and then install was fine.  Thanks!
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #5 on: July 22, 2017, 01:35:10 am »
Folder was empty.   Installed Xcode again and then install was fine.  Thanks!

The command line tools are actually installed here:

/Library/Developer/CommandLineTools

I always install using the separate command line tools installer from Apple's dev site (eg, Command_Line_Tools_macOS_10.11_for_Xcode_8.2.dmg).

Xcode.app contains it own copies of the command line tools, but I don't think FPC can use these, Hence, the "xcode-select install" in Getting Started.rtf.

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #6 on: July 22, 2017, 11:31:54 pm »
Trying to set up Lazarus but cannot find gdb file.  Command line tools appear to be installed as I have /Library/Developer/CommandLineTools/usr/bin with make etc.   If my understanding is correct, where to I get the gdb from? 

I have Xcode 8.3.3 and see no command line tools particular to that Xcode build at Appl Dev site so assume it is all inclusive.
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #7 on: July 23, 2017, 02:32:16 am »
Installed 8.3 command line tools and still no gdb.   Upon further reading on web it appears gdb is not included with Apple CLT anymore and the gdb program is not compatible with Mac OS Sierra due to security feature changes.  Can I proceed without gdb?
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #8 on: July 23, 2017, 02:40:56 am »
Installed 8.3 command line tools and still no gdb.   Upon further reading on web it appears gdb is not included with Apple CLT anymore and the gdb program is not compatible with Mac OS Sierra due to security feature changes.  Can I proceed without gdb?

Apple moved away from gcc/gdb years ago and now includes llvm/lldb with Xcode. You have several options:

- Run without debugger. On 1.8 you can Run | Run without Debugging.

- Debug with lldb at command line.

https://developer.apple.com/library/content/documentation/IDEs/Conceptual/gdb_to_lldb_transition_guide/document/lldb-terminal-workflow-tutorial.html#//apple_ref/doc/uid/TP40012917-CH4-SW1

- Export Laz project to Xcode and debug it there.

https://macpgmr.github.io/ObjP/ProjectXC.html

- Maybe, just maybe you can get gdb running, but the reports are mixed. I don't even bother trying.

https://www.freepascal.org/~michael/articles/lazonmac/lazonmac.pdf


Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: Trying to Install 3.0.2 - No Xcode Message
« Reply #9 on: August 09, 2017, 09:15:58 pm »
Going the Xcode route, where should I install projectxc-src.zip?
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

 

TinyPortal © 2005-2018