User forums > Using Code::Blocks
Compiling C::B using Msys2
alle_meije:
Scouring all previous posts and manuals for options, I used this for building wxWidgets
--- Code: ---configure --prefix=/mingw64 \
--enable-compat28 --enable-xrc --enable-shared --enable-monolithic --disable-debug \
--enable-unicode --enable-vendor=cb --disable-universal --enable-tooltips --enable-dnd \
--with-opengl \
CFLAGS='-fno-keep-inline-dllexport' \
CXXFLAGS='-fno-keep-inline-dllexport'
--- End code ---
But the same DLL-related things are still causing problems even with all those options.
I have tried
--- Code: --- cd ../wxWidgets-dev/
make distclean
configure --prefix=/mingw64 \
--disable-shared --enable-static --enable-compat28 --enable-xrc --enable-monolithic --disable-debug \
--enable-unicode --enable-vendor=cb --disable-universal --enable-tooltips --enable-dnd \
--with-opengl
updatedb & make && make install
cd ../codeblocks-dev/
./bootstrap
./configure --with-wx-config=`which wx-config`
make
--- End code ---
To see if it would work with wxWidgets compiled as a static library, but it still stops at the Annoying Dialog (same place) complaining about static members.
Out of ideas.
stahta01:
I am trying to get Code::Blocks to build using MSys2 MinGW64.
It is now obvious that the exchndl DLL will need ported to MSys2; this is NOT something I plan to do.
I believe the exchndl DLL is made from drmingw sourcecode https://github.com/jrfonseca/drmingw
I plan to just fix the other items; and, then wait for someone else to port the exchndl DLL.
Or, at least wait till I learn enough of MSys2 to think it is possible for me to do it myself.
My Git location that I plan to upload the work in a few weeks
https://github.com/stahta01/msys2_codeblocks
My repo I am using to test changes; I am still learning how to use Git correctly.
I am doing a lot of forced pushes on this repo; to correct mistakes.
( I know configure/make even less than I know Git)
https://github.com/stahta01/codeblocks_windows
Tim S.
scarphin:
There is a 64-bit version of exchndl.dll in cb repo, doesn't that work for you? I use it for my 64-bit builds.
Btw, I've ported all the required project, workspace and update files to 64-bit wx2.8 for my own usage, I can pack them and upload them somewhere if that helps.
stahta01:
--- Quote from: scarphin on September 19, 2015, 10:42:49 am ---There is a 64-bit version of exchndl.dll in cb repo, doesn't that work for you? I use it for my 64-bit builds.
Btw, I've ported all the required project, workspace and update files to 64-bit wx2.8 for my own usage, I can pack them and upload them somewhere if that helps.
--- End quote ---
MSys2 does NOT use MINGW64 built in startup code for its internal built apps.
So, I am guessing the 64-bit version of exchndl.dll in cb repo will NOT work as a native MSys2 app.
My first idea was to just create a Windows 64 bit apps modified to work with MSys2 and that way the
64-bit version of exchndl.dll in cb repo should work.
I just wanted to get the configure/make method of building to work under MSys2 and in my view
that will require 64-bit version of exchndl.dll compiled to work as native MSys2 dll.
The work to do this correctly using the correct MSys2 packaging is way beyond the effort I wish to put in.
But, I now need to decide how to fix the Squirrel libs for DLL export issues.
(I am trying to build the CB SDK without using the linker export all option; I think its a bad design choice.)
FYI: I figured out how to export the Mgr Template in case that is wanted by someone.
Tim S.
scarphin:
Ok, my bad.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version