Skip to content
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

td/telegram/td_json_client.h: No such file or directory #188

Closed
Andrmist opened this issue Jul 10, 2020 · 5 comments
Closed

td/telegram/td_json_client.h: No such file or directory #188

Andrmist opened this issue Jul 10, 2020 · 5 comments

Comments

@Andrmist
Copy link

make[1]: Entering directory '/home/master/telega-server/server'
c++ -I/usr/local/include -Wall -g -pthread -std=c++11 -DWITH_VOIP -DTGVOIP_NO_STDOUT_LOGS -o telega-server telega-server.c telega-dat.c telega-pngext.c telega-voip.cpp -L/usr/local/lib -Wl,-rpath,/usr/local/lib -ltdjson -ltgvoip
telega-server.c:10:10: fatal error: td/telegram/td_json_client.h: No such file or directory
 #include <td/telegram/td_json_client.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:30: recipe for target 'telega-server' failed
make[1]: *** [telega-server] Error 1
make[1]: Leaving directory '/home/master/telega-server/server'
Makefile:6: recipe for target 'telega-server' failed
make: *** [telega-server] Error 2

Telega Setup

OS: Linux jetson1 4.9.140-tegra #1 SMP PREEMPT Tue Apr 28 14:06:23 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux
Emacs: GNU Emacs 26.3 (build 2, aarch64-unknown-linux-gnu, GTK+ Version 3.22.30) of 2019-09-17
user-error: Minibuffer window is not active
Telega: can't provide because server not builded

I install telega from MELPA. Also tried to install from git.

Current Behavior

It crashes when i want to build telega-server

Steps to Reproduce

  1. install telega from melpa or git
  2. run M-x telega
  3. select y when asked "Build 'telega-server'?"
@zevlg
Copy link
Owner

zevlg commented Jul 10, 2020

This is TDLib related issue, or tdlib package is broken on you system. There was similar problems caused by broken tdlib package in Fedora

Try installing TDLib by hand. Also take into account that telega.el master is TDLib 1.6.6 only

@brettgilio
Copy link
Collaborator

Closing, as the issue seems resolved. Reopen if necessary.

@jasonmj
Copy link

jasonmj commented Apr 9, 2021

I have this same issue. Using TDLib 1.7.0.

@zevlg
Copy link
Owner

zevlg commented Apr 9, 2021

I have this same issue. Using TDLib 1.7.0.

Set telega-server-libs-prefix to the prefix, where your TDLib files are installed before running M-x telega RET

TDLib installation is required before running telega, just compiling it is not enough. Don't forget to run $ sudo make install step from https://zevlg.github.io/telega.el/#building-tdlib

@jasonmj
Copy link

jasonmj commented Apr 9, 2021

Awesome, thank you! That got me past my block. I'm on NixOS, so I needed to provide a full path to TDLib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants