Comments (6)
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".
from go-tdlib.
Thank you @Drathveloper , it seems like it did something. Though I'm now getting another error
# github.com/Arman92/go-tdlib
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/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ltdjson
collect2.exe: error: ld returned 1 exit status
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 C:\src\td\tdlib\lib
from go-tdlib.
can you post the output of:
gcc -print-search-dirs
?
from go-tdlib.
@fukpy i got the same error as @tomas-lejdung
here is my gcc -print-search-dirs
output
`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/
programs: =C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/;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/../../../../x86_64-w64-mingw32/bin/x86_64-w64-mingw32/8.1.0/;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/../../../../x86_64-w64-mingw32/bin/
libraries: =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/;C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/;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/../../../../x86_64-w64-mingw32/lib/x86_64-w64-mingw32/8.1.0/;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/../../../../x86_64-w64-mingw32/lib/../lib/;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/../../../x86_64-w64-mingw32/8.1.0/;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/../../../../lib/;C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/mingw/lib/x86_64-w64-mingw32/8.1.0/;C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/mingw/lib/../lib/;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/../../../../x86_64-w64-mingw32/lib/;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/../../../;C:/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/mingw/lib/`
from go-tdlib.
Add These in Windows environments variable :
CGO_LDFLAGS=-LC:\dev\tdlib\bin -ltdjson
CGO_CFLAGS=-IC:\dev\tdlib\include
C:\dev = Place that build tdlib in my pc
from go-tdlib.
在 Windows 环境变量中添加这些:
CGO_LDFLAGS=-LC:\dev\tdlib\bin -ltdjson CGO_CFLAGS=-IC:\dev\tdlib\include
C:\dev = 在我的电脑中构建 tdlib
谢谢,非常有用, 头文件是找到了,但是链接库报错:
D:/Dev/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:/Workspace/GoLang/td/tdlib/bin/tdjson.dll when searching for -ltdjson
D:/Dev/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible D:/Workspace/GoLang/td/tdlib/bin/tdjson.dll when searching for -ltdjson
D:/Dev/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ltdjson
collect2.exe: error: ld returned 1 exit status
from go-tdlib.
Related Issues (20)
- Is it possible to save session to string
- TDLib v1.8.0 support? HOT 1
- Struct member User.ID should be int64, not int32
- README building instruction does not work for latest tdlib HOT 2
- gcc and tdlib build on windows ( instruction ) HOT 1
- addProxy timeout
- Can't get past auth stage HOT 1
- Is it possible to use .session + .json?
- User identifiers will become bigger than 2^31 - 1 HOT 3
- json unmarshal loss field value HOT 4
- Unable to download files > 17MB HOT 1
- Build in docker HOT 7
- Implicit declaration of function
- error /usr/bin/ld: cannot find -lc++ HOT 10
- Where should I clone and build the Tdlib repo?
- "Library not found" error on macos system HOT 1
- ChatMember problem
- cannot unmarshal object into Go struct field .last_message of type tdlib.MessageSender
- Missing -lstdc++ in sources
- UPDATE_APP_TO_LOGIN error when i try to register new session
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-tdlib.