Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile the source code under Windows 10. #68

Open
omonim2007 opened this issue Sep 22, 2023 · 6 comments
Open

Can't compile the source code under Windows 10. #68

omonim2007 opened this issue Sep 22, 2023 · 6 comments

Comments

@omonim2007
Copy link

Can't compile the game under Windows 10.

Every time after entering "make ." command in shell I have a message:

"pwd" is not internal or external
command, executable program, or batch file.
make: Nothing to be done for '.'.

I used Chocolate, MinGW and some several other ways to run make command, but the result is always the same.

@NovaSquirrel
Copy link
Owner

NovaSquirrel commented Sep 22, 2023

On Windows I use msys2 to build it. I'll make a note of that in the readme. You may be able to just delete the makefile line that references pwd since I don't think it's used.

@omonim2007
Copy link
Author

Much better now.

After some dozens of operations (~1 min) it stopped with this error:

gcc audio/brr/gssbrr.c -o audio/brr/gssbrr
process_begin: CreateProcess(NULL, gcc audio/brr/gssbrr.c -o audio/brr/gssbrr, ...) failed.
make (e=2): The specified file cannot be found.
make: *** [audio/brr/gssbrr] Error 2

@NovaSquirrel
Copy link
Owner

That's an error about not having a C compiler. I went and added it to the repo so people don't need to get a compiler just for one utility.

@omonim2007
Copy link
Author

omonim2007 commented Sep 22, 2023

It seems I could beat it ))

I installed a GCC and have corrected some libraries. Now I have compiled the game.

Is it normally we haven't in-game sound? And first screen is corrupted (image attached):

nova-the-squirrel-2_new000

@NovaSquirrel
Copy link
Owner

Yeah there's no sound yet. It doesn't look like that on a real SNES or any emulator I've tried so I don't know what's going on there.

@john-pericos
Copy link

john-pericos commented Nov 23, 2023

Here are steps that worked for me (as of November 2023):

Install WSL and Ubuntu (Ubuntu 22.04.3 LTS codename: jammy) in Windows 10.

Install the following tools/utils/updates:

sudo apt update

sudo apt full-upgrade

sudo apt install x11-apps

sudo apt install make

sudo apt install build-essential

Run the following to install the dependencies in Ubutntu terminal:

sudo apt-get install libsdl2-dev

sudo apt-get install libsdl2-image-dev

sudo apt-get install libsdl2-ttf-dev

Then go to the directory where you have PrincessEdit2 source and run make.
Usually you would navigate through c drive that is mounted on Ubutntu (e.g. cd /mnt/c ) if you place the project PrincessEdit2 source in windows C drive.

After that you should be able to find editor built in the root of the PrincessEdit2 directory. Chmod the file as executable.

Execute the editor like so:

./editor slopedemo.json

You should now see this window pop up:
image

Ctrl-S to save
1-9 to change layers
w,a,s,d to scroll level
i,j,k,l to move tile
e to insert tile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants