Author Topic: Huge sized codeblocks.dll  (Read 19784 times)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Huge sized codeblocks.dll
« on: September 12, 2011, 10:42:46 pm »
I'm getting a codeblocks.dll of 64.3mbytes when I'm building the 'all' target of v10.05 with mingw (gcc4.5.2) on win7 sp1. I'm loading the 'CodeBlocks.cbp' project file to build. Is that normal or what am I doing wrong?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Huge sized codeblocks.dll
« Reply #1 on: September 12, 2011, 10:50:50 pm »
Which of the two codeblocks.dll are you talking about?
Take a look at the src/update.bat script for details.
(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!]

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Huge sized codeblocks.dll
« Reply #2 on: September 13, 2011, 08:23:48 am »
Sry I wasn't aware of the second one. I'm talking about the one resides in the same folder with 'codeblocks.exe'.

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Huge sized codeblocks.dll
« Reply #3 on: September 13, 2011, 09:04:15 pm »
Is the cb sdk available for download separately somewhere in case I can't build it?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Huge sized codeblocks.dll
« Reply #4 on: September 13, 2011, 09:20:35 pm »
Is the cb sdk available for download separately somewhere in case I can't build it?
What should always work:
  • D/L a nightly
  • remember the SVN revision this nightly is based on
  • Checkout sources from SVN of THAT revision
  • Use the wxWidgets sources the nightly is based on
  • Link against the nightlies DLL's where you usually would use the libs
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Huge sized codeblocks.dll
« Reply #5 on: September 14, 2011, 09:03:41 am »
I'm trying to build the AutoVersioning plugin and no matter which file I link against, the 'autoversioning.dll' file has a size of 1.4mb while the original dll is sized only 283kb. Any ideas?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Huge sized codeblocks.dll
« Reply #6 on: September 14, 2011, 10:37:20 am »
You need to strip the dll. This is done in the update.bat script. And the whole project is build with -g.
(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!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Huge sized codeblocks.dll
« Reply #7 on: September 15, 2011, 12:47:58 pm »
Sry I wasn't aware of the second one. I'm talking about the one resides in the same folder with 'codeblocks.exe'.

After running update.bat (absolutely needed), you have an exe and the dll's in the devel- and the output-subfolder.
the first one has the debugging symbols included, the second one is stripped.

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Huge sized codeblocks.dll
« Reply #8 on: September 15, 2011, 03:08:13 pm »
Sry I wasn't aware of the second one. I'm talking about the one resides in the same folder with 'codeblocks.exe'.

After running update.bat (absolutely needed), you have an exe and the dll's in the devel- and the output-subfolder.
the first one has the debugging symbols included, the second one is stripped.
Thnx. Sry for my ignorance, I realized that after I read the wiki page describing how to build cb on windows. The files produced after build are slightly less in size than the nightly's though, I believe that's because I'm using mingw to build and the nightlies are built with tdm-gcc.

I have one last problem. I checked out svn to version 7386 which is 15 August debuggers branch nightly revision and made a couple of changes to the autoversioning plugin then built cb and plugins. The resulting cb executable says revision 7386 and the built plugins work as expected but when I try to update the av plugin in the nightly built, it says plugin is compiled for a different version and doesn't start. Then I realized 15 August debuggers branch nightly is rev7387 (that's what it shows when starting up) although rev number is mentioned as 7386 everywhere else. Rev7387 is registered on the svn as a wxsmith update, I also tried to build rev7387 and tried to update the av plugin in the 15 August debuggers branch nightly with no luck. Why are there different revision numbers? Any help with this?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Huge sized codeblocks.dll
« Reply #9 on: September 15, 2011, 03:43:03 pm »
The svn revision is just informative.
You should check the SDK version numbers (look in cbplugin.h), this is what C::B is looking for.

You can try the Morten's advice, but keep in mind that you should use the same compiler used to compile the nightly.
(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!]

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Huge sized codeblocks.dll
« Reply #10 on: September 16, 2011, 03:32:58 pm »
I downloaded tdm-gcc (4.5.2). Built wxwidgets 2.8.12, cb7386 and the plugins with it. And I still get the wrong version error when I try to change the av plugin of 15 August nightly with the one I built. How can I make sure of sdk version of 15 August nightly?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5925
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Huge sized codeblocks.dll
« Reply #11 on: September 16, 2011, 03:48:42 pm »
I downloaded tdm-gcc (4.5.2). Built wxwidgets 2.8.12, cb7386 and the plugins with it. And I still get the wrong version error when I try to change the av plugin of 15 August nightly with the one I built. How can I make sure of sdk version of 15 August nightly?

Did you build a full cb (both the codeblocks.cbp and ContribPlugins.workspace)?
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7594
    • My Best Post
Re: Huge sized codeblocks.dll
« Reply #12 on: September 16, 2011, 03:53:10 pm »
I downloaded tdm-gcc (4.5.2). Built wxwidgets 2.8.12, cb7386 and the plugins with it. And I still get the wrong version error when I try to change the av plugin of 15 August nightly with the one I built. How can I make sure of sdk version of 15 August nightly?


For 15 August nightly debugger version

http://svn.berlios.de/viewvc/codeblocks/branches/wxpropgrid_debugger/src/include/cbplugin.h?view=log

from http://svn.berlios.de/viewvc/codeblocks/branches/wxpropgrid_debugger/src/include/cbplugin.h?revision=7377&view=markup

Code
// this is the plugins SDK version number
38 // it will change when the SDK interface breaks
39 #define PLUGIN_SDK_VERSION_MAJOR 1
40 #define PLUGIN_SDK_VERSION_MINOR 12
41 #define PLUGIN_SDK_VERSION_RELEASE 6

I suggest checking out the "wxpropgrid_debugger" instead of trunk if you wish to build debugger based plugins.

For 15 August nightly normal trunk version

http://svn.berlios.de/viewvc/codeblocks/trunk/src/include/

from http://svn.berlios.de/viewvc/codeblocks/trunk/src/include/cbplugin.h?revision=7318&view=markup

Code
// this is the plugins SDK version number
36 // it will change when the SDK interface breaks
37 #define PLUGIN_SDK_VERSION_MAJOR 1
38 #define PLUGIN_SDK_VERSION_MINOR 11
39 #define PLUGIN_SDK_VERSION_RELEASE 15

Mixing Nightly Plugins of "Debug  branch" with SDK of Normal "Trunk" Branch are going to fail.

Tim S.
« Last Edit: September 16, 2011, 04:11:00 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Huge sized codeblocks.dll
« Reply #13 on: September 16, 2011, 05:54:13 pm »
I downloaded tdm-gcc (4.5.2). Built wxwidgets 2.8.12, cb7386 and the plugins with it. And I still get the wrong version error when I try to change the av plugin of 15 August nightly with the one I built. How can I make sure of sdk version of 15 August nightly?

Did you build a full cb (both the codeblocks.cbp and ContribPlugins.workspace)?

Definitely.

stahta: I'm already using the debugger branch to build even the same revision.

Is there a procedure to update the plugins? I'm just replacing the files 'AutoVersioning.zip' and 'AutoVersioning.dll' before I launch cb. ;/

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Huge sized codeblocks.dll
« Reply #14 on: September 16, 2011, 05:56:41 pm »
Does your full cb version works?
Why don't you use your version?  :lol:

What is the error message?
(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!]