bugCERTI - Bugs: bug #47584, Compilation Error of the...

 
 

bug #47584: Compilation Error of the HLA_TestsSuite-0.3.0-Source.tar.gz with CERTI v3.5.1

Submitter:  JbCh <jb_ch>
Submitted:  Thu 31 Mar 2016 12:45:28 PM UTC
   
 
Category:  HLA_TestsSuite Severity:  * 3 - Normal
Item Group:  Compilation error Status:  Fixed
Privacy:  Public Assigned to:  jb_ch
Open/Closed:  Closed Release:  * Unknown
Reproducibility:  Every Time Fixed Release:  * GIT-master
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 19 Dec 2017 11:33:08 AM UTC, comment #6: 

Issue fixed.
Closing this one.

JbCh <jb_ch>
Group administrator
Fri 01 Apr 2016 03:14:41 PM UTC, comment #5: 

Ok, tested with the git master (certi and applications/HLA_TestSuite).

- Compilation works fine
- Execution seems to work fine (few tests have been done).
- The example is much more complete! Great!

Therefore I believe that we can create an archive out of it ;)
I don't know how you want to handle the archive numberings in the download page from the different tag versions.

Let me know if I can help.

Thanks again,
Cheers,
Jb

JbCh <jb_ch>
Group administrator
Fri 01 Apr 2016 02:49:18 PM UTC, comment #4: 

Ooooh, my bad, thanks (I am pretty new in git ;)
I will try it and update the ticket accordingly then.


JbCh <jb_ch>
Group administrator
Fri 01 Apr 2016 02:44:50 PM UTC, comment #3: 

Nope.
You have to clone:

<user>@git.sv.gnu.org:/srv/git/certi/applications.git

then go to:
applications/HLA_TestsSuite

Eric NOULARD <erk>
Group administrator
Fri 01 Apr 2016 02:41:28 PM UTC, comment #2: 

Hi,

I just cloned the git master and compiled it.

I contains a folder with testFederate under:
PATH/certi/test/testFederate

The architecture (C file, fed files and Python files) is different than the HLA_TestSuite I was using for my student.

Is it the test project you are referring to?

Cheers,
Jb

JbCh <jb_ch>
Group administrator
Fri 01 Apr 2016 12:53:59 PM UTC, comment #1: 

Hi JB,

I guess the 0.3.0 archive is outdated w.r.t.  the current git master. Would you please try git master ?

I guess all the fix you made are already there.
May be we can create a new tag + archive from git master.

Cheers,
Eric

Eric NOULARD <erk>
Group administrator
Thu 31 Mar 2016 12:45:28 PM UTC, original submission:  

I had some errors trying to compile HLA_TestsSuite-0.3.0-Source.tar.gz with CERTI v3.5.1.
Here are my findings...

My Environment is:
-------------------
- CERTI v3.5.1
- Fedora 23 64 bits (4.4.2-301.fc23.x86_64)
- g++ (GCC) 5.3.1
- GNU Make 4.0

----------------------------
Step 1: cmake configuration
----------------------------

First the CMakeList.txt seems not to be able to find the CERTI (after a proper source myCERTI_env.sh) with the command on line 73:

> INCLUDE(UseCERTI)


I changed this for:

> FIND_PACKAGE(RTI REQUIRED)
> INCLUDE_DIRECTORIES(${RTI_INCLUDE_DIR})
> ADD_DEFINITIONS(${RTI_DEFINITIONS})


Then the cmake command went successful

----------------------------
Step 2: compilation using make
----------------------------
Secondly the make command was failing returning different errors.
Here are the files, I had to modify:

1)
I had to modify the "HLATestsSuiteTools.cmake" because it was using the env variable ${CERTI_LIBRARIES} (most likely comming from the INCLUDE(UseCERTI))
I had to change these for ${RTI_LIBRARIES}

2)
Moficiation create_destroy.cc, test_Sync.cc and test_HugeAVPV.cc (due to error with sleep() usage)
adding:

> #include <unistd.h>



Ok it works now.
You can find attached a new archive named HLA_TestsSuite-0.3.1-Source.tar.gz which contains the source archive with my patches.

I am writing this issue as documentation and set to fixed as it works for me.
Let me know if you have any question or feedback.

JbCh <jb_ch>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #36810:  HLA_TestsSuite-0.3.1-Source.tar.gz added by jb_ch (153KiB - application/gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by erk (Posted a comment)
  • -email is unavailable- added by jb_ch (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-19 jb_ch Open/ClosedOpen Closed
    2016-04-01 erk ReleaseGIT-master Unknown
    2016-03-31 jb_ch Attached File- Added HLA_TestsSuite-0.3.1-Source.tar.gz, #36810

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code