Even on a Windows 7 64 bit machine you should be able to compile for a win32 target. I will try it out on my Windows 7 64 bit machine and let you know soon.
Sriram
-----Original Message-----
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Tuesday, January 17, 2012 2:50 PM
To: DX Competition Discussion Group
Subject: [DXC11] i need help with cmake, BISON and FLEX, i am willing to pay
i need someone that will know how to compile the following project on windows 7 64 bit:
https://sites.google.com/site/dxcompetition2011/file-cabinet
DXC10v2.1-Windows-x86-Oracle_0.zip
1) - Building On Windows -
Dependencies:
- CMake >2.6
- Visual C++ 2005
- Microsoft Platform SDK
- gnu bison >=2.4 and flex 2.5.35
- Doxygen (to generate API documentation if desired)
To Build:
- Set DXC_HOME environment variable to desired installation directory
- Switch to top-level source directory and type 'cmake .'
(add flag -DRUN_DOXYGEN=true to generate API documentation)
- Open generated visual studio solution file (eg. DXC.sln)
- Build 'INSTALL' project ("Release" configuration is needed by Oracle binary, additional "Debug" build is optional)
- Add %DXC_HOME%\Bin to %PATH%
Common problems:
- If cmake or VC++ complain about missing libraries or headers, make sure VC++ is configured to look in [MS Platform SDK dir]/Lib and /Include respectively (Tools->Options->Projects and Solutions->
VC++ Directories)
- If bison and flex are not found by cmake, make sure the directory that contains them is in your %PATH% environment variable.
i need a more detailed explanation on the "how to do it", i am willing to pay using paypal for a how to guide for compiling on windows 7 64 bit.
i also using visual studio 2010, i added the libraries and the includes, installed java and included the lib but the linker throws 12 errors, if you succeed in compiling the ExampleProbeDA.cpp for the synthetic track ill be very thankful, i am willing to pay you somehow for your effort.  Â
Hi Alex and Sriram
Â
I will try to help Yakir. If I don’t succeed I will ask you for your help.
Â
Thank you, Meir
Â
Â
Â
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Wednesday, January 18, 2012 9:43 AM
To: dx-comp...@googlegroups.com
Subject: Re: [DXC11] i need help with cmake, BISON and FLEX, i am willing to pay
Â
i was thinking of a more modest payment not a full scale grant (-:, anyways i am trying to compile the ExampleProbeDA.cpp so i can build the ExampleDA.exe file and run it with the framework (run the system description and scenarios), naturally after being able to compile i will write my own algorithm for solving the problem, but currently i cant even compile the example and so i cant test any algorithm, i tried with the visual studio instruction and with the cmake, bison and flax instruction but i cant seem to make it work, any tutorial using windows 7 64bit and visual studio 2010 explaining how to compile the ExampleProbeDA.cpp meaning creating a working ExampleDA.exe that will read system description and scenarios will be blessed, from that point i will be able to write my own alg, i can start parsing the scenarios and system catalog xml by myself and then write all the TCP connection to the competition but it seems someone had done that job for me so i want to be able to use it.Â
Sriram
-----Original Message-----
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Wednesday, March 14, 2012 1:47 PM
To: DX Competition Discussion Group
Subject: [DXC11] can't compile the dxc project
hey sriram,
after a lot of time we have reached to the point where visual studio ask us for file and we dont seem to know why or what, we would love for your help,
http://www.flickr.com/photos/74908757@N02/6836784204/
http://farm8.staticflickr.com/7206/6836784204_fbaf6b14f8_z.jpg
the Flex, Bison and Java seem to be working and so what is this file we need to give?
im working with winXP and visual studio 2005, this VS output when compiling INSTALL project, i had to create several Release folders and put some files so it will work:
1>------ Rebuild All started: Project: INSTALL, Configuration: Release
Win32 ------
1>Deleting intermediate and output files for project 'INSTALL',
configuration 'Release|Win32'
1>
1>Building Custom Rule C:/DXC/CMakeLists.txt CMake does not need to
1>re-run because C:\DXC\CMakeFiles
\generate.stamp is up-to-date.
1>Performing Post-Build Event...
1>-- Install configuration: "Release"
1>-- Up-to-date: C:/DXC/Bin/dxcApi.dll
1>-- Installing: C:/DXC/Include/.
1>-- Installing: C:/DXC/Include/./Connection
1>-- Up-to-date: C:/DXC/Include/./Connection/ConnectorFactory.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/DAConnector.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/DxcConnector.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/DxcConnectorImp.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/OracleConnector.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/
ScenarioLoaderConnector.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/
ScenarioRecorderConnector.hpp
1>-- Up-to-date: C:/DXC/Include/./Connection/SDSConnector.hpp
1>-- Installing: C:/DXC/Include/./DataTypes
1>-- Up-to-date: C:/DXC/Include/./DataTypes/Candidate.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/Command.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/CommandData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/DiagnosisData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/DxcData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/DxcException.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/ErrorData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/Fault.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/FaultInjectData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/Literal.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/ProfilingData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/RecoveryData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/ScenarioData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/ScenarioStatusData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/SensorData.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/SystemCatalog.hpp
1>-- Up-to-date: C:/DXC/Include/./DataTypes/Value.hpp
1>-- Up-to-date: C:/DXC/Include/./DxcCallback.hpp
1>-- Up-to-date: C:/DXC/Include/./DxcConfig.hpp
1>-- Up-to-date: C:/DXC/Include/./DxcDataTypes.hpp
1>-- Up-to-date: C:/DXC/Include/./DxcDefs.hpp
1>-- Installing: C:/DXC/Include/./Parser
1>-- Up-to-date: C:/DXC/Include/./Parser/MessageDriver.hpp
1>-- Up-to-date: C:/DXC/Include/./Parser/MessageScanner.hpp
1>-- Up-to-date: C:/DXC/Include/./Parser/tinystr.hpp
1>-- Up-to-date: C:/DXC/Include/./Parser/tinyxml.hpp
1>-- Up-to-date: C:/DXC/Algs/ExampleDA/ExampleDA.exe
1>-- Up-to-date: C:/DXC/Examples/ExampleDA/ExampleDA.cpp
1>-- Up-to-date: C:/DXC/Examples/ExampleDA/ExampleRecoveryDA.cpp
1>-- Up-to-date: C:/DXC/Examples/ExampleDA/ExampleProbeDA.cpp
1>-- Up-to-date: C:/DXC/Algs/ExampleDA/config.xml
1>-- Up-to-date: C:/DXC/Examples/ExampleDA/config.xml
1>-- Up-to-date: C:/DXC/Bin/ScenarioLoader.exe
1>-- Up-to-date: C:/DXC/Bin/ScenarioRecorder.exe
1>-- Up-to-date: C:/DXC/Bin/SDS.exe
1>Build log was saved at "file://c:\DXC\INSTALL.dir\Release
\BuildLog.htm"
1>INSTALL - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
On Jan 18, 7:49Â am, "Narasimhan, Sriram (ARC-TI)[Affiliate]"
Sriram
-----Original Message-----
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Wednesday, March 14, 2012 2:21 PM
To: DX Competition Discussion Group
Subject: [DXC11] Re: can't compile the dxc project
ok so we are trying to compile the ExampleDA it has become our holy grail, im starting to doubt we'll ever succeed on making it, now we get this notice:
http://www.flickr.com/photos/74908757@N02/6836866794/
this is the VS2005 output:
'ExampleDA.exe': Loaded 'C:\DXC\Build\Algs\ExampleDA\Release
\ExampleDA.exe', Binary was not built with debug information.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\DXC\Bin\dxcApi.dll', Binary was not built with debug information.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\WinSxS
\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-
ww_e6967989\msvcp80.dll', No symbols loaded.
'ExampleDA.exe': Loaded 'C:\WINDOWS\WinSxS
\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-
ww_e6967989\msvcr80.dll', No symbols loaded.
The program '[1920] ExampleDA.exe: Native' has exited with code 0 (0x0).
On Mar 14, 10:53Â pm, "Narasimhan, Sriram (ARC-TI)[Affiliate]"
The key to this was that dxcAPI was not being compiled because of the flex issue (2.5.35 will work around the missing unistd.h file) and so everything else was failing because they depended on dxcAPI.
Let me know how things work out.
Sriram
-----Original Message-----
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Wednesday, March 14, 2012 9:53 PM
To: DX Competition Discussion Group
Subject: [DXC11] Re: can't compile the dxc project
wow that's an impressive conclusion!, that's because in another path wo took (build all) it does say that unistd.h is missing:
once we will compile the project we can get down to writing our algorithm, but in any case, THANKS A LOT(!) for your help, we don't take it for granted at all and we sincerely appriciate it.
VS2005 log:
1>------ Rebuild All started: Project: ZERO_CHECK, Configuration:
Release Win32 ------
1>Deleting intermediate and output files for project 'ZERO_CHECK',
configuration 'Release|Win32'
1>Checking Build System
1>CMake does not need to re-run because C:/DXC/CMakeFiles/
generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/CMakeFiles/
generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/APIs/CMakeFiles/
generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/APIs/cpp/
CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/Algs/CMakeFiles/
generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/Algs/ExampleDA/
CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/ScenarioLoader/
CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/ScenarioRecorder/
CMakeFiles/generate.stamp is up-to-date.
1>CMake does not need to re-run because C:/DXC/Build/SDS/CMakeFiles/
generate.stamp is up-to-date.
1>Build log was saved at "file://c:\DXC\ZERO_CHECK.dir\Release
\BuildLog.htm"
1>ZERO_CHECK - 0 error(s), 0 warning(s)
2>------ Rebuild All started: Project: dxcApi, Configuration: Release
Win32 ------
2>Deleting intermediate and output files for project 'dxcApi',
configuration 'Release|Win32'
2>[FLEX][DXC_MSG_SCANNER] Building scanner with flex C:/GnuWin32/bin/
flex.exe version 2.5.4
2>[BISON][DXC_MSG_PARSER] Building parser with bison 2.4.1 Building
2>Custom Rule C:/DXC/Src/APIs/cpp/CMakeLists.txt
2>CMake does not need to re-run because C:\DXC\Build\APIs\cpp
\CMakeFiles\generate.stamp is up-to-date.
2>Compiling...
2>MessageScanner.cpp
2>..\..\..\Src\APIs\cpp\Parser\MessageScanner.cpp(28) : fatal error
C1083: Cannot open include file: 'unistd.h': No such file or directory
2>MessageParser.cpp
2>tinyxmlparser.cpp
2>tinyxmlerror.cpp
2>tinyxml.cpp
2>tinystr.cpp
2>MessageDriver.cpp
2>SDSConnector.cpp
2>ScenarioRecorderConnector.cpp
2>ScenarioLoaderConnector.cpp
2>OracleConnector.cpp
2>DxcConnectorImp.cpp
2>DAConnector.cpp
2>ConnectorFactory.cpp
2>Value.cpp
2>SystemCatalog.cpp
2>SensorData.cpp
2>ScenarioStatusData.cpp
2>ScenarioData.cpp
2>RecoveryData.cpp
2>Generating Code...
2>Compiling...
2>ProfilingData.cpp
2>Literal.cpp
2>FaultInjectData.cpp
2>Fault.cpp
2>ErrorData.cpp
2>DxcException.cpp
2>DxcData.cpp
2>DiagnosisData.cpp
2>CommandData.cpp
2>Command.cpp
2>Candidate.cpp
2>InitDll.cpp
2>DxcDefs.cpp
2>DxcConfig.cpp
2>DxcCallback.cpp
2>Generating Code...
2>Build log was saved at "file://c:\DXC\Build\APIs\cpp\dxcApi.dir
\Release\BuildLog.htm"
2>dxcApi - 1 error(s), 0 warning(s)
3>------ Rebuild All started: Project: ScenarioLoader, Configuration:
Release Win32 ------
4>------ Rebuild All started: Project: SDS, Configuration: Release
Win32 ------
5>------ Rebuild All started: Project: ExampleDA, Configuration:
Release Win32 ------
3>Deleting intermediate and output files for project 'ScenarioLoader',
configuration 'Release|Win32'
4>Deleting intermediate and output files for project 'SDS',
configuration 'Release|Win32'
5>Deleting intermediate and output files for project 'ExampleDA',
configuration 'Release|Win32'
6>------ Rebuild All started: Project: ScenarioRecorder,
Configuration: Release Win32 ------
6>Deleting intermediate and output files for project
'ScenarioRecorder', configuration 'Release|Win32'
6>Building Custom Rule C:/DXC/Src/ScenarioRecorder/CMakeLists.txt
4>Building Custom Rule C:/DXC/Src/SDS/CMakeLists.txt
5>Building Custom Rule C:/DXC/Src/Algs/ExampleDA/CMakeLists.txt
3>Building Custom Rule C:/DXC/Src/ScenarioLoader/CMakeLists.txt
6>CMake does not need to re-run because C:\DXC\Build\ScenarioRecorder
\CMakeFiles\generate.stamp is up-to-date.
6>Compiling...
5>CMake does not need to re-run because C:\DXC\Build\Algs\ExampleDA
\CMakeFiles\generate.stamp is up-to-date.
4>CMake does not need to re-run because C:\DXC\Build\SDS\CMakeFiles
\generate.stamp is up-to-date.
3>CMake does not need to re-run because C:\DXC\Build\ScenarioLoader
\CMakeFiles\generate.stamp is up-to-date.
4>Compiling...
3>Compiling...
5>Compiling...
6>ScenarioRecorder.cpp
4>SDS.cpp
3>ProcessFactory.cpp
5>ExampleDA.cpp
3>ScenarioTracker.cpp
6>Linking...
6>LINK : fatal error LNK1181: cannot open input file '..\APIs\cpp
\Release\dxcApi.lib'
6>Build log was saved at "file://c:\DXC\Build\ScenarioRecorder
\ScenarioRecorder.dir\Release\BuildLog.htm"
6>ScenarioRecorder - 1 error(s), 0 warning(s)
3>DAConfig.cpp
3>JavaLoader.cpp
3>LinuxFileLister.cpp
3>LinuxExeLoader.cpp
3>WinFileLister.cpp
3>WinExeLoader.cpp
3>ScenarioLoader.cpp
3>Generating Code...
3>Linking...
4>Linking...
5>Linking...
3>LINK : fatal error LNK1181: cannot open input file '..\APIs\cpp
\Release\dxcApi.lib'
4>LINK : fatal error LNK1181: cannot open input file '..\APIs\cpp
\Release\dxcApi.lib'
5>LINK : fatal error LNK1181: cannot open input file '..\..\APIs\cpp
\Release\dxcApi.lib'
4>Build log was saved at "file://c:\DXC\Build\SDS\SDS.dir\Release
\BuildLog.htm"
4>SDS - 1 error(s), 0 warning(s)
5>Build log was saved at "file://c:\DXC\Build\Algs\ExampleDA
\ExampleDA.dir\Release\BuildLog.htm"
5>ExampleDA - 1 error(s), 0 warning(s)
3>Build log was saved at "file://c:\DXC\Build\ScenarioLoader
\ScenarioLoader.dir\Release\BuildLog.htm"
3>ScenarioLoader - 1 error(s), 0 warning(s)
7>------ Rebuild All started: Project: ALL_BUILD, Configuration:
Release Win32 ------
7>Deleting intermediate and output files for project 'ALL_BUILD',
configuration 'Release|Win32'
7>Building Custom Rule C:/DXC/CMakeLists.txt CMake does not need to
7>re-run because C:\DXC\CMakeFiles
\generate.stamp is up-to-date.
7>Build log was saved at "file://c:\DXC\ALL_BUILD.dir\Release
\BuildLog.htm"
7>ALL_BUILD - 0 error(s), 0 warning(s)
8>------ Skipped Rebuild All: Project: INSTALL, Configuration: Release
Win32 ------
8>Project not selected to build for this solution configuration
========== Rebuild All: 2 succeeded, 5 failed, 1 skipped ==========
On 03/15/2012 11:29 PM, Narasimhan, Sriram (ARC-TI)[Affiliate] wrote:
You build fails because your flex is very old.
To fix the problem (1) uninstall the current versions of Bison and Flex,
(2) install Cygwin, (3) install Cygwin's latest version of bison and flex.
After that, open a cygwin shell, go to DXC, make a build directory and
in this directory execute cmake <source> where <source> points to your
DXC sources. At this point you can open the .sln file and compile with
MSVC. I have just tried it and it works out of the box.
Let me know if you have any troubles.
Best regards,
-- Alex
On 03/15/2012 05:53 AM, Yakir Manor wrote:
> wow that's an impressive conclusion!, that's because in another path
> wo took (build all) it does say that unistd.h is missing:
>
> http://youtu.be/O_WS68vsEhA
>
> once we will compile the project we can get down to writing our
> algorithm, but in any case, THANKS A LOT(!) for your help, we don't
> take it for granted at all and we sincerely appriciate it.
>
> VS2005 log:
>
> 1>------ Rebuild All started: Project: ZERO_CHECK, Configuration:
> Release Win32 ------
> 1>Deleting intermediate and output files for project 'ZERO_CHECK',
> configuration 'Release|Win32'
> 2>Building Custom Rule C:/DXC/Src/APIs/cpp/CMakeLists.txt
> 7>Building Custom Rule C:/DXC/CMakeLists.txt
> 7>CMake does not need to re-run because C:\DXC\CMakeFiles
> \generate.stamp is up-to-date.
> 7>Build log was saved at "file://c:\DXC\ALL_BUILD.dir\Release
> \BuildLog.htm"
> 7>ALL_BUILD - 0 error(s), 0 warning(s)
> 8>------ Skipped Rebuild All: Project: INSTALL, Configuration: Release
> Win32 ------
Sriram
-----Original Message-----
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Saturday, March 17, 2012 6:01 PM
To: DX Competition Discussion Group
Subject: [DXC11] Re: can't compile the dxc project
hi again alex,
any chance if its not too much to ask, you will take the time in the future to do a screen capture video, http://camstudio.org/ of just the main steps and upload it to youtube, in any case i think that when ill actually make it work ill do a detailed one myself and share it on this group, just so others can use it in the future.
yakir.
Sriram
-----Original Message-----
From: dx-comp...@googlegroups.com [mailto:dx-comp...@googlegroups.com] On Behalf Of Yakir Manor
Sent: Friday, March 23, 2012 9:13 AM
To: DX Competition Discussion Group
Subject: [DXC11] Re: can't compile the dxc project
DXC is not a framework that is designed for development of DAs. I am
pretty sure with MSVC (and gdb) you can put a breakpoint in your DA and
stop there, but implementing your DA in this manner would be pretty
inconvenient (the edit/compile/run loop would be very slow).
Normally, you develop your DA aside, writing your own utilities for
testing it with scenarios, etc. At the end, when you're pretty sure
everything goes OK, you change the "main" funciton with the DXC API and
then you integrate it in the framework.
Of course this is all very subjective and you do what works for you...
Best regards,
-- Alex
David G