libxbee in Qt?

118 views
Skip to first unread message

Benjamin Chalk

unread,
Mar 22, 2013, 2:28:34 AM3/22/13
to lib...@googlegroups.com
Hey, every one

I was just wondering if any one has used the Libxbee in qt? as I am getting compiling errors when trying to build it, just wondering if it was just some newb mistakes.
my other question is does any one have a qt example project?

Be great if any one has any hints or tips.

-Ben

Attie Grande

unread,
Mar 22, 2013, 5:02:57 AM3/22/13
to Benjamin Chalk, libxbee
Hi Ben,

I've not used them together myself yet, but there are plans for a personal project that would.
What are the build errors you're getting?
What command line are you running?

Attie

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/wsG8dzZr9TwJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Benjamin Chalk

unread,
Mar 22, 2013, 7:04:13 AM3/22/13
to lib...@googlegroups.com, Benjamin Chalk
Hey, Attie thanks for the rply,

was gonna post tomorrow that I figured out how to fix it, QT 5.0.2 was not importing the lib file correctly for some reason so after a bit of experimentation, this was worked out :


.pro.


SOURCES += main.cpp \
    ../../../../../../Users/*user name*/Documents/libxbee_v3.0.8+2/xbeep.cpp

INCLUDEPATH += C:\Users\*user name*\Documents\GitHub\catap\StaticNode\libxbee3-master

HEADERS += \
    ../../../../../../Users/*user name*/Documents/libxbee_v3.0.8+2/xbee.h \
    ../../../../../../Users/*user name*/Documents/libxbee_v3.0.8+2/xbeep.h

LIBS += -LC:\\Users\\*user name*\\Documents\\libxbee_v3.0.8+2\\lib\\ \
-llibxbee3 

The only issue I have now is 'error: previous definition of 'struct timespec'  to try and fix this I was experimenting with using a #ifndef, but this started giving me other errors, so I gave up for today

Attie Grande

unread,
Mar 22, 2013, 7:22:33 AM3/22/13
to Benjamin Chalk, libxbee
Hi Ben,

It looks like you're using this on windows?
Are you using a binary release that I've made?
What toolchain are you using? The release was made using Microsoft's/Visual Studio's toolchain.

The timespec declaration issue is probably due to the fact that Microsoft's toolchain doesn't declare it, where as the GNU tools (gcc) does.
As you're compiling on windows, you may have definitions that are confusing my cross-system build.

Try removing the declaration from xbee.h

Attie
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/oizgbhTMoLEJ.

Benjamin Chalk

unread,
Mar 22, 2013, 7:53:35 AM3/22/13
to lib...@googlegroups.com, Benjamin Chalk
Hey Attie,

yeah I am using windows,
I am using both the binary and the master release you made.
as regards to the toolchain I am using the MinGw build...

I removed the line and I am now just getting undefined errors

-Ben

Benjamin Chalk

unread,
Apr 8, 2013, 3:04:06 AM4/8/13
to lib...@googlegroups.com
just to update the thread I was having lots of problems with the windows build, moved over to linux and it works great! should have done this from the start ah well...

Attie Grande

unread,
Apr 8, 2013, 8:18:59 AM4/8/13
to Benjamin Chalk, libxbee
Hi Ben,

Apologies for dropping the conversation - I assumed that you had sorted things out.
Did you get anywhere with Windows at all?

I'm glad its working properly on Linux though!

Attie

On 8 April 2013 08:04, Benjamin Chalk <thech...@gmail.com> wrote:
just to update the thread I was having lots of problems with the windows build, moved over to linux and it works great! should have done this from the start ah well...

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/4UABy0yc_k0J.

Benjamin Chalk

unread,
Apr 8, 2013, 8:38:39 AM4/8/13
to lib...@googlegroups.com, Benjamin Chalk
Hey Attie,

its cool, I didn't get any where in Windows, just gave me headaches, no matter what I tried it just wouldnt build.
I am fairly new to Qt so I was struggling a fair bit, but it seems to be working fairly well after getting some (a lot) of help form a friend.

Ben

Ps. qt as an application runs real nice on linux, may start doing all my coding in it.

Attie Grande

unread,
Apr 9, 2013, 2:38:18 AM4/9/13
to Benjamin Chalk, libxbee
Awesome!

I'll add a MinGW port to my list of things 'todo'... See if i can figure it out. :)

Attie

--
You received this message because you are subscribed to the Google Groups "libxbee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libxbee+u...@googlegroups.com.
To post to this group, send an email to lib...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/libxbee/-/rZBd_h3Hxq8J.
Reply all
Reply to author
Forward
0 new messages