TEMPORARY MODE ENABLED
New posts, edits, and any changes will not be saved during the transition period.
Registrations are temporarily disabled until the migration is complete.

  1. gking53

    OP gking53 Newbie
    Newcomer

    Joined:
    Jul 10, 2018
    Messages:
    7
    Country:
    Canada
    Hey, I'm decently new to the homebrew scene, wondering if someone can help me out. Trying to compile a program using switch-libjpeg-turbo from the pacman install, yet when I include turbojpeg.h and try to compile, I'm getting an undefined reference error for tjDecompress2 and tjInitDecompress. I've been using the homebrew template from the tutorial posted here awhile ago and it works for everything libnx so far. I don't have alot of experience with make files, usually let VS take care of everything when programming in school :D, i believe this is just an error with the compiler not being able to link the library of libjpeg-turbo with my call for it, but I have no idea how to fix it. Any help would be great! Thanks!
     

    Attached Files:

  2. gking53

    OP gking53 Newbie
    Newcomer

    Joined:
    Jul 10, 2018
    Messages:
    7
    Country:
    Canada
    Finally figured it out by leaning basics of make files/linker, added the library name in the libs and everything worked out, for reference it was -lturbojpeg in the libs line
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Compiling, libjpeg, switch