Overview
Features
Download
Documentation
Community
Add-Ons & Services

Some problems building on windows

A general discussion forum.

Some problems building on windows

Postby Gigante » 30 Jan 2014, 22:45

Hi!

Some problems building 64-bit poco on windows.

I got the Basic edition, current version, 1.4.6p2 (2013-10-22)
I tried: buildwin 100 build static_md release x64 nosamples
Got a whole bunch of messages like :
"obj64\release_static_md\ActiveTest.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' [I:\3RDPARTY\poco\CppUnit\WinTestRunner\WinTestRunner_x64_vs100.vcxproj]"
"obj64\release_static_md\Ascii.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' [I:\3RDPARTY\poco\Foundation\Foundation_x64_vs100.vcxproj]"

What's wrong?
Gigante
 
Posts: 13
Joined: 12 Mar 2010, 12:46

Re: Some problems building on windows

Postby guenter » 30 Jan 2014, 23:08

You're building from a 32-bit environment. Start the Visual Studio x64 Cross Tools Command Prompt (or whatever it's called) or execute:

Code: Select all
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86_amd64

before building.
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Some problems building on windows

Postby Gigante » 30 Jan 2014, 23:24

I've tried that as well, didn't work....
My environment variables seem fine...
Path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\;
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\x86_amd64;
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN;
etc....
Still, same results...
Gigante
 
Posts: 13
Joined: 12 Mar 2010, 12:46


Re: Some problems building on windows

Postby alex » 01 Feb 2014, 18:23

I think the buildwin.bat was fixed in 1.5.2 but I'm not sure about 1.4.x. In any case, this can only be caused by (a) not properly set build environment for 64 bit build or (b) 32 bit build attempt in 64 bit environment. Try building a 64-bit configuration from within Visual Studio to confirm. If it builds there, then it must be a conflict in your command line environment that's causing problems.
alex
 
Posts: 1116
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Some problems building on windows

Postby Gigante » 02 Feb 2014, 01:07

Nope, got the same error from within VS when building POCO. But I've built other x64 applications...
Hmm guess I must try it on another machine after all.
Gigante
 
Posts: 13
Joined: 12 Mar 2010, 12:46


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests