Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sincronize Local Database When Cross-Compiling?
QtWS25 Last Chance

Sincronize Local Database When Cross-Compiling?

Scheduled Pinned Locked Moved Solved General and Desktop
cross compileraspberry eglfsraspberry pi 2sqlitedatabase
7 Posts 2 Posters 2.4k 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.
  • C Offline
    C Offline
    cxam
    wrote on 28 Mar 2016, 13:19 last edited by
    #1

    Hi! I have a doubt, I don't know how to make a Sqlite database sincronized with my raspberry pi 2 when cross compiling. I need to be able to edit it from my Management software on my computer and then it has to be copied to my raspberry pi so the software which is executing there is able to access that database since sqlite doesn't work with servers it has to be accessed from the database local file. Thanks in advance

    Stay Hungry, Stay Foolish

    ? 1 Reply Last reply 28 Mar 2016, 13:29
    0
    • C cxam
      28 Mar 2016, 13:19

      Hi! I have a doubt, I don't know how to make a Sqlite database sincronized with my raspberry pi 2 when cross compiling. I need to be able to edit it from my Management software on my computer and then it has to be copied to my raspberry pi so the software which is executing there is able to access that database since sqlite doesn't work with servers it has to be accessed from the database local file. Thanks in advance

      ? Offline
      ? Offline
      A Former User
      wrote on 28 Mar 2016, 13:29 last edited by
      #2

      Hi! So do you want to copy the sqlite file only once to the raspberry pi during deployment of your software or do you need to copy it over everytime you made changes to it?

      C 1 Reply Last reply 28 Mar 2016, 14:03
      0
      • ? A Former User
        28 Mar 2016, 13:29

        Hi! So do you want to copy the sqlite file only once to the raspberry pi during deployment of your software or do you need to copy it over everytime you made changes to it?

        C Offline
        C Offline
        cxam
        wrote on 28 Mar 2016, 14:03 last edited by
        #3

        @Wieland I'm afraid every time I make any change in the program, maybe add a custom process step ?

        Stay Hungry, Stay Foolish

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on 28 Mar 2016, 14:07 last edited by
          #4

          Well, you could put the sqlite file on a server and let your program download it everytime it executes.

          C 1 Reply Last reply 28 Mar 2016, 14:35
          0
          • ? A Former User
            28 Mar 2016, 14:07

            Well, you could put the sqlite file on a server and let your program download it everytime it executes.

            C Offline
            C Offline
            cxam
            wrote on 28 Mar 2016, 14:35 last edited by
            #5

            @Wieland I could run a custom remote command on the make process and make a wget from a server or maybe keep the file on the project folder and on the make process copy the database file each time I compile my program with a "scp" command right ?

            Stay Hungry, Stay Foolish

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on 28 Mar 2016, 14:44 last edited by
              #6

              Why can't you just add the sqlite file to your project and deploy it along with your application after you recompile it?

              C 1 Reply Last reply 28 Mar 2016, 15:10
              1
              • ? A Former User
                28 Mar 2016, 14:44

                Why can't you just add the sqlite file to your project and deploy it along with your application after you recompile it?

                C Offline
                C Offline
                cxam
                wrote on 28 Mar 2016, 15:10 last edited by
                #7

                @Wieland Yes, that seems a better idea, I'll do that, thanks for your help :)

                Stay Hungry, Stay Foolish

                1 Reply Last reply
                0

                2/7

                28 Mar 2016, 13:29

                topic:navigator.unread, 5
                • Login

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