Skip to content

How to use the example #12

@ghost

Description

I would like to re-use your PacketLib for my satellite telemetry simulator project that requires use of CCSDS space data packet format. I did a git clone of your project and install ("make") on my macbook pro. It returns no error but the binaries are not copied to /usr/local/lib etc.

My intent is to:

  1. Create sample telemetry test data in CCSDS space data packet format with test data telemetry payload
  2. Use PacketLib to send/receive

Thanks in advance.

DETAILS - ERRORS

  1. git clone your project
  2. compile ("make")
horologium:satellites ray$ cd PacketLib/
horologium:PacketLib ray$ ls
AUTHORS         Doxyfile        PacketLib.xcodeproj doc         template
CMakeLists.txt      INSTALL         README          examples        test
CMakeModules        LICENSE         README.dist     include
COPYING         Makefile        README.md       model
ChangeLog       Makefile.dist       TODO            rpmmake.spec
DISTRIBUTION        PacketLib-doc       conf            src
horologium:PacketLib ray$ make
test -d obj || mkdir -p obj
c++ -O3 -fPIC -fexceptions -Wall -I ./include -I/include -c src/ByteStream.cpp -o obj/ByteStream.o
c++ -O3 -fPIC -fexceptions -Wall -I ./include -I/include -c src/ConfigurationFile.cpp -o obj/ConfigurationFile.o
c++ -O3 -fPIC -fexceptions -Wall -I ./include -I/include -c src/DataFieldHeader.cpp -o obj/DataFieldHeader.o
c++ -O3 -fPIC -fexceptions -Wall -I ./include -I/include -c src/Device.cpp -o obj/Device.o
...
c -O3 -fPIC -fexceptions -Wall -I ./include -I/include -c src/lz4.c -o obj/lz4.o
cc -O3 -fPIC -fexceptions -Wall -I ./include -I/include -c src/lz4hc.c -o obj/lz4hc.o
test -d lib || mkdir -p lib
rm -f lib/libpacket.a   
ar cqs lib/libpacket.a obj/*.o
  1. cd to /examples and execute "make"
horologium:examples ray$ pwd
/Users/ray/dev/opensource/satellites/PacketLib/examples
horologium:examples ray$ make
usage: cut -b list [-n] [file ...]
       cut -c list [file ...]
       cut -f list [-s] [-d delim] [file ...]
test -d obj || mkdir -p obj
c++  -fexceptions -Wall -I /usr/local/include -O2 -c examples/in.cpp -o obj/in.o
examples/in.cpp:22:10: fatal error: 'iostream.h' file not found
#include <iostream.h>
         ^
1 error generated.
make: *** [in.o] Error 1

Questions

  • I also couldn't find instructions how to run the examples with details. Any step-by-step instructions to run your /examples and /examples2?
  • Where can i find any sample telemetry data files or payload for testing PacketLib?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions