CodeLite wxWdigets Installation

CodeLite installation/troubleshooting forum
9Strike
CodeLite Curious
Posts: 5
Joined: Sat Jul 23, 2016 3:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite wxWdigets Installation

Post by 9Strike »

Hi,

I have some Problems installing wxWdigets on Windows 10 Pro 64 bit.
I use Codelite 9.2.0 amd64 and TDM GCC 5.1.0-2 64 bit.

My Problems are:
1) where to get the right wxWidgets lib
1) how to install it

I already changed my environement variables as Eran suggested on stack overflow (sry for double post but I think its here better than on stack overflow):

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
WXWIN=C:\wxWidgets
WXCFG=gcc_dll\mswu
I downloaded wxWdigets from sourceforge (3.1 Version). I created a test workspace with a test application, just a wxFrame without changing anything. I got no problems building the Project, but if want to run the Project I got this error message:
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).
thanks for help!
Last edited by 9Strike on Sat Jul 23, 2016 5:36 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by eranif »

Your code compiles, but it loads the wrong wxWidgets binaries.
Make sure you also set the following in the environment variable (from within CodeLite: Settings->Environment variables)

Code: Select all

PATH=$PATH;C:\wxWidgets\lib\gcc_dll
Eran
Make sure you have read the HOW TO POST thread
9Strike
CodeLite Curious
Posts: 5
Joined: Sat Jul 23, 2016 3:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by 9Strike »

I added the line, but it doenst change anything. Same Error. Maybe this helps:

Code: Select all

Running program: ./Test
Program exited with return code: 3
Is the lib from sourceforge the right one?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by eranif »

Try running it form the command line and see if it works
Eran
Make sure you have read the HOW TO POST thread
9Strike
CodeLite Curious
Posts: 5
Joined: Sat Jul 23, 2016 3:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by 9Strike »

Now I get a new error message: wxmsw310u_gcc_cl.dll is missing.
I checked it out, I found the file here: "C:\wxWidgets\lib\gcc_dll\wxmsw310u_gcc_cl.dll"

very nice of you, that you try to help me! (sry for my english)


Okay, if I copy the file to the program dir, I get same error as I posted at the first post. Maybe if have to compile the lib with "C++ ABI 1008" myself?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by eranif »

What you need to do is to provide the *full* build log - so we can see which files are you linking against.
Please read this post: http://forums.codelite.org/viewtopic.php?f=3&t=804

Eran
Make sure you have read the HOW TO POST thread
9Strike
CodeLite Curious
Posts: 5
Joined: Sat Jul 23, 2016 3:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by 9Strike »

Code: Select all

C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Test - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test'
C:/TDM-GCC-64/bin/windres.exe -i "C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/win_resources.rc" --use-temp-file --define __WXMSW__ --define _UNICODE --include-dir C:/wxWidgets/lib/gcc_dll/mswu --include-dir C:/wxWidgets/include --define WXUSINGDLL    -o ./Debug/win_resources.rc.o
C:/TDM-GCC-64/bin/g++.exe  -c  "C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets/lib/gcc_dll/mswu -IC:/wxWidgets/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11    -o ./Debug/wxcrafter.cpp.o -I. -I.
C:/TDM-GCC-64/bin/g++.exe  -c  "C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter_bitmaps.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets/lib/gcc_dll/mswu -IC:/wxWidgets/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11    -o ./Debug/wxcrafter_bitmaps.cpp.o -I. -I.
C:/TDM-GCC-64/bin/g++.exe  -c  "C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets/lib/gcc_dll/mswu -IC:/wxWidgets/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11    -o ./Debug/main.cpp.o -I. -I.
C:/TDM-GCC-64/bin/windres.exe: warning: 24: 1: 1033: duplicate value
C:/TDM-GCC-64/bin/g++.exe  -c  "C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE -IC:/wxWidgets/lib/gcc_dll/mswu -IC:/wxWidgets/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0  -fno-keep-inline-dllexport -std=c++11    -o ./Debug/MainFrame.cpp.o -I. -I.
C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.cpp:62:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/wxWidgets/include/wx/xrc/xmlreshandler.h:23:0,
                 from C:/wxWidgets/include/wx/xrc/xmlres.h:30,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.h:5,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.cpp:1:
C:/wxWidgets/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.cpp:62:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/wxWidgets/include/wx/xrc/xmlreshandler.h:23:0,
                 from C:/wxWidgets/include/wx/xrc/xmlres.h:30,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.h:5,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.cpp:1:
C:/wxWidgets/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
In file included from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/main.cpp:1:0:
C:/wxWidgets/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);
                                                                     ^
C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/main.cpp:25:1: note: in expansion of macro 'IMPLEMENT_APP'
 IMPLEMENT_APP(MainApp)
 ^
In file included from C:/wxWidgets/include/wx/xrc/xmlreshandler.h:23:0,
                 from C:/wxWidgets/include/wx/xrc/xmlres.h:30,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.h:5,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.h:3,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/main.cpp:3:
C:/wxWidgets/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.cpp:27:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/wxWidgets/include/wx/xrc/xmlreshandler.h:23:0,
                 from C:/wxWidgets/include/wx/xrc/xmlres.h:30,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.h:5,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.h:3,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.cpp:1:
C:/wxWidgets/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.cpp:27:1: warning: 'virtual void wxWindowBase::SetInitialBestSize(const wxSize&)' is deprecated: use SetInitialSize() instead. [-Wdeprecated-declarations]
 }
 ^
In file included from C:/wxWidgets/include/wx/xrc/xmlreshandler.h:23:0,
                 from C:/wxWidgets/include/wx/xrc/xmlres.h:30,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/wxcrafter.h:5,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.h:3,
                 from C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test/MainFrame.cpp:1:
C:/wxWidgets/include/wx/window.h:1868:13: note: declared here
 inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
             ^
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/Test @"Test.txt" -L.    -mthreads -LC:/wxWidgets/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  -mwindows
mingw32-make.exe[1]: Leaving directory 'C:/Users/Stephan Lachnit/Documents/CodeLite/Test/Test'
====0 errors, 17 warnings====
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by eranif »

My original answer was correct (the concept), with a tiny mistake:

Instead of adding this:

Code: Select all

PATH=$PATH;C:\wxWidgets\lib\gcc_dll

You should add it like this:

Code: Select all

PATH=C:\wxWidgets\lib\gcc_dll;$PATH
You should set your wxWidgets path before any other path and it should work

Eran
Make sure you have read the HOW TO POST thread
9Strike
CodeLite Curious
Posts: 5
Joined: Sat Jul 23, 2016 3:25 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite wxWdigets Installation

Post by 9Strike »

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
PATH=C:\wxWidgets\lib\gcc_dll;$PATH
WXWIN=C:\wxWidgets
WXCFG=gcc_dll\mswu
But I get still the same error...
Maybe because the lib is compiled with TDM GCC 4.9.2 and I use TDM GCC 5.1.0 ?
Urusai
CodeLite Curious
Posts: 1
Joined: Wed Aug 03, 2016 2:53 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: CodeLite wxWdigets Installation

Post by Urusai »

9Strike wrote:

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
PATH=C:\wxWidgets\lib\gcc_dll;$PATH
WXWIN=C:\wxWidgets
WXCFG=gcc_dll\mswu
But I get still the same error...
Maybe because the lib is compiled with TDM GCC 4.9.2 and I use TDM GCC 5.1.0 ?[/quote]

Thanks for your post ~!
I got the same error after follow this post ,but i finaly find out that

Code: Select all

WXCFG=gcc_dll\mswu
shoudl be

Code: Select all

WXCFG=gcc_dll/mswu
.

Here is the Env settings

Code: Select all

CodeLiteDir=C:\Program Files\CodeLite
WXWIN=E:\wxWidgets-3.1.0
WXCFG=gcc_lib/mswud
Solved!!!!!!!!!!!!!!!!!!!!
Post Reply