OdbDesign icon indicating copy to clipboard operation
OdbDesign copied to clipboard

Dependency library related

Open zsffuture opened this issue 5 months ago • 4 comments

Thanks for the open source contribution, but the project is not suitable for newbies, can you list separately which libraries the development environment depends on? I use vpkg on my side often reported errors, resulting in the failure to compile, if you can list the dependent libraries even if vpkg fails, we can configure it separately, do you think so?

zsffuture avatar Jul 16 '25 07:07 zsffuture

Thank you for your interest in the project! I'll grant it is not the simplest or smallest project, but at least a few people have been able to compile it successfully. 😄

vcpkg.json is the canonical source of the dependencies:

"dependencies": [
    "libarchive",
    "zlib",
    "crow",
    {
      "name": "protobuf",
      "features": [
        "zlib"
      ]
    },
    "openssl"
  ],

As far as a successful compilation in the development environment goes, they are listed in the README.

From the README

$ sudo apt install git cmake ninja-build build-essential pkg-config

git (install instructions for your platform) vcpkg (install instructions for your platform) CMake (install instructions for your platform)+ Ninja (install instructions for your platform) Docker (install instructions for your platform) (optional) git, CMake, and ninja can all be installed via the sudo apt install command listed above. vcpkg can be installed by following the instructions below. Docker is optional but can be installed via the following command:

$ sudo apt install docker.io docker-compose-v2

But I'm not sure what good re-listing the available details is. Have you read build instructions in the README?

I would be more than happy help you fix any build issues you are having.

  1. What OS are you building in?
  2. What command(s) are you running to build?
  3. What is the error and output you are receiving?

Copy and paste this information here and I can help you pinpoint the root cause of your build problem.

Finally, here a couple other approaches that may simplify the build for you.

  1. You can use the docker container and compose if you just need to run the server without building it.
  2. You can use the devcontainer environment to build a docker container with everything you need and use VS Code to edit and build. https://github.com/nam20485/OdbDesign/issues/426
  3. I am working on a setup-dev-env.ps1 script that will help install all dependencies.

nam20485 avatar Jul 17 '25 05:07 nam20485

@zsffuture You might need a magic tool to access VPKG, especially in China.

wen2so avatar Jul 17 '25 06:07 wen2so

@zsffuture You might need a magic tool to access VPKG, especially in China.

What is a magic tool? Is MS's VCPKG not accessible in China? Is there anything I can provide to help?

nam20485 avatar Jul 17 '25 06:07 nam20485

I think this is an important step to take before compiling.

-DCMAKE_TOOLCHAIN_FILE=

wen2so avatar Jul 17 '25 06:07 wen2so