Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not followed #135

Open
pkaramol opened this issue Dec 5, 2016 · 9 comments
Open

File not followed #135

pkaramol opened this issue Dec 5, 2016 · 9 comments

Comments

@pkaramol
Copy link

pkaramol commented Dec 5, 2016

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
@variar
Copy link
Contributor

variar commented Dec 8, 2016

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

@dunebaud
Copy link

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
Copy link

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!!!

@nickbnf
Copy link
Owner

nickbnf commented Mar 21, 2017

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

@gitlost
Copy link

gitlost commented Apr 22, 2017

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

@nickbnf
Copy link
Owner

nickbnf commented May 23, 2017

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

@pkaramol
Copy link
Author

pkaramol commented May 26, 2017

@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
Copy link
Author

pkaramol commented Jun 1, 2017

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 

@variar
Copy link
Contributor

variar commented Nov 26, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants