Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building Telegram Desktop Issue

Building Telegram Desktop Issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
telegramcompile
7 Posts 3 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Mr.AliRezaM Offline
    Mr.AliRezaM Offline
    Mr.AliReza
    wrote on last edited by Mr.AliReza
    #1

    Hey guys!
    I want to build Telegram Desktop under Ubuntu 16.04. I use this document:
    https://github.com/telegramdesktop/tdesktop/blob/master/doc/building-qtcreator.md

    But my problem is that when I want to build "Telegram.pro" for Debug (after "if GeneratedFiles are not found click Run qmake from Build menu and try again"), I got these errors:

    :-1: error: cannot find -lqtharfbuzzng
    :-1: error: cannot find -lqtpcre
    :-1: error: collect2: error: ld returned 1 exit status
    

    How to fix them?! Please help.
    Thanks!

    1 Reply Last reply
    0
    • Pradeep KumarP Offline
      Pradeep KumarP Offline
      Pradeep Kumar
      wrote on last edited by
      #2

      -lqtharfbuzzng and -lqtpcre libraries are missing , may be you need to install them.

      Pradeep Kumar
      Qt,QML Developer

      1 Reply Last reply
      2
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #3

        @Mr-AliReza
        welcome to the forum

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        1
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          See http://stackoverflow.com/questions/32010314/qt5-5-how-can-i-include-qts-qtpcre-lib-and-qtharfbuzzng-lib-with-cmake

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          Mr.AliRezaM 1 Reply Last reply
          3
          • VRoninV VRonin

            See http://stackoverflow.com/questions/32010314/qt5-5-how-can-i-include-qts-qtpcre-lib-and-qtharfbuzzng-lib-with-cmake

            Mr.AliRezaM Offline
            Mr.AliRezaM Offline
            Mr.AliReza
            wrote on last edited by
            #5

            @VRonin Thanks, but I couldn't fix it. Can't I add these libraries like this:

            LIBS += ./../../../Libraries/qt5_6_0/qtbase/lib/libqtharfbuzzng.a \
                ./../../../Libraries/qt5_6_0/qtbase/lib/libqtpcre.a
            
            Mr.AliRezaM 1 Reply Last reply
            0
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              depends where you have the libraries... these are relative paths

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              2
              • Mr.AliRezaM Mr.AliReza

                @VRonin Thanks, but I couldn't fix it. Can't I add these libraries like this:

                LIBS += ./../../../Libraries/qt5_6_0/qtbase/lib/libqtharfbuzzng.a \
                    ./../../../Libraries/qt5_6_0/qtbase/lib/libqtpcre.a
                
                Mr.AliRezaM Offline
                Mr.AliRezaM Offline
                Mr.AliReza
                wrote on last edited by
                #7

                Still has errors !!

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved