sysprogs / WinCDEmu

GNU Lesser General Public License v3.0
1.06k stars 149 forks source link

Can not compile #1

Open ChuckNorrison opened 9 years ago

ChuckNorrison commented 9 years ago

I try to get it working without success.

Can you help me?

sysprogs commented 9 years ago

Looks like you don't have the WDK7 installed. WinCDEmu relies on it as it needs to be compatible with Windows XP. Please install it and set the WDK7PATH variable to point to its location.

ChuckNorrison commented 9 years ago

I have installed WDK 7.1 and set the WDK7PATH. I can test on Windows XP next. Thanks for your help.

sysprogs commented 9 years ago

You don't have to build on WinXP. As long as you use WDK7, the binaries will work on WinXP-Win10.

ChuckNorrison commented 9 years ago

I installed the WDK 7.0 (http://www.microsoft.com/en-us/download/details.aspx?id=18950) @ W7x64 with Visual Studio 2012 and i got the same problems.I followed your WinCDEmu Build Instructions.

Here the failure i get while trying to compile with user-mode unbenannt

Here after updating vc++ in the project: unbenannt

Here after compile user-mode again: unbenannt

After manual compile just VirtualCDCtl: unbenannt

sysprogs commented 9 years ago

Looks like you've missed installing WTL8 and setting WTL_PATH to its location.

ChuckNorrison commented 9 years ago

Here is a screen of my wtl8 unbenannt

sysprogs commented 9 years ago

Sorry, looks like the Express edition does not support ATL: https://msdn.microsoft.com/en-us/library/hh967573.aspx?f=255&MSPPError=-2147217396 Please use the VS Community Edition.

ChuckNorrison commented 9 years ago

Hey, i tried the Community 2013 Edition. Same Problem with VirtualCDCtl.lib File. If i try to Build "BazisPortableCDBus" i got following failures. Whats up wit the WDK7_PATH?

unbenannt

// <Error Condition="(!exists('$(WDK7PATH)\inc\ddk')) and (('$(Configuration)'=='Debug (WinKernel-WDK7)') or ('$(Configuration)'=='Release (WinKernel-WDK7)'))" Text="The WDK7_PATH environment variable is missing or does not point at Windows 8.x Driver Kit" />

Its only the Text here which is wrong with "WDK7_PATH". In my WDK 7 i downloaded like described there is no folder inc/ddk. I found an older WDK 7600.16385.1 which seems to work. Now i can build BazisPortableCDBus.

If i try to Build BazisVirtualCDBus i got following failures:

unbenannt

if i build batchmnt: unbenannt

sysprogs commented 9 years ago

Looks like the error message mechanism for the missing SIGN_RELEASE_BINARY variable was broken. Please update your local checkout.

Which solution configuration are you building batchmnt from?

ChuckNorrison commented 9 years ago

I did update my local checkout and tried to build.

Kernel Mode Error List: kernel_errors

Now i tried to build manually every single project in usermode again.

batchmnt, uninstall is ok

VirtualAutorunDisabler comes with this Errors virtualautorundisabler

VirtualAutorunDisablerPS comes with this Errors virtualautorundisablerps

VirtualDriveManager virtual drive manager

vmnt vmnt

WinCDEmuContextMenu wincdemucontextmenu

ZumWohleAllah commented 9 years ago

I have exactly the same errors with these 5 projects when I try to build them in Release (User-mode). Any clarification on how to solve this issue?

Also, when I try to do the command 'batchmnt /unmountall' it tells me that the System can't find BazisVirtualCDBus.sys even if it's in the drivers folder (from System32) and freshly compiled.

I really need a working vmnt build

ChuckNorrison commented 9 years ago

Seems its bad to let the Visual Studio 2013 update c++ redistributables in the Project. I canceled the Message and now there come Failure to install 2010 Build tools. I installed Visual Studio 2010 Express, cause i cant find a community edition from 2010. This seems to work better, but now i got error with inlcude files and the ATL Problem is back

Kernel Mode: unbenannt

User Mode: unbenannt

I need 2010 Community Edition...

ZumWohleAllah commented 9 years ago

The vmnt_lng.cpp does not exist by the way.

PROfile- commented 9 years ago

There is no Community Edition for 2010. I believe 2013 is the first one available with this edition.

ChuckNorrison commented 9 years ago

Its that hard to setup a working development environment for this code?!

sysprogs commented 9 years ago

The vmnt_lng.cpp file is generated when you build the Release/Win32 configuration. Please note that if you build your own kernel-mode driver (.sys file), you need to testsign it and configure your system to load testsigned drivers (read here about testsigning: https://msdn.microsoft.com/en-us/library/windows/hardware/ff547660%28v=vs.85%29.aspx)

In order to launch the driver on normal computers you would need to sign it with an AuthentiCode signature (available from ~$500/year with VeriSign/GlobalSign) or submit a push request with your changes here and we could build and sign one for you (as long as the changes are not breaking anything).

ZumWohleAllah commented 9 years ago

And you can't just release every file that's getting generated, too? I mean, would you compile everything in your order and upload the project afterwards? I'm fairly new to C++ and I need a working vmnt.exe with the parameter for CreateISO so it doesn't show up the UI. If anyone else on here could do that, I would be really thankful.

ChuckNorrison commented 8 years ago

Someone here except sysprogs himself, who can compile this code without failure?!