Author Topic: MSVC 2008 and 64bits?  (Read 8513 times)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
MSVC 2008 and 64bits?
« on: 2009 December 11 08:31:20 »
Hi guys

Again, I'm stuck trying to make things work... I have installed MSCV 2008. So far, it seems that there is only one version, no specific 64bits one, so this is the one I have. I also found and installed some 64bits redistibutable packages. Anyway, I'm still receiving a linking error, and don't have a clue how to solve it:

Quote
1>------ Rebuild All started: Project: Sandbox, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'Sandbox', configuration 'Release|Win32'
1>Compiling...
1>SandboxProcess.cpp
1>SandboxParameters.cpp
1>SandboxModule.cpp
1>..\..\SandboxModule.cpp(41) : warning C4003: not enough actual parameters for macro 'PCL_STRINGIFY'
1>SandboxInterface.cpp
1>SandboxInstance.cpp
1>Linking...
1>PCL-pxi.lib(StdAlloc.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
1>Build log was saved at "file://e:\PCL\src\modules\processes\Sandbox\windows\vc9\Win32\Release\BuildLog.htm"
1>Sandbox - 1 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


There is no way to change the compiller settings to Win64, or x64... so maybe there is the source of the problems... Any thoughts?
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: MSVC 2008 and 64bits?
« Reply #1 on: 2009 December 11 14:10:11 »
Carlos,

I have the target machine in a drop box in the top of the VS2008 UI. I select x64 from that. Tonight I'll post a project file for one of the modules you did earlier.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: MSVC 2008 and 64bits?
« Reply #2 on: 2009 December 11 14:45:47 »
Hi Sander

So far, the project file seems to be fine. It is declared the Release|x64 mode and the Debug|x64 one. MSVC by the other hand, only shows the Win32 setup... Something is missing in the installation?
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: MSVC 2008 and 64bits?
« Reply #3 on: 2009 December 11 14:47:38 »
Hi Carlos,

the VS install recognizes your OS and puts all the x64 magic in place. So it's a matter of enabling it. It will be a few hours before I can take a look though because my inlaws are here for dinner and I need to fire up the other 'puter :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: MSVC 2008 and 64bits?
« Reply #4 on: 2009 December 12 00:40:17 »
Hi guys,

I would love to see a video tutorial showing how to get a PC up and running for compiling a PCL module - but it's maybe too much to ask for, and probably too far off-topic as well !!!

Cheers
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: MSVC 2008 and 64bits?
« Reply #5 on: 2009 December 12 10:20:11 »
Carlos: attached is a screenshot of where I select the x64 flavor. Check the configuration manager, maybe you need to add it? I've also attached a vcproj file, not sure that helps.

Niall: I think the readme in the PCL directory is pretty straight forward along with the makefile generator script. I'd say a video is overkill for something that's non-visual (ie. it can be written down and followed to the letter). Probably best to try the readme and post questions/comments when it's not clear to Juan can improve it as needed.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: MSVC 2008 and 64bits?
« Reply #6 on: 2009 December 12 11:15:49 »
Hi Sander

That is exactly the place where I was looking for the x64 option, without luck...
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: MSVC 2008 and 64bits?
« Reply #7 on: 2009 December 12 12:27:00 »
Hi Carlos,

sorry, I don't know how to resolve that. All I can suggest is what I'm sure you've already done, ask Google or Bing. What happens when you open the vcproj? I realize the files aren't there but does it complain about other things?
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: MSVC 2008 and 64bits?
« Reply #8 on: 2009 December 16 02:49:27 »
Hi Carlos (and sorry for the late answer),

Are you using the Express edition of Visual C++? If that's the case, the following article on MSDN can be relevant to solve your problem:

http://msdn.microsoft.com/en-us/library/9yb4317s%28VS.80%29.aspx

Look at the "Note" near the top of the document. Let me know if this makes any sense; otherwise, my answer would be exactly the same that Sander has already given to you...
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: MSVC 2008 and 64bits?
« Reply #9 on: 2009 December 16 02:52:14 »
I would love to see a video tutorial showing how to get a PC up and running for compiling a PCL module

Hmmm, not a bad idea at all... :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: MSVC 2008 and 64bits?
« Reply #10 on: 2009 December 16 04:07:19 »
Hmmm, this sounds like the solution :) I'll try it when I come back from some pending tasks at the university. Thanks!
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com