Package Details: libqtelegram-bzr 82-1

Package Base: libqtelegram-bzr
Description: Telegram library written in Qt based on telegram-cli code
Upstream URL: https://launchpad.net/libqtelegram
Category: lib
Licenses: GPL3
Submitter: Llumex03
Maintainer: None
Last Packager: Llumex03
Votes: 4
First Submitted: 2015-01-21 19:24
Last Updated: 2015-03-03 18:59

Required by (0)

Sources

Latest Comments

Comment by Llumex03

2015-05-14 19:22

I disown this package as i said here: https://aur.archlinux.org/packages/cutegram-git/

Now this package is orphan

Comment by ogarcia

2015-03-30 09:01

I put a bug into upstream: https://bugs.launchpad.net/libqtelegram/+bug/1435710

They say that they will apply it shortly...

Comment by nylocx

2015-03-28 13:49

For those who don't like to edit the PKGBUILD on there own I used maxfs patch and edited the PKGBUILD.
https://bpaste.net/show/dc7eff8b5ffa
Maybe someone can file this upstream, I dont want to create a ubuntu one account just for this bug ;), I hope someone here allready has one.

Comment by maxf

2015-03-12 09:37

Sorry, I didn't know that the tabs would be killed...
Reupload to pastebin: http://pastebin.com/5L1Qcsft

Comment by svalo

2015-03-12 09:33

I did create the patch file in src/fix_build.patch but when it is appied sayspatch: **** malformed patch at line 4: set (CORE_HEADERS

Don't know if I was doing it right, however if I manually edit the file it works, thanks!

Comment by maxf

2015-03-10 13:11

Fix for build errors:
Some headers were moved from lib/core to lib/util. For some reason nobody cleaned up the CMakeLists afterwards:

fix_build.patch:
--- a/lib/core/CMakeLists.txt 2015-03-10 14:00:43.193447000 +0100
+++ b/lib/core/CMakeLists.txt 2015-03-10 13:59:29.429009994 +0100
@@ -1,10 +1,7 @@
set (CORE_HEADERS
abstractapi.h
api.h
- asserter.h
connection.h
- constants.h
- cryptoutils.h
dc.h
dcauth.h
dcprovider.h
@@ -16,9 +13,7 @@
querymethods.h
session.h
sessionmanager.h
- settings.h
- tlvalues.h
- utils.h)
+ settings.h)

if(NOT CLICK_MODE)
INSTALL(FILES ${CORE_HEADERS}

PKGBUILD:
prepare() {
patch -d $srcdir/libqtelegram -p1 < fix_build.patch
cd $_pkgname
mkdir -p build
}

To fix the race condition with gtest (crashes with -j12 otherwise) replace make by make googletest && make in build().

Comment by Llumex03

2015-03-03 19:00

Added missing dependency but the compilation errors are still present.

Comment by talonz

2015-03-02 02:03

@pedrogabriel i just deleted those entries in src/libqtelegram/lib/core/CMakeLists.txt so it looked like this.

set (CORE_HEADERS
abstractapi.h
api.h
connection.h


dc.h
dcauth.h
dcprovider.h
endpoint.h
eventtimer.h
inboundpkt.h
outboundpkt.h
query.h
querymethods.h
session.h
sessionmanager.h
settings.h

)

dont know how this affects things in the build but it has built for me now and cutegram is running fine as far as i can see

Comment by pedrogabriel

2015-03-01 19:55

What should I do to fix the following error?

CMake Error at lib/core/cmake_install.cmake:44 (file):
file INSTALL cannot find
"/var/cache/pacman/pkg/libqtelegram-bzr3399/libqtelegram-bzr/src/libqtelegram/lib/core/asserter.h".
Call Stack (most recent call first):
lib/cmake_install.cmake:89 (include)
cmake_install.cmake:37 (include)

Comment by hypernetoman

2015-02-27 19:50

Hello!

The failed installation problem occurs because the cmake_install.cmake file tries to install non-existent files.

I've fixed this issue by modifying the file "src/libqtelegram-bzr/build/lib/core/cmake_install.cmake" and replacing the last part with the following:

file(INSTALL DESTINATION "/usr/include/libqtelegram/core" TYPE FILE FILES
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/abstractapi.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/api.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/connection.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/dc.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/dcauth.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/dcprovider.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/endpoint.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/eventtimer.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/inboundpkt.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/outboundpkt.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/query.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/querymethods.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/session.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/sessionmanager.h"
"/var/package-builds/aur/libqtelegram-bzr/src/libqtelegram/lib/core/settings.h"
)
endif()

Bear in mind that you'll have to let makepkg fail once so it generates this file; then you can retry with `makepkg -ei`.

I hope this helps.

Comment by boebbele

2015-02-26 14:44

Installation failed! :-(

CMake Error at lib/core/cmake_install.cmake:44 (file):
file INSTALL cannot find
"/tmp/yaourt-tmp-ingo/aur-libqtelegram-bzr/src/libqtelegram/lib/core/asserter.h".
Call Stack (most recent call first):
lib/cmake_install.cmake:89 (include)
cmake_install.cmake:37 (include)

Makefile:86: die Regel für Ziel „install“ scheiterte
make: *** [install] Fehler 1
==> FEHLER: Ein Fehler geschah in package().
Breche ab...
==> FEHLER:Makepkg konnte libqtelegram-bzr nicht erstellen.
==> Erstellen von libqtelegram-bzr neu starten?[j/N]
==> ------------------------------------------------
==>

Comment by u-foka

2015-02-23 19:48

Missing dependency: qt5-multimedia

Comment by Llumex03

2015-02-11 01:41

PKGBULD updated. Thanks ogarcia

Comment by ogarcia

2015-02-09 12:07

Hi. I updated this PKGBULD with better install lines:

- Set proper permissions
- Add missing header "secret/decryptedmessagebuilder.h"

The fixed PKGBUILD is in: http://dpaste.com/0B3MNK4

Comment by shad0w73

2015-02-07 01:31

libqtelegram needs qt5-multimedia as a dependency. Without it I wasn't able to build it.

Comment by nylocx

2015-02-04 11:14

I needed this as a dependency of cutegram a qt telegram client which wouldn't build because a header (secret/secretchatmessage.h) wasn't installed by make install. So I installed it my self. Here is the adjusted PKGBUILD: http://dpaste.com/3J6PYGF

Btw. I guess this should be fixed upstream but I have currently no time to write a upstream bug report if anyone does please feel free to report it upstream.

Comment by svalo

2015-01-25 12:30

@maxf: Thank you very much, it wasn't building and your solution fixed, I didn't run the tests.

Comment by Llumex03

2015-01-22 19:21

Interesting but i don't have installed gtest and i could install libqtelegram successfuly... Anyway i'll take a look to your suggestion.

Thanks for reporting.

Comment by maxf

2015-01-22 12:59

libqtelegram uses gtest for unit tests. If you happen to have gtest installed, the build will fail, because there seems to be a race condition: gtest(which is btw probably a build dependency) might not be set up completely when another thread tries to build the test. Changing make to
make -j1 googletest
make
and optionally
cd tests
./libqtelegram-tests
fixes things for me.