User forums > Help

Can a 32-bit versiom u C::B be built on a 64-bit Windows platform

(1/3) > >>

Frank_CB:
I can build the latest 64-bit version of C::B, using wx3.2, from SVN source (12878).

My first attempt to build a 32-bit version of C::B, on a 64-nit version of Windows, has been a failure. Using Xaviou's latest 32-bit version of C::B (12864) as a host, I tried using both a 32-bit and a 64-bit compiler (both failed at same point). I'm questioning my own toolchains while using the Mingw64 compilers.

What assumptions (if any) are wrong? Any insight into the best way to accomplish my task will be greatly appreciated !

Regards

Miguel Gimenez:
I use a 32-bits toolchain on a 64-bits system, mainly because the software I deploy must run on 32-bits systems. As a side effect, I get a 32-bits C::B.

Frank_CB:
@Miguel Gimenez:
Thanks ! That answers an important question of mine. Which is, whether a 32-bit C::B could be built on a 64-bit system. I'll have to work on my 32-bit toolchain.

Regards

Frank_CB:
I just built a 64-bit version of C::B (12878) from the latest source, without the contributed plugin SpellChecker. It was missing hunspell.h.

However, my attempts at building a 32-bit version of C::B are still failing, no matter which 32-bit compilers or linkers I use.

A snippet of the build log for the last failure follows:
--- Code: ---x86_64-w64-mingw32-g++.exe -Wall -std=gnu++11 -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN -iquote.objs32\include -I.objs32\include -I. -IC:\wxWidgets-3.2.0\include -IC:\wxWidgets-3.2.0\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Iinclude\tinyxml -Iinclude -Iinclude\scripting\include -Iexchndl\win32\include -c C:\projectsx32\12878\src\src\watchesdlg.cpp -o .objs32\src\watchesdlg.o
x86_64-w64-mingw32-g++.exe -LC:\wxWidgets-3.2.0\lib\gcc_dll -Ldevel32 -Lexchndl\win32\lib -o devel32\codeblocks.exe .objs32\src\app.o .objs32\src\appglobals.o .objs32\src\associations.o .objs32\src\backtracedlg.o .objs32\src\breakpointsdlg.o .objs32\src\compilersettingsdlg.o .objs32\src\cpuregistersdlg.o .objs32\src\crashhandler.o .objs32\src\debugger_interface_creator.o .objs32\src\debuggermenu.o .objs32\src\debuggersettingscommonpanel.o .objs32\src\debuggersettingsdlg.o .objs32\src\debuggersettingspanel.o .objs32\src\disassemblydlg.o .objs32\src\dlgabout.o .objs32\src\dlgaboutplugin.o .objs32\src\editkeywordsdlg.o .objs32\src\editorconfigurationdlg.o .objs32\src\environmentsettingsdlg.o .objs32\src\examinememorydlg.o .objs32\src\find_replace.o .objs32\src\goto_file.o .objs32\src\infopane.o .objs32\src\main.o .objs32\src\notebookstyles.o .objs32\src\printdlg.o .objs32\src\projectdepsdlg.o .objs32\src\projectmanagerui.o .objs32\src\projectoptionsdlg.o .objs32\src\recentitemslist.o .objs32\src\scriptconsole.o .objs32\src\scriptingsettingsdlg.o .objs32\src\splashscreen.o .objs32\src\startherepage.o .objs32\src\switcherdlg.o .objs32\src\threadsdlg.o .objs32\src\virtualbuildtargetsdlg.o .objs32\src\watchesdlg.o  .objs32\src\resources\resources.res -Wl,--enable-auto-import -Wl,--no-undefined  -lcodeblocks -lexchndl -lshfolder -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwxmsw32u -mwindows
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible exchndl\win32\lib/libexchndl.a when searching for -lexchndl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible exchndl\win32\lib\libexchndl.a when searching for -lexchndl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible exchndl\win32\lib/libexchndl.a when searching for -lexchndl
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lexchndl
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (31 minute(s), 21 second(s))
2 error(s), 31 warning(s) (31 minute(s), 21 second(s))

--- End code ---
I've also attached an image of the path and fields that were used for the compiler. No matter what I used for the linker for static libraries, the build fails. The ar.exe used as a linker for static libs is from C:\mingw64\x86_64-w64-mingw32. The ar.exe in C:\mingw64\bin also failed as part of the 32-bit toolchain, but worked in the 64-bit toolchain

If anyone is building 32-bit versions of C::B successfully, I'd appreciate you sharing the toolchain thst your using.

Regards

Miguel Gimenez:
I use the MinGW64 toolchain targetting Win32 from Sourceforge, it uses GCC 8.1.0.

EDIT: you can checkout r12879 and reenable Spellchecker.

Navigation

[0] Message Index

[#] Next page

Go to full version