User forums > Help

Building CB : cannot find -lexchndl.dll: No such file or directory

(1/2) > >>

charles5577:
I have been using wxWidgets + CodeBlocks for quite a few years now. Very good IDE. Every year or so I check for updates and reinstall everything including the compiler. Before I used the TDM-GCC compiler but this time I switched to the MSYS2. I downloaded a functional version of CodeBlocks and then tried to build a new version of CodeBlocks using CodeBlocks_wx32_64.cbp. It does not find exchndl.dll.

exchndl.dll exists in "C:\msys64\codeblocks_25.03\src\exchndl\win64\bin"
I tried moving it to "C:\msys64\codeblocks_25.03\src\exchndl\win64\lib" but that did not work.
I tried renaming it to exchndl.dll.a. That did not work.

For the linker, line 150 of CodeBlocks_wx32_64.cbp has "<Add library="exchndl.dll" />" and line 166 has         
"<Add directory="exchndl/win64/lib" />".

I am wondering if the new compiler/linker does not accept a dll as a linkable library.

Can anyone help with this?

stahta01:
Are you trying to build the last release or a recent SVN version of CB?

If last release, build the package linked here https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-codeblocks/PKGBUILD

Tim S

ollydbg:
I also suggest building the C::B with the latest SVN code.

stahta01:
Under Msys2 MinGW, I would try building using the configure/make method.
Link to patch to help build using that method https://github.com/stahta01/MINGW-packages/blob/codeblocks-git/mingw-w64-codeblocks/003-fix-link-to-tinyxml.patch

Configure options that are likely needed

--- Code: --- --disable-pch --with-contrib-plugins=all,-Valgrind
--- End code ---

stahta01:
CodeBlocks configure make build under Msys2 using svn repo


Based partly on https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Arch_Linux


* pacman -S --needed zip subversion patch wget ${MINGW_PACKAGE_PREFIX}-hunspell ${MINGW_PACKAGE_PREFIX}-boost
* pacman -S --needed ${MINGW_PACKAGE_PREFIX}-autotools ${MINGW_PACKAGE_PREFIX}-cc
* pacman -S --needed  ${MINGW_PACKAGE_PREFIX}-wxwidgets3.3-msw  ${MINGW_PACKAGE_PREFIX}-wxwidgets3.3-msw-cb_headers
* cd ~
* svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code
* cd codeblocks-code
* wget http://raw.github.com/stahta01/MINGW-packages/codeblocks-git/mingw-w64-codeblocks_dm/003-fix-link-to-tinyxml.patch
* patch -Nbp1 -i 003-fix-link-to-tinyxml.patch
* ./bootstrap
* ./configure --disable-pch --with-contrib-plugins=all,-Valgrind --prefix=/opt/codeblocks
* make
* make install
* /opt/codeblocks/bin/codeblocks

Navigation

[0] Message Index

[#] Next page

Go to full version