Page 1 of 1

Cannot compile bgk's linking build

Posted: Sat Mar 02, 2013 4:50 pm
by AutoFire

I cannot compile bgk's linking build on Windows 7. Here is the full output of attempting to build in VS2010:

1>------ Rebuild All started: Project: zlib, Configuration: Release Win32 ------
2>------ Rebuild All started: Project: SFML, Configuration: Release Win32 ------

1> adler32.c

1> compress.c

1> crc32.c

2> SocketHelper.cpp

2> Ftp.cpp

2> Http.cpp

1> deflate.c

2> IPAddress.cpp

1> gzio.c

2> Packet.cpp

1> infback.c

1> inffast.c

2> SelectorBase.cpp

1> inflate.c

2> SocketTCP.cpp

2> SocketUDP.cpp

1> inftrees.c

1> trees.c

1> uncompr.c

1> zutil.c

2> Thread.cpp

1> zlib.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Release\zlib.lib

3>------ Rebuild All started: Project: libpng, Configuration: Release Win32 ------

4>------ Rebuild All started: Project: File_Extractor, Configuration: Release Win32 ------

3> pngerror.c

4> 7zAlloc.c

4> 7zBuf.c

4> 7zCrc.c

4> 7zCrcOpt.c

4> 7zDec.c

4> 7zIn.c

4> 7zStream.c

4> Bcj2.c

4> Bra.c

4> Bra86.c

4> CpuArch.c

4> Lzma2Dec.c

4> LzmaDec.c

4> Ppmd7.c

4> Ppmd7Dec.c

3> png.c

4> Binary_Extractor.cpp

4> blargg_common.cpp

4> blargg_errors.cpp

4> Data_Reader.cpp

4> fex.cpp

4> File_Extractor.cpp

4> Gzip_Extractor.cpp

4> Gzip_Reader.cpp

4> Rar_Extractor.cpp

4> Zip7_Extractor.cpp

4> Zip_Extractor.cpp

4> Zlib_Inflater.cpp

2> sfml-network.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Release\SFML.lib

3> pngget.c

3> pngmem.c

3> pngpread.c

3> pngread.c

3> pngrio.c

3> pngrtran.c

3> pngrutil.c

3> pngset.c

3> pngtrans.c

3> pngwio.c

3> pngwrite.c

3> pngwtran.c

3> pngwutil.c

4> File_Extractor2010.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Release\File_Extractor.lib

3> libpng.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\dependencies\libpng\project\vs2010\Win32\Release\libpng.lib

5>------ Rebuild All started: Project: VisualBoyAdvance-M, Configuration: Release Win32 ------

5> SubWCRev : E155007: 'C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link' is not a working copy

5> Assembling...

5>C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\nasm.targets(45,5): error MSB3721: The command "C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\..\..\..\dependencies\nasm.exe -o "C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Win32\Release_temp\2xSaImmx.obj" -DDJGPP -O1 -f win32 -Xvc -- ..\..\src\filters\2xSaImmx.asm" exited with code 1.

========== Rebuild All: 4 succeeded, 1 failed, 0 skipped ==========

 

What do I do?


Cannot compile bgk's linking build

Posted: Sat Mar 02, 2013 10:06 pm
by Squall Leonhart

move the source code into a path without spaces.

 

fixed

pull svn 1170 or download the latest tarball


Cannot compile bgk's linking build

Posted: Sun Mar 03, 2013 11:22 am
by AutoFire

1>------ Rebuild All started: Project: zlib, Configuration: Release Win32 ------
2>------ Rebuild All started: Project: SFML, Configuration: Release Win32 ------

1> adler32.c

1> compress.c

1> crc32.c

1> deflate.c

1> gzio.c

1> infback.c

1> inffast.c

2> SocketHelper.cpp

2> Ftp.cpp

2> Http.cpp

2> IPAddress.cpp

2> Packet.cpp

1> inflate.c

2> SelectorBase.cpp

1> inftrees.c

2> SocketTCP.cpp

2> SocketUDP.cpp

1> trees.c

1> uncompr.c

1> zutil.c

2> Thread.cpp

1> zlib.vcxproj -> C:\VBA-M\source\bgk-link\project\vs2010_mfc\Release\zlib.lib

3>------ Rebuild All started: Project: libpng, Configuration: Release Win32 ------

4>------ Rebuild All started: Project: File_Extractor, Configuration: Release Win32 ------

4> 7zAlloc.c

4> 7zBuf.c

4> 7zCrc.c

4> 7zCrcOpt.c

4> 7zDec.c

4> 7zIn.c

4> 7zStream.c

4> Bcj2.c

4> Bra.c

4> Bra86.c

4> CpuArch.c

4> Lzma2Dec.c

4> LzmaDec.c

4> Ppmd7.c

4> Ppmd7Dec.c

2> sfml-network.vcxproj -> C:\VBA-M\source\bgk-link\project\vs2010_mfc\Release\SFML.lib

3> pngerror.c

4> Binary_Extractor.cpp

4> blargg_common.cpp

4> blargg_errors.cpp

4> Data_Reader.cpp

4> fex.cpp

4> File_Extractor.cpp

4> Gzip_Extractor.cpp

4> Gzip_Reader.cpp

4> Rar_Extractor.cpp

4> Zip7_Extractor.cpp

4> Zip_Extractor.cpp

4> Zlib_Inflater.cpp

3> png.c

3> pngget.c

3> pngmem.c

3> pngpread.c

3> pngread.c

3> pngrio.c

3> pngrtran.c

3> pngrutil.c

3> pngset.c

4> File_Extractor2010.vcxproj -> C:\VBA-M\source\bgk-link\project\vs2010_mfc\Release\File_Extractor.lib

3> pngtrans.c

3> pngwio.c

3> pngwrite.c

3> pngwtran.c

3> pngwutil.c

3> libpng.vcxproj -> C:\VBA-M\source\dependencies\libpng\project\vs2010\Win32\Release\libpng.lib

5>------ Rebuild All started: Project: VisualBoyAdvance-M, Configuration: Release Win32 ------

5> SubWCRev : E155007: 'C:\VBA-M\source\bgk-link' is not a working copy

5> Assembling...

5> stdafx.cpp

5>c:\vba-m\source\bgk-link\src\win32\stdafx.h(21): fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory

========== Rebuild All: 4 succeeded, 1 failed, 0 skipped ==========

 

I got the GNU tarball of svn 1170, and I even put it in a directory with no spaces. It still won't compile. I am a total noob when it comes to C++. What now?

 

EDIT: The problem appears to be that I am broke. Searching the internet, it appears that afxwin.h is something that only comes with the paid-up version of VS2010, and I'm using the express edition. Apparently, I'm screwed.

 

FURTHER EDIT: It would seem the afxwin.h is far from the only necessary file the VS2010 EE fails to include. I am definitely screwed; I cannot compile VBA-M on my system because I am too broke to pay for VS2010.


Cannot compile bgk's linking build

Posted: Sun Mar 03, 2013 1:30 pm
by AdamN

AFXWIN is part of MFC which is not available on Express version

You can try to find and installs Platform/Windows SDK (which i heard also includes MFC) from MS site or somewhere else (ie. open source project or something)

Or you can try using afxwin.h (and other missing files) from here http://www.cppdoc.com/example/mfc/classdoc/MFC/


Cannot compile bgk's linking build

Posted: Sun Mar 03, 2013 3:30 pm
by AutoFire

I finally caved and downloaded the trial version of VS 2010 Pro, installed SP1, and VBA-M still failed to compile, with this as the output:

 

1>------ Rebuild All started: Project: zlib, Configuration: Release Win32 ------
2>------ Rebuild All started: Project: SFML, Configuration: Release Win32 ------

1>Build started 3/3/2013 6:42:07 PM.

1>InitializeBuildStatus:

1> Creating "Release\zlib.unsuccessfulbuild" because "AlwaysCreate" was specified.

2>Build started 3/3/2013 6:42:07 PM.

2>InitializeBuildStatus:

2> Creating "Release\SFML.unsuccessfulbuild" because "AlwaysCreate" was specified.

1>ClCompile:

1> adler32.c

2>ClCompile:

2> SocketHelper.cpp

1> compress.c

2> Ftp.cpp

1> crc32.c

1> deflate.c

1> gzio.c

2> Http.cpp

1> infback.c

1> inffast.c

2> IPAddress.cpp

2> Packet.cpp

1> inflate.c

2> SelectorBase.cpp

2> SocketTCP.cpp

2> SocketUDP.cpp

1> inftrees.c

1> trees.c

1> uncompr.c

1> zutil.c

2> Thread.cpp

1>Lib:

1> zlib.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Release\zlib.lib

1>FinalizeBuildStatus:

1> Deleting file "Release\zlib.unsuccessfulbuild".

1> Touching "Release\zlib.lastbuildstate".

1>

1>Build succeeded.

1>

1>Time Elapsed 00:00:06.64

3>------ Rebuild All started: Project: libpng, Configuration: Release Win32 ------

4>------ Rebuild All started: Project: File_Extractor, Configuration: Release Win32 ------

3>Build started 3/3/2013 6:42:14 PM.

3>InitializeBuildStatus:

3> Creating "C:\Program Files (x86)\VisualBoyAdvanceM\source\dependencies\libpng\project\vs2010\Win32\Release_temp\libpng.unsuccessfulbuild" because "AlwaysCreate" was specified.

4>Build started 3/3/2013 6:42:14 PM.

3>ClCompile:

3> pngerror.c

4>InitializeBuildStatus:

4> Creating "Release\File_Extractor.unsuccessfulbuild" because "AlwaysCreate" was specified.

2>Lib:

2> sfml-network.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Release\SFML.lib

2>FinalizeBuildStatus:

2> Deleting file "Release\SFML.unsuccessfulbuild".

2> Touching "Release\SFML.lastbuildstate".

2>

2>Build succeeded.

2>

2>Time Elapsed 00:00:07.17

4>ClCompile:

4> 7zAlloc.c

4> 7zBuf.c

4> 7zCrc.c

4> 7zCrcOpt.c

4> 7zDec.c

4> 7zIn.c

4> 7zStream.c

4> Bcj2.c

4> Bra.c

4> Bra86.c

4> CpuArch.c

4> Lzma2Dec.c

4> LzmaDec.c

4> Ppmd7.c

4> Ppmd7Dec.c

3> png.c

3> pngget.c

3> pngmem.c

3> pngpread.c

4> Binary_Extractor.cpp

4> blargg_common.cpp

4> blargg_errors.cpp

4> Data_Reader.cpp

4> fex.cpp

4> File_Extractor.cpp

4> Gzip_Extractor.cpp

3> pngread.c

4> Gzip_Reader.cpp

3> pngrio.c

3> pngrtran.c

3> pngrutil.c

3> pngset.c

4> Rar_Extractor.cpp

4> Zip7_Extractor.cpp

4> Zip_Extractor.cpp

4> Zlib_Inflater.cpp

3> pngtrans.c

3> pngwio.c

3> pngwrite.c

3> pngwtran.c

3> pngwutil.c

4>Lib:

4> File_Extractor2010.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Release\File_Extractor.lib

4>FinalizeBuildStatus:

4> Deleting file "Release\File_Extractor.unsuccessfulbuild".

4> Touching "Release\File_Extractor.lastbuildstate".

4>

4>Build succeeded.

4>

4>Time Elapsed 00:00:03.52

3>Lib:

3> libpng.vcxproj -> C:\Program Files (x86)\VisualBoyAdvanceM\source\dependencies\libpng\project\vs2010\Win32\Release\libpng.lib

3>FinalizeBuildStatus:

3> Deleting file "C:\Program Files (x86)\VisualBoyAdvanceM\source\dependencies\libpng\project\vs2010\Win32\Release_temp\libpng.unsuccessfulbuild".

3> Touching "C:\Program Files (x86)\VisualBoyAdvanceM\source\dependencies\libpng\project\vs2010\Win32\Release_temp\libpng.lastbuildstate".

3>

3>Build succeeded.

3>

3>Time Elapsed 00:00:04.30

5>------ Rebuild All started: Project: VisualBoyAdvance-M, Configuration: Release Win32 ------

5>Build started 3/3/2013 6:42:18 PM.

5>InitializeBuildStatus:

5> Touching "C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link\project\vs2010_mfc\Win32\Release_temp\VisualBoyAdvance-M.unsuccessfulbuild".

5>PreBuildEvent:

5> SubWCRev : E155007: 'C:\Program Files (x86)\VisualBoyAdvanceM\source\bgk-link' is not a working copy

5>_NASM:

5> Assembling...

5>ClCompile:

5> stdafx.cpp

5> gb.cpp

5> gbCheats.cpp

5> gbDis.cpp

5> gbGfx.cpp

5> gbGlobals.cpp

5> gbMemory.cpp

5> gbPrinter.cpp

5> gbSGB.cpp

5> gbSound.cpp

5> Blip_Buffer.cpp

5> Effects_Buffer.cpp

5> Gb_Apu.cpp

5> Gb_Apu_State.cpp

5> Gb_Oscs.cpp

5> Multi_Buffer.cpp

5> agbprint.cpp

5> bios.cpp

5>..\..\src\apu\Effects_Buffer.cpp(65): warning C4291: 'void *Effects_Buffer::buf_t::operator new(size_t,void *)' : no matching operator delete found; memory will not be freed if initialization throws an exception

5> c:\program files (x86)\visualboyadvancem\source\bgk-link\src\apu\Effects_Buffer.h(91) : see declaration of 'Effects_Buffer::buf_t::operator new'

5> EEprom.cpp

5> elf.cpp

5> Flash.cpp

5>..\..\src\apu\Gb_Apu_State.cpp(66): warning C4800: 'gb_apu_state_t::val_t' : forcing value to bool 'true' or 'false' (performance warning)

5>..\..\src\apu\Gb_Apu_State.cpp(67): warning C4800: 'gb_apu_state_t::val_t' : forcing value to bool 'true' or 'false' (performance warning)

5>..\..\src\apu\Gb_Apu_State.cpp(84): warning C4800: 'gb_apu_state_t::val_t' : forcing value to bool 'true' or 'false' (performance warning)

5>..\..\src\apu\Gb_Apu_State.cpp(92): warning C4800: 'gb_apu_state_t::val_t' : forcing value to bool 'true' or 'false' (performance warning)

5> gba-arm.cpp

5> gba-thumb.cpp

5> gba.cpp

5> gbafilter.cpp

5> gbagfx.cpp

5> Globals.cpp

5> Mode0.cpp

5> Mode1.cpp

5> Mode2.cpp

5> Mode3.cpp

5> Mode4.cpp

5> Mode5.cpp

5> remote.cpp

5> RTC.cpp

5> Sound.cpp

5> Sram.cpp

5> 2xSaI.cpp

5> admame.cpp

5> bilinear.cpp

5> interframe.cpp

5> pixel.cpp

5> rpi.cpp

5> scanline.cpp

5> simpleFilter.cpp

5> hq2x.cpp

5> hq3x32.cpp

5> armdis.cpp

5> Cheats.cpp

5> CheatSearch.cpp

5> Patch.cpp

5> Util.cpp

5> Direct3D.cpp

5> DirectInput.cpp

5>..\..\src\common\Patch.cpp(219): warning C4244: 'argument' : conversion from '__off64_t' to 'unsigned int', possible loss of data

5>..\..\src\common\Patch.cpp(251): warning C4244: 'argument' : conversion from 's64' to 'size_t', possible loss of data

5>..\..\src\common\Patch.cpp(252): warning C4244: 'argument' : conversion from 's64' to 'size_t', possible loss of data

5>..\..\src\common\Patch.cpp(253): warning C4244: '=' : conversion from 's64' to 'int', possible loss of data

5>..\..\src\common\Patch.cpp(300): warning C4244: 'return' : conversion from 's64' to 'int', possible loss of data

5>..\..\src\common\Patch.cpp(316): warning C4244: 'initializing' : conversion from 's64' to 'int', possible loss of data

5>..\..\src\common\Patch.cpp(342): warning C4244: 'initializing' : conversion from 's64' to 'int', possible loss of data

5>..\..\src\common\Patch.cpp(360): warning C4244: 'initializing' : conversion from 's64' to 'int', possible loss of data

5> DirectSound.cpp

5> LoadOAL.cpp

5> OpenAL.cpp

5> OpenGL.cpp

5> XAudio2.cpp

5>c:\program files (x86)\visualboyadvancem\source\bgk-link\src\win32\LoadOAL.h(3): fatal error C1083: Cannot open include file: 'al.h': No such file or directory

5> gbalink.cpp

5>..\..\src\win32\OpenAL.cpp(13): fatal error C1083: Cannot open include file: 'al.h': No such file or directory

5> GBASockClient.cpp

5> LinkOptions.cpp

5> VBA.cpp

5>..\..\src\win32\LinkOptions.cpp(145): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)

5>..\..\src\win32\LinkOptions.cpp(146): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)

5>

5>Build FAILED.

5>

5>Time Elapsed 00:00:21.96

========== Rebuild All: 4 succeeded, 1 failed, 0 skipped ==========

 

I am just about at the end of my rope here. HELP!


Cannot compile bgk's linking build

Posted: Sun Mar 03, 2013 11:21 pm
by Squall Leonhart

set no_oal as a preprocessor

 

\doc\DevInfo.txt tells you what you need.


Cannot compile bgk's linking build

Posted: Mon Mar 04, 2013 12:00 am
by AutoFire

It finally built successfully! I used Backyard Baseball to test the linking feature, and it worked successfully (though it would seem my laptop's i7 720 QM processor is too weak to run both instances of VBA-M at full speed when linked—they both slowed down to 60%). Thank you for your help, Squall and Adamn.


Cannot compile bgk's linking build

Posted: Mon Mar 04, 2013 4:16 am
by Squall Leonhart

shouldn't be, a single core sempron-le can run 2 instances just fine.

 

though, i remember bgk mentioning it needs optimising.