1. battlecatsahead

    OP battlecatsahead GBAtemp Regular
    Member

    Joined:
    May 28, 2020
    Messages:
    147
    Country:
    Canada
    i just installed ubuntu, and when i installed devkitpro, and i cant finds the examples to get a makefile, so does anyone know where it installs them?
     
    Scott_pilgrim likes this.
  2. IC_

    IC_ GBAtemp Maniac
    Member

    Joined:
    Aug 24, 2017
    Messages:
    1,182
    Country:
    Poland
    It's in /opt/devkitpro/examples/ on my system, it could be different on your ubuntu though.
     
  3. battlecatsahead

    OP battlecatsahead GBAtemp Regular
    Member

    Joined:
    May 28, 2020
    Messages:
    147
    Country:
    Canada
    yeah they are there, thank you so much for telling me

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

    but now i am getting this error
    opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: main.o: in function `main':
    /home/battlq64/Desktop/3ds/platformer/source/main.c:72: undefined reference to `C3D_Init'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:73: undefined reference to `C2D_Init'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:74: undefined reference to `C2D_Prepare'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:78: undefined reference to `C2D_CreateScreenTarget'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:79: undefined reference to `C2D_CreateScreenTarget'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:134: undefined reference to `C3D_FrameBegin'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:135: undefined reference to `C2D_TargetClear'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: main.o: in function `C2D_SceneBegin':
    /opt/devkitpro/libctru/include/c2d/base.h:243: undefined reference to `C2D_Flush'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /opt/devkitpro/libctru/include/c2d/base.h:244: undefined reference to `C3D_FrameDrawOn'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: main.o: in function `C2D_SceneTarget':
    /opt/devkitpro/libctru/include/c2d/base.h:222: undefined reference to `C2D_SceneSize'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: main.o: in function `C2D_DrawRectSolid':
    /opt/devkitpro/libctru/include/c2d/base.h:382: undefined reference to `C2D_DrawRectangle'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /opt/devkitpro/libctru/include/c2d/base.h:382: undefined reference to `C2D_DrawRectangle'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /opt/devkitpro/libctru/include/c2d/base.h:382: undefined reference to `C2D_DrawRectangle'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: main.o: in function `main':
    /home/battlq64/Desktop/3ds/platformer/source/main.c:142: undefined reference to `C3D_FrameEnd'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:146: undefined reference to `C2D_Fini'
    /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/ld: /home/battlq64/Desktop/3ds/platformer/source/main.c:147: undefined reference to `C3D_Fini'
    collect2: error: ld returned 1 exit status
    make[1]: *** [/opt/devkitpro/devkitARM/3ds_rules:42: /home/battlq64/Desktop/3ds/platformer/platformer.elf] Error 1
    make: *** [Makefile:165: all] Error 2
    do you know why it happens, it didnt give it when i was using windows
     
    Scott_pilgrim likes this.
  4. zoogie

    zoogie playing around in the dsiware
    Developer

    Joined:
    Nov 30, 2014
    Messages:
    8,157
    Country:
    Micronesia, Federated States of
    Scott_pilgrim likes this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - devkitpro, examples, install