First run in mac os x lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- xinyiman · 2016-05-05 15:59 Hello guys i installed lazarus 1.7 with fpc 3.1.1 through the script I found on this page www.getlazarus.org/setup/?download I created a first application with a form that contains a TButton and a TMemo. I saved, then I launched the compilation but I get these errors. Why? Thank you Hint: (11030) Start of reading config file /Users/francesco/Development/FreePascal/fpc/bin/fpc.cfg Hint: (11031) End of reading config file /Users/francesco/Development/FreePascal/fpc/bin/fpc.cfg Free Pascal Compiler version 3.1.1 [2016/01/18] for i386 Copyright (c) 1993-2015 by Florian Klaempfl and others (1002) Target OS: Darwin for i386 (3104) Compiling project1.lpr (9001) Assembling (pipe) /Users/francesco/Desktop/Laz- test/lib/i386-darwin/project1.s (9022) Compiling resource /Users/francesco/Desktop/Laz- test/lib/i386-darwin/project1.or (9015) Linking project1 ld: file not found: /usr/lib/crt1.o An error occurred while linking project1.lpr(22) Error: (9013) Error while linking project1.lpr(22) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: /Users/francesco/Development/FreePascal/fpc/bin/ppc386 returned an error exitcode ---------------------------------------------------------------------- Phil · 2016-05-05 16:37 Do you have Xcode's command line utilities installed? http://www.freepascal.org/down/i386/macosx-netherlands.var -Phil ---------------------------------------------------------------------- jwdietrich · 2016-05-05 16:41 Do you get the same error with Lazarus and Free Pascal from the standard distribution? ---------------------------------------------------------------------- xinyiman · 2016-05-09 09:41 Do you think the problem can be the version XCode? Version 7.3 (7D175) ---------------------------------------------------------------------- Phil · 2016-05-09 14:30 You haven't answered the above questions, I note. http://wiki.freepascal.org/OS_X_Programming_Tips#Xcode_5_and_above Note Xcode 7.3 requires OS X 10.11 (El Capitan). ---------------------------------------------------------------------- xinyiman · 2016-05-09 14:37 Quote from: Phil on May 05, 2016, 06:37:18 pmDo you have Xcode's command line utilities installed? http://www.freepascal.org/down/i386/macosx-netherlands.var -Phil Yessss, with command: xcode-select --install ---------------------------------------------------------------------- xinyiman · 2016-05-09 14:44 Quote from: jwdietrich on May 05, 2016, 06:41:39 pmDo you get the same error with Lazarus and Free Pascal from the standard distribution? I failed to install fpc. He tells me that the hard disk on which I want to install does not fit: You have to install Xcode and its command line tools before installing this package. But in reality it's all properly installed ---------------------------------------------------------------------- Phil · 2016-05-09 14:52 Both FPC and the linker think you haven't installed the command line tools. Check that you have /usr/lib/crt1.o   mdfind -name crt1.o If you don't have that file, then you probably haven't successfully installed the command line tools. Note that you get the same error on Ubuntu if you haven't installed the libc developer package. You can also download the installer from the Apple Developer center. The file you want is:   Command_Line_Tools_OS_X_10.11_for_Xcode_7.3.1.dmg ---------------------------------------------------------------------- xinyiman · 2016-05-09 15:06 The command mdfind -name crt1.o I do not give me any results. Please send me the link where to find Command_Line_Tools_OS_X_10.11_for_Xcode_7.3.1.dmg Thank you ---------------------------------------------------------------------- Phil · 2016-05-09 16:27 https://developer.apple.com/xcode/download/ Click on Additional Tools and log in. ---------------------------------------------------------------------- xinyiman · 2016-05-10 06:45 Perfect now creates the executable, but if you do I debug my application tells me I have a debugger error. However, the executable it creates ---------------------------------------------------------------------- xinyiman · 2016-05-10 08:58 Yet I do not understand, the debugger is properly set. Because if I launch the executable path from terminal responds. My path /opt/local/bin/ggdb ---------------------------------------------------------------------- xinyiman · 2016-05-10 13:02 Reinstalling the full version now runs I debugging. But I do not see any results. I compile the program but when he has to show me the form for debugging remains constantly on "(debug ...)" then I can not not even close. ---------------------------------------------------------------------- jwdietrich · 2016-05-10 17:52 Quote from: xinyiman on May 10, 2016, 03:02:29 pmReinstalling the full version now runs I debugging. But I do not see any results. I compile the program but when he has to show me the form for debugging remains constantly on "(debug ...)" then I can not not even close. Your description is very vague and hard to understand. What do you want to say with "now runs I debugging"? Which "results" do you expect? What can't you close? ---------------------------------------------------------------------- xinyiman · 2016-05-12 07:04 Pretty much look at the picture I attached, remains perpetually in debug, the application does not appear to prove. The compilation, but I do not do debug. And if I try to close the ide me it does not close, if I try to stop the debugging I did not stop. ---------------------------------------------------------------------- xinyiman · 2016-05-12 11:23 I applied the following and now debugging does not block me the ide. But I get this error in the attached The IDE can be started. The IDE will begin by checking your Mac, to see if all necessary requirements are installed. If you have installed Free Pascal in its default location, then Lazarus will find the sources and the compiler binary as well as make. It may not find the debugger, and will present you with a warning. Change the debugger to /opt/local/bin/ggdb. Now start Lazarus and go to “Tools” – “Options” – “Debugger” – “General” and make sure the “Debugger path and type” to “GNU Debugger (gdb)” is “/opt/local/bin/ggdb“. For every project go to the menu “Project” – “Project Options …” – “Compiler Options” – “Linking” and under “Debugging Info” set “Choose type of debug info” to “Dwarf with sets (-gw -godwarfsets)“.