Building COHEmu for Windows

Here we speak about Code and Design.
coxemu_forgotten_user
Posts: 150
Joined: Thu Jan 01, 1970 12:00 am

Post by coxemu_forgotten_user » Fri Oct 13, 2006 6:44 pm

gah this is what i get when i try to compile it ( cmake bit )
Determining if the C compiler works failed with the following output:


Microsoft (R) Visual C++ Express Edition Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------

1>Performing Post-Build Event...

1>"Checking build system"

1>Build log was saved at "file://c:\\Program Files\\PostgreSQL\\8.1\\CMakeFiles\\CMakeTmp\\ZERO_CHECK.dir\\Debug\\BuildLog.htm"

1>ZERO_CHECK - 0 error(s), 0 warning(s)

2>------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------

2>Compiling...

2>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86

2>Copyright (C) Microsoft Corporation. All rights reserved.

2>cl /Od /D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"cmTryCompileExec.dir\\Debug\\\\" /Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /DWIN32 /D_WINDOWS /Zm1000 /D_DEBUG -DCMAKE_INTDIR=\\"Debug\\"

2> ".\\testCCompiler.c"

2>testCCompiler.c

2>Compiling manifest to resources...

2>Linking...

2>Microsoft (R) Incremental Linker Version 8.00.50727.42

2>Copyright (C) Microsoft Corporation. All rights reserved.

2>"/OUT:Debug\\cmTryCompileExec.exe" /INCREMENTAL /MANIFEST "/MANIFESTFILE:cmTryCompileExec.dir\\Debug\\cmTryCompileExec.exe.intermediate.manifest" /DEBUG "/PDB:Debug\\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000 /machine:I386 /debug kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

2>".\\cmtrycompileexec.dir\\debug\\testCCompiler.obj"

2>".\\cmTryCompileExec.dir\\Debug\\cmTryCompileExec.exe.embed.manifest.res"

2>LINK : fatal error LNK1104: cannot open file 'user32.lib'

2>Build log was saved at "file://c:\\Program Files\\PostgreSQL\\8.1\\CMakeFiles\\CMakeTmp\\cmTryCompileExec.dir\\Debug\\BuildLog.htm"

2>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the C compiler works failed with the following output:


Microsoft (R) Visual C++ Express Edition Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------

1>Performing Post-Build Event...

1>"Checking build system"

1>Build log was saved at "file://c:\\Program Files\\PostgreSQL\\8.1\\CMakeFiles\\CMakeTmp\\ZERO_CHECK.dir\\Debug\\BuildLog.htm"

1>ZERO_CHECK - 0 error(s), 0 warning(s)

2>------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------

2>Compiling...

2>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86

2>Copyright (C) Microsoft Corporation. All rights reserved.

2>cl /Od /D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"cmTryCompileExec.dir\\Debug\\\\" /Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /DWIN32 /D_WINDOWS /Zm1000 /D_DEBUG -DCMAKE_INTDIR=\\"Debug\\"

2> ".\\testCCompiler.c"

2>testCCompiler.c

2>Compiling manifest to resources...

2>Linking...

2>Microsoft (R) Incremental Linker Version 8.00.50727.42

2>Copyright (C) Microsoft Corporation. All rights reserved.

2>"/OUT:Debug\\cmTryCompileExec.exe" /INCREMENTAL /MANIFEST "/MANIFESTFILE:cmTryCompileExec.dir\\Debug\\cmTryCompileExec.exe.intermediate.manifest" /DEBUG "/PDB:Debug\\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000 /machine:I386 /debug kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

2>".\\cmTryCompileExec.dir\\Debug\\testCCompiler.obj"

2>".\\cmTryCompileExec.dir\\Debug\\cmTryCompileExec.exe.embed.manifest.res"

2>LINK : fatal error LNK1104: cannot open file 'user32.lib'

2>Build log was saved at "file://c:\\Program Files\\PostgreSQL\\8.1\\CMakeFiles\\CMakeTmp\\cmTryCompileExec.dir\\Debug\\BuildLog.htm"

2>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Determining if the C compiler works failed with the following output:


Microsoft (R) Visual C++ Express Edition Version 8.0.50727.42.

Copyright (C) Microsoft Corp 1984-2005. All rights reserved.

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------

1>Performing Post-Build Event...

1>"Checking build system"

1>Build log was saved at "file://c:\\Program Files\\PostgreSQL\\8.1\\CMakeFiles\\CMakeTmp\\ZERO_CHECK.dir\\Debug\\BuildLog.htm"

1>ZERO_CHECK - 0 error(s), 0 warning(s)

2>------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------

2>Compiling...

2>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86

2>Copyright (C) Microsoft Corporation. All rights reserved.

2>cl /Od /D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"cmTryCompileExec.dir\\Debug\\\\" /Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /DWIN32 /D_WINDOWS /Zm1000 /D_DEBUG -DCMAKE_INTDIR=\\"Debug\\"

2> ".\\testCCompiler.c"

2>testCCompiler.c

2>Compiling manifest to resources...

2>Linking...

2>Microsoft (R) Incremental Linker Version 8.00.50727.42

2>Copyright (C) Microsoft Corporation. All rights reserved.

2>"/OUT:Debug\\cmTryCompileExec.exe" /INCREMENTAL /MANIFEST "/MANIFESTFILE:cmTryCompileExec.dir\\Debug\\cmTryCompileExec.exe.intermediate.manifest" /DEBUG "/PDB:Debug\\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000 /machine:I386 /debug kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

2>".\\cmTryCompileExec.dir\\Debug\\testCCompiler.obj"

2>".\\cmTryCompileExec.dir\\Debug\\cmTryCompileExec.exe.embed.manifest.res"

2>LINK : fatal error LNK1104: cannot open file 'user32.lib'

2>Build log was saved at "file://c:\\Program Files\\PostgreSQL\\8.1\\CMakeFiles\\CMakeTmp\\cmTryCompileExec.dir\\Debug\\BuildLog.htm"

2>cmTryCompileExec - 1 error(s), 0 warning(s)

========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

starkravingmad
Posts: 24
Joined: Sun Apr 20, 2008 2:40 am

Post by starkravingmad » Fri Oct 13, 2006 7:22 pm

[quote:c744440ca2=\"jhon\"]LINK : fatal error LNK1104: cannot open file 'user32.lib'[/quote:c744440ca2]

It looks like this is where things start to go south. User32.lib is part of the Microsoft Platform SDK, so it sounds like an include path is not set right. Check over your project settings.

coxemu_forgotten_user
Posts: 150
Joined: Thu Jan 01, 1970 12:00 am

Post by coxemu_forgotten_user » Fri Oct 13, 2006 7:27 pm

i didnt understand what you meant with the first thing mate you daid modify this file but you didnt say what to do with it >.<

wad
Posts: 3
Joined: Fri Jan 27, 2006 12:38 pm

Post by wad » Mon Oct 30, 2006 1:10 am

this compilation drives me crazy.
948mb libraries for compilation of 500k source code.
:lol:
now i understand, why this project goes so slowly.

btw:
[quote:0405fcf370]
PGSQL_lib = C:\\Program Files\\PostgreSQL\\8.1\\lib\\ms\\libpg.lib
[/quote:0405fcf370]
this file does not exist in the postgress installation.

malign
Posts: 61
Joined: Fri Sep 02, 2005 11:39 pm

Post by malign » Mon Oct 30, 2006 11:28 am

[quote:0657ce728b=\"wad\"]this compilation drives me crazy.
948mb libraries for compilation of 500k source code.
:lol:
now i understand, why this project goes so slowly.[/quote:0657ce728b]

Why are you going crazy? cmake makes things easy.
Also, how does using libraries make a project go slowly? If anything, it would make development go faster. Which brings me to my next point. Why reinvent the wheel? If code exists out there already for what you need to do, why not use it?

[quote:0657ce728b=\"wad\"]
btw:
[quote:0657ce728b]
PGSQL_lib = C:\\Program Files\\PostgreSQL\\8.1\\lib\\ms\\libpg.lib
[/quote:0657ce728b]
this file does not exist in the postgress installation.[/quote:0657ce728b]

The trailing filename is "libpq.lib". That is why. It is a 'q' (queue) not a 'g' (gee).

--malign

wad
Posts: 3
Joined: Fri Jan 27, 2006 12:38 pm

Post by wad » Mon Oct 30, 2006 8:00 pm

[quote:ad83315f45=\"malign\"]
Why are you going crazy? cmake makes things easy.
Also, how does using libraries make a project go slowly? If anything, it would make development go faster. Which brings me to my next point. Why reinvent the wheel? If code exists out there already for what you need to do, why not use it?
[/quote:ad83315f45]
because these things spend your time for downloading, installing, building, learning, etc. and you can't be sure that they havn't bugs.

btw - then cohemu was started, it was pure C - isn't it?

malign
Posts: 61
Joined: Fri Sep 02, 2005 11:39 pm

Post by malign » Mon Oct 30, 2006 11:05 pm

[quote:5d304c4695=\"wad\"][quote:5d304c4695=\"malign\"]
Why are you going crazy? cmake makes things easy.
Also, how does using libraries make a project go slowly? If anything, it would make development go faster. Which brings me to my next point. Why reinvent the wheel? If code exists out there already for what you need to do, why not use it?
[/quote:5d304c4695]
because these things spend your time for downloading, installing, building, learning, etc. and you can't be sure that they havn't bugs.

btw - then cohemu was started, it was pure C - isn't it?[/quote:5d304c4695]

Downloading and installing take little time and almost no action on the end-user's part if they use a decent package manager or Windows. As most package managers can acquire binary forms or know how to make binaries and move them into place after building or just downloading prebuilt libs for Windows.

I do see your point regarding learning. All libraries do have a learning curve. What's the point of code reuse if there's shitty documentation, right? =)

Yes. The original sources were in straight C. Darawk's were mostly C++. Once nemerle joined, we pretty much went the route of C++ whenever possible.
I believe the only thing in vanilla C is the PostGres library we link against.

calsmurf2904
Posts: 15
Joined: Sat Oct 28, 2006 6:34 pm

Post by calsmurf2904 » Thu Nov 02, 2006 1:03 pm

Hi,

I am getting this error when compiling ACE :

[list:3416e5be0d]The following error has occurred during XML parsing:

File: C:\\Program Files\\Microsoft Visual Studio 8\\VC\\VCProjectDefaults\\CoreWin_Express.vsprops
Line: 9
Column: 1
Error Message:
Het teken < mag niet worden gebruikt in een kenmerkwaarde.

The file 'C:\\Program Files\\Microsoft Visual Studio 8\\VC\\VCProjectDefaults\\CoreWin_Express.vsprops' has failed to load.

Failed to load system project defaults file 'C:\\Program Files\\Microsoft Visual Studio 8\\VC\\VCProjectDefaults\\CoreWin_Express.vsprops'.
The project cannot load without this file installed.
Please re-install the product.

The following error has occurred during XML parsing:

File: C:\\Program Files\\Microsoft Visual Studio 8\\VC\\VCProjectDefaults\\CoreWin_Express.vsprops[/list:u:3416e5be0d]

Can someone help me with this ?
Some of the things are written dutch like :
Het teken < mag niet worden gebruikt in een kenmerkwaarde.
That means The sign < may not be used as an string.

User avatar
nemerle
Posts: 398
Joined: Thu Jan 10, 2013 3:40 pm

Post by nemerle » Thu Nov 02, 2006 2:37 pm

Did you edit .vsprops file ? If so, it seems you have made some kind of mistake while editing it.
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

calsmurf2904
Posts: 15
Joined: Sat Oct 28, 2006 6:34 pm

Post by calsmurf2904 » Fri Nov 03, 2006 7:15 am

i got this in my VSPRORS file :

[list:69f43ee7f2]<?xml version="1.0"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="Core Windows Libraries">
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib />
</VisualStudioPropertySheet>
[/list:u:69f43ee7f2]

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests