Not Correct way to built wxwidgets?

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
sgx217
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Nov 10, 2010 8:07 am

Not Correct way to built wxwidgets?

Post by sgx217 »

I built the wxwidgets according to the codelite website,and i can built some programing,but i cannot built the wxCode,like the wxfreechar and wxsqlite3.Could you help me?



gccmswud\wxfreechart_dll_axisplot.o: In function `~AxisPlot':
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN11MarkerArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN11MarkerArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:64: more undefined references to `_imp___ZN9AxisArrayD1Ev
' follow
gccmswud\wxfreechart_dll_axisplot.o: In function `~AxisPlot':
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN11MarkerArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN11MarkerArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:64: more undefined references to `_imp___ZN9AxisArrayD1Ev
' follow
gccmswud\wxfreechart_dll_axisplot.o: In function `~AxisPlot':
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN11MarkerArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN11MarkerArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
C:\wxWidgets-2.8.11\components\freechart\build/../src/axisplot.cpp:64: undefined
reference to `_imp___ZN9AxisArrayD1Ev'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:64: more undefined references to `_imp___ZN9AxisArrayD1Ev
' follow
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:81: undefined reference to `_imp___ZN9AxisArray3AddERKP4A
xisj'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:82: undefined reference to `_imp___ZN9AxisArray3AddERKP4A
xisj'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:85: undefined reference to `_imp___ZN9AxisArray3AddERKP4A
xisj'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:86: undefined reference to `_imp___ZN9AxisArray3AddERKP4A
xisj'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:89: undefined reference to `_imp___ZN9AxisArray3AddERKP4A
xisj'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:90: more undefined references to `_imp___ZN9AxisArray3Add
ERKP4Axisj' follow
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:135: undefined reference to `_imp___ZN11MarkerArray3AddER
KP6Markerj'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:265: undefined reference to `_imp___Z10wxOnAssertPKwiPKcS
0_S0_'
gccmswud\wxfreechart_dll_axisplot.o:C:\wxWidgets-2.8.11\components\freechart\bui
ld/../src/axisplot.cpp:270: undefined reference to `_imp___Z10wxOnAssertPKwiPKcS
0_S0_'
gccmswud\wxfreechart_dll_bubbleplot.o:C:\wxWidgets-2.8.11\components\freechart\b
uild/../src/xyz/bubbleplot.cpp:38: undefined reference to `_imp___Z10wxOnAssertP
KwiPKcS0_S0_'
gccmswud\wxfreechart_dll_bubbleplot.o:C:\wxWidgets-2.8.11\components\freechart\b
uild/../src/xyz/bubbleplot.cpp:43: undefined reference to `_imp___Z10wxOnAssertP
KwiPKcS0_S0_'
gccmswud\wxfreechart_dll_bubbleplot.o:C:\wxWidgets-2.8.11\components\freechart\b
uild/../src/xyz/bubbleplot.cpp:44: undefined reference to `_imp___Z10wxOnAssertP
KwiPKcS0_S0_'
gccmswud\wxfreechart_dll_xyplot.o:C:\wxWidgets-2.8.11\components\freechart\build
/../src/xy/xyplot.cpp:41: more undefined references to `_imp___Z10wxOnAssertPKwi
PKcS0_S0_' follow
collect2: ld returned 1 exit status
mingw32-make: *** [..\lib\gcc_dll\wxcode_msw28ud_freechart.dll] Error 1[/img][/url]
Attachments
1.png
1.png (23.95 KiB) Viewed 3101 times
fatinbrain
In need of some credit
In need of some credit
Posts: 7
Joined: Thu Dec 22, 2011 10:03 am

Re: Not Correct way to built wxwidgets?

Post by fatinbrain »

Can you post the command which did you use to compile wxFreeChart?
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 340
Joined: Mon Oct 06, 2008 12:55 pm

Re: Not Correct way to built wxwidgets?

Post by samsam598 »

Example cmdline to build FreeChart:

Code: Select all

mingw32-make -f makefile.gcc WX_SHARED=0 WX_UNICODE=1 WX_DEBUG=0 WX_VERSION=29 WX_MONOLITHIC=1  WX_DIR=c:\person\codelite\wx312 2>errlog.txt
Please take note WX_VERSION and WX_DIR should be provided here.Meanwhile,for some third party library for wx ,its makefile.gcc is based on MONOLITHIC=0 other than MONOLITHIC=1 which caused problem while building the sample,IIRC,wxCURL is one of which makefile.gcc is based on wx's MONOLITHIC=0 (Under windows with MinGW compiler).So I simply and stupid build two version of wx to workaround this issue.Below is my build cmdline for wxWidgets2.9.3:

Code: Select all

mingw32-make -f makefile.gcc BUILD=release SHARED=0 UNICODE=1 MONOLITHIC=0 2>errlog.txt
mingw32-make -f makefile.gcc BUILD=release  SHARED=0 UNICODE=1 MONOLITHIC=1 2>errlog.txt
In your screenshot of the cmdline above,it is the minimal sample failed to build other than wxSqlite3 library.Please check in the lib/gcc_dll(lib) folder whether the lib's generated already.If yes,I think you can build the sample by setting up a new project from scratch with you favorite IDE. On the other hand,I encountered some weird issues when I tried to built the latest wxSqlite3 as well.I managed to workaround it by replacing the makefile.gcc with the one in previous version(wxSqlite3-1.9 should work IIRC).

Hope this helps.
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
VS Community 2019
msys2-mingw13.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2.4 Unicode Mono Static gcc static build
Post Reply