[Interest] Qt 5.0.1 - QWebKit Compile Error

Varun Murli Kyatsandra varunmurli at gmail.com
Sat Apr 27 15:55:46 CEST 2013


Hi Kushal,

I am quiet new to package config as I never used it before and have just 
started gathering info on it for using it as per your suggestion.

I downloaded qt-everywhere-opensource-src-5.0.1.tar.gz and I am trying to 
build qtbase and qtwebkit using linux-mipsel-broadcom-97425-g++.

Below content is copied from my qmake.conf from 
qtbase/mkspecs/devices/linux-mipsel-broadcom-97425-g++

######################### >> qmake.conf start....
#
# qmake configuration for linux-mipsel-broadcom-97425-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                  += incremental gdb_dwarf_index
QMAKE_INCREMENTAL_STYLE = sublib

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)

load(device_config)

# Modify the defaults we loaded above
CROSS_COMPILE           = mipsel-linux-
QMAKE_CC                = $${CROSS_COMPILE}gcc
QMAKE_CXX               = $${CROSS_COMPILE}g++
QMAKE_CFLAGS            += -mips32
QMAKE_CXXFLAGS          += -mips32
QMAKE_LINK              = $${QMAKE_CXX}
QMAKE_LINK_SHLIB        = $${QMAKE_CXX}

QMAKE_AR                = $${CROSS_COMPILE}ar cqs
QMAKE_OBJCOPY           = $${CROSS_COMPILE}objcopy
QMAKE_STRIP             = $${CROSS_COMPILE}strip

# Override (Remove) -Wl -Bsymbolic-function from gcc-base-unix.conf
# May be compiler version specific
QMAKE_LFLAGS_BSYMBOLIC_FUNC = 

#TODO: Clean Qt to work with uclibc not calling itself GLIBC.
#QMAKE_CFLAGS           += -D__FORCE_NOGLIBC
#QMAKE_CXXFLAGS         += -D__FORCE_NOGLIBC

# Sanity checks
deviceSanityCheckCompiler()

isEmpty(B_REFSW_DEBUG):error("B_REFSW_DEBUG needs to be set via -device-
option B_REFSW_DEBUG=(y|n).")
isEmpty(BRCM_PLATFORM):error("B_REFSW_DEBUG needs to be set via -device-
option BRCM_PLATFORM=(97425|97428|..).")
isEmpty(BRCM_BHCP_VER):error("B_REFSW_DEBUG needs to be set via -device-
option BRCM_BHCP_VER=(b2|b1|..).")
isEmpty(BRCM_BASE_DIR):error("B_REFSW_DEBUG needs to be set via -device-
option BRCM_BASE_DIR=(path-to-base-dir).")

# MUST define according to your set up and hardware
BRCM_PLATFORM       = 97425
BRCM_BHCP_VER		= b2
BRCM_BASE		    = /opt/vendor/broadcom/7425/Refsw12.4
BRCM_NEXUS_PATH		= $$BRCM_BASE/nexus
BRCM_ROCKFORD_PATH	= $$BRCM_BASE/rockford
BRCM_APPLIBS_PATH	= $$BRCM_BASE/AppLibs
NEXUS_PLATFORM		= 97425

# Figure the kind of refsw build used.
BRCM_BUILD_TYPE         = debug
contains(B_REFSW_DEBUG, [Nn]) {
    BRCM_BUILD_TYPE     = release
}
BRCM_TARGETFS		= 
$$BRCM_APPLIBS_PATH/target/$${BRCM_PLATFORM}$${BRCM_BHCP_VER}.mipsel-
linux.$${BRCM_BUILD_TYPE}
BCM_USR_LOCAL		= $$BRCM_TARGETFS/usr/local 

QMAKE_INCDIR_OPENGL_ES2 = 
$$BRCM_ROCKFORD_PATH/middleware/v3d/interface/khronos/include
QMAKE_INCDIR_EGL 	= 
$$BRCM_ROCKFORD_PATH/middleware/v3d/interface/khronos/include
#QMAKE_LIBDIR_OPENGL_ES2 = 
$${BRCM_ROCKFORD_PATH}/middleware/v3d/lib_$${BRCM_PLATFORM}_$${BRCM_BUILD_TY
PE}
QMAKE_LIBDIR_OPENGL_ES2 = $$BRCM_TARGETFS/usr/local/lib/
#QMAKE_LIBDIR_EGL = 
$${BRCM_ROCKFORD_PATH}/middleware/v3d/lib_$${BRCM_PLATFORM}_$${BRCM_BUILD_TY
PE}
QMAKE_LIBDIR_EGL 	= $$QMAKE_LIBDIR_OPENGL_ES2
QMAKE_LIBS_OPENGL_ES2   = -lv3ddriver -lnxpl -lnexus -lrt
QMAKE_LIBS_EGL          = $$QMAKE_LIBS_OPENGL_ES2
QMAKE_LIBS		+= -lfreetype 
QMAKE_LIBS		+= -lgobject-2.0 -lglib-2.0 -lgthread-2.0
QMAKE_LIBS		+= -lsqlite3
QMAKE_LIBS		+= -lffi
QMAKE_LIBS		+= -lb_ipc
QMAKE_LIBS		+=  $$QMAKE_LIBS_EGL

INCLUDEPATH             += $$BRCM_NEXUS_PATH/
INCLUDEPATH             += $$BRCM_NEXUS_PATH/examples/multiprocess
INCLUDEPATH             += $$BRCM_NEXUS_PATH/lib/ipc
INCLUDEPATH             += $$BRCM_NEXUS_PATH/platforms/common/include
INCLUDEPATH             += $$BRCM_NEXUS_PATH/bin/include
INCLUDEPATH             += $$BRCM_NEXUS_PATH/platforms/97425/include
INCLUDEPATH             += $$BRCM_NEXUS_PATH//modules/core/include
INCLUDEPATH             += $$BRCM_NEXUS_PATH//base/include
INCLUDEPATH             += $$BRCM_NEXUS_PATH//base/include/public
INCLUDEPATH             += $$BRCM_ROCKFORD_PATH/middleware/platform/nexus
INCLUDEPATH             += $$BRCM_TARGETFS/usr/local/include/
INCLUDEPATH             += $$BRCM_TARGETFS/usr/local/include/zlib
INCLUDEPATH             += $$BRCM_TARGETFS/usr/local/include/zlib/zlib-1.2.3
INCLUDEPATH             += 
$$BRCM_APPLIBS_PATH/opensource/directfb/src/DirectFB-Broadcom/tools/stubs/
INCLUDEPATH             += $$BRCM_APPLIBS_PATH/opensource/jpeg/jpeg-8d
INCLUDEPATH             += $$BRCM_APPLIBS_PATH/opensource/libpng/libpng-
1.5.10
INCLUDEPATH             += $$BRCM_APPLIBS_PATH/opensource/freetype/freetype-
2.4.9/include
INCLUDEPATH             += $$BRCM_APPLIBS_PATH/opensource/sqlite/sqlite-
3.6.23.1 
INCLUDEPATH             += $$BRCM_APPLIBS_PATH/opensource/icu/icu-
4.3.1/$${BRCM_PLATFORM}$${BRCM_BHCP_VER}/include
INCLUDEPATH		        += $$BRCM_TARGETFS/usr/local/include/glib-
2.0 \
                            $$BCM_USR_LOCAL/include/glib-2.0/gio \
                            $$BCM_USR_LOCAL/include/glib-2.0/glib \
                            $$BCM_USR_LOCAL/include/glib-2.0/gobject \
                            $$BCM_USR_LOCAL/lib/glib-2.0/include \
                            $$BCM_USR_LOCAL/include/gstreamer-0.10
 
QMAKE_LIBDIR            += $$BRCM_TARGETFS/usr/local/lib/

QMAKE_LFLAGS            += -Wl,-rpath-link,$$QMAKE_LIBDIR_OPENGL_ES2
QMAKE_CFLAGS		+= -DQEGL_EXTRA_DEBUG

# EGLFS platform hooks for this hardware
EGLFS_PLATFORM_HOOKS_SOURCES = $$PWD/qeglfshooks_bcm.cpp
EGLFS_PLATFORM_HOOKS_INCLUDEPATH =
EGLFS_PLATFORM_HOOKS_LIBS =
EGLFS_PLATFORM_HOOKS_LIBDIR =

QT_QPA_DEFAULT_PLATFORM = eglfs

load(qt_config)
############################################### end of qmake conf


Below is my ./configure command line options.....

./configure -opensource -confirm-license -embedded mips -xplatform 
devices/linux-mipsel-broadcom-97425-g++ -opengl es2 -device mipsel-broadcom-
97425 -device-option CROSS_COMPILE=/opt/tool
chains/stbgcc-4.5.3-2.4/bin/mips-linux- -device-option BRCM_PLATFORM=97425 -
device-option BRCM_BHCP_VER=b2 -device-option 
BRCM_BASE_DIR=/opt/vendor/broadcom/7425/Refsw12.4 -device-option B_REFSW
_DEBUG=y -prefix /usr/local/Qt/ -sysroot /opt/toolchains/stbgcc-4.5.3-
2.4/mipsel-linux-uclibc/sys-root -no-mips_dsp -no-mips_dspr2 -no-xcb -qpa 
eglsfs -system-zlib -system-libpng -system-libjpeg
 -eglfs -no-avx -no-sse3 -no-sse4.1 -no-sse4.2 -no-ssse3 -no-sse2 -
fontconfig -icu -system-sqlite -glib -v -gstreamer -force-pkg-config
 1981  ./configure -opensource -confirm-license -xplatform devices/linux-
mipsel-broadcom-97425-g++ -opengl es2 -device mipsel-broadcom-97425 -device-
option CROSS_COMPILE=/opt/toolchains/stbgcc-4
.5.3-2.4/bin/mips-linux- -device-option BRCM_PLATFORM=97425 -device-option 
BRCM_BHCP_VER=b2 -device-option 
BRCM_BASE_DIR=/opt/vendor/broadcom/7425/Refsw12.4 -device-option 
B_REFSW_DEBUG=y -prefi
x /usr/local/Qt/ -sysroot /opt/toolchains/stbgcc-4.5.3-2.4/mipsel-linux-
uclibc/sys-root -no-mips_dsp -no-mips_dspr2 -no-xcb -qpa eglsfs -system-zlib 
-system-libpng -system-libjpeg -eglfs -no-avx
 -no-sse3 -no-sse4.1 -no-sse4.2 -no-ssse3 -no-sse2 -fontconfig -icu -system-
sqlite -glib -v -gstreamer -force-pkg-config

################################################ end of command line...

and the logs with error are exactly the same as yours from the very first 
post here...

Please do let me know if any further information is needed. I am still 
unable to understand and get past this error - any specific simple advise to 
get me past this will be great as I am a complete newbie.

Thanks and Regards,
Varun Kyatsandra.




More information about the Interest mailing list