Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

SVNInside : development of another SVN plugin for CodeBlocks

<< < (30/31) > >>

ignotion:
Hello, i've just downloaded the last codeblocks (5650) and svninside svn version, and i've run into a few problems:
1st) for some reason the project contains 2 files in dialogs that are missing (svniConfigDlg.cpp and .h).
2nd) Once you remove those files the project doesn't link(in ubuntu jaunty 64), raising this error:

--- Code: ---/usr/bin/ld: .objs/src/commands/svniAdd.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
.objs/src/commands/svniAdd.o: could not read symbols: Bad value
--- End code ---

3rd) finally once you get these issues resolved, you get a link error because for some reason -lpropgrid is not avaliable. I havent found it in my subversion copy (it's not in sdk either). Where can i find this lib, or how can I solve this last issue?

Thanks in advance,

Toni

Jenna:
Did you read my post just two posts above yours ?

ignotion:

--- Quote from: jens on June 17, 2009, 08:25:45 pm ---Did you read my post just two posts above yours ?

--- End quote ---
No I didn't, thank you jens.
Do you know anything about that -lpropgrid problem?

stahta01:

--- Quote from: ignotion on June 21, 2009, 01:32:20 am ---Do you know anything about that -lpropgrid problem?

--- End quote ---

Look for propgrid inside the wxSmith Contrib plugin it is built by wxSmith.

I find libpropgrid.a under src\plugins\contrib\wxSmith\propgrid on windows.

Tim S

GeO:
Patch for "wxAuiNotebook introduction in TRUNK"

--- Code: ---Index: src/commands/svniCommand.cpp
===================================================================
--- src/commands/svniCommand.cpp (revision 85)
+++ src/commands/svniCommand.cpp (working copy)
@@ -16,6 +16,7 @@
 #include "svniLogger.h"
 
 #include <string>               // for "class std::string"
+#include <algorithm>
 
 using namespace std;
 
Index: src/dialogs/svniFileSelectDlg.cpp
===================================================================
--- src/dialogs/svniFileSelectDlg.cpp (revision 85)
+++ src/dialogs/svniFileSelectDlg.cpp (working copy)
@@ -20,6 +20,7 @@
 #endif
 
 #include <list>
+#include <algorithm>
 
 #include "svniFileSelectDlg.h"
 
Index: src/svniPlugin.cpp
===================================================================
--- src/svniPlugin.cpp (revision 85)
+++ src/svniPlugin.cpp (working copy)
@@ -9,7 +9,7 @@
  ******************************************************************************/
 
 #include <sdk.h>                // Code::Blocks SDK
-#include <wx/wxFlatNotebook/wxFlatNotebook.h>   // part of Code::Blocks SDK
+#include <wx/aui/auibook.h>   // part of Code::Blocks SDK
 
 #ifndef CB_PRECOMP
  #include <projectmanager.h>
@@ -164,18 +164,15 @@
             ShowLogger(false);
 
         // remove svni tree tab from CB management notebook
-        int tab = 0;
-
-        // walk through all tabs to find svninside one
-        for (; tab < Manager::Get()->GetProjectManager()->GetNotebook()->GetPageCount(); ++tab)
+        if (m_psvniTabPnl)
         {
-            if (_T("SVNInside") == Manager::Get()->GetProjectManager()->GetNotebook()->GetPageText(tab))
-            {
-                Manager::Get()->GetProjectManager()->GetNotebook()->DeletePage(tab, true);
-                m_psvniTabPnl = 0;
-                break;
-            }
+
+            int idx = Manager::Get()->GetProjectManager()->GetNotebook()->GetPageIndex(m_psvniTabPnl);
+            if (idx != -1)
+                Manager::Get()->GetProjectManager()->GetNotebook()->RemovePage(idx);
+            m_psvniTabPnl->Destroy();
         }
+        m_psvniTabPnl = 0L;
     }
 }
 ////////////////////////////////////////////////////////////////////////////////

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version