Homebrew SF2Dlib gives Undefined Reference errors to Citro3D functions

YugamiSekai

Mr. Picross
OP
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,387
Country
United States
For some reason SF2Dlib, along with the other "Simple Fast" libraries always outputs errors like these:

Code:
<image>.jpeg
main.c
arm-none-eabi-gcc -MMD -MP -MF /c/~/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/~/include -IC:\devkitPro\libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/~/build -DARM11 -D_3DS -c/c/~/source/main.c -o main.o
c:/~/source/main.c: In function 'main':
c:/~/source/main.c:15:16: warning: unused variable 'tex1' [-Wunused-variable]
  sf2d_texture *tex1 = sfil_load_JPEG_buffer(<image>_jpeg, <image>_jpeg_size, SF2D_PLACE_RAM);
               ^~~~
linking sfil_sample.elf
C:\devkitPro\libctru/lib\libsf2d.a(sf2d.o): In function `sf2d_fini':
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:95: undefined reference to `C3D_Fini'
C:\devkitPro\libctru/lib\libsf2d.a(sf2d.o): In function `sf2d_swapbuffers':
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:154: undefined reference to `C3D_FrameEnd'
C:\devkitPro\libctru/lib\libsf2d.a(sf2d.o): In function `sf2d_init_advanced':
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:45: undefined reference to `C3D_Init'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:52: undefined reference to `C3D_RenderTargetSetOutput'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:53: undefined reference to `C3D_RenderTargetSetOutput'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:54: undefined reference to `C3D_RenderTargetSetOutput'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:70: undefined reference to `C3D_BindProgram'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:71: undefined reference to `C3D_CullFace'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:72: undefined reference to `C3D_DepthTest'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:85: undefined reference to `C3D_BoolUnifs'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d.c:85: undefined reference to `C3D_BoolUnifsDirty'
C:\devkitPro\libctru/lib\libsf2d.a(sf2d_texture.o): In function `sf2d_create_texture':
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d_texture.c:34: undefined reference to `C3D_TexInit'
c:/`/Desktop/sf2dlib-master/libsf2d/source/sf2d_texture.c:44: undefined reference to `C3D_TexSetWrap'
c:/Users/Kaleb/Desktop/sf2dlib-master/libsf2d/source/sf2d_texture.c:36: undefined reference to `C3D_TexInitVRAM'
C:\devkitPro\libctru/lib\libsf2d.a(sf2d_texture.o): In function `sf2d_create_rendertarget':
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d_texture.c:53: undefined reference to `C3D_RenderTargetCreate'
c:/~/Desktop/sf2dlib-master/libsf2d/source/sf2d_texture.c:60: undefined reference to `Mtx_OrthoTilt'
C:\devkitPro\libctru/lib\libsf2d.a(sf2d_texture.o): In function `sf2d_clear_target':
c:/`/Desktop/sf2dlib-master/libsf2d/source/sf2d_texture.c:81: undefined reference to `C3D_RenderTargetSetClear'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [/c/~/sfil_sample.elf] Error 1
make: *** [build] Error 2
 

YugamiSekai

Mr. Picross
OP
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,387
Country
United States
Are you linking to citro3d by adding "-lcitro3d" to your compile command?
Additionally, you may have to recompile sf2dlib if citro3d or ctrulib has been updated (i think).
I added the link and it gave me the same error and recompiled with the error. But the errors direct to a sf2dlib folder on my Desktop, when that folder isn't even there.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I should make a poll for bigonya to change his username to DrunkOnYa
    +1
  • BigOnYa @ BigOnYa:
    That's my alt
    +1
  • K3Nv2 @ K3Nv2:
    I don't wanna go to the store someone go for me
  • BigOnYa @ BigOnYa:
    Call my wifey, tell her pick up stuff on her way over.
  • K3Nv2 @ K3Nv2:
    Pick up my door dash meat me in the allyway
    +1
  • BigOnYa @ BigOnYa:
    Wifey is busy, so ill send my buddy @AncientBoi , in his gimp outfit. "who ordered the 6" sausage?""
  • K3Nv2 @ K3Nv2:
    Like subway it's false advertising
    +1
  • BigOnYa @ BigOnYa:
    Ok "who ordered the Vienna sausage?"
  • K3Nv2 @ K3Nv2:
    Uremum
    +1
  • BigOnYa @ BigOnYa:
    My buddy convince me to download and play poker game with him yesterday, called Four Kings Casino, its pretty fun actually, you create a avatar and walk around in a virtual casino, and play any table, or slots with others online.There's even a dance club and bowling alley.
  • SylverReZ @ SylverReZ:
    They should bring advertisements like this back LOL.
  • BakerMan @ BakerMan:
    or that german ninja turtle commercial
    +1
  • K3Nv2 @ K3Nv2:
    Forgot to buy BBQ sauce at the store so made my own ffs
  • RedColoredStars @ RedColoredStars:
    Blues Hog BBQ sauces are pretty good.
  • K3Nv2 @ K3Nv2:
    My insurance has a thing where if I do a virtual visit they'll just send me a $100 gift card to Walmart I'm about to sell a company my medical history for $100 lol
  • BigOnYa @ BigOnYa:
    My insurance has a thing called, " Nope, we aren't paying for that." that they like to use on us all the time. Then we play the "Ok we will go to some other insurance company." then they miraculously say ok we will pay for that.
  • The_Dizzy_Vizzy @ The_Dizzy_Vizzy:
    Well look at what the cat dragged in!!!
  • BigOnYa @ BigOnYa:
    Hey, do you feel any older?
  • K3Nv2 @ K3Nv2:
    No I don't
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, not right now
    +1
  • BigOnYa @ BigOnYa:
    @K3Nv2 That's my phrase, stop it
    +1
  • K3Nv2 @ K3Nv2:
    Your phrase is I'm not drunk
    +1
  • Xdqwerty @ Xdqwerty:
    I feel a discomfort in my throat
    Xdqwerty @ Xdqwerty: I feel a discomfort in my throat