X C o n t e s t   2 0 0 9

Forgotten password?

[Thread] How to compile from source (Linux)

How to compile from source (Linux)
Author: nephilim1973 (+0) (-0) | Posted: 04.08.2013 * 12:59

Hi folks...

Could someone explain, how to compile the firefox plugin from source ?

Things, I found out so far on Ubuntu:

GitHub:

https://github.com/ondrap/gipsy

Install:

python-pysqlite2

libusb-dev

ragel

python-pycryptopp

libcrypto++-dev

Download:

ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/22/runtimes/xulrunner-22.en-US.linux-x86_64.tar.bz2

unTar in /opt

create symlink for "xulrunner" in /usr/bin

Change dir into local GIT repo

cd ../xpc/

make

Now, following errors occur:

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

~/Dokumente/GIT/gipsy/xpc$ make

make -f Makefile.`uname -s`.`uname -m`

make[1]: Betrete Verzeichnis '/home/user/Dokumente/GIT/gipsy/xpc'

g++ -std=gnu++0x -fno-rtti -Wall -O2 -c -DUSE_LIBUSB -fPIC -DHAVE_CRYPTO -fpermissive -DCRYPTPP -fshort-wchar -I../../xulrunner-sdk/include -I../../xulrunner-sdk/include/nspr -o gipsy.o gipsy.cpp

In file included from ../../xulrunner-sdk/include/nsStringAPI.h:23:0,

from gipsy.cpp:5:

../../xulrunner-sdk/include/nsTArray.h: In Instanziierung von »class nsTArray_base«:

../../xulrunner-sdk/include/nsTArray.h:568:7: erfordert durch »class nsTArray_Impl«

../../xulrunner-sdk/include/nsTArray.h:1453:7: erfordert durch »class nsTArray«

../../xulrunner-sdk/include/nsTArray.h:1492:7: erfordert durch »class nsAutoArrayBase«

../../xulrunner-sdk/include/nsTArray.h:1563:7: erfordert durch »class nsAutoTArray«

../../xulrunner-sdk/include/nsTArray.h:1617:1: von hier erfordert

../../xulrunner-sdk/include/nsTArray.h:336:7: Warnung: »nsTArray_base« mit bedeutenderer Sichtbarkeit als der Typ seines Feldes »nsTArray_base::mHdr« deklariert [-Wattributes]

In file included from gipsy.h:19:0,

from gipsy.cpp:23:

tracklog.h:15:1: Fehler: expected class-name before »{« token

tracklog.h:18:3: Fehler: »NS_DECL_IGPSIGC« bezeichnet keinen Typ

tracklog.h:48:1: Fehler: expected class-name before »{« token

tracklog.h:51:3: Fehler: »NS_DECL_IGPSPOINT« bezeichnet keinen Typ

tracklog.h:59:33: Fehler: »IGPSPoint« wurde nicht deklariert

tracklog.h:61:20: Fehler: »IGPSPoint« wurde nicht deklariert

In file included from gipsy.cpp:23:0:

gipsy.h:30:36: Fehler: expected class-name before »{« token

gipsy.h:33:5: Fehler: »NS_DECL_IGPSDEVINFO« bezeichnet keinen Typ

gipsy.h:53:14: Fehler: »IGPSIGC« wurde in diesem Gültigkeitsbereich nicht definiert

gipsy.h:53:21: Fehler: Templateargument 1 ist ungültig

gipsy.h:83:1: Fehler: expected class-name before »{« token

gipsy.h:86:5: Fehler: »NS_DECL_IGPSSCANNER« bezeichnet keinen Typ

gipsy.cpp: In Elementfunktion »virtual nsresult Gipsy::QueryInterface(const nsIID&, void)«:

gipsy.cpp:53:1: Fehler: »IGPSScanner« wurde nicht deklariert

gipsy.cpp:53:1: Fehler: expected primary-expression before »int«

gipsy.cpp:53:1: Fehler: expected »}« before »int«

gipsy.cpp:53:1: Fehler: expected »}« before »int«

gipsy.cpp:53:1: Fehler: expected »,« or »;« before »int«

gipsy.cpp:53:1: Warnung: Variable »rv« wird nicht verwendet [-Wunused-variable]

gipsy.cpp:53:1: Warnung: Variable »table« wird nicht verwendet [-Wunused-variable]

gipsy.cpp:53:1: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion [-Wreturn-type]

gipsy.cpp: Im globalen Gültigkeitsbereich:

gipsy.cpp:53:1: Fehler: Vermischung von Deklarationen und Funktionsdefinitionen ist verboten

gipsy.cpp:53:1: Fehler: expected unqualified-id before »{« token

gipsy.cpp:53:1: Fehler: expected unqualified-id before »,« token

gipsy.cpp:53:1: Fehler: expected unqualified-id before »{« token

gipsy.cpp:53:1: Fehler: expected declaration before »}« token

make[1]: * [gipsy.o] Fehler 1

make[1]: Verlasse Verzeichnis '/home/user/Dokumente/GIT/gipsy/xpc'

make: * [all] Fehler 2

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

Any help ???

Cheers Nephilim

0 posts
views: 995
Only logged users are allowed to add new posts.





Sections: