mbedTLS添加到项目

时间:2019-03-22 17:12:19

标签: openssl mbedtls

我是新手,有一些任务要使用mbedTLS。我可否寻求建议,如何将其添加到makefile中的项目中。在mbedTLS上进行make或make安装后,我在根存储库中没有找到静态库。

提前感谢您的回复。

2 个答案:

答案 0 :(得分:0)

编译的输出位于Mbed TLS根目录下的let myPickerRow1 = [String](arrayLiteral: "0", "1", "2", "3", "4", "5", "6", "7", "8", "9") let myPickerRow2 = [String](arrayLiteral: "0", "1", "2", "3", "4", "5", "6", "7", "8", "9") let myPickerRow3 = [String](arrayLiteral: "0", "1", "2", "3", "4", "5", "6", "7", "8", "9") let myPickerRow4 = [String](arrayLiteral: ":") let myPickerRow5 = [String](arrayLiteral: "0", "1", "2", "3", "4", "5", "6", "7", "8", "9") let myPickerRow6 = [String](arrayLiteral: "0", "5") func numberOfComponents(in pickerView: UIPickerView) -> Int { return 6 } func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { if component == 0 { return myPickerRow1.count }else if component == 1{ return myPickerRow2.count }else if component == 2{ return myPickerRow3.count }else if component == 3{ return myPickerRow4.count }else if component == 4{ return myPickerRow5.count } return myPickerRow6.count } func pickerView( _ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { if component == 0 { return myPickerRow1[row] }else if component == 1{ return myPickerRow2[row] }else if component == 2{ return myPickerRow3[row] }else if component == 3{ return myPickerRow4[row] }else if component == 4{ return myPickerRow5[row] } return myPickerRow6[row] } func pickerView( pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) { var flightTime: String = "" var row0: String = "0" var row1: String = "0" var row2: String = "0" var row4: String = "0" var row5: String = "0" if component == 0 { row0 = myPickerRow1[DurationPicker.selectedRow(inComponent: 0)] }else if component == 1{ row1 = myPickerRow2[DurationPicker.selectedRow(inComponent: 1)] }else if component == 2{ row2 = myPickerRow3[DurationPicker.selectedRow(inComponent: 2)] }else if component == 4{ row4 = myPickerRow5[DurationPicker.selectedRow(inComponent: 4)] }else if component == 5{ row5 = myPickerRow6[DurationPicker.selectedRow(inComponent: 5)] } print("\(row0)\(row1)\(row2):\(row4)\(row5)") if myPickerRow1[DurationPicker.selectedRow(inComponent: 0)] != "0"{ flightTime = "\(myPickerRow1[DurationPicker.selectedRow(inComponent: 0)])\(myPickerRow2[DurationPicker.selectedRow(inComponent: 1)])\(myPickerRow3[DurationPicker.selectedRow(inComponent: 2)]):\(myPickerRow5[DurationPicker.selectedRow(inComponent: 4)])\(myPickerRow6[DurationPicker.selectedRow(inComponent: 5)])" }else if myPickerRow1[DurationPicker.selectedRow(inComponent: 0)] == "0" && myPickerRow2[DurationPicker.selectedRow(inComponent: 1)] != "0" { flightTime = "\(myPickerRow2[DurationPicker.selectedRow(inComponent: 1)])\(myPickerRow3[DurationPicker.selectedRow(inComponent: 2)]):\(myPickerRow5[DurationPicker.selectedRow(inComponent: 4)])\(myPickerRow6[DurationPicker.selectedRow(inComponent: 5)])" }else if myPickerRow2[DurationPicker.selectedRow(inComponent: 1)] == "0" && myPickerRow3[DurationPicker.selectedRow(inComponent: 2)] != "0" { flightTime = "\(myPickerRow3[DurationPicker.selectedRow(inComponent: 2)]):\(myPickerRow5[DurationPicker.selectedRow(inComponent: 4)])\(myPickerRow6[DurationPicker.selectedRow(inComponent: 5)])" } flightTimeSe.text = "\(flightTime)" print(flightTime) } 文件夹中。 您可以在以下文章中找到其他信息:

答案 1 :(得分:0)

在juila kernal中使用,如下所示添加缺少的软件包,然后运行jupyter notebook

Pkg.add("MbedTLS")