News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[solved] What are the possible reasons those plugins are much larger?

Started by wtfisgoingoff, December 25, 2023, 03:52:22 PM

Previous topic - Next topic

wtfisgoingoff

I built C::B by this guide https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows
Everything seems fine, C::B runs fine. But when I tried to send it to others, the compressed package is much larger than official nightly build. Then I found those plugins built by myself are much larger.(attached)So, what I might have wrongly done ?

stahta01

The most likely is you are not striping the binaries right.

From an command prompt (cmd.exe) window run.

where strip


If strip is not in the PATH you will get this.

INFO: Could not find files for the given pattern(s).


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]

wtfisgoingoff

Thx a lot, problem solved. :)
I read a guide that says MSYS2/xxxx/bin should  not be in PATH. And I followed it.  So when I ran that update32_64.bat, strip was not in PATH.(BTW if I run update.bat in CLI  rather than double clicking it, I should have found this problem.)

stahta01

Having sh.exe in the path while building wxWidgets will cause the build to fail.

Tim S.

Quote from: wtfisgoingoff on December 25, 2023, 05:30:54 PM
Thx a lot, problem solved. :)
I read a guide that says MSYS2/xxxx/bin should  not be in PATH. And I followed it.  So when I ran that update32_64.bat, strip was not in PATH.(BTW if I run update.bat in CLI  rather than double clicking it, I should have found this problem.)
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]

PB

Quote from: stahta01 on December 25, 2023, 06:10:09 PM
Having sh.exe in the path while building wxWidgets will cause the build to fail.
This should be avoidable with a SHELL build parameter, e.g.
Quotemingw32-make -f makefile.gcc SHARED=1 BUILD=release SHELL=cmd.exe
[url="https://github.com/PBfordev/wxpbguide"]https://github.com/PBfordev/wxpbguide[/url]

stahta01

Quote from: PB on December 25, 2023, 07:13:36 PM
Quote from: stahta01 on December 25, 2023, 06:10:09 PM
Having sh.exe in the path while building wxWidgets will cause the build to fail.
This should be avoidable with a SHELL build parameter, e.g.
Quotemingw32-make -f makefile.gcc SHARED=1 BUILD=release SHELL=cmd.exe

CB requires monolithic build normally; and that fails most of the time when that option is used; I am guessing the command line is too long.
It has been over 3 years since I last tried it.

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]

PB

Quote from: stahta01 on December 25, 2023, 07:22:09 PM
[CB requires monolithic build normally; and that fails most of the time when that option is used; I am guessing the command line is too long.

Just for the record, Windows allows a command line length of about 8 kB.

This should be more than enough to build wxWidgets in any reasonable configuration, monolithic or not; I mean when calling the mingw make.

AFAIK, wxWidgets internally uses response files to work around the command line length limit when compiling its files.
[url="https://github.com/PBfordev/wxpbguide"]https://github.com/PBfordev/wxpbguide[/url]