Results 1 to 5 of 5

Thread: makeqpf via command line requires X server?

  1. #1
    Join Date
    Apr 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default makeqpf via command line requires X server?

    Hi all,

    We're trying to make the generation of our font file for the Japanese version of our application part of our build process. Consequently we're attempting to run something like:

    Qt Code:
    1. makeqpf -c arialuni.ttf arial_unicode_ms_14_50.qpf2 14 n n translation_files/japanese.txt
    To copy to clipboard, switch view to plain text mode 

    on our build machine. But an error is generated stating that makeqpf can't connect to an X server. Which of course is true because there is no X server to connect to, but I don't think one should be needed in this case. Is there anyway around this?

    We're using Qt 4.5.x. The build process runs on a linux server and the application is deployed to a linux based embedded device.

    Any help would be greatly appreciated.

    Thanks in advance,
    Derek

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: makeqpf via command line requires X server?

    I don't know makeqpf so I am going to speculate:

    if it is a tool using Qt itself and using Qt's font classes or other classes from QtGui, then it requires the dependenices for QtGui.
    Since we are talking about Qt4.5 here that means whatever UI plaform QtGui was built for. If it was built for X11, it will try to initiate a connection to the X server (after all that is its core functionality on X11).

    It should be easy to check if makeqpf does indeed link with QtGui.

    If it does you have two options:
    - use Qt built for something non X11 on the build server, e.g. Linux framebuffer
    - run a mock/simulated X server, e.g. Xvfb

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    dbaker (28th April 2015)

  4. #3
    Join Date
    Apr 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: makeqpf via command line requires X server?

    Makeqpf does have a GUI mode it can run in so it does link against QtGUI. We're looking into the Xfvb option.

    Thanks!

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: makeqpf via command line requires X server?

    Can't you simply run it on your desktop machine?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #5
    Join Date
    Apr 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: makeqpf via command line requires X server?

    We're making it part of the build process so that we don't have to do it manually everytime we add a new Japanese character to the application. Especially since we'll be adding alot of text in the near future. It just streamlines the process a bit.

    The Xvfb approach is working great, btw.

Similar Threads

  1. Execute window command line-by-line using QProcess
    By nhocjerry in forum Qt Programming
    Replies: 5
    Last Post: 30th July 2013, 12:21
  2. client sending data line by line to server in Qt
    By ajay in forum Qt Programming
    Replies: 3
    Last Post: 31st August 2012, 00:06
  3. Detect whether a server requires SSL connection
    By mentalmushroom in forum Qt Programming
    Replies: 0
    Last Post: 24th May 2012, 12:40
  4. QT HTTP Post issue when server requires cookies
    By shadyabhi in forum Qt Programming
    Replies: 0
    Last Post: 22nd December 2010, 13:10
  5. makeqpf help
    By Krzysztow in forum Qt Tools
    Replies: 0
    Last Post: 28th February 2010, 17:29

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.