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

Provide QXmpp prebuilt packages for Qt5 #29

Closed
poxip opened this issue Jan 7, 2015 · 19 comments
Closed

Provide QXmpp prebuilt packages for Qt5 #29

poxip opened this issue Jan 7, 2015 · 19 comments

Comments

@poxip
Copy link

poxip commented Jan 7, 2015

For instance http://packages.ubuntu.com/source/vivid/qxmpp QXmpp package requires Qt4 (and is built with Qt4, so this might cause and causes some crashes, etc). and that'd be nice to be able to install QXmpp from apt, yum, etc but for Qt5, not 4. I suggest naming like qxmpp-qt5 or something similar (and of course. same for pkgconfig).

@0xd34df00d
Copy link
Member

I doubt this is actually an upstream issue.

@jlaine
Copy link
Contributor

jlaine commented Jan 8, 2015

We unfortunately do not have the manpower to provide pre-built binaries.

@jlaine jlaine closed this as completed Jan 8, 2015
@iddm
Copy link

iddm commented Jan 9, 2015

Just tried to instantiate QXmppClient and it crashes with Qt 5.3.1 just with one line:
QXmppClient c;
Of course project is linked to qxmpp, and etc. Test many times on fresh projects to figure out where is the problem exactly.

When I compiled library from the sources it does not crash. Looks like ubuntu's utopic repositories contains bad version of qxmpp or it is compiled for qt4 only.

@jlaine
Copy link
Contributor

jlaine commented Jan 9, 2015

Ubuntu indeed ships qxmpp compiled for qt4. If you want to use qt5 you will need to compile qxmpp yourself, you cannot use a library compiled against qt4 in a program linked against qt5 (this is causing your crash)

@iddm
Copy link

iddm commented Jan 9, 2015

I think I can provide a qt5 package but only in my ppa of course while your packages are in main repository. Did not try to be a Debian unstable repository maintainer yet, but ppa for a long time.

@Rancbar
Copy link

Rancbar commented Jan 25, 2015

@vityafx did you solve the problem with use QXMPP lib in Qt5?
Can you show me a step-by-step way to do it?.
i can't even include this library in Qt Creator. I have no idea. Please help me.

Thanks in advance.

@jlaine
Copy link
Contributor

jlaine commented Jan 25, 2015

The problems was clearly mixing qt4/qt5

@iddm
Copy link

iddm commented Jan 25, 2015

@RHamidR Simply compile it by yourself. No need to use qtcreator:

qmake
make
sudo make install

@iddm
Copy link

iddm commented Jan 27, 2015

I am trying to build qxmpp in my ppa and it fails on i386 however it builds successfully on amd64. Can you guys please take a look what is wrong on i386 build? The only thing I changed in original's debian package is build-depends:
libqt4-dev to qtbase5-dev, added qt5-qmake and qt5-default.

i386 log

amd64 log

P.S. Also here is some good link you may find useful - qt5 package descriptions

@ghost
Copy link

ghost commented Jan 27, 2015

From a short look I see that the html directory is missing:

cp: cannot stat 'debian/tmp/usr/share/doc/qxmpp/html/': No such file or directory

There was a change - you should have a look at issue 27

Edit: Sorry that it didn't help. I'm also not familiar with the build process, just wanted to point out that this might be connected to your problem

@iddm
Copy link

iddm commented Jan 27, 2015

Hm, How did it work in amd64 build then? Also I can't build it on both amd64 and i386 with QXMPP_USE_DOXYGEN=1:

i386 log
amd64 log

I guess it needs doxygen in build-depends if use QXMPP_USE_DOXYGEN=1 ?

UPD:
I've successfully made a package for qt5 but it needs doxygen as build dep because it does not compile otherwise.

sudo add-apt-repository ppa:broken/ppa
sudo apt-get update
sudo apt-get install libqxmpp0-qt5 libqxmpp-dev libqxmpp-qt5-dbg

Use everyone if you want. Contact me via maintainer@vpolevoy.com if something is wrong with the packages.

@Rancbar
Copy link

Rancbar commented Jan 29, 2015

dear @vityafx , thanks for your answer.

i didn't want to ask these foolish questions here again but i didn't find any good tutorial about compile and use projects like this. I'm sure that i was wrong in my searches about your answer last 3 days ago and i know the issue is not clear to me.

If you direct me some more detailed guide links on the internet about how to build the (Cpp or Qt) library for cross-platform programming and how to use this built library in Qt5 i will be very grateful and I'll try to Learn and read more (if i have some resources) and I will not ask these kind of questions here.

Thanks in advance

Edit:
I have to add some notice:
I am using windows 8.1 if it does matter.

@iddm
Copy link

iddm commented Jan 29, 2015

@RHamidR Please, ask your question on http://stackverflow.com and you'll get help asap. Explain problems you have, your goals and what you want to achieve.

Now I can only point you to project's README because it has all the steps to build the library on any unix machine. I know nothing about windows(visual studio) programming and compiling so in that case I can't help you well.

Therefore, ask a question on the resource and let people help you and others who have your problems too. Good luck!

@Rancbar
Copy link

Rancbar commented Jan 29, 2015

Thank you @vityafx.
Please at least tell me what is this ways name and (people calls this what). search and ask what?

Static build? Cross-platform build? Dynamic build? Build using Qt? or MinGW?
Just a little more help for my search and asking question.

Because i asked much questions about this and in most of case just achieved down vote with no help in stackoverflow.
thank you

@iddm
Copy link

iddm commented Jan 29, 2015

@RHamidR Well, it depends on what you want to achieve. Take a look at SSCCE. Read it, realize and go.

Where and when do you have problems? During compilation? Then post compilation log, compilation commands/etc and everything what did you do in order to reproduce the error you have, this also makes other people understand your problem and give you most elegant solution.

For example:

I can't compile Qt/C++ qxmpp library on windows. I have X error during compilation:

cd qxmpp/src
qmake
make

Compiler: **X**

If viewers will need any more information they'll simply ask you to give it to them. Don't forget about SSCCE !

@Rancbar
Copy link

Rancbar commented Jan 29, 2015

I don't know. maybe its better to don't try for cross-platform programming and start my project on eclipse.
I compile the project by "Run" button in Qt Creator With "Desktop Qt 5.4.0.MinGW 32bit" Kit and everything is OK. in the build directory it gives me some files include "qxmpp_d0.dll" and i know it is dynamic library and is for Windows.
But when i "Run" the project while the selected "Kit" is "Android for armeabi (GCC 4.9 , Qt 5.4.0)" it shows error and i know this project can act with Android because many people told me that and this is my mistake in building.

So this is the full explanation of my problem..
I cant use the QXMPP.

I have to Search and ask for "Static library building"? or another thing?
WHAT IS THE FIRST STEP?

Dear @vityafx thanks for SSCCE article suggestion, I will read and act by that instruction.

And i am sorry for asking these questions in misplace.

@iddm
Copy link

iddm commented Jan 29, 2015

@RHamidR You should fully explain your problem and situation. I don't understand what you do with the library and what for.

@Rancbar
Copy link

Rancbar commented Jan 29, 2015

I have QXMPP library and Qt 5.4 for android and I don't know What to do.
I want to use this library to develop and provide a cross-platform instant message application for our website clients.
I am a .net programmer, It's just my first try in Qt and these things.
and my problem is how to include and use this library classes and APIs on Qt for android and windows.

what is "qmake"
what is "make"
what is "sudo make install"

Please direct me to a link that shows me how to build and use this project on windows for my purpose.

Thanks so much.

@Rancbar
Copy link

Rancbar commented Feb 16, 2015

Thank you @vityafx and all guys here.
I was lost in past for adding this lib to my projects because i didn't know how to do it (add headers and cpp files? use the library after buildation? or another way?) and that was because i am beginner in Qt and I have bad English to explain what is really going on in my head.
But finally i did it by editing my projects ".pro" file with these commands and it worked:

CONFIG(debug, debug|release) {
    win32{
        QXMPP_LIBRARY_NAME_INC = qxmpp_d0
    } else {
        QXMPP_LIBRARY_NAME_INC = qxmpp_d
    }
}else{
    win32{
        QXMPP_LIBRARY_NAME_INC = qxmpp0
    }else{
        QXMPP_LIBRARY_NAME_INC = qxmpp
    }
}
LIBS += -L./qxmpp/src -l$$QXMPP_LIBRARY_NAME_INC

I have new issue here and i need your help and please be patient with me.
Thanks all of you.

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