Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 编译问题修改 #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vincentoo
Copy link

1. 修改相关Makefile报错的问题,主要是路径问题
2. 增加`third_party/google/protobuf`,这个目录应该放在`/usr/local/include/google`,
此时`proto`相关语句应该增加参数:`--proto_path=/usr/local/include`,
否则会报找不到相关`proto`文件
3. 目前部分服务的代码中不包括`ent`的生成目录,此时去执行`make ent`会报错,
为使编译继续运行,暂时通过`-`忽略错误。

命令示例:

make [service=cart]
make [service=cart] api
make [service=cart] wire
make [service=cart] proto
make [service=cart] ent
make [service=cart] build
make [service=cart] docker
make [service=cart] pushi

    1. 修改相关Makefile报错的问题,主要是路径问题
    2. 增加`third_party/google/protobuf`,这个目录应该放在`/usr/local/include/google`,
    此时`proto`相关语句应该增加参数:`--proto_path=/usr/local/include`,
    否则会报找不到相关`proto`文件
    3. 目前部分服务的代码中不包括`ent`的生成目录,此时去执行`make ent`会报错,
    为使编译继续运行,暂时通过`-`忽略错误。

命令示例:
```
make [service=cart]
make [service=cart] api
make [service=cart] wire
make [service=cart] proto
make [service=cart] ent
make [service=cart] build
make [service=cart] docker
make [service=cart] pushi
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant