Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use the plugin with geany+gtk3? #199

Closed
PerfectCarl opened this issue Mar 8, 2015 · 13 comments
Closed

How can I use the plugin with geany+gtk3? #199

PerfectCarl opened this issue Mar 8, 2015 · 13 comments
Labels

Comments

@PerfectCarl
Copy link

I've built geany with gtk3 with

        ./autogen.sh  --enable-gtk3 --disable-html-docs --prefix=/usr
        make 
        sudo make install 

And then installed the plugins via

sudo apt-get install geany-plugins

and yet I don't see those in the plugin manager.
Is there something else I should do ?

@PerfectCarl
Copy link
Author

Note that when I'm trying to build the plugins (with waf or autogen) I get the error

Requested 'geany >= 1.24' but version of Geany is 1.23.1

While I have geany 1.25 running and installed.

@b4n
Copy link
Member

b4n commented Mar 8, 2015

You probably also have the Geany version from your distribution installed, and it's probably found before your custom build. If you want a custom build, you probably should just uninstall the distribution's packages. Then, re-run the geany-plugins's configure script and it should work fine (assuming you do have an appropriate Geany version installed).

And just as with Geany, you need to build the plugins against GTK3, so it's perfectly normal that the plugins from your distribution's package won't work with your custom GTK3 Geany, unless they were themselves build for GTK3 (which is unlikely).

Finally, note that while we want to reach the point where all plugins work with GTK3, it's not yet the case, so some plugins that are available with GTK2 won't be with GTK3. We hope to port those as soon as possible, but it has to be done.

@PerfectCarl
Copy link
Author

Thanks for the clear explanation: it worked.

Here what I did:

sudo apt-get purge geany

git clone git@github.com:geany/geany.git
./autogen.sh  --enable-gtk3 --disable-html-docs --prefix=/usr
make 
sudo make install
cd .. 

cd geany-plugins-master/ 
./waf configure
./waf build -p
sudo ./waf install

And I got those error when starting geany:

17:17:54: Geany INFO        : Plugin "/usr/lib/geany/addons.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/autoclose.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/automark.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/codenav.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/commander.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/defineformat.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/filebrowser.so" already loaded.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanyctags.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanydoc.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanyextrasel.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanyinsertnum.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanylatex.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanylipsum.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanymacro.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanyminiscript.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanynumberedbookmarks.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanyprj.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanysendmail.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geanyvc.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/geniuspaste.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/pairtaghighlighter.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/pohelper.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/pretty-printer.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/projectorganizer.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/shiftcolumn.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/tableconvert.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/treebrowser.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/updatechecker.so" is not binary compatible with this release of Geany - recompile it.
17:17:54: Geany INFO        : Plugin "/usr/lib/geany/xmlsnippets.so" is not binary compatible with this release of Geany - recompile it.

@b4n
Copy link
Member

b4n commented Mar 9, 2015

Try building the plugins with Autotools instead of Waf, just like you built Geany itself. Apparently Waf can't build GTK3 plugins yet (yes, it's a bug/missing feature).

@PerfectCarl
Copy link
Author

Indeed :)

This what I did :

        ./autogen.sh  --enable-gtk3 --disable-html-docs --prefix=/usr
        make 
        sudo make install 

and most of the plugins loaded!!

Here's the list of the loading errors:

17:51:15: Geany INFO        : Plugin "/usr/lib/geany/addons.so" is not binary compatible with this release of Geany - recompile it.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/filebrowser.so" already loaded.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/geanydoc.so" is not binary compatible with this release of Geany - recompile it.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/geanylatex.so" is not binary compatible with this release of Geany - recompile it.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/geanymacro.so" is not binary compatible with this release of Geany - recompile it.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/geanynumberedbookmarks.so" is not binary compatible with this release of Geany - recompile it.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/geanyprj.so" is not binary compatible with this release of Geany - recompile it.
17:51:15: Geany INFO        : Plugin "/usr/lib/geany/geanyvc.so" is not binary compatible with this release of Geany - recompile it.

@b4n
Copy link
Member

b4n commented Mar 9, 2015

Here's the list of the loading errors:

Yes, as said previously, those plugins are not yet compatible with GTK3, so they are not built (and I guess you have them because you didn't remove explicitly the previous GTK2 ones).

@PerfectCarl
Copy link
Author

Thanks for the info.
Good luck with the porting to gtk3!

I wanted to give the best feedback I could

@frlan
Copy link
Member

frlan commented Mar 9, 2015

Well, actually some of them should already be (my ones). So this actually really might be a bug or need for enhancement ;)

@pik
Copy link

pik commented Apr 13, 2015

This what I did :

    ./autogen.sh  --enable-gtk3 --disable-html-docs --prefix=/usr
    make 
    sudo make install 

I don't think there even is a flag for building geany-plugins with gtk+-3.0, or am I missing something?

@b4n
Copy link
Member

b4n commented Apr 13, 2015

@pik no, geany-plugins doesn't have a specific flag, because it has to match what the Geany version it is built against used. So geany-plugins will just use the same thing as Geany used.

@pik
Copy link

pik commented Apr 13, 2015

@b4n I just looked at it - the gtk version is hard-coded https://github.com/geany/geany-plugins/blob/master/wscript#L83 package='gtk+-2.0' so it won't build with gtk+-3.0 even if geany is.

@b4n
Copy link
Member

b4n commented Apr 13, 2015

@pik oh, you're talking about Waf. Yes, apparently Waf cannot currently build geany-plguins for GTK3. But the commands you quoted used Autotools, not Waf ;)

@frlan frlan added the gtk3 label Apr 23, 2015
@frlan
Copy link
Member

frlan commented Jun 22, 2017

waf is history for our project as well as most plugins are supporting Gtk3 where possible. Closing the bugreport. Please reopen a new one in case of a particular plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants