<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
..MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Ok, so I got through the dependencies (meta-gtk-osx-core), and ran:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>export LC_ALL=en_US.UTF-8<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>export LANG=en_US.UTF-8<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>jhbuild -m geany.modules build geany-bundle<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>…<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>*** Building libgit2 *** [14/26]<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>make -j 9<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>[  0%] Linking C shared library libgit2.dylib<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>[ 79%] Built target libgit2_clar<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>dyld: lazy symbol binding failed: Symbol not found: _utimensat<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  Referenced from: /Users/sblatnick/gtk/inst/bin/cmake<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  Expected in: /usr/lib/libSystem.B.dylib<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>dyld: Symbol not found: _utimensat<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  Referenced from: /Users/sblatnick/gtk/inst/bin/cmake<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  Expected in: /usr/lib/libSystem.B.dylib<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>make[2]: *** [libgit2.dylib] Abort trap: 6<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>make[2]: *** Deleting file `libgit2.dylib'<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>make[1]: *** [CMakeFiles/git2.dir/all] Error 2<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>make: *** [all] Error 2<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>*** Error during phase build of libgit2: ########## Error running make -j 9  *** [14/26]<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  [1] Rerun phase build<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  [2] Ignore error and continue to install<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  [3] Give up on module<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  [4] Start shell<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  [5] Reload configuration<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Courier New"'>  [6] Go to phase "wipe directory and start over"<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m not sure what is going wrong with building geany itself.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Steve<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>From:</b> Devel [mailto:devel-bounces@lists.geany.org] <b>On Behalf Of </b>Jirí Techet<br><b>Sent:</b> Friday, September 22, 2017 3:02 AM<br><b>To:</b> Geany development list <devel@lists.geany.org><br><b>Subject:</b> Re: [Geany-Devel] OSX plugin development<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Steve,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I slightly remember I got an error like this one in the past but I don't remember what exactly the problem was. Anyway, it's not good to mix dependencies from homebrew and jhbuild. If you have some environment variables set up to link against homebrew libraries, this is what could cause problems. I created a separate account on my machine from which I do the Geany build to be sure nothing like that is set up.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>If you keep getting the error, you might also consider building python as part of the build process which is then used instead of the system python for the rest of the build. This means running<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>jhbuild bootstrap<o:p></o:p></p></div><div><p class=MsoNormal>jhbuild python<o:p></o:p></p></div><div><p class=MsoNormal>jhbuild build meta-gtk-osx-bootstrap<o:p></o:p></p></div><div><p class=MsoNormal>jhbuild build meta-gtk-osx-core<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>When doing a change like that, it's best to remove the gtk directory because it changes dependencies and basically everything has to be rebuilt.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>Apart from that everything else should work as described here:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="https://github.com/geany/geany-osx">https://github.com/geany/geany-osx</a><o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>When al the dependencies are built, you should be able to use the same stuff you use under linux for building your plugin. But be sure to run the build within a jhbuild shell - you need to run<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>jhbuild shell<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>which sets up the environment variables to use the dependencies built by jhbuild after you should be able to build your plugin in a normal way.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Let me know if you run into more problems.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Cheers,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Jiri<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Sep 22, 2017 at 12:00 AM, <<a href="mailto:steve8track@yahoo.com" target="_blank">steve8track@yahoo.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’m trying to build plugins in OSX, and I’m a bit out of my element.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>(I’ve had problems with my yahoo email not getting through to this list, but I haven’t had a chance to switch email accounts.  I hope this makes it.)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’m following the guide on <a href="https://github.com/geany/geany-osx" target="_blank">https://github.com/geany/geany-osx</a><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I get stuck running in step 6:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>jhbuild build meta-gtk-osx-bootstrap<br>…</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>checking for python module libxml2... ./configure: line 2422: 83400 Done                    echo "import $py_module"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>     83401 Abort trap: 6           | python - >&/dev/null</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>not found</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>configure: error: Python module libxml2 is needed to run this package</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>*** Error during phase configure of itstool: ########## Error running ../configure --prefix /Users/steve/gtk/inst    *** [7/12]</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [1] Rerun phase configure</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [2] Ignore error and continue to build</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [3] Give up on module</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [4] Start shell</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [5] Reload configuration</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [6] Go to phase "wipe directory and start over"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [7] Go to phase "clean"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>  [8] Go to phase "distclean"</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’ve installed libxml2 via homebrew, and py-libxml2 and py27-libxml2 via macports to no avail.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I figured out how to build the .o file for one of my plugins:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in'><span style='font-family:"Courier New"'>gcc -c quick-search.c -fPIC -std=c99 -DGTK -I /Users/steve/projects/geany/geany/plugins/ -I /Users/steve/projects/geany/geany/src/ -I /Users/steve/projects/geany/geany/tagmanager/src/  -I /Users/steve/projects/geany/geany/scintilla/include/ `pkg-config --cflags glib-2.0` `pkg-config --cflags gtk+-2.0` -I /Users/steve/projects/geany/geany/scintilla/</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>But not the ...so file.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thanks for any help,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Steve<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_______________________________________________<br>Devel mailing list<br><a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br><a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>