Giter Site home page Giter Site logo

Comments (25)

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

wumpus7 avatar wumpus7 commented on August 20, 2024

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.

wumpus7 avatar wumpus7 commented on August 20, 2024

Ah. Getting rid of the $$qtLibraryTarget() part fixes it. I'm guessing that's needed for Windows or somesuch?

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

wumpus7 avatar wumpus7 commented on August 20, 2024

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.

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

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.

jbagg avatar jbagg commented on August 20, 2024

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.

wumpus7 avatar wumpus7 commented on August 20, 2024

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.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

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.

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

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.

jbagg avatar jbagg commented on August 20, 2024

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.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

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.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

A detailed step by step procedure on how to go about fixing these issues will be greatly appreciated.

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

drhalftone/LAURobotWidget

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

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.

jbagg avatar jbagg commented on August 20, 2024

from qtzeroconf.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

Thank you.

When i try to run QtZeroConf a 'custom executable' pops up telling me to choose an executable.

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

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.

Feyiafolabi avatar Feyiafolabi commented on August 20, 2024

I fixed my code due to your help and got it to compile!

Thank you very much Jon!

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

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.

wumpus7 avatar wumpus7 commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.