account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

error: undefined reference to 'qdutils::CalcFps::CalcFps(

SOLVED
Highlighted
Adviser
Message 1 of 2
2,152 Views
Message 1 of 2

error: undefined reference to 'qdutils::CalcFps::CalcFps(

system/core/libutils/include/utils/Singleton.h:55: error: undefined reference to 'qdutils::CalcFps::CalcFps()'
system/core/libutils/include/utils/Singleton.h:0: error: undefined reference to 'android::Singleton<qdutils::CalcFps>::sLock'
system/core/libutils/include/utils/Singleton.h:0: error: undefined reference to 'android::Singleton<qdutils::CalcFps>::sInstance'
system/core/libutils/include/utils/Singleton.h:0: error: undefined reference to 'android::Singleton<qdutils::CalcFps>::sInstance'
system/core/libutils/include/utils/Singleton.h:0: error: undefined reference to 'android::Singleton<qdutils::CalcFps>::sLock'
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
[ 0% 5/1685] target thumb C++: libloc_api_v02_32 <= vendor/qcom/opensource/location/loc_api/loc_api_v02/LocApiV02.cpp
vendor/qcom/opensource/location/loc_api/loc_api_v02/LocApiV02.cpp:2086:63: warning: format specifies type 'unsigned int' but the argument has type 'LOC_API_ADAPTER_EVENT_MASK_T' (aka 'unsigned long long') [-Wformat]
LOC_LOGD("%s:%d]: adapter mask = %u\n", __func__, __LINE__, mask);
~~ ^~~~
%llu
hardware/qcom/gps/sdm845/utils/log_util.h:111:43: note: expanded from macro 'LOC_LOGD'
#define LOC_LOGD(...) IF_LOC_LOGD { ALOGD(__VA_ARGS__); }
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:203:52: note: expanded from macro 'ALOGD'
#define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:308:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:72:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:63:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
[ 0% 7/1685] target C++: android.hardware.gnss@1.1-impl-qti <= hardware/qcom/gps/sdm845/android/Gnss.cpp
ninja: build stopped: subcommand failed.
22:56:32 ninja failed with: exit status 1

#### failed to build some targets (36 seconds) ####

1 ACCEPTED SOLUTION

Accepted Solutions
Developer World
Message 2 of 2
2,136 Views
Message 2 of 2

Re: error: undefined reference to 'qdutils::CalcFps::CalcFps(

Hi,

 

We fixed the errors and we updated the build guide

 

Please use the updated build guide before building

 

Regards

Alin

 

View solution in original post

1 REPLY 1
Developer World
Message 2 of 2
2,137 Views
Message 2 of 2

Re: error: undefined reference to 'qdutils::CalcFps::CalcFps(

Hi,

 

We fixed the errors and we updated the build guide

 

Please use the updated build guide before building

 

Regards

Alin

 

View solution in original post