Visual Studio Code and library libpq

Hello

How can I add libpq sample project to connect to postgresql database, can't add libpq-fe.h?


I previously installed vcpkg.




Can anyone help?



Parents
  • Hi,

    Could you provide more information on what are you trying to do in this project?

    After installation of vcpkg, there is a message that "-DCMAKE_TOOLCHAIN_FILE=<vcpkg path>/scripts/buildsystems/vcpkg.cmake" should be used by CMake projects. Based on this answer, it seems that using CMAKE_TOOLCHAIN_FILE is not supported.

    You could try building the library from the source, but there are many other library dependencies. Therefore, this approach might not work as well.

    You could also have a look at Zephyr external library sample which explains how to include external library to the Zephyr build system.

    Best regards,
    Dejan

Reply
  • Hi,

    Could you provide more information on what are you trying to do in this project?

    After installation of vcpkg, there is a message that "-DCMAKE_TOOLCHAIN_FILE=<vcpkg path>/scripts/buildsystems/vcpkg.cmake" should be used by CMake projects. Based on this answer, it seems that using CMAKE_TOOLCHAIN_FILE is not supported.

    You could try building the library from the source, but there are many other library dependencies. Therefore, this approach might not work as well.

    You could also have a look at Zephyr external library sample which explains how to include external library to the Zephyr build system.

    Best regards,
    Dejan

Children
No Data
Related