Repository navigation
How to create Xcode IDE environment for QMapShack and QMapTool on macOS #1329
|
Hi, So far I have used qDebug for analysing issues, but this is very cumbersome. I want to use Xcode project for building QMapShack, but I until now I have failed to setup such an environment. I run the first clean.sh and then sh build-all.sh -x | tee log.txt. The source (src) folder is almost empty also there is .xcodeproj file to open in Xcode IDE. Do I some wrong? Need help! My environment: |
Replies: 6 comments 9 replies
|
The current That branch invokes CMake with Your command captures standard output but not standard error. From the same directory, capture both: sh build-all.sh -x 2>&1 | tee log-x.txtThen check the first CMake error before the “project written” message. The generated project is expected under Could you share the first CMake error and your CMake/Xcode versions? That should identify why project generation stops. |
|
Please have a look into procedure build-QMS.sh called by build-all.sh ... ... and see comment # BROKEN: Create Xcode project for debugging. What about replacing I was able to debug executable using lldb debugger. |
|
Missing Java? Run |
|
I have changed to -DCMAKE_BUILD_TYPE=Release and run sh build-all.sh -x 2>&1 | tee log-x.txt These are errors in the log file, line number:
Log file: I have installed CMake version 4.5.1, Xcode app version 27, no java installed. |
|
Thanks for the clear description, it's working now. I have made a mistake editing the Xcode branch instead of the Non Xcode.😔 Thanks a lot. |
|
Trying to build a debuggable Xcode project, CMake errors/warnings were thrown: Identical errors/warnings are thrown for targets "qmapshack", "qms_surfacedb", "qmaptool", "qmt_rgb2pct", "qmt_map2jnx". Instead of trying with or without success to adjust corresponding src/<target>/CMakeLists.txt files, broken Xcode build code will be removed totally and a new configuration switch |

@TheoW11, while the process is stopped at your breakpoint, enter these commands at the
(lldb)prompt:frame variablelists the arguments and local variables available in the selected stack frame. To inspect specific parameters ofdrawPolylines, use:There is another detail in your trace: LLDB displays assembly instructions without a source filename or line number. A function-name breakpoint can work even when the debug information needed for local variables is unavailable.
If the commands above show no variables or report that the names cannot be found, try these changes for your local debugging build:
M…