News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

SVNInside : development of another SVN plugin for CodeBlocks

Started by orel, October 08, 2007, 11:31:10 PM

Previous topic - Next topic

orel

Quote from: dmoore on May 10, 2008, 05:58:50 PM
Why do you keep any svn info in the project files? There isn't a 1:1 correspondence between projects and repositories. why not just save the svn info you need in a separate config file (or, my preference, in the global user config)?

You are probably right, i think i will save the info about repositories in global user config file.
Thank you for that good proposition dMoore ;-)

orel
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]

branleb

Quote from: orel on March 14, 2008, 01:05:53 AM
Your problem can be solved and has been solved, have you read the page 7 of this thread, here is the link ...!
http://forums.next.codeblocks.org/index.php/topic,7063.90.html
You meant http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build ?
There is a solution for nightly build, and may it works with them, but this doesnt works for me.
I have codeblocks SVN rev5081 and wxGTK 2.8.7.1-r1 on a gentoo machine...
And i always get the missing symbols error - is there a solution for me ?

greets Branleb


Don't hate the Hacker. Hate the Code!

orel

Quote from: branleb on May 26, 2008, 10:42:31 AM
Quote from: orel on March 14, 2008, 01:05:53 AM
Your problem can be solved and has been solved, have you read the page 7 of this thread, here is the link ...!
http://forums.next.codeblocks.org/index.php/topic,7063.90.html
You meant http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build ?
There is a solution for nightly build, and may it works with them, but this doesnt works for me.
I have codeblocks SVN rev5081 and wxGTK 2.8.7.1-r1 on a gentoo machine...
And i always get the missing symbols error - is there a solution for me ?

greets Branleb

Hi man, i am really sorry i can't help you with this, i don't have a gentoo machine to test that, and, even on my win32 machine i haven't tried it because i don't need to do it. I am compiling my plugins (and the other ones as well) myself and linking with my own compiled version of Code::Blocks too.

What you are trying to do is not specific to SVNInside but to every plugins you would like to link to a nightly build.
I hope for you that the writer of the wiki article you mentioned can help you, maybe try creating a special thread for this.
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :[url="http://forums.next.codeblocks.org/index.php/topic,7063.0.html"]http://forums.next.codeblocks.org/index.php/topic,7063.0.html[/url]

gmclachl

It seems to me that having good SCM from within code::blocks is one of the major features it is still missing, and something I really miss.

I have been reading this thread as I was interested in writing a plugin, it strikes me that rather than implement different SCM tools integration we (as a community) should perhaps think about abstracting many operations away from concrete cases, and provide an SCM framework into which people can easily hook into. This way we can provide support for different tools. In my case I want to use git, other have mentioned bzr and mecurial.


George 

undergraver

I agree that a SCM plugin needs to be integrated into CodeBlocks.
One solution would be to have something completely XML based - actions[commands] because I imagine that integrating with git, svn, cvs and others will be done via command line. We can create based on that XML a menu that can be added to the current menu.

Probably it can be done also from the API (if the SCM has one) but involves more code to be written and also if the SCM API changes we need to change our code too.

This is just my thought, I don't know if it fits all the cases (though it should fit many of them).

Sorry if this was already discussed (didn't found anything related to that).

Iulian

darthdespotism

I was thinking about write something for hg so if you need help for your all SCM plugin ...

killerbot

this will be done time, but first some other refactorings need to be carried out, or have higher priority.

acinfo64

Dear All,

Can someone explain in more detail how to compile and integrate the SVNInside.

When I compile the code I get the error that the library -lpropgrid is missing. In a post I saw that wxPropGrid etc is missing and that I should use the source SDK. But how can I do that?

Normally I use the C::B installer with mingw (v8.02). But I also tried to download C::B from SVN and then compile it. This is not a problem, but when I copy the files from the devel directory to my C::B my C::B works fine but I can't still compile and wxSmith is gone. So the wxPropGrid is then still not integrated.


Ekinoks

Hi !

I have a problem :?

I can't compile SVNInside's project but C::B not find this files :
- cbproject.h
- globals.h
- cbplugin.h
- tinyxml.h

Where I can find this files ?

Thanks for help.

cgarcia109

#129
acinfo64 youre missing libwxpropgrid library thats a wxWidget plugin/addon
you need Codeblocks sources from svn and get them compiled.

Ekinoks youre missing codeblocks SDK, get codeblocks source from svn and compile it that will give you required headers and libraries needed to compile codeblocks plugins.

You will need wxWidgets libraries and headers in order to get codeblocks compiled from sources, you can get wxwidgets dev packages if youre using linux, or you can get wxWidgets sources, compile them. see http://www.wxwidgets.org for more info

AIL

Hi.

I try to install SVNInside into Code::Blocks as plugin, but something wrong happens:

---------------
One or more plugins were not loaded.
This usually happens when a plugin is built for
a different version of the Code::Blocks SDK.
Check the application log for more info.

List of failed plugins:

svninside.dll
---------------

Plugin was built using

MinGW-5.1.4  http://dfn.dl.sourceforge.net/sourceforge/mingw/MinGW-5.1.4.exe
wxMSW-2.8.7  http://biolpc22.york.ac.uk/pub/2.8.7/wxMSW-2.8.7.zip  (official mirror)
codeblocks-8.02-src  http://switch.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-8.02-src.tar.bz2
SVNInside  http://tools.assembla.com/svn/SVNInside/trunk

Used version of Code::Blocks to install plugin is 8.02 (wxWidgets 2.8.7) - binary package from official site.
http://switch.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-8.02mingw-setup.exe


What happens? why it does not work? And where I can "Check the application log for more info."?


And, to autor - Please, write normal build manual, human-readable, not everybody borns with knowledge, where to get components to build, which version to use, how exactly build it and so on.

Thanks.

[attachment deleted by admin]

ollydbg

To my knowledge, this is the steps you should build a plugin.

http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows




You should build both the IDE and plugins and they can work together. 

Do Not add plugin to the used codeblocks from official site, the codeblocks itself should be build either. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

AIL

First, thanks for link.

Quote from: ollydbg on May 13, 2009, 06:25:44 PM
Do Not add plugin to the used codeblocks from official site, the codeblocks itself should be build either. :D

Yeah? And for what button "Install new" placed to "Manage plugins" dialog?

dmoore

you can link against the 8.02 binaries BUT

when you link -- don't link against your own copies of the dlls, link against the CB 8.02 binary packages dlls (including any packaged wx widgets libs). see this: http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build
(the instructions assume you are building against a nightly build but it is the same for building against the actual release)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

AIL