glogg icon indicating copy to clipboard operation
glogg copied to clipboard

File not followed

Open pkaramol opened this issue 9 years ago • 9 comments

Using glogg 1.1.0-1 as installed from official repositories of Ubuntu 16.04.01 File is not autoreloaded. When monitored file changes, program hangs and after trying to manually srcol, it is updated. Tried to build from source but latest error is:

make
g++ -c -g -Wextra -std=c++11 -DGLOGG_VERSION=\"`cat .tarball-version`\" -DGLOGG_SUPPORTS_DBUS -DGLOGG_SUPPORTS_INOTIFY -O2 -Wall -W -D_REENTRANT -DFILELOG_MAX_LEVEL="logDEBUG" -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isrc -I.moc/release-shared -I.ui/release-shared -o .obj/release-shared/main.o src/main.cpp
src/main.cpp: In function ‘int main(int, char**)’:
src/main.cpp:242:23: error: ‘AA_UseHighDpiPixmaps’ is not a member of ‘Qt’
     app.setAttribute( Qt::AA_UseHighDpiPixmaps );
                       ^
Makefile:583: recipe for target '.obj/release-shared/main.o' failed
make: *** [.obj/release-shared/main.o] Error 1

pkaramol avatar Dec 05 '16 17:12 pkaramol

Hi, what version of Qt are you using to build glogg from source? It seems that AA_UseHighDpiPixmaps appeared in Qt 5.

variar avatar Dec 08 '16 20:12 variar

Thank you for the answer, but I have downloaded Qt5 (qt-unified-linux-x64-2.0.5-online.run) and I installed qt5.8 it into /home/baud/Applications/Qt After that I added the following into ~/.profile export PATH=$PATH:/home/baud/Applications/Qt/5.8/gcc_64/bin then I reload it: source ~/.profile Unfortunately, I have the same build error... what should I do? when I grep the file on qt5, nothing pop up... only a lot of /qt4/

dunebaud avatar Feb 13 '17 15:02 dunebaud

I could find the solution, I had to use: /home/baud/Applications/Qt/5.8/gcc_64/bin/qmake instead of qmake alone... After that, I got another error: 'QtGui/QAction' file not found #include <QtGui/QAction> To solve it, I had to add CONFIG += qt QT += gui QT += widgets in ./glogg.pro then after that: /home/baud/Applications/Qt/5.8/gcc_64/bin/qmake make clean make ...and I got it!!!

dunebaud avatar Feb 13 '17 16:02 dunebaud

@pkaramol can you describe a reproducible scenario (including generating the file to follow...)? a screencast might help.

nickbnf avatar Mar 21 '17 16:03 nickbnf

I think the second error above re QtGui/QAction was an artifact of the initial build, a make clean gets rid of it, so editing "./glogg.pro" isn't necessary. Here's what I did to compile the latest from source on Ubuntu 17.04:

tar xzf glogg-latest.tar.gz
cd glogg-1.1.3
sudo apt-get install qt5-default qtdeclarative5-dev libboost-program-options-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /usr/bin/qmake-qt5
qmake-qt5
make
sudo make install INSTALL_ROOT=/usr

gitlost avatar Apr 22 '17 08:04 gitlost

Can you confirm whether the problem is still seen on the latest version?

nickbnf avatar May 23 '17 13:05 nickbnf

@nickbnf I removed and re-installed the application but version is again 1.0.1. How can I try 1.0.3?

edit: apologies, needs to be installed via the source code, which I will try and let you know.

pkaramol avatar May 26 '17 10:05 pkaramol

Here are the errors I am getting, on Ubuntu 16.04

$ qmake-qt4
Project MESSAGE: Building using system dynamic Boost libraries
sh: line 0: type: markdown: not found
Project MESSAGE: markdown not found, HTML doc will not be generated
Project MESSAGE: g++ version 4.7 or newer, supports C++11
Project MESSAGE: Support for D-BUS will be included
Project MESSAGE: Version checker will NOT be included
Project MESSAGE: File watching using inotify
$ make
/usr/lib/x86_64-linux-gnu/qt4/bin/uic src/optionsdialog.ui -o .ui/release-shared/ui_optionsdialog.h
/usr/lib/x86_64-linux-gnu/qt4/bin/uic src/filtersdialog.ui -o .ui/release-shared/ui_filtersdialog.h
g++ -c -g -Wextra -std=c++11 -DGLOGG_VERSION=\"`cat .tarball-version`\" -DGLOGG_SUPPORTS_DBUS -DGLOGG_SUPPORTS_INOTIFY -O2 -Wall -W -D_REENTRANT -DFILELOG_MAX_LEVEL="logDEBUG" -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isrc -I.moc/release-shared -I.ui/release-shared -o .obj/release-shared/main.o src/main.cpp
src/main.cpp:25:37: fatal error: boost/program_options.hpp: No such file or directory
compilation terminated.
Makefile:586: recipe for target '.obj/release-shared/main.o' failed
make: *** [.obj/release-shared/main.o] Error 

pkaramol avatar Jun 01 '17 08:06 pkaramol

I've tried to use efsw library to monitor file changes. @pkaramol could you try and test it. Deb package from CI build server can be downloaded here https://s3.amazonaws.com/klogg.travis.build/variar/klogg/145/145.1/build/packages/klogg-1.1.3-r145-Linux.deb or just a single binary https://s3.amazonaws.com/klogg.travis.build/variar/klogg/145/145.1/build/output/klogg

variar avatar Nov 26 '17 21:11 variar