Comments (25)
from qtzeroconf.
Howdy Jon,
Thanks for the quick response.
I added a modified block for iOS by copying the macx block and removing the QMAKE_LFLAGS and LIBS lines (which refer to CoreServices, which appears to be a Mac framework, not iOS), and now I can build Release. I can't build either MacOS or iOS Debug, though. The linker complains:
ld: library not found for -lQtZeroConf
I wonder if this is an issue with _debug or similar being postpended to the library name, or needing to be? I tried removing the $$QT_LIBINFIX from the TARGET in QtZeroConf.pro, but that didn't seem to make any difference. Any ideas on this one?
Thanks again,
Alex
from qtzeroconf.
Ah. Getting rid of the $$qtLibraryTarget() part fixes it. I'm guessing that's needed for Windows or somesuch?
from qtzeroconf.
from qtzeroconf.
I'm only using discovery, which appears to be working. I am having some threading issues right now, but those are probably in my code, not yours.
from qtzeroconf.
from qtzeroconf.
wumpus7,
Can you re-try your previous attempts at compiling? ios has been added to .pri files and it compile for me (getting stuck at code signing error)
I also added Q_DECL_EXPORT which should fix your dynamic linking. Window msvc people were having a similar issue with dynamic linking.
from qtzeroconf.
wumpus7, It seems like I can't run my project on an ios device unless I pay apple $100 / year. QtCreator is error at the end of the build because it can't sign the app. I've added my apple dev ID to xcode, it says that I am not on any teams. When I log in to the apple dev site, I am missing "Certificates, Identifiers & Profiles" which is under "Personal Resources" (also missing). I assume I must pay apple to get a certificate so Qt can finish the build. Any suggestions?
from qtzeroconf.
Howdy Jon,
According to my colleague, you no longer need to pay to be able to run. Of course, since we're both registered developers, though, neither of us has ever tried that. Here's the link:
https://9to5mac.com/2016/03/27/how-to-create-free-apple-developer-account-sideload-apps/
Good luck - signing has only become a larger and larger pain in the ass over the years.
My other colleague submitted a pull request with our iOS changes, and it looks like it went through; we're certainly getting it all integrated at this point, thanks!
from qtzeroconf.
Hey Alex,
Where was the $$qtLibraryTarget() that you took out that allowed your project to compile. Would be a huge help to me.
Thank you.
from qtzeroconf.
from qtzeroconf.
Feyiafolabi, I am able to compile the example in Qt Creator as is on MAC for iOS as the target ....with the exception of not being able to sign it as Apple requests $100.00. I don't remember if I tried building QZeroConf as a dynamic library for iOS or not. Can you please try building the example in QtCreator for iOS? For your issue, can you specify exactly what you are doing...building in xcode or Qtcreator.....building QZeroConf into your project or as a dynamic library?
from qtzeroconf.
Please note that if you are building QZeroConf into your project you must add the following to your projects .pro file...
DEFINES+= QZEROCONF_STATIC
from qtzeroconf.
Thanks for the quick reply Jon, I just started using Qtcreator a couple days ago so I am really a beginner. I tried compiling a project but an error comes up saying the qtzeroconf file cant be found. I then downloaded your project with the intention of building it into my current project but I do not really know how to go about that exactly, and to compound that your Qtzeroconf is not compiling on its own, the errors are "qtzeroconf-master/bonjour-sdk:no such file or directory" and "qtzeroconf-master:no such file or directory". I use a regular PC not a MAC.
Any help will be really appreciated.
from qtzeroconf.
A detailed step by step procedure on how to go about fixing these issues will be greatly appreciated.
from qtzeroconf.
from qtzeroconf.
drhalftone/LAURobotWidget
from qtzeroconf.
from qtzeroconf.
Thank you very much for your help, how do i go about the first step of copying the qtzeroconf source into the directory ?
from qtzeroconf.
from qtzeroconf.
Thank you.
When i try to run QtZeroConf a 'custom executable' pops up telling me to choose an executable.
from qtzeroconf.
Please give more context. If you have built QtZeroConf into your project or as a dll there is nothing to run. I've attached LAURobotWidget project that will builds with QtZeroConf.
LAURobotWidget_with_QtZeroConf.zip
from qtzeroconf.
I fixed my code due to your help and got it to compile!
Thank you very much Jon!
from qtzeroconf.
wumpus7,
I broke down and paid the $112 and now I can run the QtZeroConf example on my iphone 3GS. I've noticed that when I put the device to sleep after starting the example, the discovery callback stops working after the device is woken back up. I need to restart the example app to get discovery working. Your post above mentions that you are using discovery. Are you experiencing the same issue after putting the phone to sleep? If not can you share your ios+xcode version combination? I am using Xcode 7.3 and the phone is a iPhone 3GS running ios 6.
from qtzeroconf.
Howdy Jon,
We're on the latest Xcode (8.3.3) and no longer support anything below, uh, iOS 8, I think?
I don't trust anything to run properly in the background, so I shut down discovery when applicationDidEnterBackground: is called, and then restart it when applicationDidBecomeActive: fires. I honestly don't know what the current state of backgrounded apps is, but I'm pretty sure that in iOS 6 you can't expect anything other than a very short list of processes (mostly audio related) to continue to run.
Hope that helps,
Alex
from qtzeroconf.
Related Issues (20)
- qzeroconfigservice ipv4 property assigned ipv6 address HOT 18
- issue reading txtrecord of addService() HOT 3
- Power-Cycling Bonjour Devices Can Cause Permanent Loss HOT 8
- Library does not broadcast on Android devices HOT 1
- Windows 10 Loses Devices On WiFi Network Toggle HOT 4
- Services disappear on macOS Catalina HOT 4
- problem when renewing connexion HOT 15
- Update of TXT records
- Android: Temporary resolution failures result in service removal HOT 6
- SIGABRT on iOS HOT 4
- Segmentation fault while reading TXT records
- Android API Level 30 issues HOT 39
- No Services on iOS using test app HOT 8
- Cannot build example on FreeBSD HOT 4
- How to search for all kinds of services? HOT 4
- Use bonjour-sdk on other platforms, too? HOT 1
- SIGABRT if Avahi is not running on Linux HOT 2
- Add Qt6-Android support HOT 7
- Stopped working for ios 17 HOT 15
- Support for native Windows mDNS/DNS-SD stack HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtzeroconf.