Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. iOS - How to connect to PostgreSQL?
QtWS25 Last Chance

iOS - How to connect to PostgreSQL?

Scheduled Pinned Locked Moved Mobile and Embedded
iospostgresql
7 Posts 3 Posters 3.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thrash
    wrote on last edited by Thrash
    #1

    Hello Forum,

    I have a problem with connect to PostgreSQL. I use Qt 5.5.
    I build a library of PostgreSQL, but I can not connect from under iphonesimulator
    How to connect to PostgreSQL from under iOS ?
    Can anybody help me with this problem?

    Sorry for my bad english.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      have you deployed the PostgreSQL plugin on the simulator??

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Thrash
        wrote on last edited by Thrash
        #3

        Hi,

        I pointed out in .pro file

        ios {
        QTPLUGIN += qsqlpsql
        }

        and in soource code

        #include <QtCore/QtPlugin>
        Q_IMPORT_PLUGIN(qsqlpsql)

        but when compile the project generates an error:
        "qt_static_plugin_qsqlpsql()", referenced from:
        StaticqsqlpsqlPluginInstance::StaticqsqlpsqlPluginInstance()
        ld: symbol(s) not found for architecture i386

        M 1 Reply Last reply
        0
        • T Thrash

          Hi,

          I pointed out in .pro file

          ios {
          QTPLUGIN += qsqlpsql
          }

          and in soource code

          #include <QtCore/QtPlugin>
          Q_IMPORT_PLUGIN(qsqlpsql)

          but when compile the project generates an error:
          "qt_static_plugin_qsqlpsql()", referenced from:
          StaticqsqlpsqlPluginInstance::StaticqsqlpsqlPluginInstance()
          ld: symbol(s) not found for architecture i386

          M Offline
          M Offline
          mcosta
          wrote on last edited by
          #4

          @Thrash said:

          symbol(s) not found for architecture i386

          are building for iOS of for x86??

          Once your problem is solved don't forget to:

          • Mark the thread as SOLVED using the Topic Tool menu
          • Vote up the answer(s) that helped you to solve the issue

          You can embed images using (http://imgur.com/) or (http://postimage.org/)

          T 1 Reply Last reply
          0
          • M mcosta

            @Thrash said:

            symbol(s) not found for architecture i386

            are building for iOS of for x86??

            T Offline
            T Offline
            Thrash
            wrote on last edited by
            #5

            @mcosta said:

            are building for iOS of for x86??

            Yes

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Did you build the PostgreSQL plugin ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • T Offline
                T Offline
                Thrash
                wrote on last edited by
                #7

                Hi,

                I build PostgreSQL plugin for IOS (iphonesimulator)
                When compiling errors appear:
                clang: error: invalid architecture ‘arm’ for deployment target ‘mios-simulator-version-min=5.1.1’
                clang: error: invalid architecture ‘aarch64’ for deployment target ‘mios-simulator-version-min=5.1.1’

                How do I solve it? Thank you!

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved