-
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 problems on Windows #70
Comments
In my case i found in the sources that actually it try to find the relative path "td/telegram/td_json_client.h" at "C:\src\td". |
Thank you @Drathveloper , it seems like it did something. Though I'm now getting another error
Did you mean that you should place the root td folder that is generated from following the instructions on how to install TDLib. The tdjson file that it says that it can't find is located at |
can you post the output of: |
@fukpy i got the same error as @tomas-lejdung `C:\Users\250799>gcc -print-search-dirs install: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/ |
Add These in Windows environments variable : CGO_LDFLAGS=-LC:\dev\tdlib\bin -ltdjson C:\dev = Place that build tdlib in my pc |
谢谢,非常有用, 头文件是找到了,但是链接库报错: |
I am running GO version 1.15.7 and first of all the install instructions does not work that is stated in the readme file.
There is no makefile for the "make install" to execute, at least not for me. So I followed the installation guide at https://tdlib.github.io/td/build.html?language=Go
I've managed to build everything but I have no idea where to place the TD folder so my program can link to it. When running "go build" or "go run main.go" I get
So the problem seems to be that GO does not find the C files, and hopefully this can be easily fixed by moving the "td" folder to the correct place.
Thanks in advance.
The text was updated successfully, but these errors were encountered: