Water's Home

Just another Life Style

0%

Problem

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

Resolved

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

main.rs

fn main() {
println!(“Hello, world!”);
let a = “Water”;
println!(“Hello, {}!”, a);
}

tasks.json

{
    “version”: “2.0.0”,
    “tasks”: [
        {
            “label”: “build”,
            “type”: “shell”,
            “command”:”cargo”,
            “args”: [“build”]
        }
    ]
}

launch.json

{
    “version”: “0.2.0”,
    “configurations”: [
        {
            “name”: “(Windows) 启动”,
            “preLaunchTask”: “build”,
            “type”: “cppvsdbg”,
            “request”: “launch”,
            “program”: “${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe”,
            “args”: [],
            “stopAtEntry”: false,
            “cwd”: “${workspaceFolder}”,
            “environment”: [],
            “externalConsole”: false
        },
{
            “name”: “(gdb) 启动”,
            “type”: “cppdbg”,
            “request”: “launch”,
            “program”: “${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe”,
            “args”: [],
            “stopAtEntry”: false,
            “cwd”: “${workspaceFolder}”,
            “environment”: [],
            “externalConsole”: false,
            “MIMode”: “gdb”,
            “miDebuggerPath”: “这里填GDB所在的目录”,
            “setupCommands”: [
                {
                    “description”: “为 gdb 启用整齐打印”,
                    “text”: “-enable-pretty-printing”,
                    “ignoreFailures”: true
                }
            ]
        }
    ]
}

Hard Code, Just so so !

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

{
“common”: {
“sdk_tools_url”: {
“linux”: “https://dl.google.com/android/repository/commandlinetools-linux-6609375\_latest.zip",
“linux_sha256”: “89f308315e041c93a37a79e0627c47f21d5c5edbe5e80ea8dc0aac8a649e0e92”,
“windows”: “https://dl.google.com/android/repository/commandlinetools-win-6609375\_latest.zip",
“windows_sha256”: “40bba20275180194bebf89bb58c74d712bb93cc401f36bd2f8f32383acf9826c”,
“mac”: “https://dl.google.com/android/repository/commandlinetools-mac-6609375\_latest.zip",
“mac_sha256”: “2c3822db1c916655223e5ee8ce0fbf6b73d0b99012045c9dc8eaa6a5736c0c55”
},
“sdk_essential_packages”: {
“default”: [“platform-tools”, “platforms;android-30”, “cmdline-tools;latest”],
“linux”: [],
“mac”: [],
“windows”: [“extras;google;usb_driver”]
}
},
“specific_qt_versions”: [
{
“versions”: [“default”],
“sdk_essential_packages”: [“build-tools;26.0.3”, “ndk;20.0.5594570”],
“ndk_path”: “ndk/20.0.5594570”
},
{
“versions”: [“5.12.[0-5]“, “5.13.[0-1]“],
“sdk_essential_packages”: [“build-tools;28.0.2”, “ndk;19.2.5345600”],
“ndk_path”: “ndk/19.2.5345600”
}
]
}

cp qt-opensource-linux-x64-5.12.10.run ~/Downloads/
cd ~/Downloads/
./qt-opensource-linux-x64-5.12.10.run
sudo apt-get install libxcb-xinerama0
sudo apt-get install build-essential
sudo apt-get install libfontconfig1
sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev -y