Hi.
I am facing the same issue. I have tried what you have proposed, to no avail.
The tasks.json I have tried is as follows:
{
"version": "2.0.0",
"options": {
"env": {
"TORIZON_PROP_ARG": "ARG SSHUSERNAME=#%application.username%#\n"
}
},
"tasks": [
{
"label": "build",
"type": "shell",
"command": "g++",
"args": [
"myfile.cpp",
"-I/usr/include/dbus-1.0",
"-I/usr/lib/aarch64-linux-gnu/dbus-1.0/include",
"-ldbus-1"
]
}
]
}
I have added appropriate packages in extrapackages and devpackages, included -ldbus-1 in target link libraries.
following is my current cmakelists:
cmake_minimum_required(VERSION 3.0.0)
# set the project name
project(AppTest17WinSide VERSION 1.0)
# add the executable
add_executable(AppTest17WinSide AppTest17WinSide.cpp)
# # include directories
# target_include_directories(AppTest17WinSide
# PUBLIC
# /usr/include/dbus-1.0
# /usr/lib/aarch64-linux-gnu/dbus-1.0/include
# )
target_link_libraries(${PROJECT_NAME} -lserial -lpthread -lbluetooth -lsystemd -ldbus-1)
#-lpthread is for multithreading
#-lserial is for libserial
#-lbluetooth is for libbluetooth-dev
#-lsystemd is for sdbus bluetooth
# install (please be aware that changing the target folder may lead to issues during deployment and debugging)
install(TARGETS AppTest17WinSide DESTINATION bin)
c_cpp_properties:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/libserial",
"${workspaceFolder}/easylogging/",
"/usr/include/dbus-1.0",
"/usr/lib/aarch64-linux-gnu/dbus-1.0/include"
],
"defines": [],
"compilerPath": "/usr/bin/${env:CC}",
"cStandard": "c11",
"cppStandard": "gnu++14",
"intelliSenseMode": "gcc-arm64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
Kindly help. I have been stuck on this issue for a few days now.
Best Regards,
Hassan.