Active Topics

 



Notices


Reply
Thread Tools
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#21
just add -DBUILD=sulu -DVERSION=sulu to gcc line. its only informational to know which iteration it is
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#22
That doesn't help because BUILD and MD5 would still be undefined and it doesn't fix the overflow:
Code:
$ gcc -DBUILD=sulu -DVERSION=sulu oscp.c
oscp.c:21:0: warning: "VERSION" redefined
 #define VERSION "0.9.6"
 ^
<command-line>:0:0: note: this is the location of the previous definition
oscp.c: In function ‘show_help’:
<command-line>:0:7: error: ‘sulu’ undeclared (first use in this function)
oscp.c:112:13: note: in expansion of macro ‘BUILD’
 ", VERSION, BUILD, MD5, confname, progname);
             ^
<command-line>:0:7: note: each undeclared identifier is reported only once for each function it appears in
oscp.c:112:13: note: in expansion of macro ‘BUILD’
 ", VERSION, BUILD, MD5, confname, progname);
             ^
oscp.c:112:20: error: ‘MD5’ undeclared (first use in this function)
 ", VERSION, BUILD, MD5, confname, progname);
                    ^
oscp.c: In function ‘get_ch’:
oscp.c:1634:14: warning: overflow in implicit constant conversion [-Woverflow]
  } else ch = (chtype) ERR;
              ^
I also tried to define BUILD and MD5 in the code:
Code:
#define BUILD "sulu"
#define MD5 "1"
But then I get lots of undefined references (see attached archive).
Attached Files
File Type: gz oscp.txt.gz (5.4 KB, 443 views)
 
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#23
you have to compile each .c file into .o then link them with static or compiled libs:
gcc file.c -o file.o
gcc file2.c -o file2.o
gcc file.o file2.o -o final-binary -lncurses -lm -lz -lsomeotherlib
..etc
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny

Last edited by KotCzarny; 2015-02-11 at 07:27. Reason: little fix
 

The Following 3 Users Say Thank You to KotCzarny For This Useful Post:
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#24
Thanks, I'll try that.
10 years ago I was a C programmer, but it wasn't plain ANSI C but a custom toolkit that took care of all the compiling and linking stuff.
So I'm pretty much lost nowadays if I have no Makefile.
 
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#25
i've updated first post with recent builds for n8x0/n900 (finally one binary that works on both platforms) and added one for x86 (linux)
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 4 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#26
another update, this time i've added configurable keys. run program at least once, then check ~/.oscp.conf
also, moved downloads to the sourceforge. let me know if you have any issues/suggestions

ps. if you run latest build allow it reinit properly by removing config files (do: rm ~/.libao ~/.oscp.conf )
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny

Last edited by KotCzarny; 2015-02-12 at 08:40.
 

The Following 3 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#27
another update. remote interface is in. to enable: set in ~/.oscp.conf or run with -L port
word of caution: no password needed to connect (for now). for available commands see: http://sourceforge.net/projects/oscp...e.txt/download
so now you can run oscp on n8x0/n900 and connect via tcp/ip (fe. telnet) and send commands to it. or you can run it on linux machine and write pygtk interface and control it from your n8x0/n900

anyone needs anything else?
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 6 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#28
just uploaded new version along with oscp-remote.py (link in first post). right now i've tested it by running player on n800 and remote on x86-linux. and it works, woo! more testing after i have some food
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 2 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#29
added oscp-n900-PA binary, this one uses native pulseaudio which seems to work on my stock n900 (fremantle). volume control is disabled because it was blocking PA. also, weirdly cpu usage is 2x of n800 compiled version. but it produces sound now so at least i can work on it
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 6 Users Say Thank You to KotCzarny For This Useful Post:
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#30
updated remote.py and added some screenshots to first post
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 3 Users Say Thank You to KotCzarny For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:32.