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. Disable jpeg in .pro file? (Linux problem)
Forum Updated to NodeBB v4.3 + New Features

Disable jpeg in .pro file? (Linux problem)

Scheduled Pinned Locked Moved Unsolved General and Desktop
jpeglinkinglinux
2 Posts 2 Posters 402 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.
  • F Offline
    F Offline
    FrankE
    wrote on last edited by
    #1

    I have a .pro project that should compile in windows and Linux.

    With the windows one, there is no problem at all. But I'm using a turbojpeg based solution and it seems that it introduces some linking problems with the Qt jpeg support (my own assumption) since it triggers some errors like:

    libjpeg-static.a(jcparam.c.o): in function 'jpeg_set_colorspace':
    first defined here
    

    Is there any chance to remove the .jpeg support without recompiling the entire Qt? Any other approach?

    Thank you for your time.

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

      Hi
      https://doc.qt.io/qt-5/qtimageformats-index.html

      The core Qt Gui library contains the code for JPEG so recompile is needed to get rid of it.

      However, are you sure its a clash ? I mean the JPEG is wrapped into Qt and classes so
      clashing with a free function seems unlikely.

      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