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

Qt resources <-> std::istream interchanging #161

Closed
4 of 5 tasks
ruslo opened this issue Jul 12, 2016 · 3 comments
Closed
4 of 5 tasks

Qt resources <-> std::istream interchanging #161

ruslo opened this issue Jul 12, 2016 · 3 comments

Comments

@ruslo
Copy link
Collaborator

ruslo commented Jul 12, 2016

Create simple example to demonstrate/PoC communication with Qt resources system and custom C++ library with std::istream interface.

Test code:

  • iOS
  • Android
  • OSX
  • Linux
  • Windows

May be useful:

@ruslo
Copy link
Collaborator Author

ruslo commented Jul 12, 2016

Example created: https://github.com/forexample/qt-resources-istream

Linux, OSX, Windows works ok:
build.py --toolchain ... --verbose --test --config Debug
to download Qt binaries from server on OSX use osx-10-9 toolchain:
build.py --toolchain osx-10-9 --verbose --test --config Debug

iOS works fine. If you want to download Qt binaries from server use ios-9-3-wo-armv7s toolchain:
build.py --toolchain ios-9-3-wo-armv7s --verbose --open

Android only builds, can't launch it. I think the problem is about using Qt libraries in console application. It should be either console app without Qt libraries, or GUI driven by Qt:
build.py --toolchain android-ndk-r10e-api-19-armeabi-v7a-neon --verbose.

@ruslo
Copy link
Collaborator Author

ruslo commented Jul 20, 2016

Working with binary resources example added to branch binary.resources: https://github.com/forexample/qt-resources-istream/tree/binary.resource

Usage:

> build.py --toolchain gcc --verbose --test
> openssl sha1 gemma.png # hash of input file
SHA1(gemma.png)= 4f3615301c702a81367b8add2d4ce99d14bf2e1c
> openssl sha1 _builds/gcc/output.png # hash of output file
SHA1(_builds/gcc/output.png)= 4f3615301c702a81367b8add2d4ce99d14bf2e1c

@headupinclouds
Copy link
Owner

Seems complete. Closing . Android caveat is fine for this example.

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

2 participants