build cpuminer for windows - connectivity problems no curl
This commit is contained in:
164
rin/miner/.vscode/tasks.json
vendored
Normal file
164
rin/miner/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Build Windows CPU Miner (Smart)",
|
||||
"type": "shell",
|
||||
"command": "sudo",
|
||||
"args": [
|
||||
"./build-windows-smart.sh"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": true
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}",
|
||||
"shell": {
|
||||
"executable": "/bin/bash"
|
||||
}
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"detail": "Build Windows executable with automatic curl detection (recommended)"
|
||||
},
|
||||
{
|
||||
"label": "Build Windows CPU Miner (Original Curl)",
|
||||
"type": "shell",
|
||||
"command": "sudo",
|
||||
"args": [
|
||||
"docker",
|
||||
"run",
|
||||
"--rm",
|
||||
"-v",
|
||||
"${workspaceFolder}/cpuminer-opt-rin:/work",
|
||||
"-v",
|
||||
"${workspaceFolder}/cpuminer-opt-rin/build/win:/output",
|
||||
"cpuminer-windows-builder",
|
||||
"bash",
|
||||
"-c",
|
||||
"cd /work && make clean && rm -rf Makefile Makefile.in configure config.* && ./autogen.sh && ./configure --host=x86_64-w64-mingw32 --with-curl=/usr/x86_64-w64-mingw32 CFLAGS='-O3 -march=x86-64 -DCURL_STATICLIB' LDFLAGS='-L/usr/x86_64-w64-mingw32/lib' LIBS='-lcurl -lbcrypt -ladvapi32 -lcrypt32 -lz -lws2_32 -pthread' && make -j4 && cp cpuminer.exe /output/cpuminer-curl.exe"
|
||||
],
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": true
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}",
|
||||
"shell": {
|
||||
"executable": "/bin/bash"
|
||||
}
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"detail": "Build Windows executable with original curl implementation"
|
||||
},
|
||||
{
|
||||
"label": "Build Windows CPU Miner (NO_CURL Fallback)",
|
||||
"type": "shell",
|
||||
"command": "sudo",
|
||||
"args": [
|
||||
"docker",
|
||||
"run",
|
||||
"--rm",
|
||||
"-v",
|
||||
"${workspaceFolder}/cpuminer-opt-rin:/work",
|
||||
"-v",
|
||||
"${workspaceFolder}/cpuminer-opt-rin/build/win:/output",
|
||||
"cpuminer-windows-builder",
|
||||
"bash",
|
||||
"-c",
|
||||
"cd /work && make clean && rm -rf Makefile Makefile.in configure config.* && ./autogen.sh && ./configure --host=x86_64-w64-mingw32 CFLAGS='-O3 -march=x86-64 -DNO_CURL' LDFLAGS='-static' && make -j4 && cp cpuminer.exe /output/cpuminer-nocurl.exe"
|
||||
],
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": true
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}",
|
||||
"shell": {
|
||||
"executable": "/bin/bash"
|
||||
}
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"detail": "Build Windows executable with NO_CURL direct socket fallback"
|
||||
},
|
||||
{
|
||||
"label": "Clean Windows Build",
|
||||
"type": "shell",
|
||||
"command": "sudo",
|
||||
"args": [
|
||||
"docker",
|
||||
"run",
|
||||
"--rm",
|
||||
"-v",
|
||||
"${workspaceFolder}/cpuminer-opt-rin:/work",
|
||||
"-v",
|
||||
"${workspaceFolder}/cpuminer-opt-rin/build/win:/output",
|
||||
"cpuminer-windows-builder",
|
||||
"bash",
|
||||
"-c",
|
||||
"cd /work && make clean && rm -rf Makefile Makefile.in configure config.* *.exe"
|
||||
],
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}",
|
||||
"shell": {
|
||||
"executable": "/bin/bash"
|
||||
}
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"detail": "Clean Windows build artifacts and temporary files"
|
||||
},
|
||||
{
|
||||
"label": "Test Windows Executable",
|
||||
"type": "shell",
|
||||
"command": "bash",
|
||||
"args": [
|
||||
"-c",
|
||||
"echo 'Testing Windows executable...' && if [ -f '${workspaceFolder}/cpuminer-opt-rin/build/win/cpuminer-curl.exe' ]; then echo 'Found cpuminer-curl.exe:' && ls -la '${workspaceFolder}/cpuminer-opt-rin/build/win/cpuminer-curl.exe'; else echo 'cpuminer-curl.exe not found'; fi && if [ -f '${workspaceFolder}/cpuminer-opt-rin/build/win/cpuminer-nocurl.exe' ]; then echo 'Found cpuminer-nocurl.exe:' && ls -la '${workspaceFolder}/cpuminer-opt-rin/build/win/cpuminer-nocurl.exe'; else echo 'cpuminer-nocurl.exe not found'; fi"
|
||||
],
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
},
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}",
|
||||
"shell": {
|
||||
"executable": "/bin/bash"
|
||||
}
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"detail": "Check if Windows executables were built successfully"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user