CodeLite wxWdigets Installation

CodeLite installation/troubleshooting forum
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: CodeLite wxWdigets Installation

Post by wittend »

I am experiencing exactly the same problem as detailed above, but in my case it won't seem to go away.

I consistently get:
Mismatch between the program and library build versions detected. The library used 3.1.0 (wchar_t,compiler with C++ ABI 1002,wx Containers,compatible with 3.0), and your program used 3.1.0 (wchar_t,compiler with C++ ABI 1008,wx Containers,compatible with 3.0).
I too have set up a minimalist Gui app. I have installed and configured the TDM GCC 5.1.0 several times now. I have exorcised all of the "Please use --wxcfg" and "Please use--prefix" mysteries, installed the built wxWidgets from the SourceForge Codelite/MinGW folder, eliminated all of the build errors, (but not the 17 warnings) and set all my environment variables to reflect the equivalent reality of my Win7.1 environment. But I can't get around the rather nasty crash and messages about incompatible ABI's when I try to run the result.

My Environment variables are:

Code: Select all

CodeLiteDir=D:\bin\CodeLite
PATH=D:\bin\wxWidgets-3.1\lib\gcc_dll;$PATH;
WXCFG=gcc_dll/mswu
WXWIN=d:\bin\wxWidgets-3.1
My Build output is this:

Code: Select all

C:\Windows\system32\cmd.exe /C D:/bin/TDM-GCC-64/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ testGui - Release ]----------"
mingw32-make.exe[1]: Entering directory 'D:/Projects/wx/testWx/testGui'
D:/bin/TDM-GCC-64/bin/windres.exe -i "D:/Projects/wx/testWx/testGui/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir D:/bin/wxWidgets-3.1/lib/gcc_dll/mswu --include-dir D:/bin/wxWidgets-3.1/include --define WXUSINGDLL     -o ./Release/win_resources.rc.o
D:/bin/TDM-GCC-64/bin/windres.exe: warning: 24: 1: 1033: duplicate value
D:/bin/TDM-GCC-64/bin/g++.exe  -c  "D:/Projects/wx/testWx/testGui/wxcrafter.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu -ID:/bin/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11   -DSVN_REVISION=\"\"  -DNDEBUG  -o ./Release/wxcrafter.cpp.o -I. -I. -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu
D:/bin/TDM-GCC-64/bin/g++.exe  -c  "D:/Projects/wx/testWx/testGui/wxcrafter_bitmaps.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu -ID:/bin/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11   -DSVN_REVISION=\"\"  -DNDEBUG  -o ./Release/wxcrafter_bitmaps.cpp.o -I. -I. -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu
D:/bin/TDM-GCC-64/bin/g++.exe  -c  "D:/Projects/wx/testWx/testGui/MainFrame.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu -ID:/bin/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11   -DSVN_REVISION=\"\"  -DNDEBUG  -o ./Release/MainFrame.cpp.o -I. -I. -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu
D:/bin/TDM-GCC-64/bin/g++.exe  -c  "D:/Projects/wx/testWx/testGui/main.cpp" -O2 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu -ID:/bin/wxWidgets-3.1/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11   -DSVN_REVISION=\"\"  -DNDEBUG  -o ./Release/main.cpp.o -I. -I. -ID:/bin/wxWidgets-3.1/lib/gcc_dll/mswu
D:/Projects/wx/testWx/testGui/wxcrafter.cpp:62:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlreshandler.h:23:0,
                 from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlres.h:30,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.h:5,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.cpp:1:
D:/bin/wxWidgets-3.1/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:/Projects/wx/testWx/testGui/wxcrafter.cpp:62:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlreshandler.h:23:0,
                 from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlres.h:30,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.h:5,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.cpp:1:
D:/bin/wxWidgets-3.1/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from D:/Projects/wx/testWx/testGui/main.cpp:1:0:
D:/bin/wxWidgets-3.1/include/wx/app.h:896:69: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 #define IMPLEMENT_APP(app)                      wxIMPLEMENT_APP(app);
                                                                     ^
D:/Projects/wx/testWx/testGui/main.cpp:25:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MainApp)
 ^
In file included from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlreshandler.h:23:0,
                 from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlres.h:30,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.h:5,
                 from D:/Projects/wx/testWx/testGui/MainFrame.h:3,
                 from D:/Projects/wx/testWx/testGui/main.cpp:3:
D:/bin/wxWidgets-3.1/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:/Projects/wx/testWx/testGui/MainFrame.cpp:27:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlreshandler.h:23:0,
                 from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlres.h:30,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.h:5,
                 from D:/Projects/wx/testWx/testGui/MainFrame.h:3,
                 from D:/Projects/wx/testWx/testGui/MainFrame.cpp:1:
D:/bin/wxWidgets-3.1/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:/Projects/wx/testWx/testGui/MainFrame.cpp:27:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlreshandler.h:23:0,
                 from D:/bin/wxWidgets-3.1/include/wx/xrc/xmlres.h:30,
                 from D:/Projects/wx/testWx/testGui/wxcrafter.h:5,
                 from D:/Projects/wx/testWx/testGui/MainFrame.h:3,
                 from D:/Projects/wx/testWx/testGui/MainFrame.cpp:1:
D:/bin/wxWidgets-3.1/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
D:/bin/TDM-GCC-64/bin/g++.exe -o ./Release/testGui @"testGui.txt" -L. -LD:/bin/wxWidgets-3.1/lib/gcc_dll   -mwindows  -mthreads -LD:/bin/wxWidgets-3.1/lib/gcc_dll -lwxmsw31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
mingw32-make.exe[1]: Leaving directory 'D:/Projects/wx/testWx/testGui'
====0 errors, 17 warnings====
I have scoured this machine for any other wxWidgets binaries that may be surreptitiously corrupting the linkage at either build or at runtime and eliminated them (actually there were none). I tried to build from scratch but hit a dead end, but that is a fight for another day. I hope someone can suggest something, I'm getting a bit desperate...

Thanks,,
D
wittend
CodeLite Enthusiast
Posts: 44
Joined: Thu Oct 09, 2008 9:11 pm
Contact:

Re: CodeLite wxWdigets Installation

Post by wittend »

Ok, I succeed in building the whole wxWidgets 3.1.0 library from source on Windows with the TDM 5.1.0 tools and it links without too much agony. The code even runs! This has been a painful process.

Dave
Post Reply