Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build) - rpmbuild

I am trying to compile Tizen source code. The compilation tools uses the rpm build environment. While compiling specific package I'm getting an rpm build issue "Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)"
Here is my build log
Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_PushUrlRequestListener.cpp.o
[ 8s] [ 69%] Building CXX object CMakeFiles/osp-messaging.dir src/FMsg_WapPushManagerImpl.cpp.o
[ 8s] [ 71%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_WapPushMessageImpl.cpp.o
[ 8s] [ 73%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_ComposerEvent.cpp.o
[ 8s] [ 75%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_ComposerEventArg.cpp.o
[ 8s] [ 77%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_RecipientListImpl.cpp.o
[ 8s] [ 79%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsEvent.cpp.o
[ 8s] [ 81%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsEventArg.cpp.o
[ 9s] [ 83%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsManagerImpl.cpp.o
[ 9s] [ 85%] [ 87%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsMessageImpl.cpp.o
[ 9s] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_CbsChannelImpl.cpp.o
[ 9s] [ 89%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_CbsMessageImpl.cpp.o
[ 9s] [ 91%] [ 93%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_EtwsPrimaryNotificationImpl.cpp.o
[ 9s] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_MsgUtil.cpp.o
[ 9s] [ 95%] [ 97%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsMmsCallbackHandler.cpp.o
[ 9s] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_MessagingMessageTypes.cpp.o
[ 9s] [100%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_MessagingIpcProxy.cpp.o
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingMessageTypes.cpp:24:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:35:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:37:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:38:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:42:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:43:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:45:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc /FMsg_MessagingMessageTypes.h:46:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:49:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:50:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:51:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:52:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:53:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:54:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:55:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:56:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:61:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:63:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:64:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingMessageTypes.cpp:24:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:65:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] make[2]: *** [CMakeFiles/osp-messaging.dir/src/FMsg_MessagingMessageTypes.cpp.o] Error 1
[ 10s] make[2]: *** Waiting for unfinished jobs....
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:31:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:35:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:37:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:38:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:42:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:43:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:45:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:46:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:49:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:50:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:51:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:52:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:53:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:54:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:55:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:56:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:61:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:63:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:64:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:31:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:65:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp: In member function 'virtual void Tizen::Messaging::_MessagingProxy::OnIpcResponseReceived(Tizen::Io::_IpcClient&, const IPC::Message&)':
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:122:2: error: duplicate case value
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:121:2: error: previously used here
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:123:2: error: duplicate case value
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:121:2: error: previously used here
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:124:2: error: duplicate case value
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:121:2: error: previously used here
[ 10s] make[2]: *** [CMakeFiles/osp-messaging.dir/src/FMsg_MessagingIpcProxy.cpp.o] Error 1
[ 11s] make[1]: *** [CMakeFiles/osp-messaging.dir/all] Error 2
[ 11s] make: *** [all] Error 2
[ 11s] error: Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)
[ 11s]
[ 11s]
[ 11s] RPM build errors:
[ 11s] Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)
I'm using the following spec file
%define _debug_package %{nil}
%define __strip /bin/true
Name: osp-messaging
Summary: osp messaging library
Version: 1.2.2.0
Release: 2
Group: System/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(chromium)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(msg-service)
BuildRequires: pkgconfig(push)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(email-service)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libwbxml2)
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: osp-appfw-internal-devel
BuildRequires: pkgconfig(osp-net)
BuildRequires: osp-net-internal-devel
BuildRequires: pkgconfig(osp-bluetooth)
BuildRequires: pkgconfig(osp-nfc)
BuildRequires: pkgconfig(osp-json)
BuildRequires: pkgconfig(osp-shell)
# runtime requires
Requires: osp-appfw
Requires: osp-bluetooth
Requires: osp-nfc
Requires: osp-json
Requires: osp-shell
%description
osp messaging library
%package devel
Summary: osp messaging library (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description devel
osp messaging library (DEV)
%package internal-devel
Summary: osp messaging library (Internal)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description internal-devel
osp messaging library (Internal-DEV)
%package debug
Summary: osp messaging library (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description debug
osp messaging library (DEV)
%prep
%setup -q
%build
%if 0%{?tizen_build_binary_release_type_eng}
CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
%endif
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
%if 0%{?simulator}
CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%else
CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%endif
%else
%if 0%{?tizen_build_binary_release_type_eng}
CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%else
CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed v-fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%endif
%endif
# Call make instruction with smp support
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/license
cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest osp-messaging.manifest
/usr/share/license/%{name}
%{_libdir}/osp/*.so*
%files devel
%{_includedir}/osp/*.h
%{_libdir}/pkgconfig/osp-messaging.pc
%files internal-devel
%{_includedir}/osp/messaging/*.h
%files debug
%{_libdir}/osp/debug/*.so*
The error is related to rpm build, can anyone help me in solving this rpm error?

The above errors are because of linking of files at runtime by the rpm build environment and hence it was showing errors under build section of the spec file
To solve the above errors add the following line at the beginning of the spec file of package
%define __debug_package %{nil}
If there is already a similar code(%define ^_debug_package %{nil}) replace it with the above code
The errors in the osp packages can also be solved by adding the above line to the spec file.
And also make sure that you use the release repo URL for compilation, you can use the following release repo URL
http://download.tizen.org/releases/2.2/tizen-2.2

Related

Unresolved symbol when building Qt Cmake Project

I was working on a QT program including libtorch and opencv which was compiling without any error in my previous Ubuntu 21.04.
The libtorch library locates at /home/user/Downloads/libtorch and OpenCV installed with the following command:
apt install python3-opencv libopencv-dev libdc1394-22-dev
After upgrading my OS to Ubuntu jammy (22.04), building that program returns the following errors:
warning: libicui18n.so.67, needed by /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3, not found (try using -rpath or -rpath-link)
warning: libicuuc.so.67, needed by /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3, not found (try using -rpath or -rpath-link)
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getDSTSavings_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_setMillis_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_strcoll_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_open_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `u_strToUpper_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getTimeZoneDisplayName_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `uenum_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_getSortKey_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_get_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getDefaultTimeZone_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openTimeZones_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `u_strToLower_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `uenum_next_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_setAttribute_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_inDaylightTime_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_clone_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_open_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openTimeZoneIDEnumeration_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openCountryTimeZones_67'
error: collect2: error: ld returned 1 exit status
error: [CMakeFiles/example.dir/build.make:234: bina] Error 1
CMakeLists.txt is as following code:
cmake_minimum_required(VERSION 3.5)
project(example LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH /home/user/Downloads/libtorch)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets LinguistTools REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets LinguistTools REQUIRED)
find_package(Torch REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
set(TS_FILES example_en_US.ts)
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
torchtestdlg.cpp
classification.cpp
${TS_FILES}
)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(example
${PROJECT_SOURCES}
)
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
else()
if(ANDROID)
add_library(example SHARED
${PROJECT_SOURCES}
)
else()
add_executable(example
${PROJECT_SOURCES}
)
endif()
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
endif()
target_link_libraries(example PRIVATE Qt${QT_VERSION_MAJOR}::Widgets ${TORCH_LIBRARIES} ${OpenCV_LIBS})
Obviously it means that it has unresolved symbols which I couldn't understand what symbols they are.

How can I link with the QPid Proton library's static libs?

I'm trying to link against the QPid Proton library, using static libs, and am getting lots of link errors. I am able to build with the shared libraries, but for this project we need to use static libs.
Here's the CMake file:
cmake_minimum_required(VERSION 3.0.0)
project(test-qpid VERSION 0.1.0)
include(CTest)
enable_testing()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -no-pie " )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -v -std=c++17 -lpthread -static-libgcc -static-libstdc++ -fdiagnostics-color=auto")
set(THREADS_PREFER_PTHREAD_FLAG ON)
add_library(libpthread STATIC IMPORTED)
set_target_properties(libpthread PROPERTIES IMPORTED_LOCATION /usr/lib/x86_64-linux-gnu/libpthread.a)
set_target_properties(libpthread PROPERTIES INTERFACE_INCLUDE_DIRECTORIES /usr/include)
add_executable(test-qpid main.cpp)
find_library(QPID_PROTON_CORE NAMES qpid-proton-core-static)
if (NOT QPID_PROTON_CORE)
message(FATAL_ERROR, "QPid Proton core static library not found")
endif()
find_library(QPID_PROTON_PROACTOR NAMES qpid-proton-proactor-static)
if (NOT QPID_PROTON_PROACTOR)
message(FATAL_ERROR, "QPid Proton proactor static library not found")
endif()
find_library(QPID_PROTON NAMES qpid-proton-static)
if (NOT QPID_PROTON)
message(FATAL_ERROR, "QPid Proton static library not found")
endif()
find_library(QPID_PROTON_CPP NAMES qpid-proton-cpp-static)
if (NOT QPID_PROTON_CPP)
message(FATAL_ERROR, "QPid Proton CPP static library not found")
endif()
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include_directories("/usr/local/include")
set(LIBS ${QPID_PROTON_CORE} ${QPID_PROTON} ${QPID_PROTON_PROACTOR} ${QPID_PROTON_CPP})
target_link_libraries(test-qpid ${LIBS} libpthread)
include(CPack)
Here is a snippet of the output I'm seeing (there are lots more, which I've omitted for brevity):
-L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. -lpthread CMakeFiles/test-qpid.dir/main.cpp.o /usr/local/lib/libqpid-proton-core-static.a /usr/local/lib/libqpid-proton-static.a /usr/local/lib/libqpid-proton-proactor-static.a /usr/local/lib/libqpid-proton-cpp-static.a /usr/lib/x86_64-linux-gnu/libpthread.a -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/9/crtend.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::close()':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:65: undefined reference to `pn_connection_close'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::error() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:171: undefined reference to `pn_connection_remote_condition'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::transport() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:52: undefined reference to `pn_connection_transport'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::open(proton::connection_options const&)':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:61: undefined reference to `pn_connection_open'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::virtual_host[abi:cxx11]() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:71: undefined reference to `pn_connection_remote_hostname'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::container_id[abi:cxx11]() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:75: undefined reference to `pn_connection_remote_container'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::user[abi:cxx11]() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:79: undefined reference to `pn_connection_transport'
[build] /usr/bin/ld: /home/user/src/qpid-proton/cpp/src/connection.cpp:79: undefined reference to `pn_transport_get_user'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::sessions() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:93: undefined reference to `pn_session_head'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::receivers() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:97: undefined reference to `pn_link_head'
[build] /usr/bin/ld: /home/user/src/qpid-proton/cpp/src/connection.cpp:101: undefined reference to `pn_link_next'
[build] /usr/bin/ld: /home/user/src/qpid-proton/cpp/src/connection.cpp:99: undefined reference to `pn_link_is_receiver'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::senders() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:107: undefined reference to `pn_link_head'
[build] /usr/bin/ld: /home/user/src/qpid-proton/cpp/src/connection.cpp:111: undefined reference to `pn_link_next'
[build] /usr/bin/ld: /home/user/src/qpid-proton/cpp/src/connection.cpp:109: undefined reference to `pn_link_is_sender'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::open_session(proton::session_options const&)':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:121: undefined reference to `pn_session'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::default_session()':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:133: undefined reference to `pn_session'
[build] /usr/bin/ld: /home/user/src/qpid-proton/cpp/src/connection.cpp:134: undefined reference to `pn_session_open'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::max_frame_size() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:175: undefined reference to `pn_connection_transport'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::max_sessions() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:179: undefined reference to `pn_connection_transport'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::idle_timeout() const':
[build] /home/user/src/qpid-proton/cpp/src/connection.cpp:183: undefined reference to `pn_connection_transport'
[build] /usr/bin/ld: /usr/local/lib/libqpid-proton-cpp-static.a(connection.cpp.o): in function `proton::connection::desired_capabilities() const':
I've been Googling for answers for days and have gotten nowhere. If anyone has any experience with QPid Proton I'd greatly appreciate some suggestions.

Error when deploying to AWS lambda, yarn serverless nextjs monorepo

I currently have a monorepo setup with serverless and it builds alright, when I try a custom deploy script, I get the following error
DEBUG ─ Executing the template's components graph.
error:
Error: Command failed with ENOENT: node_modules/.bin/next build
spawn node_modules/.bin/next ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:470:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn node_modules/.bin/next',
path: 'node_modules/.bin/next',
spawnargs: [ 'build' ],
originalMessage: 'spawn node_modules/.bin/next ENOENT',
shortMessage: 'Command failed with ENOENT: node_modules/.bin/next build\n' +
'spawn node_modules/.bin/next ENOENT',
command: 'node_modules/.bin/next build',
escapedCommand: '"node_modules/.bin/next" build',
exitCode: undefined,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
4s › web › Error: Command failed with ENOENT: node_modules/.bin/next build
spawn node_modules/.bin/next ENOENT
I tried to set next.config.js with
const nextConfig = {
experimental: {
externalDir: true,
},
};
export default nextConfig;
Still the error persist.
my deploy script is "deploy": "AWS_SDK_LOAD_CONFIG=1 AWS_PROFILE=projec1 yarn components-v1 --debug"

R package issues deploying shiny to beta.rstudioconnect.com

I had a shiny app that was deploying without problems on beta.rstudioconnect.com. I added some maps to it and then could no longer get it to work; one of the packages did not appear to be supported. I thought I might be able to get around this by using packrat on my project before deploying. However that didn't work. Now I can't seem to go back to my original version and don't understand where the problem lies. Does any of the following make any sense to anyone? what do I have to do to get back to my original (working) shiny? I had to take some lines out of the output to fit it in here:
Preparing to deploy application...DONE
Uploading bundle for application: 2539...DONE
Deploying bundle: 5321 for application: 2539 ...
Bundle requested R version 3.3.2; using /opt/R/3.3.1/bin/R which has version 3.3.1
2017/02/19 12:05:49.268297412 # Validating R library read / write permissions --------------------------------
2017/02/19 12:05:49.297061610 # Validating packrat installation ----------------------------------------------
2017/02/19 12:05:49.297171083 Installed packrat SHA is: 00bce0ead9f58d31c29e65fb7b87858586356f15
2017/02/19 12:05:49.297294331 Packaged packrat SHA is: 00bce0ead9f58d31c29e65fb7b87858586356f15
2017/02/19 12:05:49.298977087 Packrat is up-to-date.
2017/02/19 12:05:49.299134572 R version: 3.3.1
2017/02/19 12:05:49.299203258 packrat version: 0.4.8.11
2017/02/19 12:05:49.299948491 # Validating packrat cache read / write permissions ----------------------------
2017/02/19 12:05:49.494836685 Audited package hashes with local packrat installation.
2017/02/19 12:05:49.498803369 # Installing required R packages with `packrat::restore()` ---------------------
2017/02/19 12:05:51.169831244 Installing BH (1.62.0-1) ...
2017/02/19 12:05:51.182200494 Using cached BH.
2017/02/19 12:05:51.182461055 OK (symlinked cache)
2017/02/19 12:05:51.182679371 Installing DBI (0.5-1) ...
17/02/19 12:05:51.584223157 Installing packrat (0.4.8-1) ...
2017/02/19 12:05:51.595465126 Using cached packrat.
2017/02/19 12:05:51.595776430 OK (symlinked cache)
...
2017/02/19 12:05:52.163895821 Installing maptools (0.8-39) ...
2017/02/19 12:05:52.178467525 Using cached maptools.
2017/02/19 12:05:52.178690072 OK (symlinked cache)
2017/02/19 12:05:52.178939945 Installing dplyr (0.5.0) ...
2017/02/19 12:05:52.200480032 Using cached dplyr.
2017/02/19 12:05:52.200709370 OK (symlinked cache)
2017/02/19 12:05:52.200956042 Installing feather (0.3.1) ...
2017/02/19 12:06:05.282400309 [1] "Command failed (1)\n\nFailed to run system command:\n\n\t'/opt/R/3.3.1/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/RtmpssUwbS/feather' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1' --install-tests --no-docs --no-multiarch --no-demo \n\nThe command failed with output:\n* installing *source* package 'feather' ...\n** package 'feather' successfully unpacked and MD5 sums checked\nPlatform is little endian. Good.\n** libs\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c feather-read.cpp -o feather-read.o\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include... <truncated>
t/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c feather-types.cpp -o feather-types.o\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c feather-write.cpp -o feather-write.o\nIn file included from feather/api.h:24:0,\n from feather-read.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n from feather-read.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:74:28: error: 'override' does not name a type\n./feather/io.h:75:59: error: expected ';' at end of m... <truncated>
ther/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./feather/io.h:94:26: error: expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n./feather/io.h:109:26: error: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: expected ';' at end of member declaration\n./feather/io.h:150:18: error: 'override' does not name a typ... <truncated>
: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feather/io.h:152:53: error: 'override' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n./feather/io.h:174:53: error: 'override' does not name a type\nIn file included from feather/api.h:24:0,\n from feather-types.h:2,\n from feather-types.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n ... <truncated>
er-types.h:2,\n from feather-types.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:74:28: error: 'override' does not name a type\n./feather/io.h:75:59: error: expected ';' at end of member declaration\n./feather/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./feather/io.h:94:26: error: expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n.... <truncated>
ror: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: expected ';' at end of member declaration\n./feather/io.h:150:18: error: 'override' does not name a type\n./feather/io.h:151:29: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feather/io.h:152:53: error: 'override' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n... <truncated>
rror: 'override' does not name a type\nIn file included from feather/api.h:24:0,\n from feather_types.h:2,\n from RcppExports.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n from feather_types.h:2,\n from RcppExports.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:74:28: error: 'override' does not name a type\n./feather/io.h:75:59: error: expected ';' at end of member declaration\n./feather/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./fea... <truncated>
expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n./feather/io.h:109:26: error: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: expected ';' at end of member declaration\n./feather/io.h:150:18: error: 'override' does not name a type\n./feather/io.h:151:29: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feathe... <truncated>
verride' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n./feather/io.h:174:53: error: 'override' does not name a type\nIn file included from feather/api.h:24:0,\n from feather-write.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n from feather-write.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:... <truncated>
does not name a type\n./feather/io.h:75:59: error: expected ';' at end of member declaration\n./feather/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./feather/io.h:94:26: error: expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n./feather/io.h:109:26: error: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: exp... <truncated>
er declaration\n./feather/io.h:150:18: error: 'override' does not name a type\n./feather/io.h:151:29: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feather/io.h:152:53: error: 'override' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n./feather/io.h:174:53: error: 'override' does not name a type\nmake: *** [feather-types.o] Error 1\nmake: *** Waiting for unfinished jobs....\nmake: *** [feather-read.o] Error 1\nmake: *** [RcppExports.o] Error 1\nmake: *** [feather-write.o] Error 1\nERROR: compilation failed for package 'feather'\n* re... <truncated>
nect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/feather'"
2017/02/19 12:06:05.283810404 Error: Command failed (1)
2017/02/19 12:06:05.283822886
2017/02/19 12:06:05.283836187 Failed to run system command:
2017/02/19 12:06:05.283839368
2017/02/19 12:06:05.283847263 '/opt/R/3.3.1/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/RtmpssUwbS/feather' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1' --install-tests --no-docs --no-multiarch --no-demo
2017/02/19 12:06:05.283878906
2017/02/19 12:06:05.283889984 The command failed with output:
2017/02/19 12:06:05.283899167 * installing *source* package 'feather' ...
2017/02/19 12:06:05.283908105 ** package 'feather' successfully unpacked and MD5 sums checked
2017/02/19 12:06:05.283911064 Platform is little endian. Good.
2017/02/19 12:06:05.283918990 ** libs
2017/02/19 12:06:05.283921520 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
2017/02/19 12:06:05.283944289 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c feather-read.cpp -o feather-read.o
2017/02/19 12:06:05.283947838 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c feather-types.cpp -o feather-types.o
2017/02/19 12:06:05.283955637 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c feather-write.cpp -o feather-write.o
2017/02/19 12:06:05.283958522 In file included from feather/api.h:24:0,
2017/02/19 12:06:05.283967685 from feather-read.cpp:4:
2017/02/19 12:06:05.283970576 ./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.283978363 ./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.283981078 In file included from feather/api.h:25:0,
2017/02/19 12:06:05.283989020 from feather-read.cpp:4:
2017/02/19 12:06:05.283991718 ./feather/io.h:73:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.283999364 ./feather/io.h:73:35: error: 'override' does not name a type
2017/02/19 12:06:05.284001824 ./feather/io.h:74:26: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284162768 ./feather/io.h:172:18: error: 'override' does not name a type
2017/02/19 12:06:05.284165214 ./feather/io.h:173:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284171921 ./feather/io.h:173:35: error: 'override' does not name a type
2017/02/19 12:06:05.307706691 Warning message:
2017/02/19 12:06:05.307863198 In packrat::restore(overwrite.dirty = TRUE, prompt = FALSE, restart = FALSE) :
2017/02/19 12:06:05.307879290 The most recent snapshot was generated using R version 3.3.2
2017/02/19 12:06:05.284174366 ./feather/io.h:174:51: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284235118 ./feather/io.h:174:53: error: 'override' does not name a type
2017/02/19 12:06:05.284239266 In file included from feather/api.h:24:0,
2017/02/19 12:06:05.284246654 from feather-types.h:2,
2017/02/19 12:06:05.284249805 from feather-types.cpp:4:
2017/02/19 12:06:05.284256762 ./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284259715 ./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284266625 In file included from feather/api.h:25:0,
2017/02/19 12:06:05.284268985 from feather-types.h:2,
2017/02/19 12:06:05.284275396 from feather-types.cpp:4:
2017/02/19 12:06:05.284277912 ./feather/io.h:73:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284302465 ./feather/io.h:73:35: error: 'override' does not name a type
2017/02/19 12:06:05.284310963 ./feather/io.h:74:26: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284455903 ./feather/io.h:152:53: error: 'override' does not name a type
2017/02/19 12:06:05.284458901 ./feather/io.h:172:16: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284465785 ./feather/io.h:172:18: error: 'override' does not name a type
2017/02/19 12:06:05.284468388 ./feather/io.h:173:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284475582 ./feather/io.h:173:35: error: 'override' does not name a type
2017/02/19 12:06:05.284478069 ./feather/io.h:174:51: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284499196 ./feather/io.h:174:53: error: 'override' does not name a type
2017/02/19 12:06:05.284502459 In file included from feather/api.h:24:0,
2017/02/19 12:06:05.284510402 from feather_types.h:2,
2017/02/19 12:06:05.284520035 from RcppExports.cpp:4:
2017/02/19 12:06:05.284528059 ./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284530517 ./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284537373 In file included from feather/api.h:25:0,
2017/02/19 12:06:05.284539717 from feather_types.h:2,
2017/02/19 12:06:05.284546913 from RcppExports.cpp:4:
2017/02/19 12:06:05.284549095 ./feather/io.h:73:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284555829 ./feather/io.h:73:35: error: 'override' does not name a type
2017/02/19 12:06:05.284558295 ./feather/io.h:74:26: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284565421 ./feather/io.h:74:28: error: 'override' does not name a type
2017/02/19 12:06:05.284568368 ./feather/io.h:75:59: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284699666 ./feather/io.h:152:53: error: 'override' does not name a type
2017/02/19 12:06:05.284702743 ./feather/io.h:172:16: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284709426 ./feather/io.h:172:18: error: 'override' does not name a typ
2017/02/19 12:06:05.284716004
2017/02/19 12:06:05.284724049 Unable to fully restore the R packages associated with this deployment.
2017/02/19 12:06:05.284726910 Please review the preceding messages to determine which package
2017/02/19 12:06:05.284734403 encountered installation difficulty and the cause of the failure.
2017/02/19 12:06:05.284737341
2017/02/19 12:06:05.284755686 Some typical reasons for package installation failures:
2017/02/19 12:06:05.284759213 * A system library needed by the R package is not installed.
2017/02/19 12:06:05.284766893 Some of the most common package dependencies are cataloged at:
2017/02/19 12:06:05.284769816 https://github.com/rstudio/shinyapps-package-dependencies
2017/02/19 12:06:05.284777079
2017/02/19 12:06:05.284779889 * The R package requires a newer version of R.
2017/02/19 12:06:05.284795781
2017/02/19 12:06:05.284799144 * The C/C++ compiler is outdated. This is often true for packages
2017/02/19 12:06:05.284806731 needing C++11 features.
2017/02/19 12:06:05.284810026
2017/02/19 12:06:05.284817282 * The R package is Windows-only or otherwise unavailable for this
2017/02/19 12:06:05.284820216 operating system.
2017/02/19 12:06:05.284827881
2017/02/19 12:06:05.284830674 * The package is housed in a private repository that requires
2017/02/19 12:06:05.284837746 authentication to access. For more details on this, see:
2017/02/19 12:06:05.284840342 http://docs.rstudio.com/connect/admin/process-management.html#private-packages
2017/02/19 12:06:05.284848534
2017/02/19 12:06:05.284851222 The package description and documentation will list system requirements
2017/02/19 12:06:05.284858379 and restrictions.
2017/02/19 12:06:05.284861051
2017/02/19 12:06:05.284883420 Please contact your RStudio Connect administrator for further help
2017/02/19 12:06:05.284887648 resolving this issue.
Application deployment failed with error: exit status 1\

native build qt5.7.1 on raspberry pi get errors: /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QV8Engine::toVariant

i tried to build qt 5.7.1 on pi3 following this instruction:
https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi
the source package i use is:
qt-everywhere-opensource-src-5.7.1.tar
configure as:
./configure -v -opengl es2 -force-pkg-config -device linux-rpi3-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -qt-xcb -make libs -no-use-gold-linker -prefix /usr/local/qt5
The instruction is using "linux-rasp-pi-g++", but i think it should be linux-rpi3-g++ for Rpi3.
Make, and i get errors like:
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib
-Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -mfloat-abi=hard -Wl,--gc-sections -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib -Wl,-rpath-link,/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib
-Wl,-rpath-link,/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib
-o ../../bin/qmltestrunner .obj/main.o -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib
-lQt5QuickTest -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Test -lQt5Core -lGLESv2 -lpthread /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QV8Engine::toVariant(QV4::ValueRef, int)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::dataReady(QQmlAbstractProfilerAdapter*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionContext::throwTypeError()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::markObjects(QV4::Managed*, QV4::ExecutionEngine*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlEngineDebugService::instance()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV8Engine::fromVariant(QVariant const&)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::operator=(unsigned long long)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::qt_metacast(char const*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickItem::y() const#Qt_5'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::errors() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Managed::engine() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionEngine::newErrorObject(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::property() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlCustomParser::bindingIdentifier(QV4::CompiledData::Binding
const*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined
reference to QV4::ExecutionContext::throwError(QString const&)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::Invalid' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:
undefined reference to QQmlAbstractBinding::vTables'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionContext::throwError(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::call(QV4::Managed*, QV4::CallData*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::createBinding(int, QObject*, QQmlContext*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Managed::operator new(unsigned int, QV4::MemoryManager*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::height() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::setLookup(QV4::Managed*, QV4::Lookup*, QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::PersistentValue(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::qt_metacall(QMetaObject::Call, int, void**)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::addGlobalProfiler(QQmlAbstractProfilerAdapter*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickView::QQuickView(QWindow*)#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::putIndexed(QV4::Managed*, unsigned int, QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::put(QV4::Managed*, QV4::StringRef, QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::Object(QV4::ExecutionEngine*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::staticMetaObject'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::instance()'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::engine() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::getLookup(QV4::Managed*, QV4::Lookup*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::setSource(QUrl const&)#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::operator=(QV4::ValueRef)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ArrayData::realloc(QV4::Object*, QV4::ArrayData::Type, unsigned
int, unsigned int, bool)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlInspectorService::addView(QObject*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlPropertyPrivate::setBinding(QQmlProperty const&,
QQmlAbstractBinding*, QFlags)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlComponentPrivate::initializeObjectWithInitialProperties(QV4::ValueRef,
QV4::ValueRef, QObject*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::staticMetaObject#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::QQmlValueType(int, QObject*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::x() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlDebugStream::QQmlDebugStream(QByteArray*,
QFlags<QIODevice::OpenModeFlag>)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::window() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::~Object()'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::mapToScene(QPointF const&)
const#Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined
reference to QV4::Object::deleteProperty(QV4::Managed*,
QV4::StringRef)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::rootContext() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::getIndexed(QV4::Managed*, unsigned int, bool*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlDebugService::isDebuggingEnabled()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::destroy(QV4::Managed*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickWindow::grabWindow()#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::metaObject() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlAbstractBinding::weakPointer()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::get(QV4::Managed*, QV4::StringRef, bool*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QOpenGLContextPrivate::globalShareContext()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Managed::setVTable(QV4::ManagedVTable const*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlEngineDebugService::setStatesDelegate(QQmlDebugStatesDelegate*)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickView::status() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::construct(QV4::Managed*, QV4::CallData*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlInspectorService::instance()'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::query(QV4::Managed const*, QV4::StringRef)'
/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to QQuickItem::width() const#Qt_5'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::defineAccessorProperty(QV4::StringRef, unsigned long
long ()(QV4::CallContext), unsigned long long
()(QV4::CallContext))'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::advanceIterator(QV4::Managed*, QV4::ObjectIterator*,
QV4::StringRef, unsigned int*, QV4::Property*,
QV4::PropertyAttributes*)'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::String::simplifyString() const'
/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
`QQmlInspectorService::removeView(QObject*)' collect2: error: ld
returned 1 exit status Makefile:108: recipe for target
'../../bin/qmltestrunner' failed make[3]: *
[../../bin/qmltestrunner] Error 1 make[3]: Leaving directory
'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/tools/qmltestrunner'
Makefile:276: recipe for target 'sub-qmltestrunner-make_first' failed
make[2]: * [sub-qmltestrunner-make_first] Error 2
so, how can i fix this problem?
thanks.
I've solved this problem, and there is a new problem now.
Before native building qt on pi, I installed qt by:
sudo apt-get install qt5-default, and other qt5 packages.
Although I have :
sudo apt-get remove those packages, it may still works.
so I formatted the SD card and re-burned an Raspbian image, followed the instructions, "make", and the problem is gone.
but now I have another problem.
When I "make install", I get this error:
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -mfloat-abi=hard -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libdeclarative_location.so .obj/location.o .obj/qdeclarativegeomapitemview.o .obj/qdeclarativegeoserviceprovider.o .obj/qdeclarativegeocodemodel.o .obj/qdeclarativegeoroutemodel.o .obj/qdeclarativegeoroute.o .obj/qdeclarativegeoroutesegment.o .obj/qdeclarativegeomaneuver.o .obj/qdeclarativegeomap.o .obj/qdeclarativegeomaptype.o .obj/qdeclarativegeomapitembase.o .obj/qdeclarativegeomapquickitem.o .obj/qdeclarativecirclemapitem.o .obj/qdeclarativerectanglemapitem.o .obj/qdeclarativepolygonmapitem.o .obj/qdeclarativepolylinemapitem.o .obj/qdeclarativeroutemapitem.o .obj/qgeomapitemgeometry.o .obj/qdeclarativegeomapcopyrightsnotice.o .obj/error_messages.o .obj/locationvaluetypehelper.o .obj/qquickgeomapgesturearea.o .obj/qquickgeocoordinateanimation.o .obj/mapitemviewdelegateincubator.o .obj/qdeclarativeplacecontentmodel.o .obj/qdeclarativesupportedcategoriesmodel.o .obj/qdeclarativesearchsuggestionmodel.o .obj/qdeclarativesearchresultmodel.o .obj/qdeclarativereviewmodel.o .obj/qdeclarativeplaceimagemodel.o .obj/qdeclarativeplaceeditorialmodel.o .obj/qdeclarativecontactdetail.o .obj/qdeclarativecategory.o .obj/qdeclarativeplace.o .obj/qdeclarativeplaceattribute.o .obj/qdeclarativeplaceicon.o .obj/qdeclarativeplaceuser.o .obj/qdeclarativeratings.o .obj/qdeclarativesupplier.o .obj/qdeclarativesearchmodelbase.o .obj/moc_qdeclarativecirclemapitem_p.o .obj/moc_qdeclarativerectanglemapitem_p.o .obj/moc_qdeclarativepolygonmapitem_p.o .obj/moc_qdeclarativepolylinemapitem_p.o .obj/moc_qdeclarativeroutemapitem_p.o .obj/moc_qdeclarativegeomapcopyrightsnotice_p.o .obj/moc_qquickgeocoordinateanimation_p.o .obj/moc_qdeclarativeplacecontentmodel.o .obj/moc_qdeclarativesupportedcategoriesmodel_p.o .obj/moc_qdeclarativesearchsuggestionmodel_p.o .obj/moc_qdeclarativesearchresultmodel_p.o .obj/moc_qdeclarativereviewmodel_p.o .obj/moc_qdeclarativeplaceimagemodel_p.o .obj/moc_qdeclarativeplaceeditorialmodel.o .obj/moc_qdeclarativecontactdetail_p.o .obj/moc_qdeclarativecategory_p.o .obj/moc_qdeclarativeplace_p.o .obj/moc_qdeclarativeplaceattribute_p.o .obj/moc_qdeclarativeplaceicon_p.o .obj/moc_qdeclarativeplaceuser_p.o .obj/moc_qdeclarativeratings_p.o .obj/moc_qdeclarativesupplier_p.o .obj/moc_qdeclarativesearchmodelbase.o -L=/opt/vc/lib -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/lib -lQt5Location -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Positioning -lQt5Core -Wl,-rpath-link,/opt/vc/lib -lGLESv2 -lpthread -lclip2tri -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/lib -lpoly2tri -lclipper
/usr/bin/ld: cannot find -lclip2tri
/usr/bin/ld: cannot find -lpoly2tri
/usr/bin/ld: cannot find -lclipper
collect2: error: ld returned 1 exit status
Makefile:273: recipe for target '../../../qml/QtLocation/libdeclarative_location.so' failed
make[4]: *** [../../../qml/QtLocation/libdeclarative_location.so] Error 1
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/imports/location'
Makefile:80: recipe for target 'sub-location-install_subtargets' failed
make[3]: *** [sub-location-install_subtargets] Error 2
make[3]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/imports'
Makefile:135: recipe for target 'sub-imports-install_subtargets' failed
make[2]: *** [sub-imports-install_subtargets] Error 2
make[2]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src'
Makefile:56: recipe for target 'sub-src-install_subtargets' failed
make[1]: *** [sub-src-install_subtargets] Error 2
make[1]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation'
Makefile:844: recipe for target 'module-qtlocation-install_subtargets' failed
make: *** [module-qtlocation-install_subtargets] Error 2
I found there are 3 directories in qtlocation/src/3rdparty
clip2tri
clipper
poly2tri
and 3 file in qtlocation/lib:
libclip2tri.prl
libclipper.prl
libpoly2tri.prl
but no lib files.
I checked the build log, it seems cpp file in the directoriy qtlocation/src/3rdparty are not compiled,
cd 3rdparty/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/3rdparty.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[3]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'
cd poly2tri/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[4]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'
cd clipper/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper/clipper.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[4]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'
cd clip2tri/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri/clip2tri.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[4]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
make[4]: Nothing to be done for 'install'.
make[4]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'
make[3]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'
cd location/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/location/location.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f Makefile install
make[3]: Entering directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/location'

Resources