News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

GitBlocks Plugin

Started by tomolt, March 20, 2015, 02:33:27 PM

Previous topic - Next topic

tomolt

Well, yes, there WAS a build script by stahta01 for Windows, but I had to take it out because I am now using autotools, which works fine on my Arch Linux box, and also *should* work fine on Windows, but I can't test it! :(

(P.S.: Sorry for being a little bit late on this!)

decaf999

Quote from: tomolt on May 26, 2015, 03:36:15 PM
Well, yes, there WAS a build script by stahta01 for Windows, but I had to take it out because I am now using autotools, which works fine on my Arch Linux box, and also *should* work fine on Windows, but I can't test it! :(

Maybe this is not a question for you, but I see little documentation / articles about using autotools on a windows machine.  Most documentation for windows is to build plug-ins using Code::Blocks itself, and many other plug-ins appeared to provide cbp files for different wxWidgets versions and architectures along with autotools files. They can co-exist, and it seems there is some kind of naming conventions of cbp files to distinguish the environment each cbp file support.  I wonder what the guideline/convention is in this CB plug-in development community. And BTW setting up autotools in pure windows environment can be unpleasant process, you might need to use MSYS or cygwin. At the end, setting up cbp might be much easier, faster and maintainable.  (Just that it is not for non-interactive-building.)

Anyway, I managed to get GitBlocks compiled using my own cbp file on windows, and now seeing crashes when invoking any of GitBlocks commands from top menu.  (GUI operations appeared to be working, menu items show up, some dialogue box for user input shows up, but then entire C::B stops.) Haven't had a chance to narrow down the root cause yet.

stahta01

#17
Quote from: decaf999 on May 30, 2015, 02:52:50 PM
Quote from: tomolt on May 26, 2015, 03:36:15 PM
Well, yes, there WAS a build script by stahta01 for Windows, but I had to take it out because I am now using autotools, which works fine on my Arch Linux box, and also *should* work fine on Windows, but I can't test it! :(

Maybe this is not a question for you, but I see little documentation / articles about using autotools on a windows machine.  Most documentation for windows is to build plug-ins using Code::Blocks itself, and many other plug-ins appeared to provide cbp files for different wxWidgets versions and architectures along with autotools files. They can co-exist, and it seems there is some kind of naming conventions of cbp files to distinguish the environment each cbp file support.  I wonder what the guideline/convention is in this CB plug-in development community. And BTW setting up autotools in pure windows environment can be unpleasant process, you might need to use MSYS or cygwin. At the end, setting up cbp might be much easier, faster and maintainable.  (Just that it is not for non-interactive-building.)

Anyway, I managed to get GitBlocks compiled using my own cbp file on windows, and now seeing crashes when invoking any of GitBlocks commands from top menu.  (GUI operations appeared to be working, menu items show up, some dialogue box for user input shows up, but then entire C::B stops.) Haven't had a chance to narrow down the root cause yet.

If you want I can re-create or find the cbp file for windows.
I stopped on the project because I decided I did NOT know enough about Git to know if what the programmer was doing was safe for me to test the plugin.
Since, I use Git for some of my paid work I did NOT wish to risk damage it accidentally.
I already risk that because of my low level of Git knowledge.

Edit: Right now I am trying to Linux better using Debian Jessie. So, I might try to build it for windows 32 bit under Linux.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

decaf999

Quote from: stahta01 on May 30, 2015, 03:32:12 PM
If you want I can re-create or find the cbp file for windows.

Never mind, since tomolt mentioned that there was once a build script, I checked GitHub repo history and found it.  Thanks anyway.

https://github.com/tomolt/GitBlocks/blob/5d340f8fbebb87efca66b016ea66162d27aec0c7/GitBlocks-win32.cbp


tomolt

#19
About the build system: autotools is pretty weird, but the best way of installing GitBlocks is just running the bootstrap shell script, then the newly generated configure script, and then make. (You need autotools and something like msys or cygwin for that)

stahta01: I'm not a real git-poweruser either, so you should really not rely on my plugin right now. But: I'm currently doing all the commits and so for GitBlocks with GitBlocks, and I never had a lot of trouble with it.

tomolt

P.S.: I'll probably provide both build systems in the future, I'm just currently on a mobile device, so I can't change it right now.

zygimantus

How do you install this plugin to CodeBlocks? I have run these commands:

./bootstrap
./configure
make -f Makefile.in


But I got this error:
Makefile.in:15: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

stahta01

This is likely very wrong!


make -f Makefile.in


Try

make -f Makefile


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

zygimantus

Thank you for your response, but file Makefile does not exist:

make: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'.  Stop.


Those are the files in GitBlocks directory:

GitBlocks.zip  Makefile.in  install-sh    compile         ltmain.sh     include       wxsmith    ChangeLog      INSTALL      README
config.log     depcomp      config.sub    autom4te.cache  config.h.in   manifest.xml  AUTHORS    COPYING        Makefile.am
configure      missing      config.guess  aclocal.m4      configure.ac  src           bootstrap  GitBlocks.cbp  NEWS

oBFusCATed

You have to run the configure script to generate the makefile files.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

amigabill

OK, how do I install this? I downloaded as ZIP file from GitHub. INSTALL file is 0 bytes, and README says nothign about install, it only refers to this thread.  Codeblocks plugin manager looks for a *.cbplugin file, I see a *.cbp file in the archive and made a link for a *.cbplugin version but that doesn't load.  make all doesn't do anything, configure doesn't do anything, make GitBlocks.cbplugin doesn't do anything...

Please help, as I'm not good with git command line yet and hope a GUI will help. (I've previously used Eclipse with its git plugin)

oBFusCATed

I suppose you have to build the plugin yourself.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

amigabill

#27
Quote from: oBFusCATed on November 17, 2015, 09:58:58 PM
I suppose you have to build the plugin yourself.

Is there a complete and total For Dummies on how to accomplish that? (Sorry, I'm new to CodeBlocks and its plugins, and as described I couldn't find any install info in readme/install/makefiles found in the plugin package, and I haven't had to research how to build plugins before install for other IDE tools)

stahta01

#28
Quote from: amigabill on November 20, 2015, 09:20:32 PM
Quote from: oBFusCATed on November 17, 2015, 09:58:58 PM
I suppose you have to build the plugin yourself.

Is there a complete and total For Dummies on how to accomplish that? (Sorry, I'm new to CodeBlocks and its plugins, and as described I couldn't find any install info in readme/install/makefiles found in the plugin package, and I haven't had to research how to build plugins before install for other IDE tools)

What is your Operating System and Code::Blocks installation information?
Edit: Do you self-build Code::Blocks?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

turbosnail

stahta01, just now compile plugin from your repo, its not work.

Fetching status ...
git status
Fetching from origin ...
cmd.exe /C "git fetch origin"
Fetching log ...
git log --pretty=format:%h%x09%an%x09%ad%x09%s


Windows 8 x64