Author Topic: Compiling for 64-bit with VC++ 2008 Express  (Read 23861 times)

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Compiling for 64-bit with VC++ 2008 Express
« Reply #15 on: 2010 May 08 23:05:06 »
Hi Mike,

Welcome aboard - and thanks for your opening contributions.

I am running a version of Vista64 that has NEVER had any of the MS Studio or SDK stuff loaded, so it will be a 'ceam' install as far as testing the procedure is concerned. However, I just started a major (non-astronomy-related) electronics project yesterday so I don't know when I will now get round to things. A couple of weeks, maybe.

But I will be sure to document all the steps that I needed to perform, assuming that I can follow everyone's suggestions, and assuming that a whole load of voodoo isn't needed to get everything to work together during the process :o

Thanks all.

Cheers,
« Last Edit: 2010 May 10 03:53:40 by Niall Saunders »
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 NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: Compiling for 64-bit with VC++ 2008 Express
« Reply #16 on: 2010 June 01 03:14:11 »
Hello everybody. Please explain whats I doing wrong?
Code: [Select]
PixInsight Makefile Generator Script v1.5
Copyright (C) 2009 Pleiades Astrophoto

======================================================================

==> Finding files for project directory:
C:/PCL/src/modules/processes/ImageCalibration

C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationInstance.cpp
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationInterface.cpp
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationModule.cpp
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationParameters.cpp
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationProcess.cpp
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationInstance.h
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationInterface.h
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationModule.h
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationParameters.h
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationProcess.h
C:/PCL/src/modules/processes/ImageCalibration/ImageCalibrationIcon.png
C:/PCL/src/modules/processes/ImageCalibration/graphics/ImageCalibrationIcons.svg

Source files       :     5
Header files       :     5
Resource files     :     0
Image files        :     2
Source directories :     3

==> Generating project file:
C:/PCL/src/modules/processes/ImageCalibration/windows/vc9/ImageCalibration.vcproj

MSVC 2008 Pro:
Code: [Select]
1>------ Build started: Project: ImageCalibration, Configuration: Release Win32 ------
1>Linking...
1>   Creating library Win32\Release\ImageCalibration.lib and object Win32\Release\ImageCalibration.exp
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsSetErrorHandler@4
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsCloseProfile@4
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsTakeProductDesc@4
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsOpenProfileFromMem@8
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsGetColorSpace@4
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsOpenProfileFromFile@8
1>PCL-pxi.lib(ICCProfile.obj) : error LNK2001: unresolved external symbol __imp__cmsGetDeviceClass@4
1>C:\PCL\bin\ImageCalibration-pxm.dll : fatal error LNK1120: 7 unresolved externals
1>Build log was saved at "file://c:\PCL\src\modules\processes\ImageCalibration\windows\vc9\Win32\Release\BuildLog.htm"
1>ImageCalibration - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Compiling for 64-bit with VC++ 2008 Express
« Reply #17 on: 2010 June 01 04:02:16 »
Hi Nikolay,

Those errors are telling you that your project file is missing the LCMS library. Just enable the "Use the LCMS library" option on the MakefileGenerator script and all will be fine. Also please read the following bug report and its workaround as it applies to you:

http://pixinsight.com/forum/index.php?topic=1900.0

Fortunately with the next version of PCL linking against the LCMS library will no longer be necessary, as all color management functions will be implemented in the core application.

Good luck with your first PCL development adventures! ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline NKV

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 677
Re: Compiling for 64-bit with VC++ 2008 Express
« Reply #18 on: 2010 June 01 22:49:31 »
Juan thanks. It works.