./configure

Questions about applications and software
Forum rules
Before you post please read this

./configure

Postby opensourceanonymous on Tue Jan 29, 2013 7:32 am

I am trying to install Mochad to be able run a wireless camera. When in the directory, I give the command ./configure and it gives me an error: that it's not found. Can anyone help me with this.

Thanks!
opensourceanonymous
Level 1
Level 1
 
Posts: 11
Joined: Tue Dec 14, 2010 6:39 am

Linux Mint is funded by ads and donations.
 

More details

Postby opensourceanonymous on Tue Jan 29, 2013 8:45 am

This is what I get when trying "sudo ./configure" configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
opensourceanonymous
Level 1
Level 1
 
Posts: 11
Joined: Tue Dec 14, 2010 6:39 am

more pieces

Postby opensourceanonymous on Tue Jan 29, 2013 9:45 am

I found this and tried it. $ autoreconf -vif
$ ./configure --prefix=/usr/lib/erlang/lib
$ make
$ sudo make install

I'm more advance, ./configure did work with this but, still gives me errors when trying make.
This is the errors;

gcc -g -O2 -o mochad mochad.o decode.o encode.o global.o x10state.o x10_write.o
mochad.o: In function `IntrIn_cb':
/home/jgdoucet/mochad-0.1.15/mochad.c:525: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:502: undefined reference to `libusb_free_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:608: undefined reference to `libusb_init'
/home/jgdoucet/mochad-0.1.15/mochad.c:614: undefined reference to `libusb_set_debug'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:408: undefined reference to `libusb_open_device_with_vid_pid'
/home/jgdoucet/mochad-0.1.15/mochad.c:417: undefined reference to `libusb_claim_interface'
mochad.o: In function `get_endpoint_address':
/home/jgdoucet/mochad-0.1.15/mochad.c:459: undefined reference to `libusb_get_device'
/home/jgdoucet/mochad-0.1.15/mochad.c:462: undefined reference to `libusb_get_device_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:465: undefined reference to `libusb_get_active_config_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:485: undefined reference to `libusb_free_config_descriptor'
mochad.o: In function `alloc_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:548: undefined reference to `libusb_alloc_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:554: undefined reference to `libusb_alloc_transfer'
mochad.o: In function `start_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:533: undefined reference to `libusb_submit_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:659: undefined reference to `libusb_get_pollfds'
/home/jgdoucet/mochad-0.1.15/mochad.c:817: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:823: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:830: undefined reference to `libusb_handle_events'
/home/jgdoucet/mochad-0.1.15/mochad.c:839: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:840: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:842: undefined reference to `libusb_release_interface'
/home/jgdoucet/mochad-0.1.15/mochad.c:844: undefined reference to `libusb_close'
/home/jgdoucet/mochad-0.1.15/mochad.c:845: undefined reference to `libusb_attach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:846: undefined reference to `libusb_exit'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:423: undefined reference to `libusb_kernel_driver_active'
/home/jgdoucet/mochad-0.1.15/mochad.c:429: undefined reference to `libusb_detach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:435: undefined reference to `libusb_claim_interface'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:759: undefined reference to `libusb_handle_events_timeout'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:410: undefined reference to `libusb_open_device_with_vid_pid'
mochad.o: In function `write_usb':
/home/jgdoucet/mochad-0.1.15/mochad.c:569: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:571: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:574: undefined reference to `libusb_handle_events'
collect2: ld returned 1 exit status
make: *** [mochad] Error 1
jgdoucet@jgdoucet-Aspire-5810T ~/mochad-0.1.15 $ clear
jgdoucet@jgdoucet-Aspire-5810T ~/mochad-0.1.15 $ make
gcc -g -O2 -o mochad mochad.o decode.o encode.o global.o x10state.o x10_write.o
mochad.o: In function `IntrIn_cb':
/home/jgdoucet/mochad-0.1.15/mochad.c:525: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:502: undefined reference to `libusb_free_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:608: undefined reference to `libusb_init'
/home/jgdoucet/mochad-0.1.15/mochad.c:614: undefined reference to `libusb_set_debug'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:408: undefined reference to `libusb_open_device_with_vid_pid'
/home/jgdoucet/mochad-0.1.15/mochad.c:417: undefined reference to `libusb_claim_interface'
mochad.o: In function `get_endpoint_address':
/home/jgdoucet/mochad-0.1.15/mochad.c:459: undefined reference to `libusb_get_device'
/home/jgdoucet/mochad-0.1.15/mochad.c:462: undefined reference to `libusb_get_device_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:465: undefined reference to `libusb_get_active_config_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:485: undefined reference to `libusb_free_config_descriptor'
mochad.o: In function `alloc_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:548: undefined reference to `libusb_alloc_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:554: undefined reference to `libusb_alloc_transfer'
mochad.o: In function `start_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:533: undefined reference to `libusb_submit_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:659: undefined reference to `libusb_get_pollfds'
/home/jgdoucet/mochad-0.1.15/mochad.c:817: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:823: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:830: undefined reference to `libusb_handle_events'
/home/jgdoucet/mochad-0.1.15/mochad.c:839: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:840: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:842: undefined reference to `libusb_release_interface'
/home/jgdoucet/mochad-0.1.15/mochad.c:844: undefined reference to `libusb_close'
/home/jgdoucet/mochad-0.1.15/mochad.c:845: undefined reference to `libusb_attach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:846: undefined reference to `libusb_exit'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:423: undefined reference to `libusb_kernel_driver_active'
/home/jgdoucet/mochad-0.1.15/mochad.c:429: undefined reference to `libusb_detach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:435: undefined reference to `libusb_claim_interface'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:759: undefined reference to `libusb_handle_events_timeout'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:410: undefined reference to `libusb_open_device_with_vid_pid'
mochad.o: In function `write_usb':
/home/jgdoucet/mochad-0.1.15/mochad.c:569: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:571: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:574: undefined reference to `libusb_handle_events'
collect2: ld returned 1 exit status
make: *** [mochad] Error 1
opensourceanonymous
Level 1
Level 1
 
Posts: 11
Joined: Tue Dec 14, 2010 6:39 am

Re: more pieces

Postby botokiller on Thu Jan 31, 2013 8:41 am

opensourceanonymous wrote:I found this and tried it. $ autoreconf -vif
$ ./configure --prefix=/usr/lib/erlang/lib
$ make
$ sudo make install

I'm more advance, ./configure did work with this but, still gives me errors when trying make.
This is the errors;

gcc -g -O2 -o mochad mochad.o decode.o encode.o global.o x10state.o x10_write.o
mochad.o: In function `IntrIn_cb':
/home/jgdoucet/mochad-0.1.15/mochad.c:525: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:502: undefined reference to `libusb_free_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:608: undefined reference to `libusb_init'
/home/jgdoucet/mochad-0.1.15/mochad.c:614: undefined reference to `libusb_set_debug'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:408: undefined reference to `libusb_open_device_with_vid_pid'
/home/jgdoucet/mochad-0.1.15/mochad.c:417: undefined reference to `libusb_claim_interface'
mochad.o: In function `get_endpoint_address':
/home/jgdoucet/mochad-0.1.15/mochad.c:459: undefined reference to `libusb_get_device'
/home/jgdoucet/mochad-0.1.15/mochad.c:462: undefined reference to `libusb_get_device_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:465: undefined reference to `libusb_get_active_config_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:485: undefined reference to `libusb_free_config_descriptor'
mochad.o: In function `alloc_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:548: undefined reference to `libusb_alloc_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:554: undefined reference to `libusb_alloc_transfer'
mochad.o: In function `start_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:533: undefined reference to `libusb_submit_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:659: undefined reference to `libusb_get_pollfds'
/home/jgdoucet/mochad-0.1.15/mochad.c:817: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:823: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:830: undefined reference to `libusb_handle_events'
/home/jgdoucet/mochad-0.1.15/mochad.c:839: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:840: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:842: undefined reference to `libusb_release_interface'
/home/jgdoucet/mochad-0.1.15/mochad.c:844: undefined reference to `libusb_close'
/home/jgdoucet/mochad-0.1.15/mochad.c:845: undefined reference to `libusb_attach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:846: undefined reference to `libusb_exit'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:423: undefined reference to `libusb_kernel_driver_active'
/home/jgdoucet/mochad-0.1.15/mochad.c:429: undefined reference to `libusb_detach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:435: undefined reference to `libusb_claim_interface'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:759: undefined reference to `libusb_handle_events_timeout'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:410: undefined reference to `libusb_open_device_with_vid_pid'
mochad.o: In function `write_usb':
/home/jgdoucet/mochad-0.1.15/mochad.c:569: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:571: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:574: undefined reference to `libusb_handle_events'
collect2: ld returned 1 exit status
make: *** [mochad] Error 1
jgdoucet@jgdoucet-Aspire-5810T ~/mochad-0.1.15 $ clear
jgdoucet@jgdoucet-Aspire-5810T ~/mochad-0.1.15 $ make
gcc -g -O2 -o mochad mochad.o decode.o encode.o global.o x10state.o x10_write.o
mochad.o: In function `IntrIn_cb':
/home/jgdoucet/mochad-0.1.15/mochad.c:525: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:502: undefined reference to `libusb_free_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:608: undefined reference to `libusb_init'
/home/jgdoucet/mochad-0.1.15/mochad.c:614: undefined reference to `libusb_set_debug'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:408: undefined reference to `libusb_open_device_with_vid_pid'
/home/jgdoucet/mochad-0.1.15/mochad.c:417: undefined reference to `libusb_claim_interface'
mochad.o: In function `get_endpoint_address':
/home/jgdoucet/mochad-0.1.15/mochad.c:459: undefined reference to `libusb_get_device'
/home/jgdoucet/mochad-0.1.15/mochad.c:462: undefined reference to `libusb_get_device_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:465: undefined reference to `libusb_get_active_config_descriptor'
/home/jgdoucet/mochad-0.1.15/mochad.c:485: undefined reference to `libusb_free_config_descriptor'
mochad.o: In function `alloc_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:548: undefined reference to `libusb_alloc_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:554: undefined reference to `libusb_alloc_transfer'
mochad.o: In function `start_transfers':
/home/jgdoucet/mochad-0.1.15/mochad.c:533: undefined reference to `libusb_submit_transfer'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:659: undefined reference to `libusb_get_pollfds'
/home/jgdoucet/mochad-0.1.15/mochad.c:817: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:823: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:830: undefined reference to `libusb_handle_events'
/home/jgdoucet/mochad-0.1.15/mochad.c:839: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:840: undefined reference to `libusb_free_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:842: undefined reference to `libusb_release_interface'
/home/jgdoucet/mochad-0.1.15/mochad.c:844: undefined reference to `libusb_close'
/home/jgdoucet/mochad-0.1.15/mochad.c:845: undefined reference to `libusb_attach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:846: undefined reference to `libusb_exit'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:423: undefined reference to `libusb_kernel_driver_active'
/home/jgdoucet/mochad-0.1.15/mochad.c:429: undefined reference to `libusb_detach_kernel_driver'
/home/jgdoucet/mochad-0.1.15/mochad.c:435: undefined reference to `libusb_claim_interface'
mochad.o: In function `mydaemon':
/home/jgdoucet/mochad-0.1.15/mochad.c:759: undefined reference to `libusb_handle_events_timeout'
mochad.o: In function `find_cm15a':
/home/jgdoucet/mochad-0.1.15/mochad.c:410: undefined reference to `libusb_open_device_with_vid_pid'
mochad.o: In function `write_usb':
/home/jgdoucet/mochad-0.1.15/mochad.c:569: undefined reference to `libusb_submit_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:571: undefined reference to `libusb_cancel_transfer'
/home/jgdoucet/mochad-0.1.15/mochad.c:574: undefined reference to `libusb_handle_events'
collect2: ld returned 1 exit status
make: *** [mochad] Error 1


For me it looks like compatibility issues - probably includes are of wrong version and don't have those functions. You should check your libusb, update it if needed via synaptic.
botokiller
Level 1
Level 1
 
Posts: 8
Joined: Mon Nov 05, 2012 6:49 am


Return to Software & Applications

Who is online

Users browsing this forum: Alexa [Bot] and 17 guests