I disown this package as i said here: https://aur.archlinux.org/packages/cutegram-git/
Now this package is orphan
Search Criteria
Package Details: libqtelegram-bzr 82-1
Package Actions
| Package Base: | libqtelegram-bzr |
|---|---|
| Description: | Telegram library written in Qt based on telegram-cli code |
| Upstream URL: | https://launchpad.net/libqtelegram |
| Category: | lib |
| Licenses: | |
| Submitter: | Llumex03 |
| Maintainer: | None |
| Last Packager: | Llumex03 |
| Votes: | 4 |
| First Submitted: | 2015-01-21 19:24 |
| Last Updated: | 2015-03-03 18:59 |
Dependencies (7)
- libmediainfo
- openssl
- qt5-base
- qt5-multimedia
- thumbnailer-bzr
- bzr (make)
- cmake (make)
Required by (0)
Sources
Latest Comments
Comment by Llumex03
Comment by ogarcia
I put a bug into upstream: https://bugs.launchpad.net/libqtelegram/+bug/1435710
They say that they will apply it shortly...
Comment by nylocx
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
Sorry, I didn't know that the tabs would be killed...
Reupload to pastebin: http://pastebin.com/5L1Qcsft
Comment by svalo
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
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
Added missing dependency but the compilation errors are still present.
Comment by talonz
@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
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
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
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
Missing dependency: qt5-multimedia
Comment by Llumex03
PKGBULD updated. Thanks ogarcia
Comment by ogarcia
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
libqtelegram needs qt5-multimedia as a dependency. Without it I wasn't able to build it.
Comment by nylocx
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
@maxf: Thank you very much, it wasn't building and your solution fixed, I didn't run the tests.
Comment by Llumex03
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
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.