Building from SVN

Cody Mitchell
Junior Member
Posts: 4
Joined: Mon Oct 25, 2010 6:03 pm

Building from SVN

Post by Cody Mitchell »

I am using Microsoft Visual Studio 2010 on Windows 7 Service Pack 1 x64.

 

When building the appropriate (VBA2010.sln) Solution File, I encounter an error...

 

Error 27 error MSB3721: The command "C:\Users\Cody Mitchell\Desktop\VBA-M\trunk\project\vs2010_mfc\..\..\..\dependencies\nasm.exe -o "C:\Users\Cody Mitchell\Desktop\VBA-M\trunk\project\vs2010_mfc\x64\Release_temp\2xSaImmx.obj" -DDJGPP -O1 -f win32 -Xvc -- ..\..\src\filters\2xSaImmx.asm" exited with code 1. C:\Users\Cody Mitchell\Desktop\VBA-M\trunk\project\vs2010_mfc\nasm.targets 45 6 VisualBoyAdvance-M

 

I have only been able to run that command successfully by opening a cmd.exe window and executing the following:

Code: Select all

nasm.exe -o "C:\Users\Cody Mitchell\Desktop\VBA-M\trunk\project\vs2010_mfc\x64\Release_temp\2xSaImmx.obj" -D__DJGPP__ -O1 -f win32 -Xvc  --  ..\trunk\src\filters\2xSaImmx.asm

 

Any help in building would be appreciated.

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Building from SVN

Post by Squall Leonhart »

nasm is not handling command lines with spaces passed to it from vc2010 for some reason. its strange because the command line is wrapped in quotes like is required to pass the command line but it still fails.

 

moving it a location where the directory path has no spaces will resolve it.

Last edited by Squall Leonhart on Tue Oct 26, 2010 6:47 am, edited 1 time in total.
Cody Mitchell
Junior Member
Posts: 4
Joined: Mon Oct 25, 2010 6:03 pm

Building from SVN

Post by Cody Mitchell »

Thank you, this did help, though now I get 4 more errors...

 

Error 17 error C1083: Cannot open include file: 'D3dx9core.h': No such file or directory C:\vba-m\trunk\src\win32\Direct3D.cpp 29 1 VisualBoyAdvance-M

Error 18 error C1083: Cannot open include file: 'al.h': No such file or directory c:\vba-m\trunk\src\win32\LoadOAL.h 3 1 VisualBoyAdvance-M

Error 19 error C1083: Cannot open include file: 'al.h': No such file or directory C:\vba-m\trunk\src\win32\OpenAL.cpp 13 1 VisualBoyAdvance-M

Error 20 error C1083: Cannot open include file: 'xaudio2.h': No such file or directory C:\vba-m\trunk\src\win32\XAudio2.cpp 13 1 VisualBoyAdvance-M

 

 

Sorry to bother you, but the latest x64 build is about 100 revisions off, so I figured I'd do it myself... though I've always been more of a ./configure guy. [img]<fileStore.core_Emoticons>/emoticons/laugh.png[/img]/emoticons/laugh@2x.png 2x" width="20" height="20" />

Universal
Junior Member
Posts: 42
Joined: Sun Oct 24, 2010 1:01 pm

Building from SVN

Post by Universal »

Also, try using single quotes instead of double quotes. From what I was reading, it had to put a double quote around both ends of the command, but because of this, when reading the command and running it, the double quotes in the middle caused it to assume that the command string ended there and there was yet another string afterwords.

 

Edit: Or if possible, instead of single quotes, use an escape character, like in programming. ie \" Not sure it it would work in command line though but it's just a thought.

Last edited by Universal on Tue Oct 26, 2010 10:13 pm, edited 1 time in total.
Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Building from SVN

Post by Squall Leonhart »

Error 17 error C1083: Cannot open include file: 'D3dx9core.h': No such file or directory C:\vba-m\trunk\src\win32\Direct3D.cpp 29 1 VisualBoyAdvance-M
Error 18 error C1083: Cannot open include file: 'al.h': No such file or directory c:\vba-m\trunk\src\win32\LoadOAL.h 3 1 VisualBoyAdvance-M

Error 19 error C1083: Cannot open include file: 'al.h': No such file or directory C:\vba-m\trunk\src\win32\OpenAL.cpp 13 1 VisualBoyAdvance-M

Error 20 error C1083: Cannot open include file: 'xaudio2.h': No such file or directory C:\vba-m\trunk\src\win32\XAudio2.cpp 13 1 VisualBoyAdvance-M

 

install the DirectX SDK, and openal sdk, and add them as VCC directories.

Universal
Junior Member
Posts: 42
Joined: Sun Oct 24, 2010 1:01 pm

Building from SVN

Post by Universal »

The properties of the project needs to be modified. Currently it directs it's include and library files to the OpenAL folder as well as the old August 2009 DirectX sdk. When every DirectX SDK is installed, it adds a path titled $(DXSDK_DIR) while changing it's folder name, which is currently June 2010.

 

It would be recommended that the svn be updated to accommodate that.

 

Just in case, the $(DXSDK_DIR) has the backslash in it, so for example pointing to the DirectX SDK's include folder would be $(DXSDK_DIR)include, instead of $(DXSDK_DIR)\include

 

Hope that is helpful as well.

Last edited by Universal on Wed Oct 27, 2010 7:49 pm, edited 1 time in total.
Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Building from SVN

Post by Squall Leonhart »

OpenAL default installs to the specified location, and VC2010 does not load the DX Sdk from any directory by default, so i was just setting its default directory,

 

was easier to just define the full location >.>

Last edited by Squall Leonhart on Thu Oct 28, 2010 8:29 am, edited 1 time in total.
Universal
Junior Member
Posts: 42
Joined: Sun Oct 24, 2010 1:01 pm

Building from SVN

Post by Universal »

Yes, it does have to be manually loaded, but the DirectX SDK June2010 download page has a section that explains how to integrate it by using the environment variable instead of just going straight to the DirectX SDK page.

 

Here's a long quote from the page, as well as a link to the source just to help.

 

"With Visual Studio 2010, the model for adding include, library, and executable paths has changed. In Visual Studio 2008 and previous versions, paths were specified as global settings under Tools\Options. With Visual Studio 2010, paths are now specified on a per-project basis on a VC++ Directories page. All the Visual Studio 2010 projects for the DirectX SDK samples and tools include direct per-project references to the DirectX SDK--via the DXSDK_DIR environment variable--and will compile without any additional steps."

 

http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3021d52b-514e-41d3-ad02-438a3ba730ba

 

FYI: I'm brand new to the programming scene, and can barely get past nodes, classes, and other things. I honestly don't know how to act around professionals. I do apologize if I seem rude or anything. I'm not trying to be.

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Building from SVN

Post by Squall Leonhart »

im probably ruder [img]<fileStore.core_Emoticons>/emoticons/tongue.png[/img]/emoticons/tongue@2x.png 2x" width="20" height="20" /> the way we aussies interact is usually crude to most others lol.

Universal
Junior Member
Posts: 42
Joined: Sun Oct 24, 2010 1:01 pm

Building from SVN

Post by Universal »

Lol. Well, even so, I wouldn't want to piss of someone who holds a gunblade. Those things can poke an eye out, and I need both of mine.

Post Reply