How to rebuild, install and run the Calculator example on 64bit Engines
book
Article ID: KB0092352
calendar_today
Updated On:
Products
Versions
TIBCO DataSynapse GridServer
-
Not Applicable
-
Description
Resolution: System requirements
1. GS4.2u15 and up with at least 1 Daemon (check GS requirements). 2. A valid DS 64b OS license for GS 3. 64b OS on the Engine side.
#VS 8 (check MS requirements).
1. .NET 2.0 or alternative package.
Note: To be able to build Services for 64b Engines you will need to have MS VS 2005 64bit Prerequisites (x64) installed on your machine. Instruction
* Install VS2005 env o Download VS2005 from and extract it using winRAR or any other image extractor tool. o Run the setup.exe to start the installation process and follow the wizard steps o In the Add or Remove Features, under Language Tools > Visual C++, select the ""x64 compiler and tools" option. (you can repeat this step later on by "add and remove programs" > change VS2005) o Once the installation is finished - click MSDN library installation to install the full MSDN libraries * Install VS8 SP1 o Download the Visual Studio 8 Service Pack 1 o Run VS80sp1-KB926601-X86-ENU.exe. o Note - if you're using WIN2003 you might need to change the registry as mentioned at http://support.microsoft.com/kb/925336. o Agree to install SP1 for VS8 by clicking "ok" on the displayed message box. Accept the terms of use and follow the wizard steps. * Prepare GS 4.2 to support 64bit Win Engines o If it is not already updated, update your 4.2 grid to u15 and up. o Download the SDK for win64 (Driver > SDK Download) and extract it into your local disk. * Set the C++ Calculator 64b example o Go to start > run, type devenv.exe and click ok. The "choose default environment settings" window will appear. Choose the "general development settings" and click "start visual studio" o On the start page choose file > open > project/solution o Navigate to the CPPCalculator solution (CPPCalculator.dsw under examplesservicecalculator) and open it. o Select "Yes to All" to convert the project automatically to VS8 project. o Set x64 env* + Right click on the solution in the Solution Explorer and choose Configuration Manager. + In the Active solution platform, in the drop down menu select + In the New Solution Platform select x64** and click ok + In the Active solution configuration choose Release and hit the close button. o Go to Tools > Options > Project and Solutions > VC++ Directories. Change the Platform to x64. o Add to Executable files: [GridServerSDK-win64]\cppdriver\bin\vc8 o Add to the Include file: [GridServerSDK-win64]\cppdriver\include o Add to library files: [GridServerSDK-win64]\cppdriver\lib\vc8. o On the solution explorer right click on the CalculatorClient and choose Properties. Then Configuration Properties > Linker > Input and click once on Additional Dependencies. Copy Paste these lib instead of the ones that are there - DSDriverVC8.lib DSUtilVC8.lib odbc32.lib odbccp32.lib and click ok. o In the calculatorClent.cpp code change char buffer [3]; to char buffer [10]; also comment out or delete delete cs; o Right click on CalculatorClient in solution explorer and set as Startup Project. o Build the solution. * Install 64-bit edition Engine, configure and run it***. * Deploy Calculator.dll (typically you may find it under [GridServerSDK-win64]\examples\service\calculator\service\cpp\release) to \deploy\resources\win64lib. * Make sure the following DLLs are deployed as well and present in the win64 resource directory o DSBridgeVC8.dll o DSUtilVC8.dll o MSVCM80.DLL o MSVCP80.DLL o MSVCR80.DLL * Run CalculatorClient.exe
Remarks * - If you wish to use a 32bit Driver - CalculatorClient should be using platform Win32 and in the next steps link to win32 SDK directory. Make sure Calculator is set to use Platform x64. ** - if you cannot find x64 option, shut down VS, go to add and remove programs, choose MS VS 2005 Pro edition and hit the change button. Then repeat step 1.c. *** - You might need to reconfigure the manager (Admin > manager reconfiguration)
Issue/Introduction
How to rebuild, install and run the Calculator example on 64bit Engines