Author Topic: Is DevPak working OK for anyone?  (Read 6475 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Is DevPak working OK for anyone?
« on: March 29, 2011, 07:57:30 pm »
I had the idea of making a few DevPaks for a student project( in next 2 years).
I just tested Code::Blocks DevPak plugin and it did not work for me in a consistent way.

After, I applied this patch it worked better; but, it might have been ISP or user error that caused the problem.
(I think the SourceForge redesign of a few years ago was never well fixed at  http://devpaks.sourceforge.net/)

Tim S.

Code
Index: src/plugins/contrib/devpak_plugin/updatedlg.cpp
===================================================================
--- src/plugins/contrib/devpak_plugin/updatedlg.cpp (revision 7074)
+++ src/plugins/contrib/devpak_plugin/updatedlg.cpp (working copy)
@@ -59,7 +59,7 @@
     m_LastBlockSize(0),
     m_HasUpdated(false),
     m_FirstTimeCheck(true),
-    m_Net(this, idNet, _T("http://devpaks.sourceforge.net/"))
+    m_Net(this, idNet, _T("http://wxdsgn.sourceforge.net/webupdate/"))
 {
  //ctor
  wxXmlResource::Get()->LoadObject(this, parent, _T("MainFrame"),_T("wxScrollingDialog"));
@@ -327,7 +327,7 @@
     if (cmb->GetCount() == 0)
     {
         cmb->Append(_("devpaks.org Community Devpaks"));
-        m_Servers.Add(_T("http://devpaks.sourceforge.net/"));
+        m_Servers.Add(_T("http://wxdsgn.sourceforge.net/webupdate/"));
     }
     cmb->SetSelection(0);
 }
« Last Edit: March 29, 2011, 07:59:02 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Sirhiro

  • Single posting newcomer
  • *
  • Posts: 2
Re: Is DevPak working OK for anyone?
« Reply #1 on: April 12, 2011, 04:27:58 am »
Devpak for me doesn't fetch any updates, does this patch fix that? I am extremelly new to C++ coming from five years of visual basic 6. How would I go about applying this patch?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: Is DevPak working OK for anyone?
« Reply #2 on: April 12, 2011, 06:36:58 pm »
Without the patch, I could not consistently get a list of patches to download.
I did not really try to download any of the patches.

Edit: I was able to download an Devpak from the wxDev-C++ DevPak server.

You would apply this patch to the CB source code; and then compile Code::Blocks from that source code.

It is much easier to edit devpak_mirrors.cfg as per http://forums.codeblocks.org/index.php/topic,4993.0.html

Edit:
The location of devpak_mirrors.cfg is in %APPDATA%\codeblocks under my Windows & this is
C:\Users\USERNAME\AppData\Roaming\codeblocks

With my patch it is set to below after it reads the values from the wxDev-C++ DevPak server.
Code
[WebUpdate mirrors] 
wxDev-C++ DevPak server=http://wxdsgn.sourceforge.net/webupdate/
Sof.T's DevPak server=http://wxdevcpp-book.sourceforge.net/packages/
Dev-C++ primary devpak server=http://heanet.dl.sourceforge.net/sourceforge/dev-cpp/
devpaks.org Community Devpaks=http://devpaks.sourceforge.net/

If you manual edit devpak_mirrors.cfg; I think the value of "Use Cache" should be checked to stop over writing of it.

Tim S.
« Last Edit: April 12, 2011, 09:22:28 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Sirhiro

  • Single posting newcomer
  • *
  • Posts: 2
Re: Is DevPak working OK for anyone?
« Reply #3 on: April 13, 2011, 07:58:50 am »
I manually edited the cfg file and the first two mirrors work but don't have as wide of selection of packs. The third doesn't generate any list and the original devpaks.org overwrites my mirrors.cfg if cache is unchecked and if checked it generates no lists of paks.. I suppose your source patch would fix this? Or, an issue of other sorts? :l

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Is DevPak working OK for anyone?
« Reply #4 on: April 13, 2011, 09:55:03 am »
The alternative that stahta01 mentioned (and also proposed for the patch) is only DevC++/WX related.So all the mathematical / UI /whatever libs are missing. To be honest: I don't know a valid address for the moment for the webupdate. The DevPaks.org homepage seems not to offer this feature anymore. This would make the plugin obsolete unfortunately.

However, it's very easy to use them anyways: Download the library of your choice, unpack it and just setup your project accordingly. There is no serious magic that the devpak plugin does that you couldn't easily do yourself.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Is DevPak working OK for anyone?
« Reply #5 on: April 14, 2011, 12:41:38 am »
I had the idea of making a few DevPaks for a student project( in next 2 years).
. . .

straha01,
My university uses, and I maintain, the Code::Blocks EDU-Portable (unofficial) distribution. That one comes with libraries and project templates for simple 2D/3D graphics for C and C++ usually sought for by teachers and learners. I am interested to know what other (open source) libraries you think would be of interest in that environment. I may add them in. Exisiting devpaks often need to be rebuilt to be used with recent and more standards-compliant compilers, so I tend to ignore them.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: Is DevPak working OK for anyone?
« Reply #6 on: April 14, 2011, 02:21:29 am »
@codeur:

I am doing an Senior project development Network Communication over RS232 (SLIP/PPP) in order to get two micro-controllers to exchange information. The second Micro-controller will also have a normal Network connection to serve SNMP, FTP and maybe Web Pages. Also, working on normal Computer based client software like SNMP. In order to do this, I am likely to need various libraries compiled to work with MinGW GCC C/C++ Compiler. I was thinking DevPak would be a good way to allow another person to recreate some of the PC Client Apps. The early development is planned to be on Linux or BSD based PCs. Later, I hope to move everything to Windows based environment.

The only Libraries I know that I will need will be wxWidgets and libintl. I also plan to do an DevPak for the Code::Blocks SDK; I see the possible need to add an Code::Blocks plugin to support version control system. I thought that doing DevPaks for all the libraries needed for the PC Client software (other than the standard Web Browers)

http://sourceforge.net/projects/picmicroproject/

In direct answer to your question, I think some of the Libraries on gnuwin32 would be nice.
http://gnuwin32.sourceforge.net/packages.html

The only command that I think would be real helpful is "which"; It is helpful for trouble shooting weird Compiler Installation issues related to Windows System PATH variable.
http://gnuwin32.sourceforge.net/packages/which.htm

Some other libraries that sound good to me:
boost
STLPort
libcurl

Tim S.
« Last Edit: April 14, 2011, 02:49:13 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline codeur

  • Multiple posting newcomer
  • *
  • Posts: 113
    • Code::Blocks EDU-Portable
Re: Is DevPak working OK for anyone?
« Reply #7 on: April 14, 2011, 02:55:51 am »
Thanks for the info, straha01,
CB EDU-Portable for the moment focuses on undergraduates, so offers a 1-click install. This is not viable for the long term when other requirements and several other libraries will be on offer. The download and installed size would become too large.
I am thinking more in terms of libraries selection at the time of download, with possible later updates, than in term of offering devpacks, but I still have to get to work for good on this aspect. This would also require a plugin enabling selection of the project types offered in the [Open]->[Project] screen.
In terms of library selection wxwidgets and fltk GUI libs are already there. Boost is there. GetText (including libintl) is considered. A Linux "equivalent" EDU distribution is also planned for the end of year or early 2012. Version control support (svn/git/mercurial) is also considered desirable. I see that some people are already working on this.
There is no use for "which" as the installation is fully portable (no interference with anything else on the computer), but there are other useful tools already installed.
We seem therefore to be working on CB projects with large similarities.
« Last Edit: April 14, 2011, 03:00:45 am by codeur »