LCDInfo.com

http://www.lcdinfo.com
It is currently Thu Mar 28, 2024 11:14

All times are UTC + 2 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: USBD480 Display Project
PostPosted: Thu May 17, 2012 15:26 
Offline

Joined: Thu May 17, 2012 15:09
Posts: 3
Hello community of LCDinfo.

For my school project, I have chosen to work with the USBD480 Display.

The project that I need to make requires that it must run on a microcontroller which operates with Linux system.

Due to this being the first project for me to work with Linux system, it seems difficult to find information for miscellaneous parts.

To get to the point, my problem at this point is to initialize the library called "libusb.h", since that the display connects to the microcontroller through a usb.

My goal to start with is to establish a connection between the USBD480 Display and a computer that has Linux running.

Any information given will be appreciated.

- qash


Top
 Profile  
 
PostPosted: Tue May 22, 2012 13:28 
Offline

Joined: Thu May 17, 2012 15:09
Posts: 3
- bump

My test.c program:

$gcc test.c

Code:
#include </home/admin/arm-linux-gcc/libusb/libusb-1.0.9/libusb/libusb.h>

int main (int argc, char **argv) //
{
   usb_init();

   return 0;
}


Output:

Code:
/tmp/cchkSBid.o: In function `main':
test.c:(.text+0x7): undefined reference to `usb_init'
collect2: ld returned 1 exit status


Top
 Profile  
 
PostPosted: Sun May 27, 2012 22:26 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
qash wrote:
$gcc test.c

Hi,

Try adding -lusb to that command line to include libusb.

Something like
Code:
$gcc -lusb test.c


Top
 Profile  
 
PostPosted: Mon Jun 11, 2012 17:24 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Hi,

Were you able to solve your problems and get the USBD480 display working?

Henri


Top
 Profile  
 
PostPosted: Tue Jun 12, 2012 10:05 
Offline

Joined: Thu May 17, 2012 15:09
Posts: 3
Henri wrote:
Hi,

Were you able to solve your problems and get the USBD480 display working?

Henri


Hey.

Thanks for your concern, yes I have :)

- qash


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group