[Geany-Devel] OSX plugin development

Jiří Techet techet at xxxxx
Fri Sep 22 09:01:33 UTC 2017


Hi Steve,

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.

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

jhbuild bootstrap
jhbuild python
jhbuild build meta-gtk-osx-bootstrap
jhbuild build meta-gtk-osx-core

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.

Apart from that everything else should work as described here:

https://github.com/geany/geany-osx

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

jhbuild shell

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.

Let me know if you run into more problems.

Cheers,

Jiri

On Fri, Sep 22, 2017 at 12:00 AM, <steve8track at yahoo.com> wrote:

> I’m trying to build plugins in OSX, and I’m a bit out of my element.
>
>
>
> (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.)
>
>
>
> I’m following the guide on https://github.com/geany/geany-osx
>
>
>
> I get stuck running in step 6:
>
> jhbuild build meta-gtk-osx-bootstrap
>>
> checking for python module libxml2... ./configure: line 2422: 83400
> Done                    echo "import $py_module"
>
>      83401 Abort trap: 6           | python - >&/dev/null
>
> not found
>
> configure: error: Python module libxml2 is needed to run this package
>
> *** Error during phase configure of itstool: ########## Error running
> ../configure --prefix /Users/steve/gtk/inst    *** [7/12]
>
>
>
>   [1] Rerun phase configure
>
>   [2] Ignore error and continue to build
>
>   [3] Give up on module
>
>   [4] Start shell
>
>   [5] Reload configuration
>
>   [6] Go to phase "wipe directory and start over"
>
>   [7] Go to phase "clean"
>
>   [8] Go to phase "distclean"
>
>
>
> I’ve installed libxml2 via homebrew, and py-libxml2 and py27-libxml2 via
> macports to no avail.
>
>
>
> I figured out how to build the .o file for one of my plugins:
>
>
>
> 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/
>
>
>
> But not the ..so file.
>
>
>
> Thanks for any help,
>
>
>
> Steve
>
> _______________________________________________
> Devel mailing list
> Devel at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20170922/a094b116/attachment.html>


More information about the Devel mailing list