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

BlackBerry 10 support #6

Closed
guillaumelachaud opened this issue Nov 29, 2012 · 13 comments
Closed

BlackBerry 10 support #6

guillaumelachaud opened this issue Nov 29, 2012 · 13 comments
Assignees

Comments

@guillaumelachaud
Copy link

Hi !

I know that qjson is not officially supported on BlackBerry 10 but I really wanted to give it a try and here is where the compiler complains :

../src/network/qjson/serializer.cpp:230:31: error: expected unqualified-id before '(' token
../src/network/qjson/serializer.cpp:239:18: error: expected unqualified-id before '(' token

Thanks

flavio added a commit that referenced this issue Nov 29, 2012
@flavio
Copy link
Owner

flavio commented Nov 29, 2012

Could you try to build using the blackberry branch?

@ghost ghost assigned flavio Nov 29, 2012
@guillaumelachaud
Copy link
Author

Compilation now goes further :

/home/guillaumelachaud/bbndk/host_10_0_9_284/linux/x86/usr/bin/moc -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../bbndk/target_10_0_9_1101/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../BkCascade -I../../../bbndk/target_10_0_9_1101/qnx6/usr/include/qt4/QtCore -I../../../bbndk/target_10_0_9_1101/qnx6/usr/include/qt4/QtNetwork -I../../../bbndk/target_10_0_9_1101/qnx6/usr/include/qt4/QtDeclarative -I../../../bbndk/target_10_0_9_1101/qnx6/usr/include/qt4 -I../src/network -I../src/network/qjson -Io.le-v7-g/.moc -I../../../bbndk/target_10_0_9_1101/qnx6/usr/include -I../../../bbndk/target_10_0_9_1101/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/network/qjson/serializerrunnable.h -o o.le-v7-g/.moc/moc_serializerrunnable.cpp
/home/guillaumelachaud/bbndk/target_10_0_9_1101/qnx6/armle-v7/lib/crt1.o: In function `start_7':
(.text+0xe8): undefined reference to `main'

@flavio
Copy link
Owner

flavio commented Nov 29, 2012

I have no idea about what is going on. I'm not familiar with blackberry's development.

Are you running cmake from the cli? Are you sure you don't need a special version of cmake?

@guillaumelachaud
Copy link
Author

No, I am running the compilation from the QNX Momentics IDE, the official IDE for BlackBerry 10

@guillaumelachaud
Copy link
Author

Well, in fact I have the error when trying to compile any library this way, even one with a single class that has nothing. I will let you know when I have figured out how to build libs using Momentics

@flavio
Copy link
Owner

flavio commented Nov 29, 2012

Awesome, I'll leave the bug open in the meantime.

@guillaumelachaud
Copy link
Author

It's finally compiling gracefully. I'll keep you updated when I will actually use it in the application to get sure it is working

@flavio
Copy link
Owner

flavio commented Nov 29, 2012

QJson is shipped with a test suite, can you run it?

You just need to run cmake with -DQJSON_BUILD_TESTS=yes to have the build tests compiled.

@guillaumelachaud
Copy link
Author

I haven't been able to run the test suite. But from what I can tell, it is working quite fine in my application. But I have a question. Is it possible to nest objects within each other ?

For instance, let's say my JSON data has an array of maps. In my Application, the Array corresponds to SearchResultsList and one map correspond to an instance of SearchResult. Is it possible to use this custom type in Q_PROPERTY along with the objecthelper. It seems that the helper doesn't match because my setter funtion is never called.

@flavio
Copy link
Owner

flavio commented Dec 14, 2012

The object helper has some problems with nested types, that sounds like issue #5.

@flavio
Copy link
Owner

flavio commented Dec 14, 2012

BTW, I'm glad to know everything is working find on BlackBerry 10. I'll close this issue once I merge this change into master.

flavio added a commit that referenced this issue Jan 28, 2013
@flavio
Copy link
Owner

flavio commented Jan 28, 2013

Merged in master

@flavio flavio closed this as completed Jan 28, 2013
@seftoner
Copy link

seftoner commented Jul 4, 2014

@guillaumelachaud Can you detail write your build steps please.

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

No branches or pull requests

3 participants