git clone https://github.com/wxWidgets/wxWidgets.git
and finaly compile in build-gtk folder as static and unicode lib with
../configure --enable-unicode --enable-monolithic --enable-debug --with-gtk --disable-shared --with-opengl --prefix=$(pwd)
ok i have in /home/a/wxWidgets/gtk-build/lib all libs ...
and in wx/ folder the headerslibwx_baseu-3.1.a,libwx_baseu_net-3.1.a,libwx_baseu_xml-3.1.a,libwx_gtk2u_adv-3.1.a,libwx_gtk2u_aui-3.1.a,libwx_gtk2u_core-3.1.a,libwx_gtk2u_gl-3.1.a,libwx_gtk2u_html-3.1.a,libwx_gtk2u_propgrid-3.1.a,libwx_gtk2u_qa-3.1.a,libwx_gtk2u_ribbon-3.1.a,libwx_gtk2u_richtext-3.1.a,libwx_gtk2u_stc-3.1.a,libwx_gtk2u_xrc-3.1.a,libwxjpeg-3.1.a,libwxregexu-3.1.a,libwxscintilla-3.1.a,libwxtiff-3.1.a
So every project compiler options are
Ok after now. Now i have clone wxpdsdoc`/home/a/wxWidgets/gtk-build/wx-config --cflags` and for linker `/home/a/wxWidgets/gtk-build/wx-config --libs all`
With autoreconf construct configure
With mkdir build-gtk and cd build-gtk i must make libs.
So i must use ../configure --enable-static --with-wx-config="/home/a/wxWidgets/gtk-build/wx-config" for use of already static libs of wxwidgets and to make static lib i use --enable-static.
Then with make CXXFLAGS="-std=c++11" must take static libs.
But i am taking
What i must do? What i am doing wrong?*** static library /home/a/wxWidgets/gtk-build/lib/libwx_baseu-3.1.a is not portable!
/usr/bin/ld: /home/a/wxWidgets/gtk-build/lib/libwx_gtk2u_core-3.1.a(corelib_event.o): relocation R_X86_64_32 against `_ZN14wxCommandEvent12ms_classInfoE' can not be used when making a shared object; recompile with -fPIC
/home/a/wxWidgets/gtk-build/lib/libwx_gtk2u_core-3.1.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libwxcode_gtk2u_pdfdoc-3.1.la] Error 1