-
Notifications
You must be signed in to change notification settings - Fork 100
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
Build in docker #88
Comments
I have the same error. I did the test without -lstd++ flag but still experience the same thing... Is there any update? |
Please use v2 branch while I investigate this issue. I believe this issue would be fixed in v2. |
There is another issue in v2 branch but i fixed this error with wsl. Maybe there is problem in pre build docker container. |
Sorry, I tried to use v2 branch (like this "go get github.com/Arman92/go-tdlib@v2" using Go 1.20), but got an error, can you please advise, how to do it correctly? |
Answer: go get github.com/Arman92/go-tdlib/v2@3b65411 works fine |
The same problem with v2 branch
|
|
Hello! I'm trying to build docker image from README.md.
When i execute the command "docker build -fDockerfile -ttelegram-client ." on step:
Step 12/15 : RUN go build --ldflags "-extldflags '-static -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -ldl -lm -lssl -lcrypto -lstdc++ -lz'" -o /tmp/demo-exe main.go
i get error:
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lc++
collect2: error: ld returned 1 exit status
The command '/bin/sh -c go build --ldflags "-extldflags '-static -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -ldl -lm -lssl -lcrypto -lstdc++ -lz'" -o /tmp/demo-exe main.go' returned a non-zero code: 2
How can I assemble the image correctly?
The text was updated successfully, but these errors were encountered: