@@ -124,54 +124,3 @@ for A in `find lib64 -name '*.so'`; do \
124
124
echo -e "\n##$A requirements:" && nm $A | grep ' U ' | \
125
125
sed 's/^.* \([^ ]*\)$/\1/' | grep -wFf- exportedsymbols | \
126
126
cut -d: -f1 | sort | uniq; done
127
-
128
- XCode project
129
- -------------
130
-
131
- There is an XCode project available in gnucash.xcodeproj at the root of the
132
- source tree. This project can be used with XCode on a Macintosh to debug
133
- GnuCash. It is not set up to build GnuCash, but only to debug it. Building must
134
- be done using the normal command line tools.
135
-
136
- Note this XCode project has not been updated since the big directory restructuring
137
- preceding the 2.7.1 release. So it will currently not find source files where
138
- it's expecting them.
139
-
140
- This project is designed to be used with the X Window version of GnuCash, not
141
- the native Quartz version. To use it you must build and install GnuCash into
142
- directories "build" and "install" parallel to the source directory. Furthermore
143
- the architecture dependent parts of the install are put in a subdirectory
144
- "install/darwin".
145
-
146
- To build, then, if the source directory is somewhere/gnucash you must create the
147
- directories somewhere/build/darwin and somewhere/install/darwin/bin, cd into
148
- somewhere/build/darwin and execute
149
-
150
- ../../gnucash/configure --prefix=../../install \
151
- --exec-prefix=../../install/bin \
152
- --enable-debug \
153
- ...other options...
154
- make
155
- make install
156
-
157
- This will build and install a copy of GnuCash that can be debugged using the
158
- XCode project.
159
-
160
- The debug target in the project is set with a build tool of /usr/bin/true so
161
- building in XCode won't hurt anything, it just won't do much. It is also set to
162
- not launch GnuCash automatically, but rather to wait for it to be launched
163
- manually. This lets you run it from a command prompt and see the console output
164
- which can often be useful. Hence to initiate a debugging session in XCode, tell
165
- XCode to run GnuCash then go to a terminal window and launch install/darwin/bin/gnucash
166
- with whatever options you want. XCode will notice that it has been launched and
167
- attach to the process.
168
-
169
- Since there seems to be no way to make the path to the executable a relative
170
- path, you must make one change to the debug scheme before you can run gnucash
171
- under XCode. In XCode 5 (other versions may be different) go to
172
- Product->Scheme->Edit Scheme and select the "info" tab of the "Run gnucash"
173
- pane. Select "Other..." in the "Executable" menu and select the installed binary
174
- for gnucash in the resulting file open dialog. This should be
175
- install/darwin/bin/gnucash as described above. This, and the act of opening the
176
- project in XCode, will change some of the files in the XCode project directory.
177
- You can, or course, commit these locally, but please don't push them upstream.
0 commit comments