Coder Social home page Coder Social logo

3dslink's People

Contributors

endrift avatar oreo639 avatar wintermute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

3dslink's Issues

stdio redirection not working under Windows 10?

I've been using the latest 3dslink on my Artix Linux laptop with no issue. I set up a Windows 10 laptop with all the devkitPro tools tonight and tried 3dslink on it. Uploading the executable works just fine, but when my app launches and tries to redirect stdio, it just hangs forever, and the laptop does nothing after printing server active .... Is there some configuration issue here or something else?

Failure to build from source

It looks like the 3DS libraries broke compatibility at some point. Due to namespace pollution, decompress conflicts with another library function and FSUSER_OpenFileDirectly has an additional parameter.

$ make
main.c
arm-none-eabi-gcc -MMD -MP -MF /home/cameron/programming/3dslink/3ds/build/main.d -g -Wall -O3 -mword-relocations -std=gnu99 -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/home/cameron/programming/3dslink/3ds/include -I/opt/devkitpro/portlibs/3ds/include -I/opt/devkitpro/libctru/include -I/home/cameron/programming/3dslink/3ds/build -DARM11 -D_3DS -c /home/cameron/programming/3dslink/3ds/source/main.c -o main.o 
/home/cameron/programming/3dslink/3ds/source/main.c:96:5: error: conflicting types for 'decompress'
   96 | int decompress(int sock, FILE *fh, size_t filesize) {
      |     ^~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds.h:25,
                 from /home/cameron/programming/3dslink/3ds/source/main.c:20:
/opt/devkitpro/libctru/include/3ds/util/decompress.h:100:1: note: previous definition of 'decompress' was here
  100 | decompress(void *output, size_t size, decompressCallback callback,
      | ^~~~~~~~~~
/home/cameron/programming/3dslink/3ds/source/main.c: In function 'main':
/home/cameron/programming/3dslink/3ds/source/main.c:259:3: warning: implicit declaration of function 'hbInit'; did you mean 'psInit'? [-Wimplicit-function-declaration]
  259 |   hbInit();
      |   ^~~~~~
      |   psInit
/home/cameron/programming/3dslink/3ds/source/main.c:347:5: warning: implicit declaration of function 'HB_GetBootloaderAddresses' [-Wimplicit-function-declaration]
  347 |     HB_GetBootloaderAddresses((void**)&callBootloader, (void**)&setArgs);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/cameron/programming/3dslink/3ds/source/main.c:348:5: warning: implicit declaration of function 'hbExit'; did you mean 'psExit'? [-Wimplicit-function-declaration]
  348 |     hbExit();
      |     ^~~~~~
      |     psExit
/home/cameron/programming/3dslink/3ds/source/main.c:349:5: warning: implicit declaration of function 'sdmcExit'; did you mean 'socExit'? [-Wimplicit-function-declaration]
  349 |     sdmcExit();
      |     ^~~~~~~~
      |     socExit
/home/cameron/programming/3dslink/3ds/source/main.c:353:42: warning: excess elements in scalar initializer
  353 |     sdmcArchive=(FS_Archive){0x00000009, (FS_Path){PATH_EMPTY, 1, (u8*)""}};
      |                                          ^
/home/cameron/programming/3dslink/3ds/source/main.c:353:42: note: (near initialization for '(anonymous)')
/home/cameron/programming/3dslink/3ds/source/main.c:354:97: error: incompatible type for argument 4 of 'FSUSER_OpenFileDirectly'
  354 | Directly(&hbFileHandle, sdmcArchive, fsMakePath(PATH_ASCII, executablePath), FS_OPEN_READ, 0);
      |                                                                              ^~~~~~~~~~~~
      |                                                                              |
      |                                                                              int

In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
                 from /opt/devkitpro/libctru/include/3ds.h:33,
                 from /home/cameron/programming/3dslink/3ds/source/main.c:20:
/opt/devkitpro/libctru/include/3ds/services/fs.h:318:98: note: expected 'FS_Path' but argument is of type 'int'
  318 | leDirectly(Handle* out, FS_ArchiveID archiveId, FS_Path archivePath, FS_Path filePath, u32 openFlags, u32 attributes);
      |                                                                      ~~~~~~~~^~~~~~~~

/home/cameron/programming/3dslink/3ds/source/main.c:354:5: error: too few arguments to function 'FSUSER_OpenFileDirectly'
  354 |     FSUSER_OpenFileDirectly(&hbFileHandle, sdmcArchive, fsMakePath(PATH_ASCII, executablePath), FS_OPEN_READ, 0);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libctru/include/3ds/services/am.h:7,
                 from /opt/devkitpro/libctru/include/3ds.h:33,
                 from /home/cameron/programming/3dslink/3ds/source/main.c:20:
/opt/devkitpro/libctru/include/3ds/services/fs.h:318:8: note: declared here
  318 | Result FSUSER_OpenFileDirectly(Handle* out, FS_ArchiveID archiveId, FS_Path archivePath, FS_Path filePath, u32 openFlags, u32 attributes);
      |        ^~~~~~~~~~~~~~~~~~~~~~~
/opt/devkitpro/devkitARM/base_rules:84: recipe for target 'main.o' failed
make[1]: *** [main.o] Error 1
Makefile:144: recipe for target 'build' failed
make: *** [build] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.