Can't compile sf2dlib

Discussion in '3DS - Homebrew Development and Emulators' started by Lilligant, Sep 17, 2016.

  1. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
    I have no idea how can i fix this, if someone can help me on this

    [​IMG]
     
  2. Razorzeto

    Razorzeto Darkness can not drive out darkness.

    Member
    182
    211
    Aug 27, 2015
    Currently living in Chile.
    Lilligant likes this.
  3. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
    I'm pretty sure i do have this but i'll try thanks

    — Posts automatically merged - Please don't double post! —

    So i compiled and everything went fine, no errors, but when i try to compile a project that uses it, this happens
    [​IMG]
     
  4. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
    Anybody?
     
  5. Kartik

    Kartik Gbatemp advanced fan

    Member
    316
    182
    Jun 6, 2015
    India
    github
    In your makefile type -lcitro3d before -lctru
     
    Lilligant likes this.
  6. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
  7. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
    So, another question, how to i display [and clear] some text on the screen if i'm using sf2dlib, when i try to start the console [after i set the background with sf2dlib] i get a glitched top screen
     
  8. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
    Well looks like i'm on my own this time, ok
     
  9. Kartik

    Kartik Gbatemp advanced fan

    Member
    316
    182
    Jun 6, 2015
    India
    github
  10. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
  11. elhobbs

    elhobbs GBAtemp Advanced Fan

    Member
    762
    284
    Jul 28, 2008
    United States
    The ctrulib console implementation sets the frame buffer format and writes to it directly so it is not directly compatible with sf2dlib as it uses the 3D hardware. So you can either use the bottom screen for the console and the top screen for sf2dlib or you can use something else for displaying text.
     
    Wolfvak likes this.
  12. Lilligant
    OP

    Lilligant GBAtemp Regular

    Member
    148
    77
    Aug 29, 2016
    Brazil
    Yeah, i got this working by using sftdlib
    https://github.com/xerpi/sftdlib