┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[~/aplicaciones/tdesktop/Telegram]|
└───╼ LANG=C qmake Telegram.pro
WARNING: Failure to find: GeneratedFiles/lang.cpp
WARNING: Failure to find: GeneratedFiles/style_auto.cpp
WARNING: Failure to find: GeneratedFiles/lang.h
WARNING: Failure to find: GeneratedFiles/style_auto.h
WARNING: Failure to find: GeneratedFiles/style_classes.h
RCC: Error in 'SourceFiles/telegram_linux.qrc': Cannot find file 'art/sprite_125x.png'
RCC: Error in 'SourceFiles/telegram_linux.qrc': Cannot find file 'art/sprite_150x.png'
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[~/aplicaciones/tdesktop/Telegram]|
└───╼ LANC=C make
make: *** No rule to make target '../../Telegram/Resources/style.txt', needed by 'GeneratedFiles/style_auto.cpp'. Alto.
┌─┤[$]|[sl1pkn07]|[sL1pKn07]|[~/aplicaciones/tdesktop/Telegram]|
└───╼
Qt 5.3.1 form distribution package
Archlinux 64bits
greetings
Go to Build menu -> Run qmake
same error
i follow the instructions, but in console. without qtcreator. using qmake. qtcreator is not mandatory. because qtcreator is a GUI for qmake and other tools from Qt project, include debugger and code editor.
the patch is reported to Qt dev team? you can post the liks of patch/bugreports?
greetings
https://github.com/telegramdesktop/tdesktop/blob/master/QTCREATOR.md#qt-531-slightly-patched
You should first build MetaStyle and MetaLang projects, in the specified locations (because Telegram.pro has relative paths to MetaStyle and MetaLang prebuid steps), these two projects will produce art/sprite_*.png and not found sources from Generated Files. I know, that doing everything from the https://github.com/telegramdesktop/tdesktop/blob/master/QTCREATOR.md step by step should do the job, don't know about the other approaches.
@rgv151 i mean patch in upstream Qt repository/bugtracker.
@telegramdesktop , yes, i know the steps
qmake MetaStyle.pro CONFIG+=debug
make
qmake MetaEmoji.pro CONFIG+=debug
make
qmake MetaLang.pro CONFIG+=debug
make
qmake Telegram.pro CONFIG+=debug
make
but this last steps fail with
make: *** No rule to make target '../../Telegram/Resources/style.txt', needed by 'GeneratedFiles/style_auto.cpp'. Alto.
i make changes in all .pro files:
I want use a Qt provides by distribution (shared method). then
to change bundled Qt to system Qt
sed 's|\./\.\./\.\./Libraries/QtStatic/qtbase/include|/usr/include/qt|g' -i *.pro
change hardcoded static libs to shared lib in Telegram.pro (https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/Telegram.pro#L259)
sed 's|\./\.\./\.\./\.\./Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.a|/usr/lib/qt/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so|g' -i Telegram.pro
to fix "make: *** No rule to make target '../../Telegram/Resources/style.txt', needed by 'GeneratedFiles/style_auto.cpp'. Alto."
sed 's|\.\./\.\./Telegram/||g' -i Telegram.pro
fix hardcoded #include in SourceFiles/gui/text.h (https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/SourceFiles/gui/text.h#L22)
sed 's|"\.\./\.\./\.\./QtStatic/qtbase/src/gui/text/qfontengine_p.h"|<private/qfontengine_p.h>|g' -i SourceFiles/gui/text.h
(optional) remove FixMake{32}.sh because my distro don't want build with static mode
(https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/Telegram.pro#L71
https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/Telegram.pro#L74)
sed -e 71d -e 74d -i Telegram.pro
MetaStyle, MetaEmoji, MetaLang build ok. but Telegram fail in this point:
http://sl1pkn07.wtf/paste/view/3f078104
I supposed is because need Qt patched from us. but that paches is not tracked by Qt devs (or yes?)
greetings
No, it is my custom Qt patch, it is not needed to Qt anyway. There are some build rules for creating style_auto.cpp from style.txt by MetaStyle, I don't know, why it is not executed the way you build it.
the missing files posted in the first post is created by Telegram.pro
EDIT: I test remove all
INCLUDEPATH += ./../../Libraries/QtStatic/qtbase/include/QtGui/5.3.1/QtGui\
./../../Libraries/QtStatic/qtbase/include/QtCore/5.3.1/QtCore\
./../../Libraries/QtStatic/qtbase/include\
in .pro files and in Telegram.pro, add in https://github.com/telegramdesktop/tdesktop/blob/master/Telegram/Telegram.pro#L1
QT += core gui network multimedia widgets core-private gui-private
same error like my last pastebin
greetings
any notice of fix?
greetings
why? still can't build from git with shared (system) Qt5
lol, after more than a year you are still unable to build it :smile:
g++ -c -include ../DebugIntermediate/Telegram -pipe -g -Wall -W -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-switch -Wno-comment -Wno-unused-but-set-variable -D_REENTRANT -fPIC -D_DEBUG -DQ_OS_LINUX64 -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -isystem /usr/include/qt/QtGui/5.5.0/QtGui -isystem /usr/include/qt/QtCore/5.5.0/QtCore -isystem /usr/include/qt -isystem /usr/local/include/opus -ISourceFiles -IGeneratedFiles -isystem /usr/include/libappindicator-0.1 -isystem /usr/include/gtk-2.0 -isystem /usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/i386-linux-gnu/glib-2.0/include -isystem /usr/include/cairo -isystem /usr/include/pango-1.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/lib/i386-linux-gnu/gtk-2.0/include -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/atk-1.0 -isystem /usr/include/dee-1.0 -isystem /usr/include/libdbusmenu-glib-0.4 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -isystem /usr/include/opus -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -IGenFiles/Debug -I/usr/lib/qt/mkspecs/linux-g++ -o ../DebugIntermediate/text.o SourceFiles/gui/text.cpp
In file included from /usr/include/qt/QtGui/qabstracttextdocumentlayout.h:38:0,
from /usr/include/qt/QtGui/QtGui:81,
from /usr/include/qt/QtWidgets/QtWidgetsDepends:4,
from /usr/include/qt/QtWidgets/QtWidgets:3,
from SourceFiles/stdafx.h:32:
/usr/include/qt/QtGui/qtextlayout.h: In constructor 'TextBlock::TextBlock(const font&, const QString&, QFixed, uint16, uint16, uchar, const color&, uint16)':
/usr/include/qt/QtGui/qtextlayout.h:179:5: error: 'QTextLayout::QTextLayout(QTextEngine*)' is private
QTextLayout(QTextEngine *e) : d(e) {}
^
SourceFiles/gui/text.cpp:2926:29: error: within this context
QTextLayout layout(&engine);
^
Issue is still present in git master (0.9.6).
This is sad that it has not been fixed in years :).
@michel-briand There is no way to build this project with shared (system) Qt5, you can try for decades. I will try to help you if you have troubles with building the project according to build instructions provided
@telegramdesktop thank you for answering quickly. What does not fit with default Qt5 ? Are you using these differences to slow people wanting to help on telegram :) ?
@michel-briand Of course!
Well, as you can see in the error message above, at least default Qt headers do not allow me to use some inner Qt stuff, which is needed for quick custom text render. And many other small features and fixes that I use are done in Qt patch only.
Then why un send the parches to Qt upstream?
@sl1pkn07 Because they don't need them? Most of the changes are specific for tdesktop and not needed in any other project.
I have a similar issue on Ubuntu 14.04, and have followed the patch instructions as per the md file. qmake on Telegraph fails with
13:31:17: Running steps for project Telegram...
13:31:17: Starting: "/usr/local/Qt-5.5.0/bin/qmake" /export/ArmQT/Repos/tdesktop/Telegram/Telegram.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
WARNING: Failure to find: GeneratedFiles/lang_auto.cpp
WARNING: Failure to find: GeneratedFiles/style_auto.cpp
WARNING: Failure to find: GeneratedFiles/numbers.cpp
WARNING: Failure to find: GeneratedFiles/lang_auto.h
WARNING: Failure to find: GeneratedFiles/style_auto.h
WARNING: Failure to find: GeneratedFiles/style_classes.h
RCC: Error in '../../Telegram/SourceFiles/telegram.qrc': Cannot find file 'art/sprite_125x.png'
RCC: Error in '../../Telegram/SourceFiles/telegram.qrc': Cannot find file 'art/sprite_150x.png'
13:31:19: The process "/usr/local/Qt-5.5.0/bin/qmake" exited normally.
13:31:19: Elapsed time: 00:02.
The qt build failed with a missing header in qtbase/src/plugins/platforminputcontexts/compose/ called xkbcommon/xkbcommon.h The files exist in
qtbase/src/plugins/platforminputcontexts/fcitx/xkbcommon/ and it builds successfuly when they are copied to /common
I suspect that the patch may have failed somehow ( although there were no errors, apart from some whitespace warnings) Is there a simple check to confirm that the patch was correct?
@sugruedes This errors in build happens because the custom build steps were not executed or have failed or been misconfigured (MetaStyle should generate "GeneratedFiles/style_classes.h", "GeneratedFiles/style_auto.h", "GeneratedFiles/style_classes.cpp", "GeneratedFiles/style_auto.cpp", "GeneratedFiles/numbers.cpp" and MetaLang should generate "GeneratedFiles/lang_auto.h" and "GeneratedFiles/lang_auto.cpp").
Did you build them and did you build them in the paths, that are specified in md?
Thank you! :-) I corrected the paths and ran qmake for MetaLang and MetaStyle and the files have now been generated. The main build is now working.
Thanks again.
I think there should be a better solution then statically linking QT5 to solve design needs. In my humble opinion there should be a dynamical alternative. As well as a configure script to configure various options and platforms dependencies. I am used to this principle for some decades and it is used so in the majority of GNU/Linux based software.
Though I am currently using the statically linked binary and Telegram is a nice piece of Software and I like it. Sadly I can not package it for Fedora Linux until the linking is dynamically.
Folks might be interested in: https://github.com/majn/telegram-purple
Following the directions at: Build instructions for Qt Creator 3.5.1 under Ubuntu 12.04
I'm running into the same issue.
Have gone through the directions twice even the custom patched static Qt build.
No build errors with MetaLang or MetaStyle, however Telegram errors out:
:-1: warning: Failure to find: GeneratedFiles/lang_auto.cpp
:-1: warning: Failure to find: GeneratedFiles/style_auto.cpp
:-1: warning: Failure to find: GeneratedFiles/numbers.cpp
:-1: warning: Failure to find: GeneratedFiles/lang_auto.h
:-1: warning: Failure to find: GeneratedFiles/style_auto.h
:-1: warning: Failure to find: GeneratedFiles/style_classes.h
The pro file for MetaStyle is:
(With directions this detailed I am wondering if I missed something obvious)
QT += core
CONFIG(debug, debug|release) {
DEFINES += _DEBUG
OBJECTS_DIR = /home/bob/TBuild/tdesktop/Linux/DebugIntermediateStyle
MOC_DIR = ./GeneratedFiles/Debug
DESTDIR = ./../DebugStyle
}
CONFIG(release, debug|release) {
OBJECTS_DIR = /home/bob/TBuild/tdesktop/Linux/ReleaseIntermediateStyle
MOC_DIR = ./GeneratedFiles/Release
DESTDIR = ./../ReleaseStyle
}
CONFIG += plugin static
macx {
QMAKE_INFO_PLIST = ./SourceFiles/_other/Style.plist
QMAKE_LFLAGS += -framework Cocoa
}
SOURCES += \
./SourceFiles/_other/msmain.cpp \
./SourceFiles/_other/genstyles.cpp \
HEADERS += \
./SourceFiles/_other/msmain.h \
./SourceFiles/_other/genstyles.h \
INCLUDEPATH += ./../../Libraries/QtStatic/qtbase/include/QtGui/5.5.1/QtGui\
./../../Libraries/QtStatic/qtbase/include/QtCore/5.5.1/QtCore\
./../../Libraries/QtStatic/qtbase/include\
I am seeing a file:
/home/bob/TBuild/tdesktop/build-MetaStyle-Desktop-Debug/GeneratedFiles/Debug/moc_genstyles.cpp
But nothing close to the missing files.
Ubuntu 15.10
Qt Creator 3.6.1
Qt 5.5.1 (Custom Patched and Static Build)
Telegram.pro should call MetaStyle and MetaLang with some params and they should generate TBuild/tdesktop/Telegram/GeneratedFiles/lang_auto.cpp and the others. Are they there?
I see that, and sadly they are not there:
Going to try something I have done on past projects, ran into simular issues on a clients project.
I added:
message("Current Path is:")
message($$PWD)
Project MESSAGE: Current Path is:
Project MESSAGE: /home/bob/TBuild/tdesktop/Telegram
The commands in the pro file I am focused on are:
style_auto_cpp.target = ./GeneratedFiles/style_auto.cpp
style_auto_cpp.depends = FORCE
style_auto_cpp.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
style_auto_cpp.depends = ./../../Telegram/Resources/style.txt
going to move the command to the a bash file, and hard code the paths
style_auto_cpp.commands = $$PWD/build_linux.sh
Not sure it will fix the issue, but I have had luck with this in the past as the ".commands" has had path issues in the past.
Note, I was able to get past this issue making a SH file (below), but now getting 69 linker errors while trying to link to: qsslsocket_openssl_symbols.o
Seems its not liking the object file, I will try recompiling qt and see if that resolves (any thoughts while I wait for it to compile and try again?)
/home/bob/TBuild/Libraries/QtStatic/qtbase/lib/libQt5Network.a(qsslsocket_openssl_symbols.o): In function `q_EVP_des_ede3_cbc()':
qsslsocket_openssl_symbols.cpp:(.text+0x181): undefined reference to `EVP_des_ede3_cbc'
/home/bob/TBuild/Libraries/QtStatic/qtbase/lib/libQt5Network.a(qsslsocket_openssl_symbols.o): In function `q_SSL_accept(ssl_st*)':
Makefile:650: recipe for target '../Debug/Telegram' failed
... 60 + other undefined reference to obmitted...
collect2: error: ld returned 1 exit status
The .sh File
`#! /bin/bash
echo "Generating files"
BASEDIR=$(dirname $0)
RDIR=$BASEDIR/Resources
GDIR=$BASEDIR/GeneratedFiles
mkdir -p $BASEDIR/GeneratedFiles
#styles
$BASEDIR/../DebugStyle/MetaStyle -classes_in $RDIR/style_classes.txt -classes_out $GDIR/style_classes.h -styles_in $RDIR/style.txt -styles_out $GDIR/style_auto.h -path_to_sprites $BASEDIR/SourceFiles/art/
#lang
$BASEDIR/../DebugLang/MetaLang -lang_in $RDIR/lang.strings -lang_out $GDIR/lang_auto`
Update - re-downloaded, patched and compiled qt (statically per the directions) still a lot of undefined reference
@tk421gmx please wrap your code with triple Grave Accent (```)
Wanted to update for anyone having the issues I had....
Following directions for Ubuntu
I had to modify the profile for Telegram
QT += core gui network widgets
# https://github.com/telegramdesktop/tdesktop/blob/master/doc/building-qtcreator.md
# https://github.com/telegramdesktop/tdesktop/issues/117
CONFIG += plugin static c++11
CONFIG(debug, debug|release) {
DEFINES += _DEBUG
OBJECTS_DIR = /home/bob/TBuild/tdesktop/Linux/DebugIntermediate #./../DebugIntermediate
MOC_DIR = ./GenFiles/Debug
RCC_DIR = ./GenFiles
DESTDIR = ./../Debug
}
CONFIG(release, debug|release) {
DEFINES += CUSTOM_API_ID
OBJECTS_DIR = /home/bob/TBuild/tdesktop/Linux/ReleaseIntermediate #./../ReleaseIntermediate
MOC_DIR = ./GenFiles/Release
RCC_DIR = ./GenFiles
DESTDIR = ./../Release
}
macx {
QMAKE_INFO_PLIST = ./SourceFiles/Telegram.plist
OBJECTIVE_SOURCES += ./SourceFiles/pspecific_mac_p.mm
OBJECTIVE_HEADERS += ./SourceFiles/pspecific_mac_p.h
QMAKE_LFLAGS += -framework Cocoa
}
linux {
SOURCES += ./SourceFiles/pspecific_linux.cpp
HEADERS += ./SourceFiles/pspecific_linux.h
}
#message("Current Path is:")
#message($$PWD)
#message($$PWD/my_fix.sh)
#style_auto_cpp.target = ./GeneratedFiles/style_auto.cpp
#style_auto_cpp.depends = FORCE
#style_auto_cpp.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
#style_auto_cpp.depends = ./../../Telegram/Resources/style.txt
#style_auto_h.target = ./GeneratedFiles/style_auto.h
#style_auto_h.depends = FORCE
#style_auto_h.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
#style_auto_h.depends = ./../../Telegram/Resources/style.txt
#style_classes_h.target = ./GeneratedFiles/style_classes.h
#style_classes_h.depends = FORCE
#style_classes_h.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
#style_classes_h.depends = ./../../Telegram/Resources/style_classes.txt
#numbers_cpp.target = ./GeneratedFiles/numbers.cpp
#numbers_cpp.depends = FORCE
#numbers_cpp.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugStyle/MetaStyle -classes_in ./../../Telegram/Resources/style_classes.txt -classes_out ./../../Telegram/GeneratedFiles/style_classes.h -styles_in ./../../Telegram/Resources/style.txt -styles_out ./../../Telegram/GeneratedFiles/style_auto.h -path_to_sprites ./../../Telegram/SourceFiles/art/
#numbers_cpp.depends = ./../../Telegram/Resources/numbers.txt
#lang_auto_cpp.target = ./GeneratedFiles/lang_auto.cpp
#lang_auto_cpp.depends = FORCE
#lang_auto_cpp.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugLang/MetaLang -lang_in ./../../Telegram/Resources/lang.strings -lang_out ./../../Telegram/GeneratedFiles/lang_auto
#lang_auto_cpp.depends = ./../../Telegram/Resources/lang.strings
#lang_auto_h.target = ./GeneratedFiles/lang_auto.h
#lang_auto_h.depends = FORCE
#lang_auto_h.commands = mkdir -p ./../../Telegram/GeneratedFiles && ./../DebugLang/MetaLang -lang_in ./../../Telegram/Resources/lang.strings -lang_out ./../../Telegram/GeneratedFiles/lang_auto
#lang_auto_h.depends = ./../../Telegram/Resources/lang.strings
#hook.depends = style_auto_cpp style_auto_h style_classes_h numbers_cpp lang_auto_cpp lang_auto_h
#CONFIG(debug,debug|release):hook.target = Makefile.Debug
#CONFIG(release,debug|release):hook.target = Makefile.Release
#QMAKE_EXTRA_TARGETS += style_auto_cpp style_auto_h style_classes_h numbers_cpp lang_auto_cpp lang_auto_h hook
#PRE_TARGETDEPS += ./GeneratedFiles/style_auto.cpp ./GeneratedFiles/style_auto.h ./GeneratedFiles/style_classes.h ./GeneratedFiles/numbers.cpp ./GeneratedFiles/lang_auto.h ./GeneratedFiles/lang_auto.cpp
unix {
linux-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
linux-g++-32:QMAKE_TARGET.arch = x86
linux-g++-64:QMAKE_TARGET.arch = x86_64
contains(QMAKE_TARGET.arch, x86_64) {
DEFINES += Q_OS_LINUX64
} else {
DEFINES += Q_OS_LINUX32
}
}
SOURCES += \
./SourceFiles/main.cpp \
./SourceFiles/stdafx.cpp \
./SourceFiles/apiwrap.cpp \
./SourceFiles/app.cpp \
./SourceFiles/application.cpp \
./SourceFiles/audio.cpp \
./SourceFiles/autoupdater.cpp \
./SourceFiles/dialogswidget.cpp \
./SourceFiles/dropdown.cpp \
./SourceFiles/facades.cpp \
./SourceFiles/fileuploader.cpp \
./SourceFiles/history.cpp \
./SourceFiles/historywidget.cpp \
./SourceFiles/lang.cpp \
./SourceFiles/langloaderplain.cpp \
./SourceFiles/layerwidget.cpp \
./SourceFiles/layout.cpp \
./SourceFiles/mediaview.cpp \
./SourceFiles/overviewwidget.cpp \
./SourceFiles/passcodewidget.cpp \
./SourceFiles/profilewidget.cpp \
./SourceFiles/playerwidget.cpp \
./SourceFiles/localimageloader.cpp \
./SourceFiles/localstorage.cpp \
./SourceFiles/logs.cpp \
./SourceFiles/mainwidget.cpp \
./SourceFiles/settings.cpp \
./SourceFiles/settingswidget.cpp \
./SourceFiles/shortcuts.cpp \
./SourceFiles/structs.cpp \
./SourceFiles/sysbuttons.cpp \
./SourceFiles/title.cpp \
./SourceFiles/types.cpp \
./SourceFiles/window.cpp \
./SourceFiles/mtproto/mtp.cpp \
./SourceFiles/mtproto/mtpAuthKey.cpp \
./SourceFiles/mtproto/mtpConnection.cpp \
./SourceFiles/mtproto/mtpCoreTypes.cpp \
./SourceFiles/mtproto/mtpDC.cpp \
./SourceFiles/mtproto/mtpFileLoader.cpp \
./SourceFiles/mtproto/mtpRPC.cpp \
./SourceFiles/mtproto/mtpScheme.cpp \
./SourceFiles/mtproto/mtpSession.cpp \
./SourceFiles/gui/animation.cpp \
./SourceFiles/gui/boxshadow.cpp \
./SourceFiles/gui/button.cpp \
./SourceFiles/gui/popupmenu.cpp \
./SourceFiles/gui/countryinput.cpp \
./SourceFiles/gui/emoji_config.cpp \
./SourceFiles/gui/filedialog.cpp \
./SourceFiles/gui/flatbutton.cpp \
./SourceFiles/gui/flatcheckbox.cpp \
./SourceFiles/gui/flatinput.cpp \
./SourceFiles/gui/flatlabel.cpp \
./SourceFiles/gui/flattextarea.cpp \
./SourceFiles/gui/images.cpp \
./SourceFiles/gui/scrollarea.cpp \
./SourceFiles/gui/style_core.cpp \
./SourceFiles/gui/text.cpp \
./SourceFiles/gui/twidget.cpp \
./GeneratedFiles/lang_auto.cpp \
./GeneratedFiles/style_auto.cpp \
./GeneratedFiles/numbers.cpp \
./SourceFiles/boxes/aboutbox.cpp \
./SourceFiles/boxes/abstractbox.cpp \
./SourceFiles/boxes/addcontactbox.cpp \
./SourceFiles/boxes/autolockbox.cpp \
./SourceFiles/boxes/backgroundbox.cpp \
./SourceFiles/boxes/confirmbox.cpp \
./SourceFiles/boxes/connectionbox.cpp \
./SourceFiles/boxes/contactsbox.cpp \
./SourceFiles/boxes/downloadpathbox.cpp \
./SourceFiles/boxes/emojibox.cpp \
./SourceFiles/boxes/languagebox.cpp \
./SourceFiles/boxes/passcodebox.cpp \
./SourceFiles/boxes/photocropbox.cpp \
./SourceFiles/boxes/photosendbox.cpp \
./SourceFiles/boxes/sessionsbox.cpp \
./SourceFiles/boxes/stickersetbox.cpp \
./SourceFiles/boxes/usernamebox.cpp \
./SourceFiles/intro/intro.cpp \
./SourceFiles/intro/introcode.cpp \
./SourceFiles/intro/introphone.cpp \
./SourceFiles/intro/intropwdcheck.cpp \
./SourceFiles/intro/introsignup.cpp \
./SourceFiles/intro/introsteps.cpp
HEADERS += \
./SourceFiles/stdafx.h \
./SourceFiles/apiwrap.h \
./SourceFiles/app.h \
./SourceFiles/application.h \
./SourceFiles/audio.h \
./SourceFiles/autoupdater.h \
./SourceFiles/config.h \
./SourceFiles/countries.h \
./SourceFiles/dialogswidget.h \
./SourceFiles/dropdown.h \
./SourceFiles/facades.h \
./SourceFiles/fileuploader.h \
./SourceFiles/history.h \
./SourceFiles/historywidget.h \
./SourceFiles/lang.h \
./SourceFiles/langloaderplain.h \
./SourceFiles/layerwidget.h \
./SourceFiles/layout.h \
./SourceFiles/mediaview.h \
./SourceFiles/numbers.h \
./SourceFiles/overviewwidget.h \
./SourceFiles/passcodewidget.h \
./SourceFiles/profilewidget.h \
./SourceFiles/playerwidget.h \
./SourceFiles/localimageloader.h \
./SourceFiles/localstorage.h \
./SourceFiles/logs.h \
./SourceFiles/mainwidget.h \
./SourceFiles/settings.h \
./SourceFiles/settingswidget.h \
./SourceFiles/shortcuts.h \
./SourceFiles/structs.h \
./SourceFiles/style.h \
./SourceFiles/sysbuttons.h \
./SourceFiles/title.h \
./SourceFiles/types.h \
./SourceFiles/window.h \
./SourceFiles/mtproto/mtpSessionImpl.h \
./SourceFiles/mtproto/mtp.h \
./SourceFiles/mtproto/mtpAuthKey.h \
./SourceFiles/mtproto/mtpConnection.h \
./SourceFiles/mtproto/mtpCoreTypes.h \
./SourceFiles/mtproto/mtpDC.h \
./SourceFiles/mtproto/mtpFileLoader.h \
./SourceFiles/mtproto/mtpPublicRSA.h \
./SourceFiles/mtproto/mtpRPC.h \
./SourceFiles/mtproto/mtpScheme.h \
./SourceFiles/mtproto/mtpSession.h \
./SourceFiles/pspecific.h \
./SourceFiles/gui/animation.h \
./SourceFiles/gui/boxshadow.h \
./SourceFiles/gui/button.h \
./SourceFiles/gui/popupmenu.h \
./SourceFiles/gui/countryinput.h \
./SourceFiles/gui/emoji_config.h \
./SourceFiles/gui/filedialog.h \
./SourceFiles/gui/flatbutton.h \
./SourceFiles/gui/flatcheckbox.h \
./SourceFiles/gui/flatinput.h \
./SourceFiles/gui/flatlabel.h \
./SourceFiles/gui/flattextarea.h \
./SourceFiles/gui/images.h \
./SourceFiles/gui/scrollarea.h \
./SourceFiles/gui/style_core.h \
./SourceFiles/gui/text.h \
./SourceFiles/gui/twidget.h \
./GeneratedFiles/lang_auto.h \
./GeneratedFiles/style_auto.h \
./GeneratedFiles/style_classes.h \
./SourceFiles/boxes/aboutbox.h \
./SourceFiles/boxes/abstractbox.h \
./SourceFiles/boxes/addcontactbox.h \
./SourceFiles/boxes/autolockbox.h \
./SourceFiles/boxes/backgroundbox.h \
./SourceFiles/boxes/confirmbox.h \
./SourceFiles/boxes/connectionbox.h \
./SourceFiles/boxes/contactsbox.h \
./SourceFiles/boxes/downloadpathbox.h \
./SourceFiles/boxes/emojibox.h \
./SourceFiles/boxes/languagebox.h \
./SourceFiles/boxes/passcodebox.h \
./SourceFiles/boxes/photocropbox.h \
./SourceFiles/boxes/photosendbox.h \
./SourceFiles/boxes/sessionsbox.h \
./SourceFiles/boxes/stickersetbox.h \
./SourceFiles/boxes/usernamebox.h \
./SourceFiles/intro/intro.h \
./SourceFiles/intro/introcode.h \
./SourceFiles/intro/introphone.h \
./SourceFiles/intro/intropwdcheck.h \
./SourceFiles/intro/introsignup.h \
./SourceFiles/intro/introsteps.h
win32 {
SOURCES += \
./SourceFiles/pspecific_wnd.cpp
HEADERS += \
./SourceFiles/pspecific_wnd.h
}
macx {
SOURCES += \
./SourceFiles/pspecific_mac.cpp
HEADERS += \
./SourceFiles/pspecific_mac.h
}
SOURCES += \
./ThirdParty/minizip/zip.c \
./ThirdParty/minizip/ioapi.c
CONFIG += precompile_header
PRECOMPILED_HEADER = ./SourceFiles/stdafx.h
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-switch -Wno-comment -Wno-unused-but-set-variable
QMAKE_CFLAGS_WARN_ON += -Wno-unused-result -Wno-unused-parameter -Wno-unused-variable -Wno-switch -Wno-comment -Wno-unused-but-set-variable
CONFIG(release, debug|release) {
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -Ofast -flto -fno-strict-aliasing -g
QMAKE_LFLAGS_RELEASE -= -O1
QMAKE_LFLAGS_RELEASE += -Ofast -flto -g -rdynamic
}
CONFIG(debug, debug|release) {
QMAKE_LFLAGS_DEBUG += -g -rdynamic
}
INCLUDEPATH += ./../../Libraries/QtStatic/qtbase/include/QtGui/5.5.1/QtGui\
./../../Libraries/QtStatic/qtbase/include/QtCore/5.5.1/QtCore\
./../../Libraries/QtStatic/qtbase/include\
/usr/local/include\
/usr/local/include/opus\
./SourceFiles\
./GeneratedFiles\
./ThirdParty/minizip\
./../../Libraries/breakpad/src
INCLUDEPATH += "/usr/include/libappindicator-0.1"
INCLUDEPATH += "/usr/include/gtk-2.0"
INCLUDEPATH += "/usr/include/glib-2.0"
INCLUDEPATH += "/usr/lib/x86_64-linux-gnu/glib-2.0/include"
INCLUDEPATH += "/usr/lib/i386-linux-gnu/glib-2.0/include"
INCLUDEPATH += "/usr/include/cairo"
INCLUDEPATH += "/usr/include/pango-1.0"
INCLUDEPATH += "/usr/lib/x86_64-linux-gnu/gtk-2.0/include"
INCLUDEPATH += "/usr/lib/i386-linux-gnu/gtk-2.0/include"
INCLUDEPATH += "/usr/include/gdk-pixbuf-2.0"
INCLUDEPATH += "/usr/include/atk-1.0"
INCLUDEPATH += "/usr/include/dee-1.0"
INCLUDEPATH += "/usr/include/libdbusmenu-glib-0.4"
LIBS += -ldl -llzma -lopenal -lavformat -lavcodec -lswresample -lswscale -lavutil -lopus -lva
LIBS += ./../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.a \
./../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libibusplatforminputcontextplugin.a \
./../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.a
#LIBS += ./../../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.a \
# ./../../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libibusplatforminputcontextplugin.a \
# ./../../../Libraries/QtStatic/qtbase/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.a
LIBS += /usr/local/lib/libz.a
LIBS += /usr/local/lib/libxkbcommon.a
LIBS += ./../../Libraries/breakpad/src/client/linux/libbreakpad_client.a
#LIBS += ./../../../Libraries/breakpad/src/client/linux/libbreakpad_client.a
RESOURCES += \
./SourceFiles/telegram.qrc \
./SourceFiles/telegram_linux.qrc \
./SourceFiles/telegram_emojis.qrc
OTHER_FILES += \
Resources/style_classes.txt \
Resources/style.txt \
Resources/lang.strings \
SourceFiles/langs/lang_it.strings \
SourceFiles/langs/lang_es.strings \
SourceFiles/langs/lang_de.strings \
SourceFiles/langs/lang_nl.strings \
SourceFiles/langs/lang_pt_BR.strings
When I ran QMake, it complained about the auto generated files missing.
So I made a bash file to call the binaries - NOTE no matter what i did to the pro file I could not get it to auto generate.
#! /bin/bash
echo "Generating files"
BASEDIR=$(dirname $0)
RDIR=$BASEDIR/Resources
GDIR=$BASEDIR/GeneratedFiles
mkdir -p $BASEDIR/GeneratedFiles
#styles
$BASEDIR/../DebugStyle/MetaStyle -classes_in $RDIR/style_classes.txt -classes_out $GDIR/style_classes.h -styles_in $RDIR/style.txt -styles_out $GDIR/style_auto.h -path_to_sprites $BASEDIR/SourceFiles/art/
#lang
$BASEDIR/../DebugLang/MetaLang -lang_in $RDIR/lang.strings -lang_out $GDIR/lang_auto
Then when I tried to compile I got a ton of undefined reference to for the SSL libs.
I modified the Qt static build from
OPENSSL_LIBS='/usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a' ./configure -release -force-debug-info -opensource -confirm-license -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb -qt-xkbcommon-x11 -no-opengl -static -openssl-linked -nomake examples -nomake tests
make -j4
sudo make -j4 install
to
OPENSSL_LIBS='/usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a'
./configure -debug -force-debug-info -opensource -confirm-license -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb -qt-xkbcommon-x11 -no-opengl -static -openssl-linked -nomake examples -nomake tests
make -j4
sudo make -j4 install
I had a successful build in debug :)
i tried to install Qupzilla 2.0.1 and in get the messages:
Reading /home/thierry/qupzilla-2.0.1/src/lib/lib.pro
Project MESSAGE: ===========================================
Project MESSAGE: Using following defines:
Project MESSAGE: QUPZILLA_SHAREDLIBRARY QUPZILLA_VERSION=\"2.0.1\" QT_NO_URL_CAST_FROM_STRING QT_USE_QSTRINGBUILDER USE_LIBPATH=\"/usr/lib/x86_64-linux-gnu\" USE_DATADIR=\"/usr/share/qupzilla\" QZ_WS_X11
Reading /home/thierry/qupzilla-2.0.1/src/main/main.pro
Reading /home/thierry/qupzilla-2.0.1/src/plugins/plugins.pro
Reading /home/thierry/qupzilla-2.0.1/src/plugins/AutoScroll/AutoScroll.pro
RCC: Error in 'autoscroll.qrc': Cannot find file 'locale/ar_SA.qm'
RCC: Error in 'autoscroll.qrc': Cannot find file 'locale/bg_BG.qm'
RCC: Error in 'autoscroll.qrc': Cannot find file 'locale/ca_ES.qm'
RCC: Error in 'autoscroll.qrc': Cannot find file 'locale/cs_CZ.qm'
can you help me please?
@trazomtg why are you asking about qupzilla here? %)
Why¿???????
This issue is still not fixed¡!!!
Create a new one and try to build it again (from the beginning, step by step)
@sl1pkn07 How this issue can be fixed? There is even no Telegram.pro anymore, this one is completely outdated.
still use a patched (without send patches to upstream) Qt?
@sl1pkn07 Yes, Qt won't accept the patches that are specific for Telegram Desktop.
@john-preston Why won't they? And why does Telegram have to rely on these patches?
@rmoog because they're not needed for any other project I guess, at least not in the way I've developed them. It doesn't have to, it just is written that way, using Qt private APIs, because it works faster that way. Perhaps someone else can write some other client without patched Qt (someone even did, it is called Cutegram), you can test it and decide if you like it better.
@john-preston For what are those APIs used? Text rendering?
@stek29 Yes, the main thing is text dimensions counting and rendering. There are plenty of others, you can look through the diff after applying the patch.
Most helpful comment
still use a patched (without send patches to upstream) Qt?