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)

Disable jpeg in .pro file? (Linux problem)

Scheduled Pinned Locked Moved Unsolved General and Desktop
jpeglinkinglinux
2 Posts 2 Posters 372 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.
  • F Offline
    F Offline
    FrankE
    wrote on 11 Aug 2021, 11:57 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 11 Aug 2021, 12:06 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

      1/2

      11 Aug 2021, 11:57

      • Login

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