Post subject: Problems compiling gens 11a
Player (104)
Joined: 6/7/2006
Posts: 20
I will make this short: I am using Visual c++ 6. When I try to compile gens I lack the following files (all needed by pngconf.h): fp.h m68881.h alloc.h I am new to visual c++ (have been using codeblocks before) so I might have set up something wrong. Any tips what I could try/how to get fp.h?
Emulator Coder, Skilled player (1311)
Joined: 12/21/2004
Posts: 2687
To start with, I would suggest not using such an old development environment as Visual C++ 6. Try getting Visual Studio 2005 or maybe 2008 and using that instead. (Microsoft provides free versions of them per language, and the C++ ones are actually pretty fully-featured.)
arflech
He/Him
Joined: 5/3/2008
Posts: 1120
Microsoft pulled VS2005 Express links from its site, although somehow it is possible to find them...but it is better to use VS2008 Express (or if you can wait until next year it is likely that VS2010 will also be made available in Express Editions) Also you can still use the whole Visual Studio toolchain from Code::Blocks; it should even be able to automatically set it up.
i imgur com/QiCaaH8 png
upthorn
He/Him
Emulator Coder, Active player (392)
Joined: 3/24/2006
Posts: 1802
arflech wrote:
Microsoft pulled VS2005 Express links from its site, although somehow it is possible to find them...but it is better to use VS2008 Express (or if you can wait until next year it is likely that VS2010 will also be made available in Express Editions) Also you can still use the whole Visual Studio toolchain from Code::Blocks; it should even be able to automatically set it up.
It's actually better to use vs2005 with gens, because VS2008 program optimization breaks 32X savestates, where VS2005 optimization doesn't.
How fleeting are all human passions compared with the massive continuity of ducks.
Player (104)
Joined: 6/7/2006
Posts: 20
Thanks for your answers, was quite busy for a few weeks, but as I've just got VS2008, I thought I might try compiling gens once more. I was able to figure my way around many problems, however I am stuck now: Trying to compile debug:
------ Build started: Project: gens, Configuration: Debug Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file 'release\mem_M68K.obj'
Trying to compile release:
------ Build started: Project: gens, Configuration: Release Win32 ------
Assembling z80.asm
The System can not find the file specified.
Project : error PRJ0019: A tool returned an error code from "Assembling z80.asm"
Someone got any idea how to fix this?
mz
Emulator Coder, Player (79)
Joined: 10/26/2007
Posts: 693
Have you followed the instructions in Compile.txt?
You need (...) NASM installed in the root directory of the drive where you've checked out Gens (\nasm) to compile Gens project (NASM in included in the sources package, you just need to move it in the root directory).
- Open the Main68k project (DSW file) with VC, build star.exe then close the project. - Open the Sub68k project with VC, build star.exe then close the project. - Exec the comp_m68k.bat file. - Exec the comp_s68k.bat file. - Open the Gens project with VC and build gens.exe, that's all :)
I haven't tried this myself, just guessing.
You're just fucking stupid, everyone hates you, sorry to tell you the truth. no one likes you, you're someone pretentious and TASes only to be on speed game, but don't have any hope, you won't get there.
Player (104)
Joined: 6/7/2006
Posts: 20
Yes I read that, moved nasm, and it works in debug (although the linker problem remains). I dont know why The assembler cant be found when I select the release target..
arflech
He/Him
Joined: 5/3/2008
Posts: 1120
Perhaps you can put the nasm folder in your PATH ooh, another idea is to put a copy of the win32 version of NASM in the folder where your Visual C++ executables reside (like C:\Program Files\Microsoft Visual Studio 9.0\VC\bin) and put the special rules file in VCProjectDefaults (like C:\Program Files\Microsoft Visual Studio 9.0\VC\VCProjectDefaults) and then set up the project to use NASM; the relevant files can be downloaded here: http://sourceforge.net/projects/nasm/files/ (get the zip file for nasm 2.07 under win32 binaries, and also download nasmVS.zip to get the rules file)
i imgur com/QiCaaH8 png