Compile C++ for GBA in under an hour! (using Butano + devkitPro + WSL2)

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ม.ค. 2025

ความคิดเห็น • 46

  • @cineminttechtips
    @cineminttechtips  2 ปีที่แล้ว +20

    Like this comment to dislike the video

    • @bovemax
      @bovemax ปีที่แล้ว +4

      I liked the comment and the video :)

    • @espartangod
      @espartangod ปีที่แล้ว +2

      @@bovemax me too

  • @gregmcpherson5671
    @gregmcpherson5671 12 วันที่ผ่านมา +2

    A nice start. I found the Butano and devkit, but thanks for a little help gluing it together. Saved me hitting my head on a brick wall for a few days.

  • @reesebrown6417
    @reesebrown6417 ปีที่แล้ว +10

    Thank you so much for being one of the few people I have found who make a fully explanatory video on GBA programming. I am a CS student graduating soon and wanting to program a GBA game for fun and have struggled a lot finding a good introductory explanation.

  • @lucanicklas147
    @lucanicklas147 2 ปีที่แล้ว +5

    Thanks a lot for this! I havent finished it yet, but am very gratefull that videos like yours exist!

  • @elrisitas8508
    @elrisitas8508 2 ปีที่แล้ว +16

    i just googled this and i find a vid posted less than 24h ago

  • @Mishamallow
    @Mishamallow ปีที่แล้ว +3

    This video is a helpful starting point, thanks! I learned Lua the same way by reverse engineering code and adding onto it, so hopefully that process is as effective here

  • @0hmyshoes
    @0hmyshoes หลายเดือนก่อน +1

    Is the discord channel still around? The link does not work. I would love to join.

    • @cineminttechtips
      @cineminttechtips  หลายเดือนก่อน

      I apologize! The Discord is open. Check out my website at cinemint.online , it should have a working link.

  • @codingjhames
    @codingjhames ปีที่แล้ว +2

    So when i tried to make an example i just recieved this error message in console: "make -j8
    Makefile:58: Emu/butano/butano/butano.mak: No such file or directory
    make: *** No rule to make target 'Emu/butano/butano/butano.mak'. Stop"
    same way for the "make -j18" command

    • @laradio700
      @laradio700 ปีที่แล้ว +1

      I got the same error and I've tried tinkering with the Makefile file to no result. The problem is probably there tho.

    • @happygofishing
      @happygofishing ปีที่แล้ว

      could be the tabs being messed up/spaces?

  • @404Silver
    @404Silver 4 หลายเดือนก่อน +1

    I managed to compile an example game but how do i make my own?

    • @cineminttechtips
      @cineminttechtips  4 หลายเดือนก่อน

      1. Conceptualize how your game will work, 2. Look at example code and the Butanol docs as a reference, 3. Engineer it. You got this 🫡

  • @bloxanimates2518
    @bloxanimates2518 ปีที่แล้ว +1

    At 14:40 when we install devkitarm, I run into an error which tells me that the download was too slow and it stops downloading. I can't get past this

    • @bloxanimates2518
      @bloxanimates2518 ปีที่แล้ว +1

      Nevermind my internet was just slow as hell it worked

    • @bloxanimates2518
      @bloxanimates2518 ปีที่แล้ว

      Nevermind my internet was just slow as hell it worked

  • @unLinuxeroMas
    @unLinuxeroMas 2 ปีที่แล้ว +3

    bro this is some neat infor what about c/c++ code on java and antic phones

  • @billybolton6555
    @billybolton6555 ปีที่แล้ว +2

    wsl fricked up after i installed the python and git.. i just typed yes. and it entered like you did and the whole systme just crashed ive rebooted my pc multiple times and now its just not working

    • @cineminttechtips
      @cineminttechtips  ปีที่แล้ว

      You tried completely uninstalling WSL and reinstalling it?

    • @billybolton6555
      @billybolton6555 ปีที่แล้ว

      @@cineminttechtips it wont completly uninstall.. i got it working again tho. but when i continued following your totorial it started dumping the linux files i installed into my user directory. so now im at another stand still. would it be viable just to use virtual box or somthing?

  • @z-4975
    @z-4975 ปีที่แล้ว +2

    Hello, thank you very much for your video. I have a question.
    in the part of the video at 17:20 when I try to execute the command
    ~/butane/games/varooom-3d$ make =j2
    j2 because I only have 2 cores :,)
    but when I execute it I get a problem with the variable
    make: *** empty variable name. Stop.
    can you help me please

    • @cineminttechtips
      @cineminttechtips  ปีที่แล้ว +2

      I don't think I've seen that error before, but your command seems malformed. May you please give me a little more information?

    • @z-4975
      @z-4975 ปีที่แล้ว +2

      clear. my error appears when I try to execute the "make" command
      I tried to run it only as make, I also tried to write "make =j2" but it also gives me an error
      When I only use Maker it appears:
      bash: line 1: python: command not found
      make[1]: *** [/home/liche/butano/butano/tools/common_setup.mak:79: build] Error 127
      make: *** [/home/liche/butano/butano/tools/common_setup.mak:75: all] Error 2
      when I use maker =j2:
      make: *** empty variable name. Stop.
      Sorry if I can't explain my question well lol, @@cineminttechtips thanks for your support

    • @cineminttechtips
      @cineminttechtips  ปีที่แล้ว +2

      The line you want to use is "make -j2", not "make =j2". Does that solve your problem?

    • @z-4975
      @z-4975 ปีที่แล้ว

      ​@@cineminttechtips
      sorry for the inconvenience, I tried it as you indicated with "maker j-2".
      but I got this error.
      -bash: maker: command not found
      at first it didn't let me download python, because it told me that the package was out of date and only let me install phython3, would my error be because of python3?
      this appeared when I installed python
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      Package python is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      However the following packages replace it:
      python-is-python3 2to3
      E: Package 'python' has no installation candidate
      sorry for the inconvenience and thanks for the help maestro

  • @lord_klump3705
    @lord_klump3705 ปีที่แล้ว +1

    followed your tutorial... got to the part where you type make to make the roms... it gives me this error: butano.mak:201: build] Error 127

    • @cineminttechtips
      @cineminttechtips  ปีที่แล้ว +1

      I'd be happy to help over Discord! Send me a message at @cinemint and I'll see what I can do.

    • @lord_klump3705
      @lord_klump3705 ปีที่แล้ว +1

      @@cineminttechtips will do after I get back from work today

    • @blatantexpression2599
      @blatantexpression2599 ปีที่แล้ว

      @@lord_klump3705 had this same issue how did you guys fix if you managed to

  • @Dostofei44
    @Dostofei44 5 หลายเดือนก่อน +1

    Can it be done without WSL? I mean I prefer to use windows only

    • @cineminttechtips
      @cineminttechtips  4 หลายเดือนก่อน +1

      It can be, I’ll admit I don’t know how myself though

  • @Kaktus22
    @Kaktus22 ปีที่แล้ว +1

    Is there a way to compile C++ for Wii using this method? thx.

    • @myrealusername2193
      @myrealusername2193 ปีที่แล้ว +1

      Yes, but not using Butano. At the step where you install the gba-dev packages, instead install wii-dev, and then that’s it. It will have installed some examples (all of which are in C, but you can use C++) at /opt/devkitpro/examples/wii
      You can also search for other libraries if you want to install them additionally

  • @rib_rob_personal
    @rib_rob_personal ปีที่แล้ว +1

    So I was following along and I ran into a problem while trying to install python via ubuntu (in the video you said really debian and ubuntu are identical for our purposes so I just stuck with ubuntu). I'm getting the error "Package 'python' has no installation candidate". Is there any fix to that? Also, I already have Python3. Should I even bother? Any help would be greatly appreciated!

    • @cineminttechtips
      @cineminttechtips  ปีที่แล้ว

      If you have python3, no need to worry! You should be good. Worst case scenario, try this on the command line:
      alias python=python3

  • @blatantexpression2599
    @blatantexpression2599 ปีที่แล้ว +1

    i installed python3 did teh alias thing just in case but when i tried teh make j-12 (i also have 12 processors) i got this error
    make[1]: *** [/home/gianml/butano/butano/butano.mak:206: build] Error 127
    make: *** [/home/gianml/butano/butano/butano.mak:202: all] Error 2

    • @dutchmansem6228
      @dutchmansem6228 ปีที่แล้ว +1

      i modified the makefile with: nano Makefile and edited python to python3 that resolved the problem for me

    • @cineminttechtips
      @cineminttechtips  ปีที่แล้ว +1

      Installing the package "python-is-python3" also works.

  • @Kaktus22
    @Kaktus22 ปีที่แล้ว +1

    Is there a way to compile C++ for Wii using this method? thx.