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. Trouble following directions
Forum Updated to NodeBB v4.3 + New Features

Trouble following directions

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.3k Views 2 Watching
  • 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.
  • J Offline
    J Offline
    jack213123
    wrote on last edited by
    #1

    Re: Static compile of Qt Charts

    Hi all,
    I've been trying to follow the steps above. I got the error Project ERROR: Unknown module(s) in QT: charts when running qmake on my .pro file.

    I have a static version of QT installed on an external HD on OSX 10.11.

    From the base dir of the install (I can see qtbase folder, configure, etc) I changed into qtcharts. I ../qtbase/bin/qmake; make; make install. I even manually copied the lib to ../qtbase/lib and the include to ../qtbase/include`, but I still get the qmake error that charts is an unknown module. What am I missing?

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

      Hi and welcome to devnet,

      What version of Qt are you using ?
      How did you build it ?
      What parameters did you pass ?

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

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What version of Qt are you using ?
        How did you build it ?
        What parameters did you pass ?

        J Offline
        J Offline
        jack213123
        wrote on last edited by
        #3

        @SGaist 5.9, statically compiled. Build what, QtCharts?
        ../qtbase/bin/qmake; make;

        cp -r ./lib/lib* ../qtbase/lib/; cp -r ./include/QtCharts ../qtbase/include/

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

          What parameters did you use to build Qt ?

          You should call make install after you build a module. Your manual copy doesn't put everything in place.

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

          J 1 Reply Last reply
          1
          • SGaistS SGaist

            What parameters did you use to build Qt ?

            You should call make install after you build a module. Your manual copy doesn't put everything in place.

            J Offline
            J Offline
            jack213123
            wrote on last edited by
            #5

            @SGaist I tried a make install, but it tries to save it to the dynamic install on the internal disk instead of the static one on the external. I don't remember the build parameters exactly, unless there it's saved somewhere.

            jsulmJ 1 Reply Last reply
            0
            • J jack213123

              @SGaist I tried a make install, but it tries to save it to the dynamic install on the internal disk instead of the static one on the external. I don't remember the build parameters exactly, unless there it's saved somewhere.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jack213123 Is "../qtbase/bin/qmake" the qmake from your static Qt build?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply
              1
              • jsulmJ jsulm

                @jack213123 Is "../qtbase/bin/qmake" the qmake from your static Qt build?

                J Offline
                J Offline
                jack213123
                wrote on last edited by
                #7

                @jsulm Yes

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

                  Then use the -prefix option when calling configure to set another install path and call make install as you should.

                  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

                  • Login

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