RE: [DXC11] i need help with cmake, BISON and FLEX, i am willing to pay

238 views
Skip to first unread message
Message has been deleted
Message has been deleted

Narasimhan, Sriram (ARC-TI)[Affiliate]

unread,
Jan 18, 2012, 12:49:40 AM1/18/12
to dx-comp...@googlegroups.com
Hi Yakir,

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.

Message has been deleted

Alexander Feldman

unread,
Jan 18, 2012, 2:25:23 AM1/18/12
to dx-comp...@googlegroups.com
Hi Yakir,

In order to run the synthetic track, you don't need the Oracle, Java, etc. From your emails it seems that you don't have very clear idea of what you're doing. We can help you if you send an email with a more detailed description of what you're trying the achieve.

I am not sure you can afford paying us :)

Best regards,

-- Alex

On 01/18/2012 08:19 AM, Yakir Manor wrote:
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.   
Message has been deleted

Meir Kalech

unread,
Jan 18, 2012, 2:50:14 AM1/18/12
to dx-comp...@googlegroups.com

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. 

Message has been deleted
Message has been deleted

Narasimhan, Sriram (ARC-TI)[Affiliate]

unread,
Mar 14, 2012, 4:53:29 PM3/14/12
to dx-comp...@googlegroups.com
You need to change the startup project to the appropriate one (ExampleDA in your case I think). Right Click on ExampleDA and Set it as the start up project.

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]"

Message has been deleted

Narasimhan, Sriram (ARC-TI)[Affiliate]

unread,
Mar 14, 2012, 5:38:13 PM3/14/12
to dx-comp...@googlegroups.com
Switch to the Release configuration (Drop down menu where it says Debug in the top menu bar). Looks like stuff was compiled in Release mode but you are trying to run in Debug mode.

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]"

Message has been deleted
Message has been deleted

Narasimhan, Sriram (ARC-TI)[Affiliate]

unread,
Mar 15, 2012, 6:29:45 PM3/15/12
to dx-comp...@googlegroups.com
Ok looks like the cause for this problem is the version of Flex being used. The GNU Win32 version is 2.5.4 but what you need is 2.5.35. The best way to get flex 2.5.35 is by installing cygwin (there doesn't seem to be any native windows version for 2.5.35). Once you install flex 2.5.35 (and make sure your paths are setup to find flex 2.5.35 rather than flex 2.5.4 that you have installed) all you have to do is build the ALL_BUILD target and then the INSTALL target. Switch to the command line (do not try to run from Visual Studio because you want to run from the installed directory - Visual Studio is still pointing to the build directory) and change to wherever you set the install directory to in CMake. Type ScenarioLoader and as specified it will run all Das in the Algs folder. For the ExampleDA go to Algs/ExampleDA folder and edit the config.xml to include which every system (polycell, ADAPT or ADAPT-Lite) you want to run on (just uncomment the appropriate lines).

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:

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'
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 ==========

Alexander Feldman

unread,
Mar 15, 2012, 6:35:28 PM3/15/12
to dx-comp...@googlegroups.com
I will fix it but I have to install some stuff, so I will do this during
the weekend. Hope this can wait a day or two.

Alexander Feldman

unread,
Mar 15, 2012, 6:36:08 PM3/15/12
to dx-comp...@googlegroups.com
BTW, I am probably coming during summer and will try to revive DXC and
get a second industrial track.

On 03/15/2012 11:29 PM, Narasimhan, Sriram (ARC-TI)[Affiliate] wrote:

Alexander Feldman

unread,
Mar 17, 2012, 7:51:11 PM3/17/12
to dx-comp...@googlegroups.com
Hi Yakir,

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 ------

Message has been deleted
Message has been deleted

Narasimhan, Sriram (ARC-TI)[Affiliate]

unread,
Mar 17, 2012, 9:46:22 PM3/17/12
to dx-comp...@googlegroups.com
After installing flex and bison on cygwin, you don't even have to build in cygwin, you can do it natively on windows using CMake for windows, visual studio etc. You just have to put cygwin/bin in the path (and make sure it is before any other flex or bison you have installed).

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.

Yakir Manor

unread,
Mar 23, 2012, 12:12:34 PM3/23/12
to DX Competition Discussion Group
Hello Sriram and Alex,

First of all I want to thank you for helping us compile the project.
Sriram, you were right: after installing Cygwin with all of the
developing packages (I assume Flex, Bison and Cmake would have done
the trick but I did not take any chances), it worked like a charm.
All I needed to do was adding the environment variable of the bin
folder of Cygwin.
So now we can compile the project and the ExampeDA. We want to run it
on debug mode, if we run the ScenarioLoader from VS2005 it does not
continue to our ExampleDA code and I assume it goes to the %DXC_HOME%
folder and run the ExampleDA from that folder.

Any thoughts of how to run it in the debug mode?
___________________________________________________________________



and for all the others who want to compile the project:
* all installations should be without spaces in the folder name,
preferably as close to the drive letter as possible, not the program
files default folder.
install cmake (newest version).
install cygwin with all devel packages.
install java jdk and create new environment variable JAVA_HOME
pointing to the install folder like so C:\Java\jdk1.7.0_03
install the DXC framework msi file, preferably C:\DXC\ and if no
environment variable was set create a new one called DXC_HOME.
set environment variable path: C:\Program Files\CMake 2.8\bin;C:
\Program Files\doxygen\bin;%DXC_HOME%\Bin;C:\cygwin\bin;C:\DXC\Bin,
some of it will be added automatically after the instillation.
I installed doxygen as well, I'm not sure if its mandatory.
unpack DXC10v2.1-Windows-x86-Oracle_0.zip, i chose C:\DXC_proj, go to
it with CMD and type "cmake ." i did it on winXP 32bit and VS2005 but
it also worked with win7 and VS2010, now build on release mode dxcApi,
ScenarioLoader, ScenarioRecorder and SDS, now you can compile INSTALL.
Mission Accomplished!

Narasimhan, Sriram (ARC-TI)[Affiliate]

unread,
Mar 23, 2012, 12:30:26 PM3/23/12
to dx-comp...@googlegroups.com
The scenario loader was meant to be run from the command line after building the install target in visual studio (this copies all the required files to the install folder). I am not sure how you would step through the code (debug mode) with this configuration. I will investigate and let you know.

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

Alexander Feldman

unread,
Mar 23, 2012, 12:35:38 PM3/23/12
to dx-comp...@googlegroups.com
Hello Yakir,

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 Garcia

unread,
Mar 23, 2012, 12:37:36 PM3/23/12
to dx-comp...@googlegroups.com
SDS, the program that loads scenarios and sends the data to your DA,
can be run in "standalone mode", which means it only runs one scenario
and waits until the DA is manually started. This way you can start
your DA in debug mode from a debugger. Try running SDS from the
command line for the correc syntax.

David G

Reply all
Reply to author
Forward
Message has been deleted
0 new messages