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/tdjson_export.h: No such file or directory #52

Closed
sfabel opened this issue Apr 3, 2019 · 6 comments
Closed

td/telegram/tdjson_export.h: No such file or directory #52

sfabel opened this issue Apr 3, 2019 · 6 comments

Comments

@sfabel
Copy link

sfabel commented Apr 3, 2019

On Ubuntu 18.04

I am failing to build telega-server using the instructions provided.

/usr/bin/make -C server telega-server                                                                                                                                                                              
make[1]: Entering directory '/home/stephan/Dropbox/emacs/ext/telega.el/server'                                                                                                                                     
cc -I/usr/local/include -I. -Wall -g -pthread -o telega-server telega-server.c telega-dat.c -L/usr/local/lib -ltdjson                                                                                              
In file included from telega-server.c:10:0:                                                                                                                                                                        
./td/telegram/td_json_client.h:50:10: fatal error: td/telegram/tdjson_export.h: No such file or directory                                                                                                          
 #include "td/telegram/tdjson_export.h"                                                                                                                                                                            
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                            
compilation terminated.                                                                                                                                                                                            
Makefile:8: recipe for target 'telega-server' failed                                                                                                                                                               
make[1]: *** [telega-server] Error 1                                                                                                                                                                               
make[1]: Leaving directory '/home/stephan/Dropbox/emacs/ext/telega.el/server'                                                                                                                                      
Makefile:6: recipe for target 'telega-server' failed                                                                                                                                                               
make: *** [telega-server] Error 2 
@sarg
Copy link
Contributor

sarg commented Apr 3, 2019

You have to build tdlib first. From error message it seems that you didn't.

@sfabel
Copy link
Author

sfabel commented Apr 3, 2019 via email

@zevlg
Copy link
Owner

zevlg commented Apr 3, 2019

@sfabel have you installed TDLib system wide?

...

Finally, to install the TDLib library system-wide:

$ sudo make install

Check the path please where TDLib installation puts tdjson_export.h

@sfabel
Copy link
Author

sfabel commented Apr 4, 2019

I did execute the make install part of the instructions. I don't think it actually puts the header files anywhere.

$ cat install_manifest.txt ; echo ""
/usr/local/lib/libtdutils.a

Is there some CMake option I'm missing?

@zevlg
Copy link
Owner

zevlg commented Apr 4, 2019

Maybe you have got something similar to tdlib/td#257 or tdlib/td#61 ?

I've got this in install_manifest.txt:

/usr/local/lib/libtdjson.so
/usr/local/lib/libtdjson_static.a
/usr/local/lib/libtdjson_private.a
/usr/local/lib/libtdclient.a
/usr/local/lib/libtdcore.a
/usr/local/lib/cmake/Td/TdTargets.cmake
/usr/local/lib/cmake/Td/TdTargets-noconfig.cmake
/usr/local/include/td/telegram/td_json_client.h
/usr/local/include/td/telegram/td_log.h
/usr/local/include/td/telegram/tdjson_export.h
/usr/local/include/td/telegram/Client.h
/usr/local/include/td/telegram/Log.h
/usr/local/include/td/tl/TlObject.h
/usr/local/include/td/telegram/td_api.h
/usr/local/include/td/telegram/td_api.hpp
/usr/local/lib/cmake/Td/TdConfig.cmake
/usr/local/lib/cmake/Td/TdConfigVersion.cmake
/usr/local/lib/libtdutils.a
/usr/local/lib/libtdactor.a
/usr/local/lib/libtdnet.a
/usr/local/lib/libtdsqlite.a
/usr/local/lib/libtddb.a

@sfabel
Copy link
Author

sfabel commented Apr 4, 2019

Turns out, once you install the library dependencies like openssl, zlib and readline, everything gets built. My install_manifest.txt now looks identical to yours, my telega-server compiles and I just connected to my account. Yay!

Thanks for all the help.

@sfabel sfabel closed this as completed Apr 4, 2019
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

3 participants