Git Product home page Git Product logo

Comments (4)

akasandra avatar akasandra commented on June 3, 2024 1

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.

akasandra avatar akasandra commented on June 3, 2024

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.

Arman92 avatar Arman92 commented on June 3, 2024

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.

Arman92 avatar Arman92 commented on June 3, 2024

Also please take a look at this tool: https://tdlib.github.io/td/build.html

from go-tdlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.