| Summary: | QtOauth inside /usr/lib/include instead /usr/lib/qt4/include | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Gerardo Bueno <gejobj> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | 1 | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
|
Description
Gerardo Bueno
2011-06-27 19:02:35 CEST
Which version if qwit? (qwit-1.1-pre2 compiled OK here with just one hiccup about QtCrypto includes, which can be fixed with a sed command). I try qwit-1.1-pre2 version to create a mageia rpm. It compiles perfect on mga1 apply this patch I made: --- src/QwitHeaders.h 2010-05-14 16:42:23.000000000 +0200 +++ src/QwitHeaders-new.h 2011-06-27 18:39:23.000000000 +0200 @@ -35,7 +35,7 @@ #include <QtGui> #include <QtNetwork> #include <QtXml> -#include <QtOAuth> +#include "/usr/include/QtOAuth/QtOAuth" #include <iostream> #include <cstdlib> So I supouse there was a mistake at QtOAuth rpm because it isn't at /usr/lib/qt4 path. Thanks. Bye. It compiled here without that patch. from the CMakeLists.txt:
include_directories(
${QT_INCLUDES}
/usr/include/QtOAuth
/usr/include/QtOAuth is already included, #include <QtOAuth> works.
If I try to compile it without apply that path file, I get these errors:
Using cmake/make:
[ 38%] Building CXX object CMakeFiles/qwit.dir/qwit_automoc.cpp.o
In file included from /usr/include/QtOAuth/QtOAuth:1:0,
from /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/src/QwitHeaders.h:38,
from /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/src/AbstractPage.h:34,
from /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/moc_AbstractPage.cpp:10,
from /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/qwit_automoc.cpp:4:
/usr/include/QtOAuth/interface.h:33:20: fatal error: QtCrypto: File or directory not found
compilation finished.
make[2]: *** [CMakeFiles/qwit.dir/qwit_automoc.cpp.o] Error 1
make[1]: *** [CMakeFiles/qwit.dir/all] Error 2
make: *** [all] Error 2
Using qmake/make:
/usr/lib/qt4/bin/uic src/MainWindow.ui -o var/ui_MainWindow.h
/usr/lib/qt4/bin/uic src/OptionsDialog.ui -o var/ui_OptionsDialog.h
/usr/lib/qt4/bin/uic src/AboutDialog.ui -o var/ui_AboutDialog.h
/usr/lib/qt4/bin/uic src/AccountConfigurationDialog.ui -o var/ui_AccountConfigurationDialog.h
/usr/lib/qt4/bin/uic src/DirectMessageDialog.ui -o var/ui_DirectMessageDialog.h
/usr/lib/qt4/bin/uic src/FriendsMgmtDialog.ui -o var/ui_FriendsMgmtDialog.h
/usr/lib/qt4/bin/uic src/OAuthDialog.ui -o var/ui_OAuthDialog.h
g++ -c -pipe -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -DPIC -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -DPIC -fPIC -Wall -W -D_REENTRANT -DVERSION=\"1.1\" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtNetwork -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include -Isrc -I/usr/lib/include/QtOAuth -I/usr/lib/qt4/include/QtCrypto -Ivar -Ivar -o var/qwit.o src/qwit.cpp
In file included from src/qwit.cpp:31:0:
src/QwitHeaders.h:38:19: error fatal: QtOAuth: File or directory not found
compilation finished.
make: *** [var/qwit.o] Error 1
When I apply that patch I get no errors.
Bye.
(In reply to comment #4) > > If I try to compile it without apply that path file, I get these errors: > > Using cmake/make: > > [ 38%] Building CXX object CMakeFiles/qwit.dir/qwit_automoc.cpp.o > In file included from /usr/include/QtOAuth/QtOAuth:1:0, > from > /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/src/QwitHeaders.h:38, > from > /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/src/AbstractPage.h:34, > from > /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/moc_AbstractPage.cpp:10, > from > /home/gerardo/rpm/SOURCES/qwit-1.1-pre2-src/qwit_automoc.cpp:4: > /usr/include/QtOAuth/interface.h:33:20: fatal error: QtCrypto: File or > directory not found We use cmake, to fix this QtCrypto error: sed -i 's,/usr/include/qca2/QtCrypto,%{qt4include}/QtCrypto,' CMakeLists.txt in the spec. [...] Thanks for the tip, I will try it instead my patch but do you think QtOauth should be moved to qt4 directory? I don't think it should be moved, if you look comment#3, you'll find that qwit already uses /usr/include/QtOAuth. OKs, I can create a mageia rpm with your tip :D Thanks for your patience and help. Bye :-) Hi. Maybe this bug shoud be closed. Thanks. Closed. Status:
NEW =>
RESOLVED |