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. Ubuntu QChartView

Ubuntu QChartView

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 524 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hello everyone, hope all is well. Currently, I am trying to run Qt from the terminal in Ubuntu but am running into issues. I tried to run my Qt app from the terminal, but it gave me a "QChartView" not found error. This is my first time using Qt with Ubuntu, so I think I made some installation mistakes.

    Here is what I have done so far:

    sudo apt-get install build-essential
    
    sudo apt-get install qtcreator
    
    sudo apt-get install qt5-default
    
    sudo apt-get install qt5-doc
    
    sudo apt-get install qt5-doc-html qtbase5-doc-html
    
    sudo apt-get install qtbase5-examples
    

    In the end, what do I need to do to ensure that QChartView (and other libraries) is found?

    Thank you in advance!

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

      Did you rebuild your app after installing these packages? Does your application work when running it in QtCreator? What is the exact error(s) you are getting?

      ? 1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        sudo apt install libqt5charts5-dev
        https://forum.qt.io/topic/120196/qtcharts-installation-on-ubuntu/3

        1 Reply Last reply
        1
        • M mchinand

          Did you rebuild your app after installing these packages? Does your application work when running it in QtCreator? What is the exact error(s) you are getting?

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @mchinand So my application does not work on Qt Creator in Linux, but it does on Windows/Mac. Not sure what you mean by rebuild my app, but if you mean in Qt Creator, I tried to but it fails when you try to run it.

          For whatever reason, the exact app (which works fine on Windows) is not even building in Linux. I assume this has to be an installation issue, not something to do with my code (unless Linux does stuff differently). Once again, thank you for your help.

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

            Hi,

            You should follow @JoeCFD advice. You did not install all the required dev packages on your system.

            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
            • SGaistS SGaist

              Hi,

              You should follow @JoeCFD advice. You did not install all the required dev packages on your system.

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @SGaist Sorry, my non-response to @JoeCFD made it seem like I didn't do that. My apologies for that. Now, although I am not getting the "not found" error, the app will not build. I will post a new post to the forum in a little while, as it is an entirely different issue now. Thank you all for your help.

              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