User forums > Help
Error while codeblocks starts
rcoll:
I thought also an internal bitmap might have become corrupt, but I've downloaded wxWidgets-3.10 from a few different places, and the result is always the same.
I am building on Windows 7 Professional, service pack 1.
The compiler is TDM GCC 32-bit, ver 5.1.0
The commands to build wxWidgets are
C:
cd \Local\wxWidgets310\build\msw
PATH=C:\Local\TDM-GCC-32\bin;%PATH%
mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" UNICODE=1 BUILD=debug MONOLITHIC=1 SHARED=1
pause
Everything seems to build OK, it's only the run-time error that has me flummoxed.
(I have also tried the release version, but same problem.)
To build Code::Blocks, I am using the provided workspace and project (Codeblocks_wx30.cbp), with the system variables and custom variables (WX_CONFIG, etc) set up properly. It also seems to build correctly.
Thanks,
Ringo
yvesdm3000:
You are hitting this assertion:
--- Code: ---[C:/Local/wxWidgets310/build/msw/../../src/msw/bitmap.cpp @ 830]
828: bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
829: {
> 830: wxCHECK_MSG( image.IsOk(), false, wxT("invalid image") );
831:
832: UnRef();
00CA5AEE 0028DDEC FFFFFFFF 00000000 wxmsw310ud_gcc_custom.dll!CreateFromImage
--- End code ---
You should check the path to that image and see if it exists. My bet is on the fact that its missing since you've built it from source and probably it didn't install correctly or the build has synthesized the wrong resource paths.
Yves
rcoll:
Yes, that's it. However, it is not an external image ... it is built from a set of bits (stored as hex values) in "dockart.cpp".
I did some simple testing, and the bits all make valid images.
Ringo
oBFusCATed:
Does any of the wx samples in the samples folder work? Can you try the auidemo?
yvesdm3000:
Then it sounds like the bitmap subsystem is configured wrong at compile-time or broken somehow...
Yves
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version