USB connection problem, home made code

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Rorke
Newbie
Newbie
Posts: 3
Joined: Wed Oct 21, 2009 8:40 am

USB connection problem, home made code

Post by Rorke »

My workmate made a XP PC program that talks to a motor through a USB.
I've made a link to USB
ln -s /dev/ttyUSB2 ~/.wine/com2

and also 4 of

ln -s /dev/ttyUSB1 ~/.wine/dosdevices/com2

as recommended in a forum.

I don't understand how to 'make' wine-git. The Makefile errors, but I've never successfully compiled anything for Linux, so I don't suppose I did it right. (Is there a 'point and click' repository I can get it from?)

Any thoughts, or is this going to be too complex for a Wine noob like me?
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Re: USB connection problem, home made code

Post by dimesio »

Rorke wrote: (Is there a 'point and click' repository I can get it from?)
What distro? Have you check your distro's repositories? Links to binary packages for the major ones are here: http://www.winehq.org/site/download
Rorke
Newbie
Newbie
Posts: 3
Joined: Wed Oct 21, 2009 8:40 am

Post by Rorke »

Correction:
Sorry, my post wasn't very well written.

I have Wine working and installed (Ubuntu 9.04)
I don't have wine-git - except in source files.

USB help data on this site tells me I need to fully install wine-git before trying to sort out USB wine difficulties.

The instructions for how to make wine-git work are highly techy (involving the phrase 'now you can just build it').

If there is a link to a built wine-git, would that help?
If there is another way to get USB working on wine, that is what I'm trying to achieve.
I have .inf files that presumably need some sort of link to work via Linux.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Rorke wrote:USB help data on this site tells me I need to fully install wine-git before trying to sort out USB wine difficulties.
Wine does not directly support USB devices. However what you have is a USB->serial device. Those should work work "fine" on standard Wine version.

What exact problem do you have? What isn't working? What Wine version are you using?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Rorke wrote:Correction:
Sorry, my post wasn't very well written.

I have Wine working and installed (Ubuntu 9.04)
I don't have wine-git - except in source files.

USB help data on this site tells me I need to fully install wine-git before trying to sort out USB wine difficulties.

The instructions for how to make wine-git work are highly techy (involving the phrase 'now you can just build it').

If there is a link to a built wine-git, would that help?
If there is another way to get USB working on wine, that is what I'm trying to achieve.
I have .inf files that presumably need some sort of link to work via Linux.
http://www.winehq.org/download/deb

That PPA contains the latest official release of Wine (1.1.32). Git versions are not compiled but the next version of Wine contains all good submitted patches officially anyway.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

By the way, "now you can just build it" refers to the standard three commands to compile source code:

./configure
make
sudo make install (or su -c "make install" on some distros)

Note that you need to have the build-essentials package installed in your Ubuntu package manager, and the source code of many libraries that Wine needs. You can find more info on this here: http://wiki.winehq.org/FAQ#head-7ed3c31 ... 53dc41817b
Rorke
Newbie
Newbie
Posts: 3
Joined: Wed Oct 21, 2009 8:40 am

Post by Rorke »

Thankyou for your help, unfortunately I'd already tried that and got errors.
I've looked more closely and run

wget http://winezeug.googlecode.com/svn/trun ... ne-deps.sh
./configure --enable-win64
which gave:
configure: error: no suitable flex found. Please install the 'flex' package.

so I'm still unable to correctly compile. What's a 'flex' package?
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Rorke wrote:Thankyou for your help, unfortunately I'd already tried that and got errors.
I've looked more closely and run

wget http://winezeug.googlecode.com/svn/trun ... ne-deps.sh
./configure --enable-win64
which gave:
configure: error: no suitable flex found. Please install the 'flex' package.

so I'm still unable to correctly compile. What's a 'flex' package?
First of all, why are you trying to build 64 bit Wine? It won't actually run anything at this point. I suspect what you really want is to build 32 bit Wine on a 64 bit system, in which case you should be following the instructions here: http://wiki.winehq.org/WineOn64bit

As for "flex," it's a dependency that needs to be installed. You should find it in your distro's repository. That goes for any other package that configure complains about.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Rorke wrote:Thankyou for your help, unfortunately I'd already tried that and got errors.
I've looked more closely and run

wget http://winezeug.googlecode.com/svn/trun ... ne-deps.sh
./configure --enable-win64
which gave:
configure: error: no suitable flex found. Please install the 'flex' package.

so I'm still unable to correctly compile. What's a 'flex' package?
Sounds like you didn't follow the "have the recommended packages installed" step, as instructed by that FAQ entry. Check http://wiki.winehq.org/Recommended_Packages and download/run http://winezeug.googlecode.com/svn/trun ... ne-deps.sh as linked to on that page, that should get you all required packages/libraries to compile Wine.
Locked