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. Problems with embedding fonts and makeqpf tool
Forum Updated to NodeBB v4.3 + New Features

Problems with embedding fonts and makeqpf tool

Scheduled Pinned Locked Moved Mobile and Embedded
16 Posts 7 Posters 12.6k Views 1 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.
  • L Offline
    L Offline
    lgeyer
    wrote on last edited by
    #3

    Just to be sure - are you using Qt for Embedded Linux (as you have posted this question in General and Desktop, not Mobile and Embedded)?

    You can either use "makeqpf":http://doc.qt.nokia.com/latest/qt-embedded-makeqpf.html to prerender your font or just use any other freetype font (provided you haven't disabled freetype support) directly.

    Qt Desktop supports any TrueType fonts, TrueType font collections, and OpenType fonts. You must not use prerendered fonts (qpf).

    1 Reply Last reply
    0
    • S Offline
      S Offline
      st2000
      wrote on last edited by
      #4

      Yes, you are right. This post shuld be in the next forum. I have seen it done, but can not find an edit mode which allows me to change where this thread is posted.

      Our application will be running on an embedded Linux target. However, it is also going to have to run on Win and Mac targets for development and demonstration purposes. Several week ago we gave up hope of doing this trasparently. Manly because there is no native (to Qt) video play back support on the embedded Linux target. But also because of text size issues.

      Thank you for that link to makeqpf. But either I am blind or do not understand. There is no actual makeqpf utility on this page - is there?

      -thanks

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #5

        [quote author="st2000" date="1317204881"]Yes, you are right. This post shuld be in the next forum. I have seen it done, but can not find an edit mode which allows me to change where this thread is posted.[/quote]

        There is (unfortunately) none, except you are a moderator.

        [quote author="st2000" date="1317204881"]Thank you for that link to makeqpf. But either I am blind or do not understand. There is no actual makeqpf utility on this page - is there?[/quote]

        You'll find it in $QTDIR/tools/makeqpf. I'm not quite sure if it is part of the SDK - in doubt fetch the Qt sources using the SDK, the webpage or gitorious and build it.

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #6

          Moved to the mobile and embedded subforum.

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • S Offline
            S Offline
            st2000
            wrote on last edited by
            #7

            bq. SDK – in doubt fetch the Qt sources using the SDK, the webpage or gitorious and build it.

            I'm having a problem with this. And being new - I need to ask even more questions...

            At work, there is a common down-load server which grabs and inspects files. This is death to embedded autonomous down load processes inside of other programs. I suspect this is my problem as when I look for a way to get code (packages under Help->Start Updater) it just hangs for-ever.

            So if there are other ways of getting makeqpf, I'd like to hear about it. If it is a web page or a GIT repository, what is the URL?

            -thanks

            1 Reply Last reply
            0
            • S Offline
              S Offline
              st2000
              wrote on last edited by
              #8

              Ug, I finally grabbed a copy of the source for a Qt makeqpf project. (The Qt tool upgrade process is NOT compatible with my work's download filters! That's for sure.) So far, this has really been a struggle. Either I am being totally clueless - or someone has got to put together a how-to document.

              Anyway, the latest hiccup:
              When compiling the makeqpf Qt project, I get this error:
              ...QtSDK/QtSources/4.7.4/tools/makeqpf/qpf2.h:45: error: private/qfontengine_qpf_p.h: No such file or directory

              Anyone know what is missing. Well, obviously the qfontengine_qpf_p.h file. But where do I find this file? What package do I need to download? This is a Fedora15 system BTW.

              -thanks

              1 Reply Last reply
              0
              • S Offline
                S Offline
                st2000
                wrote on last edited by
                #9

                Evidently there are a lot of files missing:
                qfixed_p.h
                qfont_p.h
                qfontengine_ft_p.h
                qfontengine_p.h
                qfontengine_qpf_p.h
                ...and on

                I can not imagine I am suppose to pick each one up from GIT. There must be a package or something I am missing. Anyone have any ideas?

                -thanks

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dangelog
                  wrote on last edited by
                  #10

                  You shouldn't use the QtSources from the SDK for compiling Qt or any of its tools. Grab a source tarball and compile from there.

                  Software Engineer
                  KDAB (UK) Ltd., a KDAB Group company

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    st2000
                    wrote on last edited by
                    #11

                    bq. Grab a source tarball and compile from there.

                    (I feel like a pilot at an unfamiliar airport asking for "turn-by-turn".)

                    So, where do I get a Qt source tarball? I have been looking at http://gitorious.org/ but am unfamiliar of how this is connected to either Trolltech or Nokia.

                    I happened across this page but I think I want Qt not Qt-3D:
                    http://doc.qt.nokia.com/qt3d-snapshot/qt3d-building.html

                    -thanks

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #12

                      You can get it from the download page: http://qt.nokia.com/downloads/downloads#qt-lib

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        st2000
                        wrote on last edited by
                        #13

                        Guys (Gals), I hate to keep asking for help - trying to create a few qpf font sets for my embedded Qt application - but I feel like we are almost there...

                        I downloaded the tar.gz file and unzipped it. But there is still no directory called: "qt-everywhere-opensource-src-4.7.4/tools/makeqpf/private" as needed by the makeqpf source code. Just to be clear, this newly downloaded source code is looking for the same missing headers as the code I grabbed a few post ago (above).

                        Still can not believe it is so hard to add a few more font sizes to an embedded Qt application. What am I doing wrong?

                        -thanks

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          andre
                          wrote on last edited by
                          #14

                          Please stop renaming your topic. Come up with a single name that describes your question (the current one only describes your state of mind, wich is not something we can help you with), and leave it at that. Leave it to admins to change the title if needed (except of perhaps adding a [solved] tag if the issue has been addressed).

                          1 Reply Last reply
                          0
                          • G Offline
                            G Offline
                            goetz
                            wrote on last edited by
                            #15

                            I've update the thread with a sane title.

                            Sources for a makeqpf tool are in qt-everywhere-opensource-src-4.7.4/tools/makeqpf. After issuing a make in that directory, there is a makeqpf tool in qt-everywhere-opensource-src-4.7.4/bin. I cannot test if it works, though.

                            http://www.catb.org/~esr/faqs/smart-questions.html

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              dreamerindia
                              wrote on last edited by
                              #16

                              I got the same problem as yours.
                              convert the required font using makeqpf (its in /qtsdk-2010.03/qt/tools/makeqpf/).
                              place the converted font into target's font directory(/usr/local/QtEmbedded-4.7.1/lib/fonts/)
                              your problem will be solved.

                              if makeqpf is not running and showed FontEngine error,then it means QtSdk is not properly installed or installed more than one versions.

                              ~Ravivarman~

                              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