Skip to content

Commit

Permalink
Fix nasa#50, Updates Guide-GroundSystem.txt and CheaderParser.py from…
Browse files Browse the repository at this point in the history
… python 2-->3

Fix nasa#50, Updates Guide-GroundSystem.txt and CheaderParser.py from python 2-->3

Fix nasa#50, Updates Guide-GroundSystem.txt and CheaderParser.py from python 2-->3
  • Loading branch information
dmknutsen committed Mar 18, 2020
1 parent c982339 commit 09f894b
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 129 deletions.
67 changes: 12 additions & 55 deletions Guide-GroundSystem.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,59 +23,16 @@ Before launching the Ground System make sure that:
-> cmdUtil is compiled.


Installing and running cFS Ground System on Mac:
Install using Homebrew on Mac (http://brew.sh/)
$ brew install pyqt
$ brew install zeromq
$ ( cd Subsystems/cmdUtil/ && make )
$ python GroundSystem.py

Installing and running cFS Ground System on Ubuntu:
$ sudo apt-get install python-qt4 python-qt4-dev
$ sudo apt-get install python-zmq
$ sudo apt-get install python3-pyqt4
$ sudo apt-get install python3-zmq
$ sudo apt-get install libcanberra-gtk-module
$ ( cd Subsystems/cmdUtil/ && make )
$ python GroundSystem.py


Installing and running cFS Ground System on CentOS 6:
$ su
$ <type password>
$ yum -y update

#### Install pip and python-development ####
# If you are on a 64-bit CentOS / RHEL based system:
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ rpm -ivh epel-release-6-8.noarch.rpm

# If you are on a 32-bit CentOS / RHEL based system:
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
$ rpm -ivh epel-release-6-8.noarch.rpm

$ yum install -y python-pip
$ yum install -y python-devel

#### Install zeroMQ and pyZMQ messaging system ####
$ yum install -y uuid-devel
$ yum install -y pkgconfig
$ yum install -y libtool
$ yum install -y gcc-c++
$ wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
$ tar xzvf zeromq-4.0.5.tar.gz
$ cd zeromq-4.0.5
$ ./configure
$ make
$ make install
$ echo /usr/local/lib > /etc/ld.so.conf.d/local.conf
$ ldconfig
$ pip install pyzmq

#### Install pyQT4 ####
$ yum install -y PyQt4
$ yum install -y qt qt-demos qt-designer qt4 qt4-designer


### Running Ground System ###
$ python GroundSystem.py
$ python3 GroundSystem.py


Historically included instructions for running on Mac or CentOS, but instructions have not been maintained.
Welcoming instruction contributions if any of these are your platform of choice.


##############################################################################
Expand Down Expand Up @@ -104,7 +61,7 @@ Steps to adding application commands to the Ground System:

2) Run CHeaderParser
2.1) Call CHeaderParser using python
~$ python CHeaderParser.py
~$ python3 CHeaderParser.py
2.2) The program will prompt you to enter a filename for the application.
This will create a pickle file for your application named CommandFiles/<user_defined_name>. Notice that this file will be stored in the CommandFiles directory. This same filename will be used in command-pages.txt later.
2.3) Type 'yes' if any commands in your application have parameters
Expand Down Expand Up @@ -145,9 +102,9 @@ Issue: Cannot Send Command, receiving the following error:
> Traceback (most recent call last):
> File "Parameter.py", line 100, in ProcessSendButton
> subprocess.Popen(cmd_args, stdout=subprocess.PIPE)
> File "/usr/lib/python2.6/subprocess.py", line 642, in __init__
> File "/usr/lib/python3.7/subprocess.py", line 642, in __init__
> errread, errwrite)
> File "/usr/lib/python2.6/subprocess.py", line 1234, in _execute_child
> File "/usr/lib/python3.7/subprocess.py", line 1234, in _execute_child
> raise child_exception
> OSError: [Errno 8] Exec format error

Expand All @@ -157,7 +114,7 @@ To fix this problem, use the Makefile inside of the cmdUtil directory to compile
$ cd Subsystems/cmdUtil
$ make
$ cd ../..
$ python GroundSystem.py
$ python3 GroundSystem.py

-----------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions Subsystems/cmdGui/CHeaderParser-hdr-paths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# This program does support relative paths but if the program cannot
# find your header files, try using absolute paths.
#
#../../../../../apps/to_lab/fsw/src/to_lab_msg.h
#../../../../../apps/ci_lab/fsw/src/ci_lab_msg.h
#../../../../apps/to_lab/fsw/src/to_lab_msg.h
#../../../../apps/ci_lab/fsw/src/ci_lab_msg.h
Loading

0 comments on commit 09f894b

Please sign in to comment.