Mysterious SMDH File Error when compiling

Discussion in '3DS - Homebrew Development and Emulators' started by iSubaru, May 14, 2015.

  1. iSubaru
    OP

    iSubaru Kitsune

    Member
    360
    18
    Apr 14, 2009
    Poland
    Gensokyo
    Hello there~

    I'm trying finally coding something for 3DS with ctrulib and devkitpro, however after going through step-by-step of setting up all this stuff as written here http://3dbrew.org/wiki/Setting_up_Development_Environment I have bumped onto a problem.
    I did all as written here with the exception of not installing devkitpro in /opt but in my home folder, however the export linking worked just fine so that should not be the issue (probably).
    When I try to compile anything, even the examples I get such lines in the terminal:
    Code:
    smbbot.png
    smbbot.bgr
    main.c
    arm-none-eabi-gcc -MMD -MP -MF /home/Kiiro/devkitpro/3DS_Projects/application/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/home/Kiiro/devkitpro/3DS_Projects/application/include -I/home/Kiiro/devkitpro/libctru/include -I/home/Kiiro/devkitpro/3DS_Projects/application/build -DARM11 -D_3DS -c /home/Kiiro/devkitpro/3DS_Projects/application/source/main.c -o main.o 
    linking application.elf
    Cannot open SMDH file!
    
    /home/Kiiro/devkitpro/devkitARM/3ds_rules:34: polecenia dla obiektu '/home/Kiiro/devkitpro/3DS_Projects/application/application.3dsx' nie powiodły się
    make[1]: *** [/home/Kiiro/devkitpro/3DS_Projects/application/application.3dsx] Błąd 1
    rm smbbot.bgr
    Makefile:143: polecenia dla obiektu 'build' nie powiodły się
    make: *** [build] Błąd 2
    Now for some translation stuff:
    "polecenia dla obiektu" == "command(s) for object"
    "nie powiodły się" == "failed"
    "błąd" == "error"
    "polecenia dla obiektu 'build' nie powiodły się" == "command(s) for object 'build' failed"
    More or less that would be it.

    I have checked permissions for writing but heck, I should have permission in my own folder right?

    Thank you for advance and have a nice day~

    iSubaru
     
  2. iSubaru
    OP

    iSubaru Kitsune

    Member
    360
    18
    Apr 14, 2009
    Poland
    Gensokyo
    Nevermind, after a long struggle I have figured that out.
    Topic can be closed and/or trash-can'd.

    iSubaru
     
  3. ground

    ground GBAtemp Advanced Fan

    Member
    909
    281
    Mar 22, 2007
    Netherlands
    well, I get this error too, do you mind explaining what fixed it for you?
     
  4. dfsa3fdvc1

    dfsa3fdvc1 GBAtemp Regular

    Member
    228
    104
    Jan 3, 2015
    Albania
    Can you please explain this? I get this error as well. Not even sure waht it means TBH, I get the .ELF file that runs fine but still.