Failed to get lock on destination repos, currently held by ‘ubuntu:9f51b9fe-b204-4439-a0d5-88a2fd5d5ff6’

Problem

  1. water@ubuntu:/xxxxxxxxxxsvnsync$ svnsync sync --non-interactive file:////XXX/XXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXX
  2. Failed to get lock on destination repos, currently held by 'ubuntu:9f51b9fe-b204-4439-a0d5-88a2fd5d5ff6'

Resolved

  1. water@ubuntu:/xxxxxxxxxxsvnsync$ svnsync sync --non-interactive file:////XXX/XXXX/XXXXXXXXXXX/XXXXXXXXXXXXXXXXXXX --steal-lock
  2. Stole lock previously held by 'ubuntu:9f51b9fe-b204-4439-a0d5-88a2fd5d5ff6'

Rust – Hello World

main.rs

  1. fn main() {
  2.     println!("Hello, world!");
  3.     let a = "Water";
  4.     println!("Hello, {}!", a);
  5. }

tasks.json

  1. { 
  2.     "version":"2.0.0", 
  3.     "tasks":[ 
  4.         { 
  5.             "label":"build", 
  6.             "type":"shell", 
  7.             "command":"cargo", 
  8.             "args":["build"] 
  9.         } 
  10.     ] 
  11. }

launch.json

  1. { 
  2.         "version":"0.2.0", 
  3.         "configurations":[ 
  4.             { 
  5.                 "name":"(Windows) 启动", 
  6.                 "preLaunchTask":"build", 
  7.                 "type":"cppvsdbg", 
  8.                 "request":"launch", 
  9.                 "program":"${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe", 
  10.                 "args":[], 
  11.                 "stopAtEntry":false, 
  12.                 "cwd":"${workspaceFolder}", 
  13.                 "environment":[], 
  14.                 "externalConsole":false 
  15.             }, 
  16.             { 
  17.                 "name":"(gdb) 启动", 
  18.                 "type":"cppdbg", 
  19.                 "request":"launch", 
  20.                 "program":"${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe", 
  21.                 "args":[], 
  22.                 "stopAtEntry":false, 
  23.                 "cwd":"${workspaceFolder}", 
  24.                 "environment":[], 
  25.                 "externalConsole":false, 
  26.                 "MIMode":"gdb", 
  27.                 "miDebuggerPath":"这里填GDB所在的目录", 
  28.                 "setupCommands":[ 
  29.                     { 
  30.                         "description":"为 gdb 启用整齐打印", 
  31.                         "text":"-enable-pretty-printing", 
  32.                         "ignoreFailures":true 
  33.                     } 
  34.                 ] 
  35.             } 
  36.         ] 
  37. }

Qt 5.12.10 Android SDK NDK Error

Hard Code, Just so so !

C:\Qt\Tools\QtCreator\share\qtcreator\android\sdk_definitions.json

  1. {
  2.     "common": {
  3.         "sdk_tools_url": {
  4.             "linux": "https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip",
  5.             "linux_sha256": "89f308315e041c93a37a79e0627c47f21d5c5edbe5e80ea8dc0aac8a649e0e92",
  6.             "windows": "https://dl.google.com/android/repository/commandlinetools-win-6609375_latest.zip",
  7.             "windows_sha256": "40bba20275180194bebf89bb58c74d712bb93cc401f36bd2f8f32383acf9826c",
  8.             "mac": "https://dl.google.com/android/repository/commandlinetools-mac-6609375_latest.zip",
  9.             "mac_sha256": "2c3822db1c916655223e5ee8ce0fbf6b73d0b99012045c9dc8eaa6a5736c0c55"
  10.         },
  11.         "sdk_essential_packages": {
  12.             "default": ["platform-tools", "platforms;android-30", "cmdline-tools;latest"],
  13.             "linux": [],
  14.             "mac": [],
  15.             "windows": ["extras;google;usb_driver"]
  16.         }
  17.     },
  18.     "specific_qt_versions": [
  19.         {
  20.             "versions": ["default"],
  21.             "sdk_essential_packages": ["build-tools;26.0.3", "ndk;20.0.5594570"],
  22.             "ndk_path": "ndk/20.0.5594570"
  23.         },
  24.         {
  25.             "versions": ["5.12.[0-5]", "5.13.[0-1]"],
  26.             "sdk_essential_packages": ["build-tools;28.0.2", "ndk;19.2.5345600"],
  27.             "ndk_path": "ndk/19.2.5345600"
  28.         }
  29.     ]
  30. }
Posted in QT

Install Qt 5.12.10 on Ubuntu 18.04

  1. cp qt-opensource-linux-x64-5.12.10.run ~/Downloads/
  2. cd ~/Downloads/
  3. ./qt-opensource-linux-x64-5.12.10.run
  4. sudo apt-get install libxcb-xinerama0
  5. sudo apt-get install build-essential
  6. sudo apt-get install libfontconfig1
  7. sudo apt-get install mesa-common-dev
  8. sudo apt-get install libglu1-mesa-dev -y