1. Mnecraft368

    OP Mnecraft368 I hate my name.
    Member

    Joined:
    Aug 8, 2015
    Messages:
    1,755
    Country:
    United Kingdom
    Hi,

    I wanna build portal3DS and yeti3DS (since its not in starter anymore) but im having trouble. I installed devKitARM and ctrulib and python 3. I get different errors for each one:

    main.c
    arm-none-eabi-gcc -MMD -MP -MF /c/Users/user/Desktop/yeti3DS-master/build/main.d -g -Wall -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/user/Desktop/yeti3DS-master/include -I/c/devkitPro/libctru/include -I/c/Users/user/Desktop/yeti3DS-master/build -DARM11 -D_3DS -c /c/Users/user/Desktop/yeti3DS-master/source/main.c -o main.o
    c:/Users/user/Desktop/yeti3DS-master/source/main.c: In function 'main':
    c:/Users/user/Desktop/yeti3DS-master/source/main.c:33:2: error: too many arguments to function 'hidInit'
    hidInit(NULL);
    ^~~~~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:43:0,
    from c:/Users/user/Desktop/yeti3DS-master/source/main.c:4:
    c:/devkitPro/libctru/include/3ds/services/hid.h:89:8: note: declared here
    Result hidInit(void);
    ^~~~~~~
    c:/Users/user/Desktop/yeti3DS-master/source/main.c:34:2: error: too many arguments to function 'irrstInit'
    irrstInit(NULL);
    ^~~~~~~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:44:0,
    from c:/Users/user/Desktop/yeti3DS-master/source/main.c:4:
    c:/devkitPro/libctru/include/3ds/services/irrst.h:18:8: note: declared here
    Result irrstInit(void);
    ^~~~~~~~~
    c:/Users/user/Desktop/yeti3DS-master/source/main.c:69:19: error: 'GSPEVENT_VBlank0' undeclared (first use in this function)
    gspWaitForEvent(GSPEVENT_VBlank0, true);
    ^~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/yeti3DS-master/source/main.c:69:19: note: each undeclared identifier is reported only once for each function it appears in
    make[1]: *** [main.o] Error 1
    make: *** [build] Error 2


    main.c
    arm-none-eabi-gcc -MMD -MP -MF /c/Users/user/Desktop/portal3DS-master/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/user/Desktop/portal3DS-master/include -I/c/devkitPro/libctru/include -I/c/Users/user/Desktop/portal3DS-master/build -DARM11 -D_3DS -mfp16-format=ieee -c /c/Users/user/Desktop/portal3DS-master/source/main.c -o main.o
    c:/Users/user/Desktop/portal3DS-master/source/main.c: In function 'GPU_SetDummyTexEnv':
    c:/Users/user/Desktop/portal3DS-master/source/main.c:55:2: warning: implicit declaration of function 'GPU_SetTexEnv' [-Wimplicit-function-declaration]
    GPU_SetTexEnv(num,
    ^~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c: In function 'renderFrame':
    c:/Users/user/Desktop/portal3DS-master/source/main.c:102:2: warning: implicit declaration of function 'GPU_SetViewport' [-Wimplicit-function-declaration]
    GPU_SetViewport((u32*)osConvertVirtToPhys((u32)outDepthBuffer),(u32*)osConvertVirtToPhys((u32)outBuffer),0,0,240,400);
    ^~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:102:44: warning: passing argument 1 of 'osConvertVirtToPhys' makes pointer from integer without a cast [-Wint-conversion]
    GPU_SetViewport((u32*)osConvertVirtToPhys((u32)outDepthBuffer),(u32*)osConvertVirtToPhys((u32)outBuffer),0,0,240,400);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:18:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/devkitPro/libctru/include/3ds/os.h:46:5: note: expected 'const void *' but argument is of type 'long unsigned int'
    u32 osConvertVirtToPhys(const void* vaddr);
    ^~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:102:91: warning: passing argument 1 of 'osConvertVirtToPhys' makes pointer from integer without a cast [-Wint-conversion]
    GPU_SetViewport((u32*)osConvertVirtToPhys((u32)outDepthBuffer),(u32*)osConvertVirtToPhys((u32)outBuffer),0,0,240,400);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:18:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/devkitPro/libctru/include/3ds/os.h:46:5: note: expected 'const void *' but argument is of type 'long unsigned int'
    u32 osConvertVirtToPhys(const void* vaddr);
    ^~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:104:9: warning: implicit declaration of function 'GPU_DepthMap' [-Wimplicit-function-declaration]
    GPU_DepthMap(-1.0f, 0.0f);
    ^~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:105:2: warning: implicit declaration of function 'GPU_SetFaceCulling' [-Wimplicit-function-declaration]
    GPU_SetFaceCulling(GPU_CULL_FRONT_CCW);
    ^~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:106:2: warning: implicit declaration of function 'GPU_SetStencilTest' [-Wimplicit-function-declaration]
    GPU_SetStencilTest(false, GPU_ALWAYS, 0x00, 0xFF, 0x00);
    ^~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:107:2: warning: implicit declaration of function 'GPU_SetStencilOp' [-Wimplicit-function-declaration]
    GPU_SetStencilOp(GPU_KEEP, GPU_KEEP, GPU_KEEP);
    ^~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:107:19: error: 'GPU_KEEP' undeclared (first use in this function)
    GPU_SetStencilOp(GPU_KEEP, GPU_KEEP, GPU_KEEP);
    ^~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:107:19: note: each undeclared identifier is reported only once for each function it appears in
    c:/Users/user/Desktop/portal3DS-master/source/main.c:108:2: warning: implicit declaration of function 'GPU_SetBlendingColor' [-Wimplicit-function-declaration]
    GPU_SetBlendingColor(0,0,0,0);
    ^~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:109:2: warning: implicit declaration of function 'GPU_SetDepthTestAndWriteMask' [-Wimplicit-function-declaration]
    GPU_SetDepthTestAndWriteMask(true, GPU_GREATER, GPU_WRITE_ALL);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:68:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/Users/user/Desktop/portal3DS-master/source/main.c:111:24: error: 'GPUREG_0062' undeclared (first use in this function)
    GPUCMD_AddMaskedWrite(GPUREG_0062, 0x1, 0);
    ^
    c:/devkitPro/libctru/include/3ds/gpu/gpu.h:11:89: note: in definition of macro 'GPUCMD_HEADER'
    #define GPUCMD_HEADER(incremental, mask, reg) (((incremental)<<31)|(((mask)&0xF)<<16)|((reg)&0x3FF))
    ^~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:111:2: note: in expansion of macro 'GPUCMD_AddMaskedWrite'
    GPUCMD_AddMaskedWrite(GPUREG_0062, 0x1, 0);
    ^~~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:112:18: error: 'GPUREG_0118' undeclared (first use in this function)
    GPUCMD_AddWrite(GPUREG_0118, 0);
    ^
    c:/devkitPro/libctru/include/3ds/gpu/gpu.h:11:89: note: in definition of macro 'GPUCMD_HEADER'
    #define GPUCMD_HEADER(incremental, mask, reg) (((incremental)<<31)|(((mask)&0xF)<<16)|((reg)&0x3FF))
    ^~~
    c:/devkitPro/libctru/include/3ds/gpu/gpu.h:100:35: note: in expansion of macro 'GPUCMD_AddMaskedWrite'
    #define GPUCMD_AddWrite(reg, val) GPUCMD_AddMaskedWrite((reg), 0xF, (val))
    ^~~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:112:2: note: in expansion of macro 'GPUCMD_AddWrite'
    GPUCMD_AddWrite(GPUREG_0118, 0);
    ^~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:114:2: warning: implicit declaration of function 'GPU_SetAlphaBlending' [-Wimplicit-function-declaration]
    GPU_SetAlphaBlending(GPU_BLEND_ADD, GPU_BLEND_ADD, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA);
    ^~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:115:2: warning: implicit declaration of function 'GPU_SetAlphaTest' [-Wimplicit-function-declaration]
    GPU_SetAlphaTest(false, GPU_ALWAYS, 0x00);
    ^~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:117:2: warning: implicit declaration of function 'GPU_SetTextureEnable' [-Wimplicit-function-declaration]
    GPU_SetTextureEnable(GPU_TEXUNIT0);
    ^~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:199:3: warning: implicit declaration of function 'GPU_SetScissorTest_' [-Wimplicit-function-declaration]
    GPU_SetScissorTest_(GPU_SCISSOR_NORMAL, 0, 0, 240, 400);
    ^~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:202:2: warning: implicit declaration of function 'GPU_FinishDrawing' [-Wimplicit-function-declaration]
    GPU_FinishDrawing();
    ^~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c: In function 'gameExit':
    c:/Users/user/Desktop/portal3DS-master/source/main.c:280:2: warning: implicit declaration of function 'exitWallDoors' [-Wimplicit-function-declaration]
    exitWallDoors();
    ^~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:281:2: warning: implicit declaration of function 'exitElevators' [-Wimplicit-function-declaration]
    exitElevators();
    ^~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:284:2: warning: implicit declaration of function 'exitBigButtons' [-Wimplicit-function-declaration]
    exitBigButtons();
    ^~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c: In function 'gameFrame':
    c:/Users/user/Desktop/portal3DS-master/source/main.c:347:18: error: 'GSPEVENT_VBlank0' undeclared (first use in this function)
    gspWaitForEvent(GSPEVENT_VBlank0, true);
    ^~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c: In function 'main':
    c:/Users/user/Desktop/portal3DS-master/source/main.c:380:2: warning: implicit declaration of function 'aptOpenSession' [-Wimplicit-function-declaration]
    aptOpenSession();
    ^~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:381:25: warning: passing argument 1 of 'APT_SetAppCpuTimeLimit' makes integer from pointer without a cast [-Wint-conversion]
    APT_SetAppCpuTimeLimit(NULL, 30);
    ^~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:33:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/devkitPro/libctru/include/3ds/services/apt.h:434:8: note: expected 'u32 {aka long unsigned int}' but argument is of type 'void *'
    Result APT_SetAppCpuTimeLimit(u32 percent);
    ^~~~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:381:2: error: too many arguments to function 'APT_SetAppCpuTimeLimit'
    APT_SetAppCpuTimeLimit(NULL, 30);
    ^~~~~~~~~~~~~~~~~~~~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:33:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/devkitPro/libctru/include/3ds/services/apt.h:434:8: note: declared here
    Result APT_SetAppCpuTimeLimit(u32 percent);
    ^~~~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:382:2: warning: implicit declaration of function 'aptCloseSession' [-Wimplicit-function-declaration]
    aptCloseSession();
    ^~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:389:3: warning: implicit declaration of function 'menuInit' [-Wimplicit-function-declaration]
    menuInit();
    ^~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:394:11: warning: implicit declaration of function 'menuFrame' [-Wimplicit-function-declaration]
    done = menuFrame();
    ^~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:397:3: warning: implicit declaration of function 'menuExit' [-Wimplicit-function-declaration]
    menuExit();
    ^~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:420:28: warning: format '%X' expects argument of type 'unsigned int', but argument 2 has type 'u32 {aka long unsigned int}' [-Wformat=]
    printf("linear heap : %08X\n",linearSpaceFree());
    ^
    c:/Users/user/Desktop/portal3DS-master/source/main.c:443:25: warning: passing argument 1 of 'APT_SetAppCpuTimeLimit' makes integer from pointer without a cast [-Wint-conversion]
    APT_SetAppCpuTimeLimit(NULL, 0);
    ^~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:33:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/devkitPro/libctru/include/3ds/services/apt.h:434:8: note: expected 'u32 {aka long unsigned int}' but argument is of type 'void *'
    Result APT_SetAppCpuTimeLimit(u32 percent);
    ^~~~~~~~~~~~~~~~~~~~~~
    c:/Users/user/Desktop/portal3DS-master/source/main.c:443:2: error: too many arguments to function 'APT_SetAppCpuTimeLimit'
    APT_SetAppCpuTimeLimit(NULL, 0);
    ^~~~~~~~~~~~~~~~~~~~~~
    In file included from c:/devkitPro/libctru/include/3ds.h:33:0,
    from c:/Users/user/Desktop/portal3DS-master/source/main.c:6:
    c:/devkitPro/libctru/include/3ds/services/apt.h:434:8: note: declared here
    Result APT_SetAppCpuTimeLimit(u32 percent);
    ^~~~~~~~~~~~~~~~~~~~~~
    make[1]: *** [main.o] Error 1
    make: *** [build] Error 2

    Please help :D thanks
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Building, Homebrew, source