[Jack-Devel] compiling / linking netsource.c

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Jack-Devel] compiling / linking netsource.c

Heisenberg
Hi
having trouble building and linking this file. be greatful if anyone can point me in the right direction

so far i tried
g++ -Wall -o netsource netsource.c $(INCF) $(LINKF) -fpermissive

where my flags are :

LINKF= -L/home/mynamejack/jack-1.9.9.5/build/common/ -L/home/myname/jack/jack-1.9.9.5/build/linux -ljack -ljacknet -Lnetmanager -Lnetadapter -Lprofiler -Ljack_net -Ljack_netone

INCF= -I/home/andrew/jack/jack-1.9.9.5/common -I/home/andrew/jack/jack-1.9.9.5/common/jack

complains about

netsource.c:(.text+0x508): undefined reference to `get_sample_size'
netsource.c:(.text+0x52f): undefined reference to `get_sample_size'
netsource.c:(.text+0x5f7): undefined reference to `render_jack_ports_to_payload'
netsource.c:(.text+0x701): undefined reference to `packet_header_hton'
netsource.c:(.text+0x768): undefined reference to `netjack_sendto'
netsource.c:(.text+0x7b3): undefined reference to `packet_cache_reset_master_address'
netsource.c:(.text+0x86a): undefined reference to `netjack_poll_deadline'
netsource.c:(.text+0x88e): undefined reference to `packet_cache_drain_socket'
netsource.c:(.text+0x8bc): undefined reference to `packet_cache_get_next_available_framecnt'
netsource.c:(.text+0x8fe): undefined reference to `packet_cache_drain_socket'
netsource.c:(.text+0x943): undefined reference to `packet_cache_retreive_packet_pointer'
netsource.c:(.text+0x9af): undefined reference to `packet_header_ntoh'
netsource.c:(.text+0xa22): undefined reference to `render_payload_to_jack_ports'
netsource.c:(.text+0xa73): undefined reference to `packet_cache_release_packet'
netsource.c:(.text+0xa9a): undefined reference to `packet_cache_find_latency'
netsource.c:(.text+0xc62): undefined reference to `render_jack_ports_to_payload'
netsource.c:(.text+0xd6c): undefined reference to `packet_header_hton'
netsource.c:(.text+0xdd3): undefined reference to `netjack_sendto'
netsource.c:(.text+0xe1e): undefined reference to `packet_cache_reset_master_address'
/tmp/ccgDptzj.o: In function `main':
netsource.c:(.text+0x1633): undefined reference to `get_sample_size'
netsource.c:(.text+0x166b): undefined reference to `packet_cache_new'
netsource.c:(.text+0x1839): undefined reference to `packet_cache_free'


_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|

Re: compiling / linking netsource.c

Adrian Knoth
On Wed, Jul 03, 2013 at 07:04:02PM +0100, Andrew Robson wrote:

Hi!

> having trouble building and linking this file. be greatful if anyone
> can point me in the right direction
>
> so far i tried
>
> g++ -Wall -o netsource netsource.c $(INCF) $(LINKF) -fpermissive

Use the toplevel waf file and run it with -v to figure out the correct
invocation line.


That said, why don't you simply use waf to build it?



Cheers

--
mail: [hidden email]   http://adi.thur.de        PGP/GPG: key via keyserver

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org