Active Topics

 


Reply
Thread Tools
Posts: 26 | Thanked: 8 times | Joined on Nov 2013 @ Argentina
#1
I'm trying to develop an app like sshtunnel for the n9.
I'm looking for redsocks, but i cant find it in openrepos for harmattan.
I managed to have a working ( ? ) squeeze-vm with scratchbox.
I download redsocks source from github and :
Code:
gonza@scratchbox:~$ /scratchbox/login
[sbox-HARMATTAN_X86: ~] > cd redsocks-master/
[sbox-HARMATTAN_X86: ~/redsocks-master] > make
cc -g -O2 -std=gnu99 -Wall   -c -o parser.o parser.c
In file included from parser.c:29:
utils.h:6: fatal error: event.h: No such file or directory
compilation terminated.
make: *** [parser.o] Error 1
[sbox-HARMATTAN_X86: ~/redsocks-master] >
Redsocks depends on libevent, but i can't install it with apt :
Code:
[sbox-HARMATTAN_X86: ~/redsocks-master] > cat /etc/apt/sources.list
deb http://mirror.thecust.net/harmattan-dev.nokia.com/ harmattan/sdk free non-free
deb-src http://mirror.thecust.net/harmattan-dev.nokia.com/ harmattan/sdk free
deb http://mirror.thecust.net/harmattan-dev.nokia.com/ harmattan/41667a5bd857be02f487c2ce806fbf85 nokia-binaries

#deb http://harmattan-dev.nokia.com/ harmattan/sdk free non-free
#deb-src http://harmattan-dev.nokia.com/ harmattan/sdk free
#deb http://harmattan-dev.nokia.com/ harmattan/41667a5bd857be02f487c2ce806fbf85 nokia-binaries
I try to compile redsocks in the phone, but some broken dependencies with libc6-dev stopped me.

Some help ?

Thanks for stopping by.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#2
You need libevent-devel as well
 

The Following User Says Thank You to For This Useful Post:
Posts: 26 | Thanked: 8 times | Joined on Nov 2013 @ Argentina
#3
I finally be able to compile redsocks doing this:

For others newbies:
-> downloading libevent-dev_2.0.16-stable-1_armel.deb
( I got it using "apt-get install -d libevent-dev" from the phone, the downloaded file is in /var/cache/apt/archives )
-> extract the files of the deb using dpkg -x &
copy them to C:\QtSDK\Madde\sysroots\harmattan_sysroot_10.2011. 34-1_slim
( i'm using the lastest QtSDK for win)
-> using madde terminal (C:\QtSDK\Madde\madde.bat -rxvt),
-->cd redsocks-master (i get it directly from github repo)
--> edit Makefile: add "-lrt" to CFLAGS
--> mad make

some links:

https://www.tbi.univie.ac.at/~xtof/N900/vpnc-N900.html
http://webcache.googleusercontent.co...&ct=clnk&gl=ar
http://www.thegeekstuff.com/2010/04/...ract-packages/
http://stackoverflow.com/questions/1...static-linking

Last edited by gdelca5; 2014-09-18 at 14:20. Reason: newbie friendly commands
 

The Following User Says Thank You to gdelca5 For This Useful Post:
Reply

Tags
harmattan, redsocks, scratchbox


 
Forum Jump


All times are GMT. The time now is 22:09.