Coder Social home page Coder Social logo

qtqq-dev cannot be compiled about qtqq HOT 9 CLOSED

Cravix avatar Cravix commented on July 24, 2024
qtqq-dev cannot be compiled

from qtqq.

Comments (9)

zhanlangsir avatar zhanlangsir commented on July 24, 2024

You can ignore this warning.It's not the reason of compiled failed.
It must has other error to stop the compile.

And, which version of qtqq did you download? If it's not qtqqv0.5.0, you
should update it.
If it's qtqqv0.5.0, you can find a file name log.log in qtqq's root
directory, you can send it to me.

2012/6/18 Cravix <
[email protected]

"qmake -project" works, but when execute "qmake", i get following stderr:
RCC: Warning: No resources in 'misc/img.qrc'.
btw, i'm using archlinux with qt 4.8.2.

BTW, i can use qtqq-bin you packed, but it always prompt that pas unmatch
username... maybe there's something wrong?


Reply to this email directly or view it on GitHub:
#7

from qtqq.

Cravix avatar Cravix commented on July 24, 2024

en, you're right, ignore the warning and it works...
but, still cannot be compiled= =
stdout of make as follows.
(put most of stdout on http://pastebin.ca/2162418 ,maybe my glibc is too new? don't really get it...)

src/core/qqavatarrequester.h:6:22: fatal error: QTcpSocket: No such file or directory
compilation terminated.
make: *** [frienditemmodel.o] Error 1

from qtqq.

zhanlangsir avatar zhanlangsir commented on July 24, 2024

I made some changes at qtqq-dev branch just now, you can checkout the
newest code and try to complied it.
Btw, you should check if you install the libqt4-network library(at my
ubuntu12.04, it named this).
If not, you should install it.

2012/6/18 Cravix <
[email protected]

en, you're right, ignore the warning and it works...
but, still cannot be compiled= =
stdout of make as follows, maybe my glibc is too new? don't really get
it...
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/i686-pc-linux-gnu/bits/c++config.h:414:0,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/utility:70,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/algorithm:61,
from /usr/include/QtCore/qglobal.h:68,
from /usr/include/QtCore/qatomic.h:45,
from /usr/include/QtCore/qvariant.h:45,
from /usr/include/QtCore/qabstractitemmodel.h:45,
from /usr/include/QtCore/QAbstractItemModel:1,
from src/qqitemmodel.h:4,
from src/frienditemmodel.h:4,
from src/frienditemmodel.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/i686-pc-linux-gnu/bits/os_defines.h:45:19:
error: missing binary operator before token "("
In file included from /usr/include/QtCore/qbytearray.h:48:0,
from /usr/include/QtCore/qvariant.h:46,
from /usr/include/QtCore/qabstractitemmodel.h:45,
from /usr/include/QtCore/QAbstractItemModel:1,
from src/qqitemmodel.h:4,
from src/frienditemmodel.h:4,
from src/frienditemmodel.cpp:1:
/usr/include/string.h:37:42: error: missing binary operator before token
"("
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/cwchar:46:0,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/bits/postypes.h:42,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/iosfwd:42,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ios:39,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ostream:40,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/iterator:64,
from /usr/include/QtCore/qlist.h:50,
from /usr/include/QtCore/qvariant.h:47,
from /usr/include/QtCore/qabstractitemmodel.h:45,
from /usr/include/QtCore/QAbstractItemModel:1,
from src/qqitemmodel.h:4,
from src/frienditemmodel.h:4,
from src/frienditemmodel.cpp:1:
/usr/include/wchar.h:75:43: error: missing binary operator before token "("
In file included from /usr/include/sched.h:43:0,
from /usr/include/pthread.h:25,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/i686-pc-linux-gnu/bits/gthr-default.h:41,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/i686-pc-linux-gnu/bits/gthr.h:150,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h:34,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/bits/ios_base.h:41,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ios:43,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ostream:40,
from
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/iterator:64,
from /usr/include/QtCore/qlist.h:50,
from /usr/include/QtCore/qvariant.h:47,
from /usr/include/QtCore/qabstractitemmodel.h:45,
from /usr/include/QtCore/QAbstractItemModel:1,
from src/qqitemmodel.h:4,
from src/frienditemmodel.h:4,
from src/frienditemmodel.cpp:1:
/usr/include/bits/sched.h:133:20: error: missing binary operator before
token "("
/usr/include/bits/sched.h:171:20: error: missing binary operator before
token "("
In file included from src/qqitemmodel.h:9:0,
from src/frienditemmodel.h:4,
from src/frienditemmodel.cpp:1:
src/core/qqavatarrequester.h:6:22: fatal error: QTcpSocket: No such file
or directory
compilation terminated.
make: *** [frienditemmodel.o] Error 1


Reply to this email directly or view it on GitHub:
#7 (comment)

from qtqq.

Cravix avatar Cravix commented on July 24, 2024

well, still doesn't work here:
in src/frienditemmodel.cpp gcc cannot find QTcpSocket and json, and after i modified it to be consistent with the head file folder in /usr/include, i got this:
g++ -c -pipe -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I. -Isrc -Isrc/core -Iinclude/zlib -I3rdparty/qxtglobalshortcut -I3rdparty/jsoncpp/src -I3rdparty/log4qt/tests -I. -I. -o frienditemmodel.o src/frienditemmodel.cpp
src/frienditemmodel.cpp: In member function ‘virtual void FriendItemModel::parse(const QByteArray&, NameConvertor*)’:
src/frienditemmodel.cpp:12:5: error: ‘Json’ has not been declared
src/frienditemmodel.cpp:12:18: error: expected ‘;’ before ‘reader’
#and so on...

i think the problem is, you use too much direct include like "#include "include/json.h"", which is related to the pack manner of distros,
in my opinion, it's better to use cmake or pkg-config instead to do that, or it'll be imcompatible with other distros = =

from qtqq.

Cravix avatar Cravix commented on July 24, 2024

oh my... seems i'm wrong here. but still, there is something wrong:
the gcc option shows: -I3rdparty/jsoncpp/src, but no -I3rdparty/jsoncpp here(which #include "include/json.h" need), maybe you should correct it= =
and, the QTcpSocket is in /usr/include/QtNetwork under arch(differ from ubuntu?), so i still recommend you to use pkg-config... eh.

from qtqq.

Cravix avatar Cravix commented on July 24, 2024

eh, anyway, seems i must check *.pro anyway and adjust it, i got really messed up now= =

from qtqq.

zhanlangsir avatar zhanlangsir commented on July 24, 2024

You can find json.h,located in qtqq/3rdparty/jsoncpp/include/json.h.
And open it, modify the thirteen line from "features.h" to
"json_features.h".Then, complied again.
I'm so sorry for this mistake.

But i don't know why the QTcpSocket head file is not found. Maybe you can
changed the qtqq.pro.
I upload a qtqq.pro file.you can replace your qtqq.pro to it.
In qtqq.pro, i just add the location of you QTcpSocket file to INCLUDEPATH,
you can find this change
at thirteen line.If "/usr/include/QtNetwork" it's a wrong location, you can
change it.

If this still can't work, i think you can replace the "QTcpSocket" to its
full path like "/usr/include/QtNetwork/qtcpsocket.h".

Btw, are you chinese? My english is bad. Can you understanding what i mean?

2012/6/19 Cravix <
[email protected]

eh, anyway, seems i must check *.pro anyway and adjust it, i got really
messed up now= =


Reply to this email directly or view it on GitHub:
#7 (comment)

from qtqq.

Cravix avatar Cravix commented on July 24, 2024

in fact i'm an alien from outer space, but i can speak chinese as native speaks~ i just get used to write english on IRC. so, feel free to use chinese, and if need i'll too :-)
and, i've searched the aur of archlinux and found many qt packages are builded using cmake, maybe it has more compatibility? why not give a try:-D

from qtqq.

Cravix avatar Cravix commented on July 24, 2024

oh my... sorry. i didn't notice that i don't need to do "qmake -project" first, and maybe that's the problem= =i'll try recompile now.

from qtqq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.