Skip to content

Error while building from source #2

@divyanshu0045

Description

@divyanshu0045

I am getting below error while building swig wrappers
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o: In function UniMRCPLogger::UniMRCPLogger()': UniRecog.cpp:(.text._ZN13UniMRCPLoggerC2Ev[_ZN13UniMRCPLoggerC5Ev]+0xf): undefined reference to vtable for UniMRCPLogger'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o: In function UniMRCPClientResourceChannel<(UniMRCPResource)1>::CreateMessage(UniMRCPRecognizerMethod, bool)': UniRecog.cpp:(.text._ZN28UniMRCPClientResourceChannelIL15UniMRCPResource1EE13CreateMessageE23UniMRCPRecognizerMethodb[UniMRCPClientResourceChannel<(UniMRCPResource)1>::CreateMessage(UniMRCPRecognizerMethod, bool)]+0x66): undefined reference to UniMRCPResourceMessage<(UniMRCPResource)1>::UniMRCPResourceMessage(mrcp_session_t*, mrcp_channel_t*, mrcp_message_t*, bool)'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI28UniMRCPClientResourceChannelIL15UniMRCPResource1EE[typeinfo for UniMRCPClientResourceChannel<(UniMRCPResource)1>]+0x10): undefined reference to typeinfo for UniMRCPClientChannel' CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI19UniRecogTermination[typeinfo for UniRecogTermination]+0x10): undefined reference to typeinfo for UniMRCPAudioTermination'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI15UniRecogSession[typeinfo for UniRecogSession]+0x10): undefined reference to typeinfo for UniMRCPClientSession' CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o:(.rodata._ZTI14UniRecogLogger[typeinfo for UniRecogLogger]+0x10): undefined reference to typeinfo for UniMRCPLogger'
CMakeFiles/UniRecog_Cpp.dir/Cpp/UniRecog.cpp.o: In function UniMRCPClientResourceChannel<(UniMRCPResource)1>::OnMsgReceive(mrcp_message_t*)': UniRecog.cpp:(.text._ZN28UniMRCPClientResourceChannelIL15UniMRCPResource1EE12OnMsgReceiveEP14mrcp_message_t[UniMRCPClientResourceChannel<(UniMRCPResource)1>::OnMsgReceive(mrcp_message_t*)]+0x5c): undefined reference to UniMRCPResourceMessage<(UniMRCPResource)1>::UniMRCPResourceMessage(mrcp_session_t*, mrcp_channel_t*, mrcp_message_t*, bool)'
collect2: ld returned 1 exit status
make[2]: *** [Cpp/UniRecog_Cpp] Error 1
make[2]: Leaving directory /home/divyanshu/swig-wrapper' make[1]: *** [CMakeFiles/UniRecog_Cpp.dir/all] Error 2 make[1]: Leaving directory /home/divyanshu/swig-wrapper'

Please help.
Also I have attached CMakeCache.txt for your reference.
CMakeCache.txt

My Environment:
Red Hat Enterprise Linux Server release 6.2
I am using unimrcp-1.4.0 and unimrcp-deps-1.4.0 packages from official webpage.
If you need any more info then kindly let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions