alessandro-pinto / commsynth

Automatically exported from code.google.com/p/commsynth
Other
1 stars 0 forks source link

COSIROOT Enviroment variable #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear all, 
Recently I have compiled COSI by g++/gcc4.3 in Ubuntu-9.04. By 
apending following libraries and removing kmedian.cpp and kmedian.h 
files the COSI was compiled and the static library "libCOSI.a" was 
created. 
The following libraries have been added: 
   - algorithms/onchipcommunication/NetworkCost.cpp --> 
#include "limits.h" 
   - core/IdGraph.cpp --> #include "memory" and #include "cstdlib" 
   - core/IdUndirectedGraph.cpp --> #include "cstdlib" 
   - models/onchipcommunication/node/BusDelayModel.h --> #include 
"networks/onchipcommunication/Implementation.h" 
#include"quantities/RealDelay.h" 
In kmedian.cpp file, "Xy_Flow_Graph" and "NocPlatformRefined" are not 
declared, so after removing these files "libCOSI.a" will be created. 
For compiling the main file, I have created a new project, then I have 
edited the project properties such as defining "TIXML_USE_STL" symbol, 
adding include path "tinyxml", "newmat10", "COSI directory", "COSI 
library" and the path which points to the "libCOSI.a" library. But, 
the compiler can not use libraries properly so the errors like 
"undefined reference to 
`cosi::algorithms::onchipcommunication::MeshTopology::GetImplementation
()'"­was 
appeared. I have tried these process for "CosiNoc1.3", "COSI_tests" 
and "main_BAN.cpp" main files. 

---------------------------------------------------------------------------
­------------------------------------ 
Detail of the Build setting are: 
GCC C++ compiler --> preprocessor--> TIXML_USE_STL 
                 --> Directories--> --> include path (-l) --> "COSI 
path"/COSI 
                                                          --> "tinyxml 
path"/tinyxml 
                                                          --> "newmat 
path"/newmath10 
GCC C Compiler--> Directories--> iclude path (-l)--> "COSI 
path"/COSI/include 
---------------------------------------------------------------------------
­-------------------------------------- 

Original issue reported on code.google.com by alessand...@gmail.com on 12 Dec 2009 at 3:11

GoogleCodeExporter commented 8 years ago
Midia and other, 
I have committed a new version of COSI. The newmat and tinyxml library are now 
directly shipped with COSI. If you checkout the code and import the project 
into 
Eclipse it should compile without problems (I have excluded from build the 
Kmedia 
and the BusDelayModel). 
I have also uploaded a zip file here 
http://code.google.com/p/commsynth/downloads/list called OCC.zip. This is an 
Eclipse 
project that contains the main_OCC.cpp file. Please unzip this into the same 
Eclipse 
workspace as COSI and and try to build the project.

The only change that you will need to make in both projects is the compilation 
tool-
chain that is under the project properties. 

Please, give it a try and let me know.

Thanks 
Alessandro

PS.: I think we will have to restructure the SVN repository at some point, but 
let's 
keep it this way for now.

Original comment by alessand...@gmail.com on 19 Dec 2009 at 10:18

GoogleCodeExporter commented 8 years ago
Dear All, 
I have compiled the last revision of COSI (r5) by gcc/g++ 4.3 which includes 
tinyxml
and newmat libraries. The COSI library compiled with no errors. I also tested 
other
main file as a new eclipse project and those main files were compiled with no 
errors. 

Original comment by mi.reshadi@gmail.com on 2 Jan 2010 at 11:52

GoogleCodeExporter commented 8 years ago
Dear all,

just a note for Mac users:

I've just downloaded the new r5 revision of COSI. I work on a Mac with 
SnowLeopard, 
gcc 4.2.1 and Eclipse Galileo (3.5).   The installation of Eclipse is fresh so  
not biased 
by older configurations.

By importing the project and building it right away  I get 32 repeated errors 
as: 
'TiXmlNode' has not been declared in the file 
ProjectParser.h and in file HoOrionModelParser.h I get 'tinyxml.h: No such file 
or 
directory'.

You can solve the issue by using the FULL PATH in  Properties->C/C++ Build-
>Settings->C++Compiler->Directories  for newmat and tinyxml folders.

Thanks,

N

Original comment by nicola.c...@gmail.com on 9 Feb 2010 at 3:59

GoogleCodeExporter commented 8 years ago
Dear all,
After compiling the main file, Linux user may have a problem in running cosi 
main
file. After compiling the Cosi main file and setting COSIROOT and executive file
paths -Binary file path-, the error message: 
"terminate called after throwing an instance of 'std::logic_error' what(): 
basic_string::_S_construct NULL not valid Aborted" is appeared. 
This message is appeared when the COSIROOT path was not set. In the main file, I
guess the getenv function in "CosiRoot = string(getenv("COSI_ROOT"));" line of 
code
does not return the COSIROOT string correctly. In order to run cosi main file I 
set
the path of "cosiconfig.xml" to CosiRoot variable directly.
I run and compile COSI by eclipse 3.5 Galileo.

Thanks,
Midia.  

Original comment by mi.reshadi@gmail.com on 28 Feb 2010 at 12:02