Trouble installing wxWIDGETS w/CodeLite - c++

I am trying to install wxWIDGETS w/CodeLite by following their instructions and it does not work. I am stuck on a step. Can you please help me? In case you're wondering, wxWIDGETS is a gui library for C++:
Hello, I am trying to reinstall wxWIDGETS from the ground up. Here's
what I've done so far in one of the easiest explanations yet:
I went on here for installation help with MINGW (the compiler):
https://wiki.wxwidgets.org/Installing_M ... er_Windows
I went on here for installation help on compiling wxWIDGETS with MinGW
(to install it, am I right?): https://wiki.wxwidgets.org/Compiling_wx
... tall_MinGW
I've also done this: https://wiki.wxwidgets.org/Adding_an_En ...
er_Windows
I've downloaded MinGW from here:
http://sourceforge.net/projects/mingw/f ... e/download & then I've
reinstalled it.
So, here's what I've done so far:
Uninstalled/removed wxWIDGETS & MinGW (the compiler, I've
uninstalled/removed all of my compilers) → Reinstalled/re-added MinGW
and wxWIDGETS (https://www.wxwidgets.org/downloads/, I took the
Windows Installer under Source) → Followed these steps:
https://wiki.wxwidgets.org/Installing_M ... er_Windows → Followed
these steps: https://wiki.wxwidgets.org/Adding_an_En ... er_Windows →
Followed these steps: https://wiki.wxwidgets.org/Compiling_wx ...
with_MinGW → Now I'm at the "Build the library" step and I'm
specifically on "Clean up the source:" and I am stuck on this step
w/an error that says "gcc_mswundll/wxjpeg_jctrans.o.d:1: *** missing
separator. Stop." how can I fix this? Can you please assist me?
Please help.
Update 11/3/2015:
This is the full-log of what I've done. I've deleted/removed and reinstalled CodeLite, wxWIDGETS, and even my minGW compiler & followed instructions as advised # https://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW
Now here is the full log as requested:
C:\Windows\system32>CD C:\wxWidgets-3.0.2\build\msw
C:\wxWidgets-3.0.2\build\msw>mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUI
LD=release clean
if exist gcc_mswudll\*.o del gcc_mswudll\*.o
if exist gcc_mswudll\*.d del gcc_mswudll\*.d
if exist ..\..\lib\gcc_dll\libwxregexu.a del ..\..\lib\gcc_dll\libwxregexu.a
if exist ..\..\lib\gcc_dll\libwxzlib.a del ..\..\lib\gcc_dll\libwxzlib.a
if exist ..\..\lib\gcc_dll\libwxpng.a del ..\..\lib\gcc_dll\libwxpng.a
if exist ..\..\lib\gcc_dll\libwxjpeg.a del ..\..\lib\gcc_dll\libwxjpeg.a
if exist ..\..\lib\gcc_dll\libwxtiff.a del ..\..\lib\gcc_dll\libwxtiff.a
if exist ..\..\lib\gcc_dll\libwxexpat.a del ..\..\lib\gcc_dll\libwxexpat.a
if exist ..\..\lib\gcc_dll\libwxscintilla.a del ..\..\lib\gcc_dll\libwxscintilla
.a
if exist ..\..\lib\gcc_dll\wxmsw30u_gcc_custom.dll del ..\..\lib\gcc_dll\wxmsw30
u_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u.a del ..\..\lib\gcc_dll\libwxmsw30u.a
if exist ..\..\lib\gcc_dll\libwxmsw30u.a del ..\..\lib\gcc_dll\libwxmsw30u.a
if exist ..\..\lib\gcc_dll\wxbase30u_gcc_custom.dll del ..\..\lib\gcc_dll\wxbase
30u_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxbase30u.a del ..\..\lib\gcc_dll\libwxbase30u.a
if exist ..\..\lib\gcc_dll\libwxbase30u.a del ..\..\lib\gcc_dll\libwxbase30u.a
if exist ..\..\lib\gcc_dll\wxbase30u_net_gcc_custom.dll del ..\..\lib\gcc_dll\wx
base30u_net_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxbase30u_net.a del ..\..\lib\gcc_dll\libwxbase30u
_net.a
if exist ..\..\lib\gcc_dll\libwxbase30u_net.a del ..\..\lib\gcc_dll\libwxbase30u
_net.a
if exist ..\..\lib\gcc_dll\wxmsw30u_core_gcc_custom.dll del ..\..\lib\gcc_dll\wx
msw30u_core_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_core.a del ..\..\lib\gcc_dll\libwxmsw30u_
core.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_core.a del ..\..\lib\gcc_dll\libwxmsw30u_
core.a
if exist ..\..\lib\gcc_dll\wxmsw30u_adv_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw30u_adv_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_adv.a del ..\..\lib\gcc_dll\libwxmsw30u_a
dv.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_adv.a del ..\..\lib\gcc_dll\libwxmsw30u_a
dv.a
if exist ..\..\lib\gcc_dll\wxmsw30u_media_gcc_custom.dll del ..\..\lib\gcc_dll\w
xmsw30u_media_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_media.a del ..\..\lib\gcc_dll\libwxmsw30u
_media.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_media.a del ..\..\lib\gcc_dll\libwxmsw30u
_media.a
if exist ..\..\lib\gcc_dll\wxmsw30u_html_gcc_custom.dll del ..\..\lib\gcc_dll\wx
msw30u_html_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_html.a del ..\..\lib\gcc_dll\libwxmsw30u_
html.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_html.a del ..\..\lib\gcc_dll\libwxmsw30u_
html.a
if exist ..\..\lib\gcc_dll\wxmsw30u_webview_gcc_custom.dll del ..\..\lib\gcc_dll
\wxmsw30u_webview_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_webview.a del ..\..\lib\gcc_dll\libwxmsw3
0u_webview.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_webview.a del ..\..\lib\gcc_dll\libwxmsw3
0u_webview.a
if exist ..\..\lib\gcc_dll\wxmsw30u_qa_gcc_custom.dll del ..\..\lib\gcc_dll\wxms
w30u_qa_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_qa.a del ..\..\lib\gcc_dll\libwxmsw30u_qa
.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_qa.a del ..\..\lib\gcc_dll\libwxmsw30u_qa
.a
if exist ..\..\lib\gcc_dll\wxbase30u_xml_gcc_custom.dll del ..\..\lib\gcc_dll\wx
base30u_xml_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxbase30u_xml.a del ..\..\lib\gcc_dll\libwxbase30u
_xml.a
if exist ..\..\lib\gcc_dll\libwxbase30u_xml.a del ..\..\lib\gcc_dll\libwxbase30u
_xml.a
if exist ..\..\lib\gcc_dll\wxmsw30u_xrc_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw30u_xrc_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_xrc.a del ..\..\lib\gcc_dll\libwxmsw30u_x
rc.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_xrc.a del ..\..\lib\gcc_dll\libwxmsw30u_x
rc.a
if exist ..\..\lib\gcc_dll\wxmsw30u_aui_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw30u_aui_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_aui.a del ..\..\lib\gcc_dll\libwxmsw30u_a
ui.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_aui.a del ..\..\lib\gcc_dll\libwxmsw30u_a
ui.a
if exist ..\..\lib\gcc_dll\wxmsw30u_ribbon_gcc_custom.dll del ..\..\lib\gcc_dll\
wxmsw30u_ribbon_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_ribbon.a del ..\..\lib\gcc_dll\libwxmsw30
u_ribbon.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_ribbon.a del ..\..\lib\gcc_dll\libwxmsw30
u_ribbon.a
if exist ..\..\lib\gcc_dll\wxmsw30u_propgrid_gcc_custom.dll del ..\..\lib\gcc_dl
l\wxmsw30u_propgrid_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_propgrid.a del ..\..\lib\gcc_dll\libwxmsw
30u_propgrid.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_propgrid.a del ..\..\lib\gcc_dll\libwxmsw
30u_propgrid.a
if exist ..\..\lib\gcc_dll\wxmsw30u_richtext_gcc_custom.dll del ..\..\lib\gcc_dl
l\wxmsw30u_richtext_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_richtext.a del ..\..\lib\gcc_dll\libwxmsw
30u_richtext.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_richtext.a del ..\..\lib\gcc_dll\libwxmsw
30u_richtext.a
if exist ..\..\lib\gcc_dll\wxmsw30u_stc_gcc_custom.dll del ..\..\lib\gcc_dll\wxm
sw30u_stc_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_stc.a del ..\..\lib\gcc_dll\libwxmsw30u_s
tc.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_stc.a del ..\..\lib\gcc_dll\libwxmsw30u_s
tc.a
if exist ..\..\lib\gcc_dll\wxmsw30u_gl_gcc_custom.dll del ..\..\lib\gcc_dll\wxms
w30u_gl_gcc_custom.dll
if exist ..\..\lib\gcc_dll\libwxmsw30u_gl.a del ..\..\lib\gcc_dll\libwxmsw30u_gl
.a
if exist ..\..\lib\gcc_dll\libwxmsw30u_gl.a del ..\..\lib\gcc_dll\libwxmsw30u_gl
.a
mingw32-make -C ..\..\samples -f makefile.gcc LINK_DLL_FLAGS="-shared" LINK_MODU
LE_FLAGS="-shared" CC="gcc" CXX="g++" CFLAGS="" CXXFLAGS="" CPPFLAGS="" LDFLAGS=
"" CPP="gcc -E" SHARED="1" TOOLKIT_VERSION="" WXUNIV="0" UNICODE="1" MSLU="0" BU
ILD="release" DEBUG_INFO="default" DEBUG_FLAG="1" MONOLITHIC="0" USE_GUI="1" USE
_HTML="1" USE_WEBVIEW="1" USE_MEDIA="1" USE_XRC="1" USE_AUI="1" USE_RIBBON="1" U
SE_PROPGRID="1" USE_RICHTEXT="1" USE_STC="1" USE_OPENGL="1" USE_QA="0" USE_EXCEP
TIONS="1" USE_RTTI="1" USE_THREADS="1" USE_CAIRO="0" OFFICIAL_BUILD="0" VENDOR="
custom" WX_FLAVOUR="" WX_LIB_FLAVOUR="" CFG="" CPPUNIT_CFLAGS="" CPPUNIT_LIBS=""
RUNTIME_LIBS="dynamic" GCC_VERSION="3" WINDRES="windres --use-temp-file" clean
mingw32-make[1]: Entering directory 'C:/wxWidgets-3.0.2/samples'
if exist .\*.o del .\*.o
if exist .\*.d del .\*.d
mingw32-make -C access -f makefile.gcc LINK_DLL_FLAGS="-shared" LINK_MODULE_FLAG
S="-shared" CC="gcc" CXX="g++" CFLAGS="" CXXFLAGS="" CPPFLAGS="" LDFLAGS="" CPP=
"gcc -E" SHARED="1" TOOLKIT_VERSION="" WXUNIV="0" UNICODE="1" MSLU="0" BUILD="re
lease" DEBUG_INFO="default" DEBUG_FLAG="1" MONOLITHIC="0" USE_GUI="1" USE_HTML="
1" USE_WEBVIEW="1" USE_MEDIA="1" USE_XRC="1" USE_AUI="1" USE_RIBBON="1" USE_PROP
GRID="1" USE_RICHTEXT="1" USE_STC="1" USE_OPENGL="1" USE_QA="0" USE_EXCEPTIONS="
1" USE_RTTI="1" USE_THREADS="1" USE_CAIRO="0" OFFICIAL_BUILD="0" VENDOR="custom"
WX_FLAVOUR="" WX_LIB_FLAVOUR="" CFG="" CPPUNIT_CFLAGS="" CPPUNIT_LIBS="" RUNTIM
E_LIBS="dynamic" GCC_VERSION="3" WINDRES="windres --use-temp-file" clean
mingw32-make[2]: Entering directory 'C:/wxWidgets-3.0.2/samples/access'
makefile.gcc:1: *** missing separator. Stop.
mingw32-make[2]: Leaving directory 'C:/wxWidgets-3.0.2/samples/access'
makefile.gcc:44: recipe for target 'clean' failed
mingw32-make[1]: *** [clean] Error 2
mingw32-make[1]: Leaving directory 'C:/wxWidgets-3.0.2/samples'
makefile.gcc:5096: recipe for target 'clean' failed
mingw32-make: *** [clean] Error 2

It looks like you've tried something different before as you shouldn't have any .d files in the first place if this were your first attempt to build. So to begin with you should return to the clean state: either delete your existing directory entirely and unpack the archive again or, if you're using git, do git clean -dfx (warning: this will delete all files not under version control).
After this running mingw32-make -f makefile.gcc (with any extra options you need, such as BUILD=release) in build\msw subdirectory should work. If it doesn't, please update your question with the full command you used and its full output, and also mention which version of MinGW and wxWidgets exactly did you use.

Related

Trouble building ffmpeg with cuda for windows 32 with visual studio 2022

Here is my building process
I open mingw32 from the x64 Native Tools Command Prompt for VS 2022
then in the mingw32 shell:
# cd /
# ./c/Program\ Files/Microsoft\ Visual\ Studio/2022/Community/VC/Auxiliary/Build/vcvars32.bat
# cd ~
# pacman -Sy diffutils git make gcc yasm pkg-config --noconfirm
# git clone --depth 1 https://git.ffmpeg.org/ffmpeg.git ffmpeg
# git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git nv-codec-headers
# cd nv-codec-headers/
# make PREFIX=/usr/local
# make install PREFIX=/usr/local
# cd ..
# mkdir nv_sdk
# cp -r /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.7/lib/Win32/* nv_sdk
# cp -r /c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.7/include/* nv_sdk
# export PATH="/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx86/x86/":$PATH
# export PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7/bin/":$PATH
# ./configure --disable-everything --enable-decoder=h264 --enable-decoder=hevc --enable-cross-compile --disable-avdevice --disable-swresample --disable-postproc --disable-avfilter --target-os=mingw32 --enable-cuda-nvcc --enable-nonfree --toolchain=msvc --extra-cflags=-I../nv_sdk --extra-ldflags=" -m32 -L../nv_sdk" --enable-shared --shlibdir=SHARED_LIBS --arch=x86_32 --enable-runtime-cpudetect --enable-w32threads
# make -j8
# make install
first I have a bunch of warnings during the making looking like that:
libavutil/opt.c(1075): warning C4133: 'fonction' : types incompatibles - de 'AVPixelFormat *' à 'int *'
And finally the make install returns :
EXTERN_PREFIX="_" AR="lib.exe" NM="dumpbin.exe -symbols" ./compat/windows/makedef libavutil/libavutil.ver libavutil/adler32.o libavutil/aes.o libavutil/aes_ctr.o libavutil/audio_fifo.o libavutil/avsscanf.o libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o libavutil/buffer.o libavutil/camellia.o libavutil/cast5.o libavutil/channel_layout.o libavutil/color_utils.o libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/detection_bbox.o libavutil/dict.o libavutil/display.o libavutil/dovi_meta.o libavutil/downmix_info.o libavutil/encryption_info.o libavutil/error.o libavutil/eval.o libavutil/fifo.o libavutil/file.o libavutil/file_open.o libavutil/film_grain_params.o libavutil/fixed_dsp.o libavutil/float_dsp.o libavutil/frame.o libavutil/hash.o libavutil/hdr_dynamic_metadata.o libavutil/hdr_dynamic_vivid_metadata.o libavutil/hmac.o libavutil/hwcontext.o libavutil/hwcontext_d3d11va.o libavutil/hwcontext_dxva2.o libavutil/imgutils.o libavutil/integer.o libavutil/intmath.o libavutil/lfg.o libavutil/lls.o libavutil/log.o libavutil/log2_tab.o libavutil/lzo.o libavutil/mastering_display_metadata.o libavutil/mathematics.o libavutil/md5.o libavutil/mem.o libavutil/murmur3.o libavutil/opt.o libavutil/parseutils.o libavutil/pixdesc.o libavutil/pixelutils.o libavutil/random_seed.o libavutil/rational.o libavutil/rc4.o libavutil/reverse.o libavutil/ripemd.o libavutil/samplefmt.o libavutil/sha.o libavutil/sha512.o libavutil/slicethread.o libavutil/spherical.o libavutil/stereo3d.o libavutil/tea.o libavutil/threadmessage.o libavutil/time.o libavutil/timecode.o libavutil/tree.o libavutil/twofish.o libavutil/tx.o libavutil/tx_double.o libavutil/tx_float.o libavutil/tx_int32.o libavutil/utils.o libavutil/version.o libavutil/video_enc_params.o libavutil/x86/cpu.o libavutil/x86/cpuid.o libavutil/x86/fixed_dsp.o libavutil/x86/fixed_dsp_init.o libavutil/x86/float_dsp.o libavutil/x86/float_dsp_init.o libavutil/x86/imgutils.o libavutil/x86/imgutils_init.o libavutil/x86/lls.o libavutil/x86/lls_init.o libavutil/x86/tx_float.o libavutil/x86/tx_float_init.o libavutil/xga_font_data.o libavutil/xtea.o > libavutil/avutil-57.def
Could not create temporary library.
make: *** [ffbuild/library.mak:118: libavutil/avutil-57.dll] Error 1
What am I doing wrong ?
shall I install others packets from pacman?
I open mingw32 from the x64 Native Tools Command Prompt for VS 2022
maybe you should open it in X86 Native Tools Command Prompt for VS 2022

How to use HAVE_BOOST in ax_boost_base

The ax_boost_base page indicates that it sets HAVE_BOOST. So I tried it in my configure.ac file:
AX_BOOST_BASE([1.48],, [AC_MSG_ERROR([libfoo needs Boost, but it was not found in your system])])
AC_MSG_NOTICE(["HAVE_BOOST value"])
AC_MSG_NOTICE([$HAVE_BOOST])
When I run configure, HAVE_BOOST does not seem to have any value:
checking for boostlib >= 1.48 (104800)... yes
configure: "HAVE_BOOST value"
configure:
How do I use this HAVE_BOOST in my configure.ac? Specifically, I want to append a file into my AC_OUTPUT if HAVE_BOOST is set. For example, if HAVE_BOOST is not set, then I want:
AC_OUTPUT([
Makefile
include/Makefile
comm/Makefile
ordinary_app/Makefile
])
But if HAVE_BOOST is set, then I want this:
AC_OUTPUT([
Makefile
include/Makefile
comm/Makefile
ordinary_app/Makefile
boost_enabled_app/Makefile
You missed to set the result back to some variable. You can try this
AX_BOOST_BASE([1.48],
[have_boost=yes],
[AC_MSG_ERROR([libfoo needs Boost, but it was not found in your system])]
)
AC_MSG_NOTICE(["have_boost value"])
AC_MSG_NOTICE([$have_boost])
The HAVE_BOOST is set in the m4 macro ax_boost_base uses AC_DEFINE that would be generated in config.h. It's not a shell variable.
Eventually you can use the var $have_boost to get what you want
if test "$have_boost" != yes; then
AC_OUTPUT([
Makefile
include/Makefile
comm/Makefile
ordinary_app/Makefile
])
else
AC_OUTPUT([
Makefile
include/Makefile
comm/Makefile
ordinary_app/Makefile
boost_enabled_app/Makefile
])
fi

Cleaning recipes after build in Yocto

I know to reduce the disk space, we need to add INHERIT += "rm_work" in the local.conf, I added in local.conf, but it is still not deleting the files after building the recipe.
bitbake -e core-image-minimal | grep ^INHERIT
INHERIT=" multilib_global rm_work poky-sanity uninative package_rpm buildstats image-mklibs image-prelink debian devshell sstate license remove-libtool blacklist sanity"
INHERIT_BLACKLIST="blacklist"
INHERIT_DISTRO="debian devshell sstate license remove-libtool"
I verified by looking at log.task_order of a particular recipe, what I am missing here.
do_fetch (12251): log.do_fetch.12251
do_prepare_recipe_sysroot (12440): log.do_prepare_recipe_sysroot.12440
do_unpack (13072): log.do_unpack.13072
do_patch (14329): log.do_patch.14329
do_configure (15730): log.do_configure.15730
do_compile (4380): log.do_compile.4380
do_mkimage (10675): log.do_mkimage.10675
do_install (10749): log.do_install.10749
do_package (11298): log.do_package.11298
do_packagedata (6787): log.do_packagedata.6787
do_package_write_rpm (27291): log.do_package_write_rpm.27291

Qt cross compilation from x86 Ubuntu to ARM Beagle Bone almost finished with strange mistake R_ARM_THM_MOVW_ABS_NC

I already spent lots of time on trying to crosscompile Qt 5.2.1 (as a recommended and stable one) from my x86 Ubuntu to ARM Beagle Bone Black. After about 20 minutes the compilation ends with a strange mistake. This is the end of the compilation console output:
rm -f libQt5Core.so.5.2.1 libQt5Core.so libQt5Core.so.5 libQt5Core.so.5.2
/home/piotrek/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-g++ --sysroot=/media/rootfs -Wl,--no-undefined -Wl,-O1 -shared -Wl,-Bsymbolic-functions -Wl,--dynamic-list,/home/piotrek/qt-everywhere-opensource-src-5.2.1/qtbase/src/corelib/QtCore.dynlist -Wl,-soname,libQt5Core.so.5 -o libQt5Core.so.5.2.1 .obj/qabstractanimation.o .obj/qvariantanimation.o .obj/qpropertyanimation.o .obj/qanimationgroup.o .obj/qsequentialanimationgroup.o .obj/qparallelanimationgroup.o .obj/qpauseanimation.o .obj/qatomic_unix.o .obj/qglobal.o .obj/qglobalstatic.o .obj/qlibraryinfo.o .obj/qmalloc.o .obj/qnumeric.o .obj/qlogging.o .obj/qatomic.o .obj/qexception.o .obj/qresultstore.o .obj/qfutureinterface.o .obj/qfuturewatcher.o .obj/qmutex.o .obj/qreadwritelock.o .obj/qrunnable.o .obj/qmutexpool.o .obj/qsemaphore.o .obj/qthread.o .obj/qthreadpool.o .obj/qthreadstorage.o .obj/qthread_unix.o .obj/qwaitcondition_unix.o .obj/qarraydata.o .obj/qbitarray.o .obj/qbytearray.o .obj/qbytearraymatcher.o .obj/qcollator.o .obj/qcommandlineoption.o .obj/qcommandlineparser.o .obj/qcryptographichash.o .obj/qdatetime.o .obj/qdatetimeparser.o .obj/qeasingcurve.o .obj/qelapsedtimer.o .obj/qfreelist.o .obj/qhash.o .obj/qline.o .obj/qlinkedlist.o .obj/qlist.o .obj/qlocale.o .obj/qlocale_tools.o .obj/qpoint.o .obj/qmap.o .obj/qmargins.o .obj/qmessageauthenticationcode.o .obj/qcontiguouscache.o .obj/qrect.o .obj/qregexp.o .obj/qregularexpression.o .obj/qrefcount.o .obj/qshareddata.o .obj/qsharedpointer.o .obj/qsimd.o .obj/qsize.o .obj/qstring.o .obj/qstringbuilder.o .obj/qstringlist.o .obj/qtextboundaryfinder.o .obj/qtimeline.o .obj/qtimezone.o .obj/qtimezoneprivate.o .obj/qunicodetools.o .obj/qvector.o .obj/qvsnprintf.o .obj/qelapsedtimer_unix.o .obj/qlocale_unix.o .obj/qtimezoneprivate_tz.o .obj/adler32.o .obj/compress.o .obj/crc32.o .obj/deflate.o .obj/gzclose.o .obj/gzlib.o .obj/gzread.o .obj/gzwrite.o .obj/infback.o .obj/inffast.o .obj/inflate.o .obj/inftrees.o .obj/trees.o .obj/uncompr.o .obj/zutil.o .obj/qlocale_icu.o .obj/qcollator_icu.o .obj/qtimezoneprivate_icu.o .obj/pcre16_byte_order.o .obj/pcre16_chartables.o .obj/pcre16_compile.o .obj/pcre16_config.o .obj/pcre16_dfa_exec.o .obj/pcre16_exec.o .obj/pcre16_fullinfo.o .obj/pcre16_get.o .obj/pcre16_globals.o .obj/pcre16_jit_compile.o .obj/pcre16_maketables.o .obj/pcre16_newline.o .obj/pcre16_ord2utf16.o .obj/pcre16_refcount.o .obj/pcre16_string_utils.o .obj/pcre16_study.o .obj/pcre16_tables.o .obj/pcre16_ucd.o .obj/pcre16_utf16_utils.o .obj/pcre16_valid_utf16.o .obj/pcre16_version.o .obj/pcre16_xclass.o .obj/harfbuzz-buffer.o .obj/harfbuzz-gdef.o .obj/harfbuzz-gsub.o .obj/harfbuzz-gpos.o .obj/harfbuzz-impl.o .obj/harfbuzz-open.o .obj/harfbuzz-stream.o .obj/harfbuzz-shaper-all.o .obj/qharfbuzz.o .obj/qabstractfileengine.o .obj/qbuffer.o .obj/qdatastream.o .obj/qdataurl.o .obj/qtldurl.o .obj/qdebug.o .obj/qdir.o .obj/qdiriterator.o .obj/qfile.o .obj/qfiledevice.o .obj/qfileinfo.o .obj/qipaddress.o .obj/qiodevice.o .obj/qlockfile.o .obj/qnoncontiguousbytedevice.o .obj/qprocess.o .obj/qtextstream.o .obj/qtemporarydir.o .obj/qtemporaryfile.o .obj/qresource.o .obj/qresource_iterator.o .obj/qsavefile.o .obj/qstandardpaths.o .obj/qurl.o .obj/qurlidna.o .obj/qurlquery.o .obj/qurlrecode.o .obj/qsettings.o .obj/qfsfileengine.o .obj/qfsfileengine_iterator.o .obj/qfilesystemwatcher.o .obj/qfilesystemwatcher_polling.o .obj/qfilesystementry.o .obj/qfilesystemengine.o .obj/qfileselector.o .obj/qloggingcategory.o .obj/qloggingregistry.o .obj/qfsfileengine_unix.o .obj/qfilesystemengine_unix.o .obj/qlockfile_unix.o .obj/qprocess_unix.o .obj/qfilesystemiterator_unix.o .obj/qstandardpaths_unix.o .obj/qfilesystemwatcher_inotify.o .obj/qabstractitemmodel.o .obj/qabstractproxymodel.o .obj/qitemselectionmodel.o .obj/qidentityproxymodel.o .obj/qsortfilterproxymodel.o .obj/qstringlistmodel.o .obj/qjson.o .obj/qjsondocument.o .obj/qjsonobject.o .obj/qjsonarray.o .obj/qjsonvalue.o .obj/qjsonwriter.o .obj/qjsonparser.o .obj/qpluginloader.o .obj/qfactoryloader.o .obj/quuid.o .obj/qlibrary.o .obj/qelfparser_p.o .obj/qmachparser.o .obj/qlibrary_unix.o .obj/qabstracteventdispatcher.o .obj/qabstractnativeeventfilter.o .obj/qbasictimer.o .obj/qeventloop.o .obj/qcoreapplication.o .obj/qcoreevent.o .obj/qmetaobject.o .obj/qmetatype.o .obj/qmetaobjectbuilder.o .obj/qmimedata.o .obj/qobject.o .obj/qobjectcleanuphandler.o .obj/qsignalmapper.o .obj/qsocketnotifier.o .obj/qtimer.o .obj/qtranslator.o .obj/qvariant.o .obj/qcoreglobaldata.o .obj/qsharedmemory.o .obj/qsystemsemaphore.o .obj/qpointer.o .obj/qmath.o .obj/qsystemerror.o .obj/qcore_unix.o .obj/qcrashhandler.o .obj/qeventdispatcher_unix.o .obj/qtimerinfo_unix.o .obj/qeventdispatcher_glib.o .obj/qsharedmemory_unix.o .obj/qsystemsemaphore_unix.o .obj/qisciicodec.o .obj/qlatincodec.o .obj/qtextcodec.o .obj/qtsciicodec.o .obj/qutfcodec.o .obj/qicucodec.o .obj/qstatemachine.o .obj/qabstractstate.o .obj/qstate.o .obj/qfinalstate.o .obj/qhistorystate.o .obj/qabstracttransition.o .obj/qsignaltransition.o .obj/qeventtransition.o .obj/qmimedatabase.o .obj/qmimetype.o .obj/qmimemagicrulematcher.o .obj/qmimetypeparser.o .obj/qmimemagicrule.o .obj/qmimeglobpattern.o .obj/qmimeprovider.o .obj/qxmlstream.o .obj/qxmlutils.o .obj/qrc_mimetypes.o .obj/moc_qabstractanimation_p.o .obj/moc_qnamespace.o .obj/moc_qthread.o .obj/moc_qthreadpool.o .obj/moc_qfuturewatcher.o .obj/moc_qeasingcurve.o .obj/moc_qlocale.o .obj/moc_qtimeline.o .obj/moc_qfile.o .obj/moc_qfiledevice.o .obj/moc_qiodevice.o .obj/moc_qnoncontiguousbytedevice_p.o .obj/moc_qtextstream_p.o .obj/moc_qtemporaryfile.o .obj/moc_qsavefile.o .obj/moc_qsettings.o .obj/moc_qfilesystemwatcher_p.o .obj/moc_qfilesystemwatcher_polling_p.o .obj/moc_qfilesystemwatcher_inotify_p.o .obj/moc_qabstractitemmodel.o .obj/moc_qstringlistmodel.o .obj/moc_qpluginloader.o .obj/moc_qlibrary.o .obj/moc_qfactoryloader_p.o .obj/moc_qabstracteventdispatcher.o .obj/moc_qeventloop.o .obj/moc_qcoreapplication.o .obj/moc_qcoreevent.o .obj/moc_qmimedata.o .obj/moc_qsocketnotifier.o .obj/moc_qtimer.o .obj/moc_qtranslator.o .obj/moc_qobjectcleanuphandler.o .obj/moc_qsharedmemory.o .obj/moc_qeventdispatcher_unix_p.o .obj/moc_qeventdispatcher_glib_p.o .obj/moc_qabstractstate.o .obj/moc_qstate.o .obj/moc_qfinalstate.o .obj/moc_qhistorystate.o .obj/moc_qabstracttransition.o .obj/moc_qsignaltransition.o .obj/moc_qeventtransition.o -lrt -ldl -lpthread -licui18n -licuuc -lm -ldl -pthread -L/media/rootfs/usr/lib/arm-linux-gnueabihf -lgthread-2.0 -lglib-2.0 -lrt
/home/piotrek/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/../../../../arm-linux-gnueabihf/bin/ld: /media/rootfs/usr/lib/arm-linux-gnueabihf/libglib-2.0.a(libglib_2_0_la-gmain.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/media/rootfs/usr/lib/arm-linux-gnueabihf/libglib-2.0.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [../../lib/libQt5Core.so.5.2.1] Error 1
make[3]: Leaving directory `/home/piotrek/qt-everywhere-opensource-src-5.2.1/qtbase/src/corelib'
make[2]: *** [sub-corelib-make_first] Error 2
make[2]: Leaving directory `/home/piotrek/qt-everywhere-opensource-src-5.2.1/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory `/home/piotrek/qt-everywhere-opensource-src-5.2.1/qtbase'
make: *** [module-qtbase-make_first] Error 2
I start the compilation process with standard command:
sudo make -j4
I believe the important part of the error output is:
(libglib_2_0_la-gmain.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
My Qt was configured with following command:
(device linux-beagleboard-g++ was edited for the Beaglebone)
sudo ./configure -prefix /home/piotrek/qt-everywhere-opensource-src-5.4.0 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/home/piotrek/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf- -sysroot /media/rootfs -release -opensource -confirm-license -opengl es2 -v -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb -qt-xkbcommon
How can i eliminate this error and push the compilation foreward? Where does it come form?
This is not related to your problem, I am asking anyways. Why do you to use Qt5.2.1. It quite old and lacking many improvements of newer versions.

Boost: Bootstrap.bat compilation failure to build bjam

I would like to use the Boost Filesystem library. I am using CodeBolcks for development on Windows. I am following the "Getting Started on Windows". http://www.boost.org/doc/libs/1_53_0/more/getting_started/windows.html#install-boost-build. I made the following:
1) I downloaded and extracted boost to: d:\boost_1_53_0
2) I executed this:
D:\boost_1_53_0\tools\build\v2>bootstrap.bat gcc
Bootstrapping the build engine
Failed to bootstrap the build engine
Please consult bootstrap.log for furter diagnostics.
The log file contains:
###
### Using 'gcc' toolset.
###
D:\boost_1_53_0\tools\build\v2\engine>if exist bootstrap rd /S /Q bootstrap
D:\boost_1_53_0\tools\build\v2\engine>md bootstrap
D:\boost_1_53_0\tools\build\v2\engine>gcc -DNT -o bootstrap\jam0.exe command.c compile.c constants.c debug.c execnt.c filent.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathunix.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c md5.c pwd.c class.c w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c
D:\boost_1_53_0\tools\build\v2\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= " clean
...found 1 target...
...updating 1 target...
...updated 1 target...
D:\boost_1_53_0\tools\build\v2\engine>.\bootstrap\jam0 -f build.jam --toolset=gcc "--toolset-root= "
...found 50 targets...
...updating 2 targets...
[COMPILE] bin.ntx86\b2.exe
"gcc" -o bin.ntx86\b2.exe "-DNDEBUG" "-DOPT_HEADER_CACHE_EXT" "-DOPT_GRAPH_DEBUG_EXT" "-DOPT_SEMAPHORE" "-DOPT_AT_FILES" "-DOPT_DEBUG_PROFILE" "-DOPT_FIX_TARGET_VARIABLES_EXT" "-DOPT_IMPROVED_PATIENCE_EXT" "-DNT" "-DYYSTACKSIZE=5000" "-pedantic" "-fno-strict-aliasing" "-s" "-O3" "-Wno-long-long" "command.c" "compile.c" "constants.c" "debug.c" "function.c" "glob.c" "hash.c" "hcache.c" "headers.c" "hdrmacro.c" "jam.c" "jambase.c" "jamgram.c" "lists.c" "make.c" "make1.c" "mem.c" "object.c" "option.c" "output.c" "parse.c" "regexp.c" "rules.c" "scan.c" "search.c" "subst.c" "w32_getreg.c" "timestamp.c" "variable.c" "modules.c" "strings.c" "filesys.c" "builtins.c" "pwd.c" "class.c" "native.c" "md5.c" "modules/set.c" "modules/path.c" "modules/regex.c" "modules/property-set.c" "modules/sequence.c" "modules/order.c" "execnt.c" "filent.c" "pathunix.c"
...failed [COMPILE] bin.ntx86\b2.exe...
...removing bin.ntx86\b2.exe
...skipped bjam.exe for lack of b2.exe...
...failed updating 1 target...
...skipped 1 target...
As we see, the compilation fails. I do not know why. How to successfully install boost libraries?
Note: "gcc --version" returns the version of gcc
Thank you.
EDIT: I managed to create b2.exe, by executing
"gcc" -o bin.ntx86\b2.exe "-DNDEBUG" "-DOPT_HEADER_CACHE_EXT" "-DOPT_GRAPH_DEBUG_EXT" "-DOPT_SEMAPHORE" "-DOPT_AT_FILES" "-DOPT_DEBUG_PROFILE" "-DOPT_FIX_TARGET_VARIABLES_EXT" "-DOPT_IMPROVED_PATIENCE_EXT" "-DNT" "-DYYSTACKSIZE=5000" "-pedantic" "-fno-strict-aliasing" "-s" "-O3" "-Wno-long-long" "command.c" "compile.c" "constants.c" "debug.c" "function.c" "glob.c" "hash.c" "hcache.c" "headers.c" "hdrmacro.c" "jam.c" "jambase.c" "jamgram.c" "lists.c" "make.c" "make1.c" "mem.c" "object.c" "option.c" "output.c" "parse.c" "regexp.c" "rules.c" "scan.c" "search.c" "subst.c" "w32_getreg.c" "timestamp.c" "variable.c" "modules.c" "strings.c" "filesys.c" "builtins.c" "pwd.c" "class.c" "native.c" "md5.c" "modules/set.c" "modules/path.c" "modules/regex.c" "modules/property-set.c" "modules/sequence.c" "modules/order.c" "execnt.c" "filent.c" "pathunix.c"
I moved on the next step in the guide. Now, I get an argument error. What do you think?
D:\boost_1_53_0\tools\build\v2\engine\bin.ntx86>b2 --toolset=gcc "--prefix=D:\Program Files\CodeBlocks" install
notice: could not find main target install
notice: assuming it is a name of file to create.
D:/boost_1_53_0/tools/build/v2/build\project.jam:753: in attribute
warning: rulename $($(project).attributes).get expands to empty string
D:/boost_1_53_0/tools/build/v2/build\project.jam:765: in project.target
D:/boost_1_53_0/tools/build/v2\build-system.jam:708: in load
D:\boost_1_53_0\tools\build\v2\kernel\modules.jam:283: in import
D:\boost_1_53_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build
D:\boost_1_53_0\tools\build\v2\boost-build.jam:8: in module scope
D:/boost_1_53_0/tools/build/v2/build\project.jam:753: in project.attribute
warning: rulename $($(project).attributes).get expands to empty string
D:/boost_1_53_0/tools/build/v2/build\targets.jam:206: in object(project-target)#
45.__init__
D:/boost_1_53_0/tools/build/v2/kernel\class.jam:88: in new
D:/boost_1_53_0/tools/build/v2/build\project.jam:765: in project.target
D:/boost_1_53_0/tools/build/v2\build-system.jam:708: in load
D:\boost_1_53_0\tools\build\v2\kernel\modules.jam:283: in import
D:\boost_1_53_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build
D:\boost_1_53_0\tools\build\v2\boost-build.jam:8: in module scope
D:/boost_1_53_0/tools/build/v2/build\project.jam:753: in project.attribute
warning: rulename $($(project).attributes).get expands to empty string
D:/boost_1_53_0/tools/build/v2/build\targets.jam:226: in object(project-target)#45.get
D:/boost_1_53_0/tools/build/v2\build-system.jam:721: in load
D:\boost_1_53_0\tools\build\v2\kernel\modules.jam:283: in import
D:\boost_1_53_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build
D:\boost_1_53_0\tools\build\v2\boost-build.jam:8: in module scope
D:/boost_1_53_0/tools/build/v2\build-system.jam:722: in load
*** argument error
* rule project.load ( jamfile-location )
* called with: ( )
* missing argument jamfile-location
D:/boost_1_53_0/tools/build/v2/build\project.jam:53:see definition of rule 'project.load' being called
D:\boost_1_53_0\tools\build\v2\kernel\modules.jam:283: in import
D:\boost_1_53_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build
D:\boost_1_53_0\tools\build\v2\boost-build.jam:8: in module scope
In order to use Filesystem, I used another computer, and performed the following steps, and it worked:
1) Installed MinGW and added this enviroment variable => C:\MinGW\bin
2) Expanded boost_1_53_0 to c:\
3) cd c:\boost_1_53_0\tools\build\v2
4) bootstrap.bat gcc
5) b2 install --prefix="C:\Boostbuild" --toolset=gcc
6) Added this enviroment variable => C:\Boostbuild\bin
7) cd c:\boost_1_53_0
8) b2 --build-dir="C:\Boostbuild" toolset=gcc --build-type=complete stage
9) Installed CodeBlocks without MinGW
CodeBlocks:
10) Settings->Global variables: current variable => boost, Base => C:\boost_1_53_0, include => C:\boost_1_53_0\stage\lib
11) Create a new C++ console project, and right click on it:
Build Options->Choose Project Name on the left -> search directories
On compiler tab, press Add and type: $(#boost)
On linker tab, press Add and type: $(#boost.lib)
12) Right click on the C++ console project:
Build Options->Choose Project Name on the left -> linker settings
Add the following link libraries:
..\..\boost_1_53_0\stage\lib\libboost_filesystem-mgw46-mt-1_53.a
..\..\boost_1_53_0\stage\lib\libboost_system-mgw46-mt-1_53.a
Thanks everybody
Try to install the c++ packages and the Windows 10 SDK.
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk