BlockBuilder57 / xenomods

Some mod code for Xenoblade games on Switch.
MIT License
25 stars 7 forks source link

Building problem. #3

Closed 64dd closed 2 years ago

64dd commented 2 years ago

From youtube comments. Have problem building with cmake, inputing the first command from building instructions does nothing. image Including a text file with what is installed on msys2 pacman -Sl.txt here's pic of the environment env

64dd commented 2 years ago

Ok now I am doing this on a new pc with fresh install of devkitpro it still does the same thing..... What am I doing wrong?

  1. Installed devkitpro with switch dev checkmarked
  2. Installed cmake in msys2
  3. try to install git in msys2 but it says file is corrupted msys2 git log.txt
  4. So I git clone --recursive bf2mods in cmd
  5. cd bf2mods in msys2 and inputted cmake -Bbuild -DCMAKE_BUILD_TYPE=Release --toolchain cmake/NintendoSwitch.cmake
  6. does nothing image also was this supposed to make build directory for you or I am supposed to create the directory?
  7. mkdir build in msys2 and try that command again
  8. still nothing no output or error

new pc pacman -Sl.txt

Also how would one get ver 2.0.0 main for xc2? it seems that not a single person archives old update, the oldest I found is ver 2.0.1.

64dd commented 2 years ago

Testing switch homebrew example building it does work. image2

BlockBuilder57 commented 2 years ago

Hey sorry for not getting to this for a few days.

First of all, it seems like your pacman's keyring may be out of date. The signature is unknown trust issues come from missing keyring information, which you can find how to add here. I can see you have cmake installed though, which is really odd. I reinstalled about a week ago, and just installed cmake again, and everything works fine. out of the gate. Can you try adding --debug-output to your cmake command and seeing if that returns anything?

64dd commented 2 years ago

It says not to follow that if I used devkitpro installer? Adding --debug-output does nothing. image3

I am wondering if this will work better on windows subsystem for linux?

BlockBuilder57 commented 2 years ago

It might, I would at least try to give it a go.

64dd commented 2 years ago

ok using wsl2 now it shows a output. image4

64dd commented 2 years ago

fixed it but now finally it is giving cmake error log. image5 CMakeOutput.log CMakeError.log

64dd commented 2 years ago

Nvm also fixed it by installing build-essentials but now there is env error image6 CMakeOutput.log CMakeError.log

64dd commented 2 years ago

tried to make example homebrew but still tells me to set env variable image8

BlockBuilder57 commented 2 years ago

Frankly put I think your environment is just all sorts of screwed up. Did you actually install devkitPro on WSL itself?

64dd commented 2 years ago

Yes followed this https://devkitpro.org/wiki/devkitPro_pacman $ wget https://apt.devkitpro.org/install-devkitpro-pacman $ chmod +x ./install-devkitpro-pacman $ sudo ./install-devkitpro-pacman Installed cmake and switch-dev

64dd commented 2 years ago

using this command seems to work for building switch examples image9

64dd commented 2 years ago

nice switch stuff is now building. image10

64dd commented 2 years ago

sad using that command like that still don't work. image11

64dd commented 2 years ago

interesting for me editing the makeNso.cmake seems to work. cmake build I gonna guess only way to build this to edit all make file to point in opt/devkitpro

64dd commented 2 years ago

Ok that did not work. error make log.txt

64dd commented 2 years ago

I give up building, can you give me your prebuild main.npdm and subsdk1?

64dd commented 2 years ago

wait forget that comment windows cmake works now!!! cmake1 I just had to checkmark all dev option in devkitpro updater.

64dd commented 2 years ago

come on... npdm

64dd commented 2 years ago

only thing it made was npdm npdm nso windows make log.txt

BlockBuilder57 commented 2 years ago

Ah good news, I'm getting that as well. Let me look into that real quick.

BlockBuilder57 commented 2 years ago

It doesn't exactly solve the issue, but could you try using mingw's cmake? You can get it with pacman -S mingw-w64-x86_64-cmake. (Uninstall the normal cmake first!) It should then be in /mingw64/bin/cmake and the only change you should have to make is adding -G "MSYS Makefiles" to the start of the arguments.

64dd commented 2 years ago

it work finally! works final

BlockBuilder57 commented 2 years ago

Good stuff! I wish you luck. Remember, for the freecam, you need a second controller connected.