Comments (4)
Yes! Dependencies was the reason.
However, this is the issue of tdlib, since normally configure script/cmake could be reporting about missing dependencies, but does not.
from go-tdlib.
To fix this error, i've tried to run brew install openssl
and rebuild tdlib with this config (taken from #3):
cmake -DCMAKE_BUILD_TYPE=Release -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/lib ..
but it did not resolve the problem.
go build -o app/bin/run_backend
# github.com/Arman92/go-tdlib
In file included from ../../go/src/github.com/Arman92/go-tdlib/tdlib.go:10:
/usr/local/include/td/telegram/td_json_client.h:50:10: fatal error: 'td/telegram/tdjson_export.h' file not found
#include "td/telegram/tdjson_export.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [build] Error 2```
from go-tdlib.
It's not a go-tdlib issue. Have you looked at tdlib Install Instructions?
Seems it's caused by a missing dependency, check out this issue.
It's not a good idea, but anyway if you couldn't figure it out, here is what I found in the tdjson_export.h:
#ifndef TDJSON_EXPORT_H
#define TDJSON_EXPORT_H
#ifdef TDJSON_STATIC_DEFINE
# define TDJSON_EXPORT
# define TDJSON_NO_EXPORT
#else
# ifndef TDJSON_EXPORT
# ifdef tdjson_EXPORTS
/* We are building this library */
# define TDJSON_EXPORT __attribute__((visibility("default")))
# else
/* We are using this library */
# define TDJSON_EXPORT __attribute__((visibility("default")))
# endif
# endif
# ifndef TDJSON_NO_EXPORT
# define TDJSON_NO_EXPORT __attribute__((visibility("hidden")))
# endif
#endif
#ifndef TDJSON_DEPRECATED
# define TDJSON_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef TDJSON_DEPRECATED_EXPORT
# define TDJSON_DEPRECATED_EXPORT TDJSON_EXPORT TDJSON_DEPRECATED
#endif
#ifndef TDJSON_DEPRECATED_NO_EXPORT
# define TDJSON_DEPRECATED_NO_EXPORT TDJSON_NO_EXPORT TDJSON_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef TDJSON_NO_DEPRECATED
# define TDJSON_NO_DEPRECATED
# endif
#endif
#endif
from go-tdlib.
Also please take a look at this tool: https://tdlib.github.io/td/build.html
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.