VS Code libraries

Hello, I am creating a project in Visual studio code by following the instructions in the videos, but the project does not compile because it cannot find the libraries. I'm trying to fix it by giving the whole file path and adding it to "CMakeLists.txt" but it doesn't work, too many library errors. How can i solve this problem.

I see that all libraries are in the project directory.

Thank you for your helping.

  • Hi Fatih,

    Could you share the Support Information? You can get this by selecting the "Generate Support Information" option.

    Best Regards,

    Priyanka

  • Where can I find the support information? Are you talking about vs code or this site?

  • This is in the VSCode. 

    Priyanka said:
    You can get this by selecting the "Generate Support Information"

    You can find this on the top left side.

    -Priyanka

  • IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.

    For help and support, visit the Nordic DevZone at devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Home Single Language",
    "osKernel": "10.0.22621",
    "vscode": "1.80.1",
    "electron": "22.3.14",
    "node": "v16.17.1"
    },
    "system": {
    "date": "2023-07-17T12:15:56.125Z",
    "vscodeRoot": "c:\\Users\\fatih\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:00:26",
    "osUptime": "00:01:35",
    "cpu": {
    "model": "11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz",
    "speed": "2803 MHz",
    "count": 4
    },
    "memory": {
    "total": "15.70 GB",
    "free": "5.11 GB"
    }
    },
    "workspace": {
    "name": "label_framework (Workspace)",
    "workspaceFile": "c:\\nordic\\my_projects\\electronic_label\\label_framework.code-workspace",
    "folders": [
    "c:\\nordic\\my_projects\\electronic_label\\label_framework"
    ]
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.6.345",
    "path": "c:\\Users\\fatih\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.6.345-win32-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2023.6.78",
    "path": "c:\\Users\\fatih\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.6.78",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2023.6.108",
    "path": "c:\\Users\\fatih\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.6.108",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2023.6.51",
    "path": "c:\\Users\\fatih\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.6.51",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": null,
    "ms-vscode.cpptools": "1.16.3",
    "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
    "ms-vscode.js-debug": "1.80.0",
    "ms-vscode.js-debug-companion": "1.1.1",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "cschlosser.doxdocgen": "1.4.0",
    "formulahendry.code-runner": "0.12.0",
    "jeff-hykin.better-cpp-syntax": "1.17.2",
    "ms-vscode-remote.remote-containers": "0.299.0",
    "ms-vscode-remote.remote-ssh": "0.102.0",
    "ms-vscode-remote.remote-ssh-edit": "0.86.0",
    "ms-vscode-remote.remote-wsl": "0.80.2",
    "ms-vscode.cmake-tools": "1.14.34",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.remote-explorer": "0.4.1",
    "platformio.platformio-ide": "3.3.0",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17",
    "zhang-renyang.chat-gpt": "1.6.47"
    }
    },
    "tools": {
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.0",
    "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.88l",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.22.1",
    "nrfutil": "Not found",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\cmake.exe": "3.20.5",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\Scripts\\west.exe": "1.0.0",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\python.exe": "3.8.2",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\ninja.exe": "1.9.0",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\gperf.exe": "3.1",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\dtc.exe": "1.4.7",
    "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\gn.exe": "2105",
    "C:\\ncs\\toolchains\\31f4403e35\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
    "gdbPath": "c:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
    },
    "sdks": [
    {
    "version": "2.4.0",
    "path": "c:\\ncs\\v2.4.0"
    },
    {
    "version": "2.4.1",
    "path": "c:\\nordic\\my_projects\\electronic_label"
    }
    ],
    "toolchains": [
    {
    "version": "2.4.0",
    "path": "c:\\ncs\\toolchains\\31f4403e35"
    }
    ],
    "connectedDevices": [],
    "deviceProvider": "nrfutil",
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "c:\\nordic\\my_projects\\electronic_label",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.4.0}"
    },
    "ozonePath": "",
    "applications": [],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": false
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "debugging": {
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true,
    "deviceProvider": "nrfutil",
    "enableTelemetry": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    }
    },
    "environment": {
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "C:\\Users\\fatih",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\Users\\fatih",
    "PATH": "C:\\ncs\\toolchains\\31f4403e35;C:\\ncs\\toolchains\\31f4403e35\\mingw64\\bin;C:\\ncs\\toolchains\\31f4403e35\\bin;C:\\ncs\\toolchains\\31f4403e35\\opt\\bin;C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\31f4403e35\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\Users\\fatih\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.6.345-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\WireGuard\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fatih\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\fatih\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\fatih\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\fatih\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\Azure Data Studio\\bin;C:\\Users\\fatih\\AppData\\Roaming\\npm;C:\\Users\\fatih\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.3\\bin;;C:\\MinGW\\bin;C:\\Users\\fatih\\.dotnet\\tools",
    "ZEPHYR_BASE": "c:\\nordic\\my_projects\\electronic_label\\zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk",
    "PYTHONPATH": "C:\\ncs\\toolchains\\31f4403e35\\opt\\bin;C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\Lib;C:\\ncs\\toolchains\\31f4403e35\\opt\\bin\\Lib\\site-packages"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "C:\\Users\\fatih",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\Users\\fatih",
    "Path": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\WireGuard\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fatih\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\fatih\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\fatih\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\fatih\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\Azure Data Studio\\bin;C:\\Users\\fatih\\AppData\\Roaming\\npm;C:\\Users\\fatih\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.3\\bin;;C:\\MinGW\\bin;C:\\Users\\fatih\\.dotnet\\tools",
    "PATH": "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\WireGuard\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\fatih\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\fatih\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\fatih\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\fatih\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\Azure Data Studio\\bin;C:\\Users\\fatih\\AppData\\Roaming\\npm;C:\\Users\\fatih\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\JetBrains\\IntelliJ IDEA Community Edition 2021.3\\bin;;C:\\MinGW\\bin;C:\\Users\\fatih\\.dotnet\\tools"
    },
    "toolchainPath": "c:\\ncs\\toolchains\\31f4403e35",
    "toolchainBinPath": "c:\\ncs\\toolchains\\31f4403e35\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
    "toolchainVersion": "2.4.0"
    },
    "terminal": {
    "defaultProfile": null
    }
    }

  • Could you try right-clicking on the squiggles error and try disabling all error squiggles?

    -Priyanka

Related