jombo23 / N64-Tools

N64 Tools
The Unlicense
239 stars 113 forks source link

Files Missing from N64MidiLibrary #45

Closed L-Spiro closed 1 year ago

L-Spiro commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Closed by https://github.com/jombo23/N64-Tools/pull/48