Problems with MAC (string.h: No such file or directory) [solved]



  • Yes, I followed this instructions

    http://qt-project.org/doc/qt-4.8/deployment-mac.html

    Thanx!!!


  • Lifetime Qt Champion

    So it's working now ?



  • No, I followed the instructions but the problem continues because I don't find two libraries that my applicaction needs.



  • Any idea?... I am totally lost...I don't understand why these libraries doesn't appear...



  • Hi!!!,

    I find this instruction

    @macdeployqt Herr....app/@

    It makes the same that I did manually before, but when I use it returns this

    @ERROR: no file at "/usr/local/pgsql/lib/libpq.5.dylib" @

    And if I do it again,

    @WARNING:
    WARNING: Could not find any external Qt frameworks to deploy in "Herramienta_CTE.app"
    WARNING: Perhaps macdeployqt was already used on "Herramienta_CTE.app" ?
    WARNING: If so, you will need to rebuild "Herramienta_CTE.app" before trying again.
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/accessible/libqtaccessiblewidgets.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqcncodecs.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqcncodecs.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqjpcodecs.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqjpcodecs.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqkrcodecs.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqkrcodecs.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/codecs/libqtwcodecs.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/codecs/libqtwcodecs.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqgif.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqgif.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqico.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqico.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqjpeg.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqjpeg.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqmng.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqmng.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqtga.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqtga.dylib"
    ERROR: file copy failed from "/Developer/Applications/Qt/plugins/imageformats/libqtiff.dylib"
    ERROR: to "Herramienta_CTE.app/Contents/PlugIns/imageformats/libqtiff.dylib"
    WARNING:
    WARNING: "Herramienta_CTE.app/Contents/Resources/qt.conf" already exists, will not overwrite.
    WARNING: To make sure the plugins are loaded from the correct location,
    WARNING: please make sure qt.conf contains the following lines:
    WARNING: [Paths]
    WARNING: Plugins = PlugIns
    @

    With this, any ides?


  • Lifetime Qt Champion

    The first error means that it has found a dependency on libpq and simply failed to copy it from /usr/local/pgsql/lib. You might have it elsewhere and have to copy it manually.

    The warnings on the second run is normal since you already ran macdeployqt. You can see it on line 3.



  • Then, what I have to do?

    Copy the library and overwrite in the qt.conf??


  • Lifetime Qt Champion

    First thing, copy the library (don't forget to update its paths) and try to run your application.



  • After two months, my application works!!!!! without qmltooling plugin...

    But now I have one doubt, I hope the last one ;-)

    The original bundle has an icon, and I have watched that in the qt.conf do a reference to this icon.

    How I change this icon?


  • Lifetime Qt Champion

    Do you mean the icon that is shown to the user ? (i.e. the music note for iTunes ?)



  • yes...

    Thank you, before I forget...


  • Lifetime Qt Champion

    Add this

    @
    <key>CFBundleIconFile</key>
    <string>myApp.icns</string>
    @

    To your Info.plist

    And put the myApp.icns in your bundle Contents/Resources folder



  • Done.... but no change... What I have to do now??


  • Lifetime Qt Champion

    In your pro file:

    @
    ICON = myApp.icns
    QMAKE_INFO_PLIST = Info.plist@



  • And compile and link the libraries once again???

    No other way???

    I am watching, that in the original .pro file no appear this line, and the original developer used this .pro file.



  • I continue research, and when I change things in the info.plist with the Property List Editor nothing change.

    Even I changed the name of the Executable.



  • You don't care, when I make the installer the icon appear...


  • Lifetime Qt Champion

    Personally, I rebuild the application whenever I make changes to one of it's component so as to say it's mandatory for the icon to be updated, I don't know (there might be some caching done under the hood).

    I don't get your last message.



  • Finally I deliver the project, so thank you so much!!!


  • Lifetime Qt Champion

    You're welcome !

    Don't forget to update the thread's title appending solved so other forum users may know a solution has been found :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.