Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the example #12

Open
ghost opened this issue Mar 2, 2016 · 0 comments
Open

How to use the example #12

ghost opened this issue Mar 2, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2016

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants