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

Files Missing from N64MidiLibrary #45

Closed
L-Spiro opened this issue Sep 27, 2022 · 4 comments
Closed

Files Missing from N64MidiLibrary #45

L-Spiro opened this issue Sep 27, 2022 · 4 comments

Comments

@L-Spiro
Copy link
Contributor

L-Spiro commented Sep 27, 2022

When trying to build N64MidiLibrary.vcproj the following errors appear:

1>Compiling...
1>BlitzDecoder.cpp
1>c1xx : fatal error C1083: Cannot open source file: '.\BlitzDecoder.cpp': No such file or directory
1>MidiParse.cpp
1>j:\my projects\midiworks\n64-tools-master\n64 midi tool\n64midilibrary\midiparse.cpp(19) : fatal error C1083: Cannot open include file: 'n643docompression.h': No such file or directory
1>n643docompression.cpp
1>c1xx : fatal error C1083: Cannot open source file: '.\n643docompression.cpp': No such file or directory
1>yaz0.cpp
1>c1xx : fatal error C1083: Cannot open source file: '.\yaz0.cpp': No such file or directory

The missing files do exist at N64-Tools-master\N64 Sound Tool\N64SoundListToolUpdated\N64SoundLibrary but are part of the MIDI library project while not being in the MIDI library folder.
Are these files supposed to be copied over manually? Is the MIDI Library project file supposed to be loaded as part of another project/solution?

@SubDrag
Copy link
Collaborator

SubDrag commented Sep 28, 2022

OK good point, guess it's never been right here. I had to rename the folder as the builds do not like spaces as well. If you pull latest you should now be able to build all 3 tools successfully.

@SubDrag
Copy link
Collaborator

SubDrag commented Sep 28, 2022

Haven't fully tested but...also note, if you are compiling for a later visual studio (Beyond Visual Studio 2008 SP1) for N64 Midi Tool or N64 Sound Tool, all you need to do is update targetver.h, such as replacing it entirely, like below in all of those files. You also may need to remove vld.lib (visual leak detector) from some Linker->Input if you don't have it installed or it's not working for that version of Visual studio. I do not believe N64 Soundbank Tool works in later versions due to DirectMusic.

#pragma once

#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0603 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

@L-Spiro
Copy link
Contributor Author

L-Spiro commented Sep 28, 2022

Luckily I have kept all versions of Visual Studio I have ever owned on disc, so I have 2005, 2008, 2015, 2017, 2019, and 2022.
But in order to get past the MFC issues I had to download Visual Studio 2008 Feature Pack.
I’ve also had to modify Additional Include directories, the library search directories, etc. (maybe you fixed this issue by renaming the folders, but there is still a change to make for the DirectX SDK to work:
C:\Program Files (x86)\Microsoft DirectX SDK (August 2006)\Samples\C++\DXUT\Optional -> $(DXSDK_DIR)Samples\C++\DXUT\Optional
and
C:\Program Files (x86)\Microsoft DirectX SDK (August 2006)\Include -> $(DXSDK_DIR)Include)
Also had to add quotes to the custom build steps (copies the .ini files in release builds).

So once I get this all working I intend to write a guide on how to build, and then later I should have a merge request with these changes already made and a smaller guide for what to download/install.

Since you changed some folders and things here I will start over after getting this update and document everything I have to do.

@SubDrag
Copy link
Collaborator

SubDrag commented Oct 10, 2022

Closed by #48

@SubDrag SubDrag closed this as completed Oct 10, 2022
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

2 participants