Hacking Can't Compile CTRCommon for FBI

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
I'm trying to compile @suloku 's fork of CTRCommon so I can compile FBI, however I get the following errors:

C:\Users\User\Desktop>mkdir st && cd st

C:\Users\User\Desktop\st>git clone https://github.com/suloku/ctrcommon.git
Cloning into 'ctrcommon'...
remote: Counting objects: 1249, done.
remote: Total 1249 (delta 0), reused 0 (delta 0), pack-reused 1249
Receiving objects: 100% (1249/1249), 3.46 MiB | 2.85 MiB/s, done.
Resolving deltas: 100% (734/734), done.

C:\Users\User\Desktop\st>cd ctrcommon

C:\Users\User\Desktop\st\ctrcommon>make
Submodule 'source/libkhax' (https://github.com/Myriachan/libkhax) registered for path '../source/libkhax'
Cloning into 'C:/Users/User/Desktop/st/ctrcommon/source/libkhax'...
Submodule path '../source/libkhax': checked out '93fdb60c1dff9fc45a885c1fd582209604fd5e01'
ctrcommon_font.bin
ctrcommon_shader.vsh
c:\Users\User\AppData\Local\Programs\Python\Python36-32\python.exe: can't open file 'c:/devkitPro/msys/aemstro_as.py': [Errno 2] No such file or directory
make[1]: *** [ctrcommon_shader.vsh.o] Error 2
make: *** [build] Error 2

C:\Users\User\Desktop\st\ctrcommon>make
ctrcommon_shader.vsh
app.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/User/Desktop/st/ctrcommon/build/app.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/User/Desktop/st/ctrcommon/include -I/c/devkitPro/libctru//include -I/c/Users/User/Desktop/st/ctrcommon/build -DARM11 -D_3DS -DLIBKHAX_AS_LIB -fno-rtti -fno-exceptions -std=gnu++11 -c /c/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp -o app.o
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'u8 appMediatypeToByte(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:32: error: 'mediatype_NAND' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:49: error: 'mediatype_SDMC' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'App appGetCiaInfo(std::__cxx11::string, MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:163:5: error: 'FS_archive' was not declared in this scope
FS_archive archive = (FS_archive) {ARCH_SDMC, (FS_path) {PATH_EMPTY, 1, (u8*) ""}};
^~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:164:54: error: 'archive' was not declared in this scope
Result archiveResult = FSUSER_OpenArchive(NULL, &archive);
^~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:77: error: 'PATH_CHAR' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:100: error: 'FS_makePath' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:117: error: 'FS_ATTRIBUTE_NONE' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:177:5: error: 'TitleList' was not declared in this scope
TitleList titleInfo;
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:178:75: error: 'titleInfo' was not declared in this scope
Result infoResult = AM_GetCiaFileInfo(appMediatypeToByte(mediaType), &titleInfo, handle);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'bool appIsInstalled(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:206:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(app.mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:213:102: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(app.mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'std::vector<App> appList(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:236:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:243:98: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:249:5: error: 'TitleList' was not declared in this scope
TitleList titleList[titleCount];
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:97: error: 'titleList' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:106: error: 'AM_ListTitles' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:262:50: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
AM_GetTitleProductCode(appMediatypeToByte(mediaType), titleId, app.productCode);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:276:8: note: initializing argument 1 of 'Result AM_GetTitleProductCode(FS_MediaType, u64, char*)'
Result AM_GetTitleProductCode(FS_MediaType mediatype, u64 titleId, char *productCode);
^~~~~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appInstall(MediaType, FILE*, u64, std::function<bool(long long unsigned int, long long unsigned int)>)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:311:63: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result startResult = AM_StartCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:186:8: note: initializing argument 1 of 'Result AM_StartCiaInstall(FS_MediaType, Handle*)'
Result AM_StartCiaInstall(FS_MediaType mediatype, Handle *ciaHandle);
^~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:329:91: error: 'FS_WRITE_NOFLUSH' was not declared in this scope
Result writeResult = FSFILE_Write(ciaHandle, NULL, pos, buf, (u32) bytesRead, FS_WRITE_NOFLUSH);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:331:37: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:347:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:352:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:357:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:365:88: error: too many arguments to function 'Result AM_FinishCiaInstall(Handle)'
Result finishResult = AM_FinishCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
^
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:204:8: note: declared here
Result AM_FinishCiaInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appDelete(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:380:51: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result res = AM_DeleteTitle(appMediatypeToByte(app.mediaType), app.titleId);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:226:8: note: initializing argument 1 of 'Result AM_DeleteTitle(FS_MediaType, u64)'
Result AM_DeleteTitle(FS_MediaType mediatype, u64 titleID);
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appLaunch(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:393:20: error: 'aptOpenSession' was not declared in this scope
aptOpenSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:394:106: error: 'APT_PrepareToDoAppJump' was not declared in this scope
Result prepareResult = APT_PrepareToDoAppJump(NULL, 0, app.titleId, appMediatypeToByte(app.mediaType));
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:396:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:401:66: error: 'APT_DoAppJump' was not declared in this scope
Result doResult = APT_DoAppJump(NULL, 0x300, 0x20, buf0, buf1);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:403:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:408:21: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
make[1]: *** [app.o] Error 1
make: *** [build] Error 2

C:\Users\User\Desktop\st\ctrcommon>make >makelog.txt
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'u8 appMediatypeToByte(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:32: error: 'mediatype_NAND' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:49: error: 'mediatype_SDMC' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'App appGetCiaInfo(std::__cxx11::string, MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:163:5: error: 'FS_archive' was not declared in this scope
FS_archive archive = (FS_archive) {ARCH_SDMC, (FS_path) {PATH_EMPTY, 1, (u8*) ""}};
^~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:164:54: error: 'archive' was not declared in this scope
Result archiveResult = FSUSER_OpenArchive(NULL, &archive);
^~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:77: error: 'PATH_CHAR' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:100: error: 'FS_makePath' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:117: error: 'FS_ATTRIBUTE_NONE' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:177:5: error: 'TitleList' was not declared in this scope
TitleList titleInfo;
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:178:75: error: 'titleInfo' was not declared in this scope
Result infoResult = AM_GetCiaFileInfo(appMediatypeToByte(mediaType), &titleInfo, handle);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'bool appIsInstalled(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:206:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(app.mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:213:102: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(app.mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'std::vector<App> appList(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:236:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:243:98: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:249:5: error: 'TitleList' was not declared in this scope
TitleList titleList[titleCount];
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:97: error: 'titleList' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:106: error: 'AM_ListTitles' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:262:50: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
AM_GetTitleProductCode(appMediatypeToByte(mediaType), titleId, app.productCode);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:276:8: note: initializing argument 1 of 'Result AM_GetTitleProductCode(FS_MediaType, u64, char*)'
Result AM_GetTitleProductCode(FS_MediaType mediatype, u64 titleId, char *productCode);
^~~~~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appInstall(MediaType, FILE*, u64, std::function<bool(long long unsigned int, long long unsigned int)>)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:311:63: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result startResult = AM_StartCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:186:8: note: initializing argument 1 of 'Result AM_StartCiaInstall(FS_MediaType, Handle*)'
Result AM_StartCiaInstall(FS_MediaType mediatype, Handle *ciaHandle);
^~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:329:91: error: 'FS_WRITE_NOFLUSH' was not declared in this scope
Result writeResult = FSFILE_Write(ciaHandle, NULL, pos, buf, (u32) bytesRead, FS_WRITE_NOFLUSH);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:331:37: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:347:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:352:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:357:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:365:88: error: too many arguments to function 'Result AM_FinishCiaInstall(Handle)'
Result finishResult = AM_FinishCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
^
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:204:8: note: declared here
Result AM_FinishCiaInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appDelete(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:380:51: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result res = AM_DeleteTitle(appMediatypeToByte(app.mediaType), app.titleId);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:226:8: note: initializing argument 1 of 'Result AM_DeleteTitle(FS_MediaType, u64)'
Result AM_DeleteTitle(FS_MediaType mediatype, u64 titleID);
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appLaunch(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:393:20: error: 'aptOpenSession' was not declared in this scope
aptOpenSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:394:106: error: 'APT_PrepareToDoAppJump' was not declared in this scope
Result prepareResult = APT_PrepareToDoAppJump(NULL, 0, app.titleId, appMediatypeToByte(app.mediaType));
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:396:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:401:66: error: 'APT_DoAppJump' was not declared in this scope
Result doResult = APT_DoAppJump(NULL, 0x300, 0x20, buf0, buf1);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:403:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:408:21: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
make[1]: *** [app.o] Error 1
make: *** [build] Error 2

C:\Users\User\Desktop\st\ctrcommon>dir
Volume in drive C is OS Drive
Volume Serial Number is 6C21-FC98

Directory of C:\Users\User\Desktop\st\ctrcommon

07/11/2017 11:14 PM <DIR> .
07/11/2017 11:14 PM <DIR> ..
07/11/2017 11:13 PM 58 .gitignore
07/11/2017 11:13 PM 99 .gitmodules
07/11/2017 11:13 PM <DIR> build
07/11/2017 11:13 PM <DIR> data
07/11/2017 11:13 PM <DIR> include
07/11/2017 11:13 PM <DIR> lib
07/11/2017 11:13 PM 1,061 LICENSE.txt
07/11/2017 11:13 PM 6,134 Makefile
07/11/2017 11:14 PM 479 makelog.txt
07/11/2017 11:13 PM 337 README.md
07/11/2017 11:13 PM <DIR> source
07/11/2017 11:13 PM <DIR> tools
6 File(s) 8,168 bytes
8 Dir(s) 1,739,870,208 bytes free

C:\Users\User\Desktop\st\ctrcommon>makelog.txt

C:\Users\User\Desktop\st\ctrcommon>make install
app.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/User/Desktop/st/ctrcommon/build/app.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/User/Desktop/st/ctrcommon/include -I/c/devkitPro/libctru//include -I/c/Users/User/Desktop/st/ctrcommon/build -DARM11 -D_3DS -DLIBKHAX_AS_LIB -fno-rtti -fno-exceptions -std=gnu++11 -c /c/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp -o app.o
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'u8 appMediatypeToByte(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:32: error: 'mediatype_NAND' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:49: error: 'mediatype_SDMC' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'App appGetCiaInfo(std::__cxx11::string, MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:163:5: error: 'FS_archive' was not declared in this scope
FS_archive archive = (FS_archive) {ARCH_SDMC, (FS_path) {PATH_EMPTY, 1, (u8*) ""}};
^~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:164:54: error: 'archive' was not declared in this scope
Result archiveResult = FSUSER_OpenArchive(NULL, &archive);
^~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:77: error: 'PATH_CHAR' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:100: error: 'FS_makePath' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:117: error: 'FS_ATTRIBUTE_NONE' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:177:5: error: 'TitleList' was not declared in this scope
TitleList titleInfo;
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:178:75: error: 'titleInfo' was not declared in this scope
Result infoResult = AM_GetCiaFileInfo(appMediatypeToByte(mediaType), &titleInfo, handle);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'bool appIsInstalled(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:206:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(app.mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:213:102: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(app.mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'std::vector<App> appList(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:236:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:243:98: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:249:5: error: 'TitleList' was not declared in this scope
TitleList titleList[titleCount];
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:97: error: 'titleList' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:106: error: 'AM_ListTitles' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:262:50: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
AM_GetTitleProductCode(appMediatypeToByte(mediaType), titleId, app.productCode);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:276:8: note: initializing argument 1 of 'Result AM_GetTitleProductCode(FS_MediaType, u64, char*)'
Result AM_GetTitleProductCode(FS_MediaType mediatype, u64 titleId, char *productCode);
^~~~~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appInstall(MediaType, FILE*, u64, std::function<bool(long long unsigned int, long long unsigned int)>)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:311:63: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result startResult = AM_StartCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:186:8: note: initializing argument 1 of 'Result AM_StartCiaInstall(FS_MediaType, Handle*)'
Result AM_StartCiaInstall(FS_MediaType mediatype, Handle *ciaHandle);
^~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:329:91: error: 'FS_WRITE_NOFLUSH' was not declared in this scope
Result writeResult = FSFILE_Write(ciaHandle, NULL, pos, buf, (u32) bytesRead, FS_WRITE_NOFLUSH);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:331:37: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:347:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:352:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:357:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:365:88: error: too many arguments to function 'Result AM_FinishCiaInstall(Handle)'
Result finishResult = AM_FinishCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
^
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:204:8: note: declared here
Result AM_FinishCiaInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appDelete(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:380:51: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result res = AM_DeleteTitle(appMediatypeToByte(app.mediaType), app.titleId);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:226:8: note: initializing argument 1 of 'Result AM_DeleteTitle(FS_MediaType, u64)'
Result AM_DeleteTitle(FS_MediaType mediatype, u64 titleID);
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appLaunch(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:393:20: error: 'aptOpenSession' was not declared in this scope
aptOpenSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:394:106: error: 'APT_PrepareToDoAppJump' was not declared in this scope
Result prepareResult = APT_PrepareToDoAppJump(NULL, 0, app.titleId, appMediatypeToByte(app.mediaType));
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:396:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:401:66: error: 'APT_DoAppJump' was not declared in this scope
Result doResult = APT_DoAppJump(NULL, 0x300, 0x20, buf0, buf1);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:403:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:408:21: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
make[1]: *** [app.o] Error 1
make: *** [build] Error 2

C:\Users\User\Desktop\st\ctrcommon>make
app.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/Users/User/Desktop/st/ctrcommon/build/app.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/User/Desktop/st/ctrcommon/include -I/c/devkitPro/libctru//include -I/c/Users/User/Desktop/st/ctrcommon/build -DARM11 -D_3DS -DLIBKHAX_AS_LIB -fno-rtti -fno-exceptions -std=gnu++11 -c /c/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp -o app.o
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'u8 appMediatypeToByte(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:32: error: 'mediatype_NAND' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:42:49: error: 'mediatype_SDMC' was not declared in this scope
return mediaType == NAND ? mediatype_NAND : mediatype_SDMC;
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'App appGetCiaInfo(std::__cxx11::string, MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:163:5: error: 'FS_archive' was not declared in this scope
FS_archive archive = (FS_archive) {ARCH_SDMC, (FS_path) {PATH_EMPTY, 1, (u8*) ""}};
^~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:164:54: error: 'archive' was not declared in this scope
Result archiveResult = FSUSER_OpenArchive(NULL, &archive);
^~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:77: error: 'PATH_CHAR' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:100: error: 'FS_makePath' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:171:117: error: 'FS_ATTRIBUTE_NONE' was not declared in this scope
Result openResult = FSUSER_OpenFile(NULL, &handle, archive, FS_makePath(PATH_CHAR, file.c_str()), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
^~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:177:5: error: 'TitleList' was not declared in this scope
TitleList titleInfo;
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:178:75: error: 'titleInfo' was not declared in this scope
Result infoResult = AM_GetCiaFileInfo(appMediatypeToByte(mediaType), &titleInfo, handle);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'bool appIsInstalled(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:206:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(app.mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:213:102: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(app.mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'std::vector<App> appList(MediaType)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:236:66: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result titleCountResult = AM_GetTitleCount(appMediatypeToByte(mediaType), &titleCount);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:76:8: note: initializing argument 1 of 'Result AM_GetTitleCount(FS_MediaType, u32*)'
Result AM_GetTitleCount(FS_MediaType mediatype, u32 *count);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:243:98: error: 'AM_GetTitleIdList' was not declared in this scope
Result titleIdsResult = AM_GetTitleIdList(appMediatypeToByte(mediaType), titleCount, titleIds);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:249:5: error: 'TitleList' was not declared in this scope
TitleList titleList[titleCount];
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:97: error: 'titleList' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:250:106: error: 'AM_ListTitles' was not declared in this scope
Result titleListResult = AM_ListTitles(appMediatypeToByte(mediaType), titleCount, titleIds, titleList);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:262:50: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
AM_GetTitleProductCode(appMediatypeToByte(mediaType), titleId, app.productCode);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:276:8: note: initializing argument 1 of 'Result AM_GetTitleProductCode(FS_MediaType, u64, char*)'
Result AM_GetTitleProductCode(FS_MediaType mediatype, u64 titleId, char *productCode);
^~~~~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appInstall(MediaType, FILE*, u64, std::function<bool(long long unsigned int, long long unsigned int)>)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:311:63: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result startResult = AM_StartCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:186:8: note: initializing argument 1 of 'Result AM_StartCiaInstall(FS_MediaType, Handle*)'
Result AM_StartCiaInstall(FS_MediaType mediatype, Handle *ciaHandle);
^~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:329:91: error: 'FS_WRITE_NOFLUSH' was not declared in this scope
Result writeResult = FSFILE_Write(ciaHandle, NULL, pos, buf, (u32) bytesRead, FS_WRITE_NOFLUSH);
^~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:331:37: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:347:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:352:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:357:29: error: invalid conversion from 'Handle* {aka long unsigned int*}' to 'Handle {aka long unsigned int}' [-fpermissive]
AM_CancelCIAInstall(&ciaHandle);
^~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:198:8: note: initializing argument 1 of 'Result AM_CancelCIAInstall(Handle)'
Result AM_CancelCIAInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:365:88: error: too many arguments to function 'Result AM_FinishCiaInstall(Handle)'
Result finishResult = AM_FinishCiaInstall(appMediatypeToByte(mediaType), &ciaHandle);
^
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:204:8: note: declared here
Result AM_FinishCiaInstall(Handle ciaHandle);
^~~~~~~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appDelete(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:380:51: error: invalid conversion from 'u8 {aka unsigned char}' to 'FS_MediaType' [-fpermissive]
Result res = AM_DeleteTitle(appMediatypeToByte(app.mediaType), app.titleId);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from c:/devkitPro/libctru/include/3ds.h:31:0,
from c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:14:
c:/devkitPro/libctru/include/3ds/services/am.h:226:8: note: initializing argument 1 of 'Result AM_DeleteTitle(FS_MediaType, u64)'
Result AM_DeleteTitle(FS_MediaType mediatype, u64 titleID);
^~~~~~~~~~~~~~
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp: In function 'AppResult appLaunch(App)':
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:393:20: error: 'aptOpenSession' was not declared in this scope
aptOpenSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:394:106: error: 'APT_PrepareToDoAppJump' was not declared in this scope
Result prepareResult = APT_PrepareToDoAppJump(NULL, 0, app.titleId, appMediatypeToByte(app.mediaType));
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:396:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:401:66: error: 'APT_DoAppJump' was not declared in this scope
Result doResult = APT_DoAppJump(NULL, 0x300, 0x20, buf0, buf1);
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:403:25: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
c:/Users/User/Desktop/st/ctrcommon/source/ctrcommon/app.cpp:408:21: error: 'aptCloseSession' was not declared in this scope
aptCloseSession();
^
make[1]: *** [app.o] Error 1
make: *** [build] Error 2

C:\Users\User\Desktop\st\ctrcommon>

I have the most up-to-date CTRULIB and aemstro.
 

fr3quency

Well-Known Member
Member
Joined
Jan 11, 2016
Messages
811
Trophies
0
Age
32
Location
Wherever my imagination decides.
Website
fr3quency.deviantart.com
XP
823
Country
Greece
You don't need CTRcommon or aemstro in order to compile FBI. What you need is what I write here(except Python) https://gbatemp.net/threads/tutorial-how-to-sync-compile-aureinand.420787/ PLUS citro3d(the "next" branch) https://github.com/fincs/citro3d/tree/next (you can compile it with the following command "git clone -b next --single-branch https://github.com/fincs/citro3d.git"

If you need the binaries for the .ZIP(you might get an error during compilation about zip missing which is NOT crucial at all), those can be found here http://www.willus.com/archive/zip64 (put them in \devkitPro\devkitARM\bin)

An environment for most of the basic 3DS stuff would consist of: GIT, Python 3.x, devkitPRO, MinGW, ctrulib, citro3d, citrus, armips, bannertool and makerom(to compile the latest version you need MinGW-w64).

With the above stuff I can compile Luma3DS, FBI, GodMode9, boot9strap, arm9loaderhax, SafeA9Installer, SafeB9Installer, firmtool, TWSaveTool, CTRXplorer and makerom(IF you have MinGW-w64)


Edit: I compiled the latest FBI version, in case you need it in order to do something, that contains everything(.3dsx, .cia, servefiles etc): https://www.sendspace.com/file/1v5pjj
https://www.sendspace.com/file/1v5pjj
Hope you get it compiled! It's addicting. xD
 
Last edited by fr3quency,
  • Like
Reactions: CaptainSwag101

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
You don't need CTRcommon or aemstro in order to compile FBI. What you need is what I write here(except Python) https://gbatemp.net/threads/tutorial-how-to-sync-compile-aureinand.420787/ PLUS citro3d(the "next" branch) https://github.com/fincs/citro3d/tree/next (you can compile it with the following command "git clone -b next --single-branch https://github.com/fincs/citro3d.git"

If you need the binaries for the .ZIP(you might get an error during compilation about zip missing which is NOT crucial at all), those can be found here http://www.willus.com/archive/zip64 (put them in \devkitPro\devkitARM\bin)

An environment for most of the basic 3DS stuff would consist of: GIT, Python 3.x, devkitPRO, MinGW, ctrulib, citro3d, citrus, armips, bannertool and makerom(to compile the latest version you need MinGW-w64).

With the above stuff I can compile Luma3DS, FBI, GodMode9, boot9strap, arm9loaderhax, SafeA9Installer, SafeB9Installer, firmtool, TWSaveTool, CTRXplorer and makerom(IF you have MinGW-w64)


Edit: I compiled the latest FBI version, in case you need it in order to do something, that contains everything(.3dsx, .cia, servefiles etc): https://www.sendspace.com/file/1v5pjj
Hope you get it compiled! It's addicting. xD
Thanks for the help! When I try to compile FBI I get the following error:

Makefile:11: /c/devkitPro/ctrcommon/tools/make_base: No such file or directory
make: *** No rule to make target `/c/devkitPro/ctrcommon/tools/make_base'. Stop.

It seems to be looking for a CTRCommon folderin my devkitPro directory, but I'm not able to compile CTRCommon. I followed your guide. The FBI GitHub page also mentions CTRCommon is required for FBI to compile.
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
You don't need CTRcommon or aemstro in order to compile FBI. What you need is what I write here(except Python) https://gbatemp.net/threads/tutorial-how-to-sync-compile-aureinand.420787/ PLUS citro3d(the "next" branch) https://github.com/fincs/citro3d/tree/next (you can compile it with the following command "git clone -b next --single-branch https://github.com/fincs/citro3d.git"

If you need the binaries for the .ZIP(you might get an error during compilation about zip missing which is NOT crucial at all), those can be found here http://www.willus.com/archive/zip64 (put them in \devkitPro\devkitARM\bin)

An environment for most of the basic 3DS stuff would consist of: GIT, Python 3.x, devkitPRO, MinGW, ctrulib, citro3d, citrus, armips, bannertool and makerom(to compile the latest version you need MinGW-w64).

With the above stuff I can compile Luma3DS, FBI, GodMode9, boot9strap, arm9loaderhax, SafeA9Installer, SafeB9Installer, firmtool, TWSaveTool, CTRXplorer and makerom(IF you have MinGW-w64)


Edit: I compiled the latest FBI version, in case you need it in order to do something, that contains everything(.3dsx, .cia, servefiles etc): https://www.sendspace.com/file/1v5pjj
Hope you get it compiled! It's addicting. xD
I was able to compile Citro3D, by the way.
 

fr3quency

Well-Known Member
Member
Joined
Jan 11, 2016
Messages
811
Trophies
0
Age
32
Location
Wherever my imagination decides.
Website
fr3quency.deviantart.com
XP
823
Country
Greece
Thanks for the help! When I try to compile FBI I get the following error:



It seems to be looking for a CTRCommon folderin my devkitPro directory, but I'm not able to compile CTRCommon. I followed your guide. The FBI GitHub page also mentions CTRCommon is required for FBI to compile.
I'm compiling for 1+ year now. Trust me on what I say. :P If you follow my guide to the letter and add citro3d and citrus(the compiled versions, only the "include"and "lib" folders) into \devkitPro\libctru\ you will be good to go.

Also,the FBI page mentions "Requires devkitARM and citro3d to build. When building against the latest ctrulib source, make sure to use the "next" branch of citro3d." There is no mention of CTRcommon, I don't know where you saw it.
 

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
I'm compiling for 1+ year now. Trust me on what I say. :P If you follow my guide to the letter and add citro3d and citrus(the compiled versions, only the "include"and "lib" folders) into \devkitPro\libctru\ you will be good to go.

Also,the FBI page mentions "Requires devkitARM and citro3d to build. When building against the latest ctrulib source, make sure to use the "next" branch of citro3d." There is no mention of CTRcommon, I don't know where you saw it.
After copying over those binaries I was able to compile the latest version of FBI :yay3ds:
Now I realize it was the older versions of FBI that required CTRCommon. I'm trying to compile an older version because, afaik, the ability to install CIA's to that NAND and not the SD card has been removed.
 

fr3quency

Well-Known Member
Member
Joined
Jan 11, 2016
Messages
811
Trophies
0
Age
32
Location
Wherever my imagination decides.
Website
fr3quency.deviantart.com
XP
823
Country
Greece
After copying over those binaries I was able to compile the latest version of FBI :yay3ds:
Now I realize it was the older versions of FBI that required CTRCommon. I'm trying to compile an older version because, afaik, the ability to install CIA's to that NAND and not the SD card has been removed.
That my friend I don't know. :P Why would you want to though? FBI knows where to install what you try to install, so if you're trying to install a DSi for example I believe it will be installed in NAND.
 
Last edited by fr3quency,

dpad_5678

Ape weak on own. Ape strong in unity.
OP
Member
Joined
Nov 19, 2015
Messages
2,219
Trophies
1
XP
2,880
Country
United States
That my friend I don't know. :P Why would you want to though? FBI knows where to install what you try do install, so if you're trying to install a DSi for example I believe it will be installed in NAND.
I'm trying to install a few dev apps to NAND for shits and giggles, lol. Anyways, thanks for your help! I was able to compile everything you mentioned as well, so now I can finally modify GodMode9 the way I wanted to! :grog::yay3ds:
 

fr3quency

Well-Known Member
Member
Joined
Jan 11, 2016
Messages
811
Trophies
0
Age
32
Location
Wherever my imagination decides.
Website
fr3quency.deviantart.com
XP
823
Country
Greece
I'm trying to install a few dev apps to NAND for shits and giggles, lol. Anyways, thanks for your help! I was able to compile everything you mentioned as well, so now I can finally modify GodMode9 the way I wanted to! :grog::yay3ds:
Nice! On that ISO site there are some dev apps that are installed to NAND even if you use FBI(I had tried on o3DS and after the format DevMenu persisted). I believe it was in one of Apache Thunder's threads(the thread's title also specifies it), so you might want to give it a go.
 
  • Like
Reactions: dpad_5678

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.