如何修复Makefile.am中的错误asterisk-Cpp:C ++ Static Library

时间:2013-12-12 08:00:06

标签: c++ makefile autoconf automake

我已经下载了项目asterisk-cpp库,我在Debian 7.0下编译了它

autogen.sh包含:

#!/bin/bash
aclocal
libtoolize --force --copy
automake -a -c
autoconf

当我执行autogen.sh脚本时,我收到以下错误:

root@debian:~/asterisk-cpp-master/asterisk-cpp# ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Makefile.am:8: variable `libasteriskcpp_LDADD' is defined but no program or
Makefile.am:8: library has `libasteriskcpp' as canonical name (possible typo)

Makefile.am包含以下内容:

AUTOMAKE_OPTIONS = foreign

AM_CXXFLAGS=-I$(abs_top_builddir) -Wall -g3 -std=c++0x -Wextra -pedantic
AM_CFLAGS= $(DEFINES) -Wall -g3 -std=c++0x -Wextra -pedantic
AM_DEFAULT_SOURCE_EXT = .cpp
ACLOCAL_AMFLAGS = -I m4

libasteriskcpp_LDADD=-lcurl -lboost_date_time -lboost_iostreams -lboost_system -lboost_regex -lboost_thread -lboost_filesystem -llog4cplus -lssl -lcrypto

lib_LTLIBRARIES=libasteriskcpp.la
libasteriskcpp_la_CFLAGS=-fPIC
libasteriskcpp_la_CPPFLAGS=-fPIC
libasteriskcpp_la_CXXFLAGS=-fPIC
libasteriskcpp_la_LDFLAGS= -shared -fPIC

libasteriskcpp_la_SOURCES= \
    src/structs/Singleton.cpp \
    src/structs/Thread.cpp \
    src/structs/PropertyMap.cpp \
    src/exceptions/IOException.cpp \
    src/exceptions/Exception.cpp \
    src/exceptions/ExceptionHandler.cpp \
    src/exceptions/RuntimeException.cpp \
    src/net/SSLSocket.cpp \
    src/net/IPAddress.cpp \
    src/net/TCPSocket.cpp \
    src/net/SSLContext.cpp \
    src/utils/MD5.cpp \
    src/utils/timesupport.cpp \
    src/utils/StringUtils.cpp \
    src/utils/Base64.cpp \
    src/utils/LogHandler.cpp \
    src/manager/ResponseBuilder.cpp \
    src/manager/AsteriskVersion.cpp \
    src/manager/Writer.cpp \
    src/manager/Reader.cpp \
    src/manager/ManagerResponsesHandler.cpp \
    src/manager/ManagerEventListener.cpp \
    src/manager/ManagerEventsHandler.cpp \
    src/manager/ManagerConnection.cpp \
    src/manager/EventBuilder.cpp \
    src/manager/events/SkypeBuddyEntryEvent.cpp \
    src/manager/events/AsyncAgiEvent.cpp \
    src/manager/events/NewExtenEvent.cpp \
    src/manager/events/ModuleLoadReportEvent.cpp \
    src/manager/events/UserEvent.cpp \
    src/manager/events/OriginateResponseEvent.cpp \
    src/manager/events/StatusCompleteEvent.cpp \
    src/manager/events/QueueSummaryCompleteEvent.cpp \
    src/manager/events/MeetMeTalkingEvent.cpp \
    src/manager/events/LeaveEvent.cpp \
    src/manager/events/MeetMeMuteEvent.cpp \
    src/manager/events/UnlinkEvent.cpp \
    src/manager/events/QueueMemberPausedEvent.cpp \
    src/manager/events/RtpSenderStatEvent.cpp \
    src/manager/events/RegistryEntryEvent.cpp \
    src/manager/events/JoinEvent.cpp \
    src/manager/events/MeetMeJoinEvent.cpp \
    src/manager/events/AbstractFaxEvent.cpp \
    src/manager/events/QueueMemberAddedEvent.cpp \
    src/manager/events/OriginateSuccessEvent.cpp \
    src/manager/events/ZapShowChannelsEvent.cpp \
    src/manager/events/AgentConnectEvent.cpp \
    src/manager/events/AlarmEvent.cpp \
    src/manager/events/QueueSummaryEvent.cpp \
    src/manager/events/SkypeLicenseEvent.cpp \
    src/manager/events/LogChannelEvent.cpp \
    src/manager/events/ParkedCallsCompleteEvent.cpp \
    src/manager/events/ShutdownEvent.cpp \
    src/manager/events/SkypeLicenseListCompleteEvent.cpp \
    src/manager/events/MeetMeLeaveEvent.cpp \
    src/manager/events/DahdiShowChannelsCompleteEvent.cpp \
    src/manager/events/VarSetEvent.cpp \
    src/manager/events/AgentCompleteEvent.cpp \
    src/manager/events/AbstractChannelStateEvent.cpp \
    src/manager/events/UnparkedCallEvent.cpp \
    src/manager/events/ManagerEvent.cpp \
    src/manager/events/AbstractRtpStatEvent.cpp \
    src/manager/events/QueueMemberEvent.cpp \
    src/manager/events/PeerlistCompleteEvent.cpp \
    src/manager/events/RegistrationsCompleteEvent.cpp \
    src/manager/events/AbstractChannelEvent.cpp \
    src/manager/events/MonitorStopEvent.cpp \
    src/manager/events/ReloadEvent.cpp \
    src/manager/events/AbstractQueueMemberEvent.cpp \
    src/manager/events/SendFaxEvent.cpp \
    src/manager/events/NewAccountCodeEvent.cpp \
    src/manager/events/AgiExecEvent.cpp \
    src/manager/events/QueueParamsEvent.cpp \
    src/manager/events/MessageWaitingEvent.cpp \
    src/manager/events/AgentCallbackLoginEvent.cpp \
    src/manager/events/AgentDumpEvent.cpp \
    src/manager/events/LinkEvent.cpp \
    src/manager/events/PeerStatusEvent.cpp \
    src/manager/events/ParkedCallEvent.cpp \
    src/manager/events/QueueEntryEvent.cpp \
    src/manager/events/SkypeBuddyListCompleteEvent.cpp \
    src/manager/events/SkypeBuddyStatusEvent.cpp \
    src/manager/events/AgentsEvent.cpp \
    src/manager/events/JabberEventEvent.cpp \
    src/manager/events/AbstractRtcpEvent.cpp \
    src/manager/events/AbstractAgentEvent.cpp \
    src/manager/events/QueueEvent.cpp \
    src/manager/events/OriginateFailureEvent.cpp \
    src/manager/events/RtcpReceivedEvent.cpp \
    src/manager/events/VoicemailUserEntryCompleteEvent.cpp \
    src/manager/events/ListDialplanEvent.cpp \
    src/manager/events/MasqueradeEvent.cpp \
    src/manager/events/SendFaxStatusEvent.cpp \
    src/manager/events/T38FaxStatusEvent.cpp \
    src/manager/events/MusicOnHoldEvent.cpp \
    src/manager/events/QueueMemberStatusEvent.cpp \
    src/manager/events/AgentLoginEvent.cpp \
    src/manager/events/RegistryEvent.cpp \
    src/manager/events/SkypeChatMessageEvent.cpp \
    src/manager/events/NewStateEvent.cpp \
    src/manager/events/AgentCalledEvent.cpp \
    src/manager/events/UnholdEvent.cpp \
    src/manager/events/AbstractMonitorEvent.cpp \
    src/manager/events/AbstractMeetMeEvent.cpp \
    src/manager/events/MeetMeEndEvent.cpp \
    src/manager/events/PriEventEvent.cpp \
    src/manager/events/VoicemailUserEntryEvent.cpp \
    src/manager/events/ProtocolIdentifierReceivedEvent.cpp \
    src/manager/events/MeetMeTalkingRequestEvent.cpp \
    src/manager/events/AlarmClearEvent.cpp \
    src/manager/events/NewCallerIdEvent.cpp \
    src/manager/events/NewChannelEvent.cpp \
    src/manager/events/AgentRingNoAnswer.cpp \
    src/manager/events/JitterBufStatsEvent.cpp \
    src/manager/events/QueueCallerAbandonEvent.cpp \
    src/manager/events/PeerEntryEvent.cpp \
    src/manager/events/QueueStatusCompleteEvent.cpp \
    src/manager/events/QueueMemberRemovedEvent.cpp \
    src/manager/events/ParkedCallGiveUpEvent.cpp \
    src/manager/events/AgentsCompleteEvent.cpp \
    src/manager/events/MonitorStartEvent.cpp \
    src/manager/events/StatusEvent.cpp \
    src/manager/events/ShowDialplanCompleteEvent.cpp \
    src/manager/events/ReceiveFaxEvent.cpp \
    src/manager/events/RtcpSentEvent.cpp \
    src/manager/events/RtpReceiverStatEvent.cpp \
    src/manager/events/AgentLogoffEvent.cpp \
    src/manager/events/ParkedCallTimeOutEvent.cpp \
    src/manager/events/QueueMemberPenaltyEvent.cpp \
    src/manager/events/SkypeAccountStatusEvent.cpp \
    src/manager/events/AgentCallbackLogoffEvent.cpp \
    src/manager/events/DahdiShowChannelsEvent.cpp \
    src/manager/events/MeetMeStopTalkingEvent.cpp \
    src/manager/events/RenameEvent.cpp \
    src/manager/events/TransferEvent.cpp \
    src/manager/events/ZapShowChannelsCompleteEvent.cpp \
    src/manager/events/AbstractParkedCallEvent.cpp \
    src/manager/responses/ChallengeResponse.cpp \
    src/manager/responses/ManagerResponse.cpp \
    src/manager/responses/ManagerError.cpp \
    src/manager/responses/CommandResponse.cpp \
    src/manager/actions/AbsoluteTimeoutAction.cpp \
    src/manager/actions/AbstractManagerAction.cpp \
    src/manager/actions/AbstractMeetMeMuteAction.cpp \
    src/manager/actions/AgentCallbackLoginAction.cpp \
    src/manager/actions/AgentLogoffAction.cpp \
    src/manager/actions/AgentsAction.cpp \
    src/manager/actions/AgiAction.cpp \
    src/manager/actions/AtxferAction.cpp \
    src/manager/actions/BridgeAction.cpp \
    src/manager/actions/ChallengeAction.cpp \
    src/manager/actions/ChangeMonitorAction.cpp \
    src/manager/actions/CommandAction.cpp \
    src/manager/actions/ConfbridgeKickAction.cpp \
    src/manager/actions/ConfbridgeListAction.cpp \
    src/manager/actions/ConfbridgeListRoomsAction.cpp \
    src/manager/actions/ConfbridgeLockAction.cpp \
    src/manager/actions/ConfbridgeMuteAction.cpp \
    src/manager/actions/ConfbridgeSetSingleVideoSrcAction.cpp \
    src/manager/actions/ConfbridgeStartRecordAction.cpp \
    src/manager/actions/ConfbridgeStopRecordAction.cpp \
    src/manager/actions/ConfbridgeUnlockAction.cpp \
    src/manager/actions/ConfbridgeUnmuteAction.cpp \
    src/manager/actions/CoreSettingsAction.cpp \
    src/manager/actions/CoreShowChannelsAction.cpp \
    src/manager/actions/CoreStatusAction.cpp \
    src/manager/actions/DahdiShowChannelsAction.cpp \
    src/manager/actions/DbDelAction.cpp \
    src/manager/actions/DbDelTreeAction.cpp \
    src/manager/actions/DbGetAction.cpp \
    src/manager/actions/DbPutAction.cpp \
    src/manager/actions/EventsAction.cpp \
    src/manager/actions/ExtensionStateAction.cpp \
    src/manager/actions/GetConfigAction.cpp \
    src/manager/actions/GetVarAction.cpp \
    src/manager/actions/HangupAction.cpp \
    src/manager/actions/IaxPeerListAction.cpp \
    src/manager/actions/JabberSendAction.cpp \
    src/manager/actions/ListCommandsAction.cpp \
    src/manager/actions/LocalOptimizeAwayAction.cpp \
    src/manager/actions/LoginAction.cpp \
    src/manager/actions/LogoffAction.cpp \
    src/manager/actions/MailboxCountAction.cpp \
    src/manager/actions/MailboxStatusAction.cpp \
    src/manager/actions/ManagerAction.cpp \
    src/manager/actions/MeetMeMuteAction.cpp \
    src/manager/actions/MeetMeUnmuteAction.cpp \
    src/manager/actions/MixMonitorMuteAction.cpp \
    src/manager/actions/ModuleCheckAction.cpp \
    src/manager/actions/ModuleLoadAction.cpp \
    src/manager/actions/MonitorAction.cpp \
    src/manager/actions/ParkAction.cpp \
    src/manager/actions/ParkedCallsAction.cpp \
    src/manager/actions/PauseMixMonitorAction.cpp \
    src/manager/actions/PauseMonitorAction.cpp \
    src/manager/actions/PingAction.cpp \
    src/manager/actions/PlayDtmfAction.cpp \
    src/manager/actions/QueueAddAction.cpp \
    src/manager/actions/QueueLogAction.cpp \
    src/manager/actions/QueuePauseAction.cpp \
    src/manager/actions/QueuePenaltyAction.cpp \
    src/manager/actions/QueueRemoveAction.cpp \
    src/manager/actions/QueueResetAction.cpp \
    src/manager/actions/QueueStatusAction.cpp \
    src/manager/actions/QueueSummaryAction.cpp \
    src/manager/actions/RedirectAction.cpp \
    src/manager/actions/SendTextAction.cpp \
    src/manager/actions/SetCdrUserFieldAction.cpp \
    src/manager/actions/SetVarAction.cpp \
    src/manager/actions/ShowDialplanAction.cpp \
    src/manager/actions/SipPeersAction.cpp \
    src/manager/actions/SipShowPeerAction.cpp \
    src/manager/actions/SipShowRegistryAction.cpp \
    src/manager/actions/SkypeAddBuddyAction.cpp \
    src/manager/actions/SkypeBuddiesAction.cpp \
    src/manager/actions/SkypeBuddyAction.cpp \
    src/manager/actions/SkypeChatSendAction.cpp \
    src/manager/actions/SkypeLicenseListAction.cpp \
    src/manager/actions/SkypeLicenseStatusAction.cpp \
    src/manager/actions/SkypeRemoveBuddyAction.cpp \
    src/manager/actions/StatusAction.cpp \
    src/manager/actions/StopMonitorAction.cpp \
    src/manager/actions/UnpauseMonitorAction.cpp \
    src/manager/actions/UserEventAction.cpp \
    src/manager/actions/VoicemailUsersListAction.cpp \
    src/manager/actions/ZapDialOffhookAction.cpp \
    src/manager/actions/ZapDndOffAction.cpp \
    src/manager/actions/ZapDndOnAction.cpp \
    src/manager/actions/ZapHangupAction.cpp \
    src/manager/actions/ZapRestartAction.cpp \
    src/manager/actions/ZapShowChannelsAction.cpp \
    src/manager/actions/ZapTransferAction.cpp

instdir = $(includedir)

nobase_inst_HEADERS= \
    asteriskcpp/Manager.hpp \
    asteriskcpp/structs/Singleton.h \
    asteriskcpp/structs/SynchronisedQueue.h \
    asteriskcpp/structs/Thread.h \
    asteriskcpp/structs/PropertyMap.h \
    asteriskcpp/exceptions/RuntimeException.h \
    asteriskcpp/exceptions/IOException.h \
    asteriskcpp/exceptions/Exception.h \
    asteriskcpp/exceptions/ExceptionHandler.h \
    asteriskcpp/net/IPAddress.h \
    asteriskcpp/net/TCPSocket.h \
    asteriskcpp/net/SSLSocket.h \
    asteriskcpp/net/SSLContext.h \
    asteriskcpp/utils/Base64.h \
    asteriskcpp/utils/LogHandler.h \
    asteriskcpp/utils/MD5.h \
    asteriskcpp/utils/StringUtils.h \
    asteriskcpp/utils/timesupport.h \
    asteriskcpp/manager/Actions.hpp \
    asteriskcpp/manager/AsteriskVersion.h \
    asteriskcpp/manager/ManagerEventListener.h \
    asteriskcpp/manager/ResponseBuilder.h \
    asteriskcpp/manager/Reader.h \
    asteriskcpp/manager/ManagerResponsesHandler.h \
    asteriskcpp/manager/ManagerConnection.h \
    asteriskcpp/manager/Dispatcher.h \
    asteriskcpp/manager/Writer.h \
    asteriskcpp/manager/ManagerEventsHandler.h \
    asteriskcpp/manager/Events.hpp \
    asteriskcpp/manager/EventBuilder.h \
    asteriskcpp/manager/events/StatusEvent.h \
    asteriskcpp/manager/events/QueueMemberPausedEvent.h \
    asteriskcpp/manager/events/DtmfEvent.h \
    asteriskcpp/manager/events/MessageWaitingEvent.h \
    asteriskcpp/manager/events/LogChannelEvent.h \
    asteriskcpp/manager/events/SkypeBuddyStatusEvent.h \
    asteriskcpp/manager/events/PeerStatusEvent.h \
    asteriskcpp/manager/events/MonitorStopEvent.h \
    asteriskcpp/manager/events/DndStateEvent.h \
    asteriskcpp/manager/events/AbstractChannelEvent.h \
    asteriskcpp/manager/events/RtpReceiverStatEvent.h \
    asteriskcpp/manager/events/QueueMemberPenaltyEvent.h \
    asteriskcpp/manager/events/JoinEvent.h \
    asteriskcpp/manager/events/ConfbridgeListRoomsCompleteEvent.h \
    asteriskcpp/manager/events/JitterBufStatsEvent.h \
    asteriskcpp/manager/events/AgentsCompleteEvent.h \
    asteriskcpp/manager/events/ChannelUpdateEvent.h \
    asteriskcpp/manager/events/SkypeBuddyListCompleteEvent.h \
    asteriskcpp/manager/events/NewStateEvent.h \
    asteriskcpp/manager/events/RenameEvent.h \
    asteriskcpp/manager/events/SkypeBuddyEntryEvent.h \
    asteriskcpp/manager/events/HoldedCallEvent.h \
    asteriskcpp/manager/events/CdrEvent.h \
    asteriskcpp/manager/events/MonitorStartEvent.h \
    asteriskcpp/manager/events/RtcpSentEvent.h \
    asteriskcpp/manager/events/AgentRingNoAnswer.h \
    asteriskcpp/manager/events/ListDialplanEvent.h \
    asteriskcpp/manager/events/BridgeExecEvent.h \
    asteriskcpp/manager/events/ParkedCallsCompleteEvent.h \
    asteriskcpp/manager/events/NewChannelEvent.h \
    asteriskcpp/manager/events/FaxDocumentStatusEvent.h \
    asteriskcpp/manager/events/AgentCalledEvent.h \
    asteriskcpp/manager/events/OriginateResponseEvent.h \
    asteriskcpp/manager/events/DahdiShowChannelsEvent.h \
    asteriskcpp/manager/events/QueueSummaryEvent.h \
    asteriskcpp/manager/events/NewExtenEvent.h \
    asteriskcpp/manager/events/AgentLogoffEvent.h \
    asteriskcpp/manager/events/AbstractQueueMemberEvent.h \
    asteriskcpp/manager/events/SkypeLicenseListCompleteEvent.h \
    asteriskcpp/manager/events/AbstractChannelStateEvent.h \
    asteriskcpp/manager/events/ShutdownEvent.h \
    asteriskcpp/manager/events/NewCallerIdEvent.h \
    asteriskcpp/manager/events/LinkEvent.h \
    asteriskcpp/manager/events/PeerlistCompleteEvent.h \
    asteriskcpp/manager/events/QueueParamsEvent.h \
    asteriskcpp/manager/events/RegistryEntryEvent.h \
    asteriskcpp/manager/events/RegistryEvent.h \
    asteriskcpp/manager/events/RegistrationsCompleteEvent.h \
    asteriskcpp/manager/events/SkypeAccountStatusEvent.h \
    asteriskcpp/manager/events/ZapShowChannelsCompleteEvent.h \
    asteriskcpp/manager/events/MeetMeMuteEvent.h \
    asteriskcpp/manager/events/AbstractMeetMeEvent.h \
    asteriskcpp/manager/events/ChannelReloadEvent.h \
    asteriskcpp/manager/events/QueueCallerAbandonEvent.h \
    asteriskcpp/manager/events/ParkedCallTimeOutEvent.h \
    asteriskcpp/manager/events/SendFaxEvent.h \
    asteriskcpp/manager/events/AgentCompleteEvent.h \
    asteriskcpp/manager/events/AgentCallbackLoginEvent.h \
    asteriskcpp/manager/events/UnparkedCallEvent.h \
    asteriskcpp/manager/events/QueueEvent.h \
    asteriskcpp/manager/events/TransferEvent.h \
    asteriskcpp/manager/events/JabberEventEvent.h \
    asteriskcpp/manager/events/ConnectEvent.h \
    asteriskcpp/manager/events/ResponseEvent.h \
    asteriskcpp/manager/events/BridgeEvent.h \
    asteriskcpp/manager/events/UnholdEvent.h \
    asteriskcpp/manager/events/QueueSummaryCompleteEvent.h \
    asteriskcpp/manager/events/UserEvent.h \
    asteriskcpp/manager/events/FaxStatusEvent.h \
    asteriskcpp/manager/events/NewAccountCodeEvent.h \
    asteriskcpp/manager/events/ParkedCallGiveUpEvent.h \
    asteriskcpp/manager/events/StatusCompleteEvent.h \
    asteriskcpp/manager/events/AgiExecEvent.h \
    asteriskcpp/manager/events/OriginateFailureEvent.h \
    asteriskcpp/manager/events/AbstractFaxEvent.h \
    asteriskcpp/manager/events/AgentsEvent.h \
    asteriskcpp/manager/events/ReceiveFaxEvent.h \
    asteriskcpp/manager/events/RtcpReceivedEvent.h \
    asteriskcpp/manager/events/ModuleLoadReportEvent.h \
    asteriskcpp/manager/events/AgentCallbackLogoffEvent.h \
    asteriskcpp/manager/events/AgentDumpEvent.h \
    asteriskcpp/manager/events/PeerEntryEvent.h \
    asteriskcpp/manager/events/AbstractMonitorEvent.h \
    asteriskcpp/manager/events/ExtensionStatusEvent.h \
    asteriskcpp/manager/events/FaxReceivedEvent.h \
    asteriskcpp/manager/events/DisconnectEvent.h \
    asteriskcpp/manager/events/SkypeLicenseEvent.h \
    asteriskcpp/manager/events/ConfbridgeEndEvent.h \
    asteriskcpp/manager/events/QueueMemberEvent.h \
    asteriskcpp/manager/events/AgentLoginEvent.h \
    asteriskcpp/manager/events/FullyBootedEvent.h \
    asteriskcpp/manager/events/ReloadEvent.h \
    asteriskcpp/manager/events/DbGetResponseEvent.h \
    asteriskcpp/manager/events/ManagerEvent.h \
    asteriskcpp/manager/events/QueueStatusCompleteEvent.h \
    asteriskcpp/manager/events/AlarmClearEvent.h \
    asteriskcpp/manager/events/VarSetEvent.h \
    asteriskcpp/manager/events/ParkedCallEvent.h \
    asteriskcpp/manager/events/SendFaxStatusEvent.h \
    asteriskcpp/manager/events/DialEvent.h \
    asteriskcpp/manager/events/AlarmEvent.h \
    asteriskcpp/manager/events/AsyncAgiEvent.h \
    asteriskcpp/manager/events/MasqueradeEvent.h \
    asteriskcpp/manager/events/CoreShowChannelEvent.h \
    asteriskcpp/manager/events/ConfbridgeListRoomsEvent.h \
    asteriskcpp/manager/events/CoreShowChannelsCompleteEvent.h \
    asteriskcpp/manager/events/ShowDialplanCompleteEvent.h \
    asteriskcpp/manager/events/AgentConnectEvent.h \
    asteriskcpp/manager/events/ProtocolIdentifierReceivedEvent.h \
    asteriskcpp/manager/events/ConfbridgeStartEvent.h \
    asteriskcpp/manager/events/AbstractRtcpEvent.h \
    asteriskcpp/manager/events/SkypeChatMessageEvent.h \
    asteriskcpp/manager/events/MeetMeLeaveEvent.h \
    asteriskcpp/manager/events/MeetMeTalkingRequestEvent.h \
    asteriskcpp/manager/events/RtpSenderStatEvent.h \
    asteriskcpp/manager/events/ConfbridgeListCompleteEvent.h \
    asteriskcpp/manager/events/HangupEvent.h \
    asteriskcpp/manager/events/QueueMemberRemovedEvent.h \
    asteriskcpp/manager/events/UnlinkEvent.h \
    asteriskcpp/manager/events/OriginateSuccessEvent.h \
    asteriskcpp/manager/events/QueueMemberAddedEvent.h \
    asteriskcpp/manager/events/AbstractRtpStatEvent.h \
    asteriskcpp/manager/events/MeetMeTalkingEvent.h \
    asteriskcpp/manager/events/AbstractParkedCallEvent.h \
    asteriskcpp/manager/events/ConfbridgeTalkingEvent.h \
    asteriskcpp/manager/events/MeetMeJoinEvent.h \
    asteriskcpp/manager/events/MusicOnHoldEvent.h \
    asteriskcpp/manager/events/LeaveEvent.h \
    asteriskcpp/manager/events/ZapShowChannelsEvent.h \
    asteriskcpp/manager/events/MeetMeEndEvent.h \
    asteriskcpp/manager/events/T38FaxStatusEvent.h \
    asteriskcpp/manager/events/ConfbridgeListEvent.h \
    asteriskcpp/manager/events/QueueMemberStatusEvent.h \
    asteriskcpp/manager/events/HoldEvent.h \
    asteriskcpp/manager/events/PriEventEvent.h \
    asteriskcpp/manager/events/AbstractAgentEvent.h \
    asteriskcpp/manager/events/ConfbridgeJoinEvent.h \
    asteriskcpp/manager/events/VoicemailUserEntryCompleteEvent.h \
    asteriskcpp/manager/events/QueueEntryEvent.h \
    asteriskcpp/manager/events/DahdiShowChannelsCompleteEvent.h \
    asteriskcpp/manager/events/VoicemailUserEntryEvent.h \
    asteriskcpp/manager/events/ConfbridgeLeaveEvent.h \
    asteriskcpp/manager/events/MeetMeStopTalkingEvent.h \
    asteriskcpp/manager/responses/ManagerError.h \
    asteriskcpp/manager/responses/CommandResponse.h \
    asteriskcpp/manager/responses/ChallengeResponse.h \
    asteriskcpp/manager/responses/ManagerResponse.h \
    asteriskcpp/manager/actions/AbsoluteTimeoutAction.h \
    asteriskcpp/manager/actions/AbstractManagerAction.h \
    asteriskcpp/manager/actions/AbstractMeetMeMuteAction.h \
    asteriskcpp/manager/actions/AgentCallbackLoginAction.h \
    asteriskcpp/manager/actions/AgentLogoffAction.h \
    asteriskcpp/manager/actions/AgentsAction.h \
    asteriskcpp/manager/actions/AgiAction.h \
    asteriskcpp/manager/actions/AtxferAction.h \
    asteriskcpp/manager/actions/BridgeAction.h \
    asteriskcpp/manager/actions/ChallengeAction.h \
    asteriskcpp/manager/actions/ChangeMonitorAction.h \
    asteriskcpp/manager/actions/CommandAction.h \
    asteriskcpp/manager/actions/ConfbridgeKickAction.h \
    asteriskcpp/manager/actions/ConfbridgeListAction.h \
    asteriskcpp/manager/actions/ConfbridgeListRoomsAction.h \
    asteriskcpp/manager/actions/ConfbridgeLockAction.h \
    asteriskcpp/manager/actions/ConfbridgeMuteAction.h \
    asteriskcpp/manager/actions/ConfbridgeSetSingleVideoSrcAction.h \
    asteriskcpp/manager/actions/ConfbridgeStartRecordAction.h \
    asteriskcpp/manager/actions/ConfbridgeStopRecordAction.h \
    asteriskcpp/manager/actions/ConfbridgeUnlockAction.h \
    asteriskcpp/manager/actions/ConfbridgeUnmuteAction.h \
    asteriskcpp/manager/actions/CoreSettingsAction.h \
    asteriskcpp/manager/actions/CoreShowChannelsAction.h \
    asteriskcpp/manager/actions/CoreStatusAction.h \
    asteriskcpp/manager/actions/DahdiShowChannelsAction.h \
    asteriskcpp/manager/actions/DbDelAction.h \
    asteriskcpp/manager/actions/DbDelTreeAction.h \
    asteriskcpp/manager/actions/DbGetAction.h \
    asteriskcpp/manager/actions/DbPutAction.h \
    asteriskcpp/manager/actions/EventsAction.h \
    asteriskcpp/manager/actions/ExtensionStateAction.h \
    asteriskcpp/manager/actions/GetConfigAction.h \
    asteriskcpp/manager/actions/GetVarAction.h \
    asteriskcpp/manager/actions/HangupAction.h \
    asteriskcpp/manager/actions/IaxPeerListAction.h \
    asteriskcpp/manager/actions/JabberSendAction.h \
    asteriskcpp/manager/actions/ListCommandsAction.h \
    asteriskcpp/manager/actions/LocalOptimizeAwayAction.h \
    asteriskcpp/manager/actions/LoginAction.h \
    asteriskcpp/manager/actions/LogoffAction.h \
    asteriskcpp/manager/actions/MailboxCountAction.h \
    asteriskcpp/manager/actions/MailboxStatusAction.h \
    asteriskcpp/manager/actions/ManagerAction.h \
    asteriskcpp/manager/actions/MeetMeMuteAction.h \
    asteriskcpp/manager/actions/MeetMeUnmuteAction.h \
    asteriskcpp/manager/actions/MixMonitorMuteAction.h \
    asteriskcpp/manager/actions/ModuleCheckAction.h \
    asteriskcpp/manager/actions/ModuleLoadAction.h \
    asteriskcpp/manager/actions/MonitorAction.h \
    asteriskcpp/manager/actions/ParkAction.h \
    asteriskcpp/manager/actions/ParkedCallsAction.h \
    asteriskcpp/manager/actions/PauseMixMonitorAction.h \
    asteriskcpp/manager/actions/PauseMonitorAction.h \
    asteriskcpp/manager/actions/PingAction.h \
    asteriskcpp/manager/actions/PlayDtmfAction.h \
    asteriskcpp/manager/actions/QueueAddAction.h \
    asteriskcpp/manager/actions/QueueLogAction.h \
    asteriskcpp/manager/actions/QueuePauseAction.h \
    asteriskcpp/manager/actions/QueuePenaltyAction.h \
    asteriskcpp/manager/actions/QueueRemoveAction.h \
    asteriskcpp/manager/actions/QueueResetAction.h \
    asteriskcpp/manager/actions/QueueStatusAction.h \
    asteriskcpp/manager/actions/QueueSummaryAction.h \
    asteriskcpp/manager/actions/RedirectAction.h \
    asteriskcpp/manager/actions/SendTextAction.h \
    asteriskcpp/manager/actions/SetCdrUserFieldAction.h \
    asteriskcpp/manager/actions/SetVarAction.h \
    asteriskcpp/manager/actions/ShowDialplanAction.h \
    asteriskcpp/manager/actions/SipPeersAction.h \
    asteriskcpp/manager/actions/SipShowPeerAction.h \
    asteriskcpp/manager/actions/SipShowRegistryAction.h \
    asteriskcpp/manager/actions/SkypeAddBuddyAction.h \
    asteriskcpp/manager/actions/SkypeBuddiesAction.h \
    asteriskcpp/manager/actions/SkypeBuddyAction.h \
    asteriskcpp/manager/actions/SkypeChatSendAction.h \
    asteriskcpp/manager/actions/SkypeLicenseListAction.h \
    asteriskcpp/manager/actions/SkypeLicenseStatusAction.h \
    asteriskcpp/manager/actions/SkypeRemoveBuddyAction.h \
    asteriskcpp/manager/actions/StatusAction.h \
    asteriskcpp/manager/actions/StopMonitorAction.h \
    asteriskcpp/manager/actions/UnpauseMonitorAction.h \
    asteriskcpp/manager/actions/UserEventAction.h \
    asteriskcpp/manager/actions/VoicemailUsersListAction.h \
    asteriskcpp/manager/actions/ZapDialOffhookAction.h \
    asteriskcpp/manager/actions/ZapDndOffAction.h \
    asteriskcpp/manager/actions/ZapDndOnAction.h \
    asteriskcpp/manager/actions/ZapHangupAction.h \
    asteriskcpp/manager/actions/ZapRestartAction.h \
    asteriskcpp/manager/actions/ZapShowChannelsAction.h \
    asteriskcpp/manager/actions/ZapTransferAction.h

我还尝试使用wiki of the project asterisk-cpp中提到的这些命令来编译它,但我得到了同样的错误:

aclocal ; autoheader; automake -a -c; libtoolize --force --copy; autoconf;
autoconf; automake; ./configure
make
sudo make install

我得到以下输出:

user@debian:~/asterisk-cpp-master/asterisk-cpp$ aclocal ; autoheader; automake -a -c; libtoolize --force --copy; autoconf;
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
Makefile.am:8: variable `libasteriskcpp_LDADD' is defined but no program or
Makefile.am:8: library has `libasteriskcpp' as canonical name (possible typo)
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
user@debian:~/asterisk-cpp-master/asterisk-cpp$ autoconf; automake; ./configure
Makefile.am:8: variable `libasteriskcpp_LDADD' is defined but no program or
Makefile.am:8: library has `libasteriskcpp' as canonical name (possible typo)
checking for a BSD-compatible install... /usr/bin/install -c
...

1 个答案:

答案 0 :(得分:1)

好:

libasteriskcpp_LDADD=...

可能需要:

libasteriskcpp_la_LIBADD=...

因为正在构建库。