-
Notifications
You must be signed in to change notification settings - Fork 5
Home
ondrap edited this page Sep 13, 2010
·
7 revisions
Welcome to the GiPSy project aimed at creating a multiplatform logbook of paraglider or hangglider flights. In order to compile the code, you will need:
- gecko SDK (on Linux platforms the package is usually called xulrunner-dev)
- ragel
- libusb (on Linux/MacOS platforms)
- optionally (to build city database): python with sqlite3 modules
- optionally (if you have the private key to generate g-records, which you don’t have): cryptopp
To build the library:
- Enter the xpc directory
- Update Makefile.[your_platform] to match your paths to gecko sdk. You will have to try to add the correct paths to correct header files, every installation of gecko SDK is different
- Edit rules.makefile – comment out the definition of -DHAVE_CRYPTO
- type ‘make’ – this should produce files IGPSScanner.xpt and gipsy.so (or gipsy.dll)
- copy these files into the directory extension/platform/[your platform]/components/
On Windows this is slightly more tricky:
- Use Visual Studio Express 2008
- I have forgotten the trick to compile correctly the crypto++ libraries – as far as I remember the static library must be compiled in dynamic Multi/threaded mode
- Undefine HAVE_CRYPTO to compile it
- Create the igcparser.inc and prefparser.cpp using ragel manually
- Install Windows driver kit , add include and library paths to the project. I am using ATL for some conversion routines and it is included in the WDK
To install this development environment into your firefox:
- Go to ~/.mozilla/firefox/[name_of_profile]/extensions
- create a file named [email protected]
- the content of the file should be a full path to the extension/ directory
- restart firefox
- if upon starting GiPSy you see a complaint about non-loaded library, remove the file xpti.dat and compreg.dat from the firefox profile directory
Libcrypto, SELinux compatibility (if you have the private key):
- Instal the libcrypto++.a library; the library must be compiled with -fPIC (add -fPIC to CXXFLAGS in GNUmakefile) on both x86 and x86_64 platforms. There are different reasons though:
- On the x86_64 platform gipsy.so fails to link if libcrypto.a is not compiled with -fPIC
- On the x86 platform gipsy.so will link but fails to work on SELinux platforms (e.g. Fedora 13). Unfortunately, linking it with -fPIC will fail with error – you have to disable SSE too (add -DCRYPTOPP_DISABLE_SSE2 to the CXXFLAGS in GNUmakefile)