creating fsxs make[2]: 离开目录“/usr/local/freeswitch-1.10.2.-release” Making all in src make[2]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src” Making all in mod make[3]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod” making all mod_amr make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/codecs/mod_amr” CC mod_amr_la-mod_amr.lo CCLD mod_amr.la make[4]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod/codecs/mod_amr” making all mod_av make[4]: 进入目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” Makefile:1396: *** You must install libavformat-dev to build mod_av。 停止。 make[4]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod/applications/mod_av” make[3]: *** [Makefile:701:mod_av-all] 错误 1 make[3]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src/mod” make[2]: *** [Makefile:607:all-recursive] 错误 1 make[2]: 离开目录“/usr/local/freeswitch-1.10.2.-release/src” make[1]: *** [Makefile:3575:all-recursive] 错误 1 make[1]: 离开目录“/usr/local/freeswitch-1.10.2.-release” make: *** [Makefile:1290:all] 错误 2
时间: 2023-08-15 16:07:28 浏览: 190
这个错误提示是因为在编译mod_av时缺少libavformat-dev库。你需要安装libavformat-dev库,可以使用以下命令来安装:
```
sudo apt-get install libavformat-dev
```
安装完成后再重新编译freeswitch即可。
相关问题
matlab app designer里用liat box 列举四种计算方法计算fsxs,选择一种方法,对其进行两个button的命令,两个命令可以自由切换;切换一种方法,再次执行刚才的两个button的命令,最后四种方法都执行一遍。需要Lisi box 和button的全部代码
以下是一个基本的MATLAB App Designer界面,其中包含一个List Box和两个Button,用于演示计算fsxs的四种计算方法:
```
classdef MyApp < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
UIFigure matlab.ui.Figure
MethodListBox matlab.ui.control.ListBox
ComputeButton matlab.ui.control.Button
SwitchButton matlab.ui.control.Button
end
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: ComputeButton
function ComputeButtonPushed(app, event)
% Get selected calculation method
method = app.MethodListBox.Value;
% Perform calculation using selected method
switch method
case 'Method 1'
fsxs = method1();
case 'Method 2'
fsxs = method2();
case 'Method 3'
fsxs = method3();
case 'Method 4'
fsxs = method4();
end
% Display the calculated value
disp(fsxs);
end
% Button pushed function: SwitchButton
function SwitchButtonPushed(app, event)
% Get selected calculation method
method = app.MethodListBox.Value;
% Switch to the next calculation method
switch method
case 'Method 1'
app.MethodListBox.Value = 'Method 2';
case 'Method 2'
app.MethodListBox.Value = 'Method 3';
case 'Method 3'
app.MethodListBox.Value = 'Method 4';
case 'Method 4'
app.MethodListBox.Value = 'Method 1';
end
% Execute the ComputeButton callback with the new method
ComputeButtonPushed(app, event);
end
end
% App initialization and construction
methods (Access = private)
% Create UIFigure and components
function createComponents(app)
% Create UIFigure and set properties
app.UIFigure = uifigure;
app.UIFigure.Position = [100 100 300 250];
app.UIFigure.Name = 'My App';
% Create MethodListBox
app.MethodListBox = uilistbox(app.UIFigure);
app.MethodListBox.Items = {'Method 1', 'Method 2', 'Method 3', 'Method 4'};
app.MethodListBox.Position = [20 80 120 120];
app.MethodListBox.Value = 'Method 1';
% Create ComputeButton
app.ComputeButton = uibutton(app.UIFigure, 'push');
app.ComputeButton.ButtonPushedFcn = createCallbackFcn(app, @ComputeButtonPushed, true);
app.ComputeButton.Position = [160 150 100 22];
app.ComputeButton.Text = 'Compute';
% Create SwitchButton
app.SwitchButton = uibutton(app.UIFigure, 'push');
app.SwitchButton.ButtonPushedFcn = createCallbackFcn(app, @SwitchButtonPushed, true);
app.SwitchButton.Position = [160 110 100 22];
app.SwitchButton.Text = 'Switch Method';
end
end
% App creation and deletion
methods (Access = public)
% Construct app
function app = MyApp
% Create UIFigure and components
createComponents(app)
end
% Code that executes before app deletion
function delete(app)
% Delete UIFigure when app is deleted
delete(app.UIFigure)
end
end
end
```
其中,`ComputeButtonPushed`回调函数获取选择的计算方法,然后根据选择的方法计算`fsxs`。计算完成后,它将在命令窗口中显示计算出的值。
`SwitchButtonPushed`回调函数将切换到下一个计算方法,并调用`ComputeButtonPushed`回调函数以使用新方法计算`fsxs`。
您可以将此代码复制并粘贴到您的MATLAB App Designer项目中,然后自定义`method1()`,`method2()`,`method3()`和`method4()`函数以实现计算fsxs的四种不同方法。
阅读全文