LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-23-2006, 03:50 PM   #1
agentchange
Member
 
Registered: May 2006
Distribution: Ubuntu 8.04
Posts: 132

Rep: Reputation: 15
Having trouble installing moto4lin


I'm really new to the task of installing programs that are not listed in Yast. In the INSTALL file, it displays the following:

----------------------------------------------------------------------------------------
To compile you need:
* QT Library 3.3.3 (c++ headers and binary lib)
* libusb-devel 0.8 (headers and binary lib)
* g++

Installing
========
1. qmake
make

2. Now you can run application.

-----------------------------------------------------------------------------------------

I have all of the libraries installed.

Should the folder containing the moto4lin files be moved to another location, such as the final destination directory?

I tried running qmake from root, but it said "bash: qmake: command not found", even though I find this big 2 meg file in usr/lib/qt3/bin/ that just happens to be named qmake. For kicks, I tried running make, and it said "*** No targets specified and no makefile found. Stop." Evidently, there are some critical dependencies missing from my Linux education which are necessary to make this work. Lastly, when I actually do get qmake and make operating correctly, the file which I would assume is the setup file or executable (named moto4lin, although there is also a moto4lin.kdevelop and a moto4lin.pro) is actually a link to a file in one of the subdirectories that doesn't exist, so I am a little lost. Many of the files listed in it are still listed as File Type: Unknown, so I am not completely sure if everything is setup enough to make the thing work.

I have this possible alternate version lined up, though it is actually made for ALTLinux. Is it possible to use rpms that are specifically made for other distros?

Within the Konsole, how do you change the directory from /home to /home/username/program/?

Last edited by agentchange; 06-23-2006 at 05:59 PM.
 
Old 06-23-2006, 04:28 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The root user may have different paths then a regular user. You could add the path to root's ~/.profile and then su to root as "su -l" so that you rerun the .profile script.

Which SuSE version do you have? It looks like you manually installed qt3 when the SuSE packaged version is more recent.
 
Old 06-23-2006, 05:42 PM   #3
agentchange
Member
 
Registered: May 2006
Distribution: Ubuntu 8.04
Posts: 132

Original Poster
Rep: Reputation: 15
I'm using 10.0. When I checked, the qt3 library was already installed, so I went ahead and installed the QT library, as well, just in case. I am now downloading all packages directly from packman. I didn't mess with any of the other qt3 packages that weren't already installed. Actually, qt3 was installed manually and probably hasn't been updated. I thought that I had updated, but the size of the update was exceptionally small, so I will have to check into it.

I went back and found that I am supposed to run qmake and make from the directory that the files are unzipped in. Right now, I am trying to figure out how to change directories from /home/justin/ to tar:/home/justin/moto4lin-0.3.tar.bz2/, even though I am skeptical that qmake will have any effect whatsoever, since it said "Command not found."


Versions installed (both most recent)
QT version 4.0.1
qt3 version 3.3.4

Last edited by agentchange; 06-23-2006 at 06:08 PM.
 
Old 06-23-2006, 06:07 PM   #4
agentchange
Member
 
Registered: May 2006
Distribution: Ubuntu 8.04
Posts: 132

Original Poster
Rep: Reputation: 15
OK, I tried this, and this:

linux:/home/justin # cd /home/justin/moto4lin-0.3.tar.bz2/moto4lin-0.3
bash: cd: /home/justin/moto4lin-0.3.tar.bz2/moto4lin-0.3: Not a directory
linux:/home/justin # cd tar:/home/justin/moto4lin-0.3.tar.bz2/moto4lin-0.3
bash: cd: tar:/home/justin/moto4lin-0.3.tar.bz2/moto4lin-0.3: No such file or directory
linux:/home/justin #

That is the path of a bonafide directory. What gives?

Last edited by agentchange; 06-23-2006 at 06:21 PM.
 
Old 06-24-2006, 03:36 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Did you forget to untar the source tarball?

The file, moto4lin-0.3.tar.bz2, is untarred with the command "tar xvjf moto4lin-0.3.tar.bz2"
It should create a directory named "moto4lin-0.3". This is the convention almost alway used.
Then cd into the extracted directory. "cd moto4lin-0.3"
There will probably be a README and INSTALL file that you will want to read. Often there is a "configure" file.

---
I just looked at the qmake documentation in the /usr/share/doc/packages/qt/html/ directory.
Qmake generates a Makefile. So it is what is used instead of a ./configure script.
Read through the instructions just in case. I think that after running qmake, you use make as is normal:
qmake -o Makefile <projectfile>.pro
make
sudo make install

In other words, you don't need to be root to run qmake.

Last edited by jschiwal; 06-24-2006 at 03:39 AM.
 
Old 06-24-2006, 04:15 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I have a correction. I downloaded the project tarball.
The Makefile does not have a "Make install" target.
So run:
qmake
make

Then either run the program created: ./moto4lin
or copy it to a directory in your path:
sudo cp moto4lin /usr/local/bin

This assumes that /usr/local/bin is in your path.
 
Old 06-24-2006, 11:55 AM   #7
agentchange
Member
 
Registered: May 2006
Distribution: Ubuntu 8.04
Posts: 132

Original Poster
Rep: Reputation: 15
I had a hunch that the tarball needed to be unzipped. However, it is still not recognizing the qmake command.

linux:/home/justin # cd /home/justin/moto4lin-0.3/
linux:/home/justin/moto4lin-0.3 # qmake
bash: qmake: command not found
linux:/home/justin/moto4lin-0.3 #
 
Old 06-24-2006, 12:38 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Don't do it as root.

You only need to be root to copy the completed program to a system directory.
Code:
tar xvjf moto4lin-0.3
cd moto4lin-0.3
qmake
make
At this point, there is an executable "moto4lin" in the current, moto4lin-0.3, directory. Now you can use sudo or su to root and then copy it to a bin directory. I used /usr/local/bin/.
Code:
sudo cp moto4lin /usr/local/bin/
 
Old 06-24-2006, 01:21 PM   #9
agentchange
Member
 
Registered: May 2006
Distribution: Ubuntu 8.04
Posts: 132

Original Poster
Rep: Reputation: 15
Something is still fundamentally wrong with this qmake function. I did some checking and found that, in 10.0, qt3-develop had to be installed in order to use qmake, even though it is installed, so I installed and updated every little thing related to qt3, with no effect.

justin@linux:~> tar xvjf moto4lin-0.3.tar.bz2
moto4lin-0.3/
moto4lin-0.3/CVS/
moto4lin-0.3/CVS/Root
moto4lin-0.3/CVS/Repository
moto4lin-0.3/CVS/Entries
moto4lin-0.3/GPL-2
moto4lin-0.3/README
moto4lin-0.3/moto4lin.kdevelop
moto4lin-0.3/moto_ui/
moto4lin-0.3/moto_ui/CVS/
moto4lin-0.3/moto_ui/CVS/Root
moto4lin-0.3/moto_ui/CVS/Repository
moto4lin-0.3/moto_ui/CVS/Entries
moto4lin-0.3/moto_ui/phoneman.cpp
moto4lin-0.3/moto_ui/filelistview.h
moto4lin-0.3/moto_ui/fmpixmap.cpp
moto4lin-0.3/moto_ui/frmfilemanager_base.ui
moto4lin-0.3/moto_ui/filelistview.cpp
moto4lin-0.3/moto_ui/frmfilemanager.cpp
moto4lin-0.3/moto_ui/frmconfig.h
moto4lin-0.3/moto_ui/frmconfig_base.ui
moto4lin-0.3/moto_ui/custmsg.cpp
moto4lin-0.3/moto_ui/main.cpp
moto4lin-0.3/moto_ui/appconfig.cpp
moto4lin-0.3/moto_ui/frmseemeditor.h
moto4lin-0.3/moto_ui/p2kproc.cpp
moto4lin-0.3/moto_ui/phoneman.h
moto4lin-0.3/moto_ui/form1.h
moto4lin-0.3/moto_ui/form1.cpp
moto4lin-0.3/moto_ui/images/
moto4lin-0.3/moto_ui/images/CVS/
moto4lin-0.3/moto_ui/images/CVS/Root
moto4lin-0.3/moto_ui/images/CVS/Repository
moto4lin-0.3/moto_ui/images/CVS/Entries
moto4lin-0.3/moto_ui/images/edit.png
moto4lin-0.3/moto_ui/images/kfm.png
moto4lin-0.3/moto_ui/images/connect_established.png
moto4lin-0.3/moto_ui/images/drive.png
moto4lin-0.3/moto_ui/images/blockdevice.png
moto4lin-0.3/moto_ui/images/rebuild.png
moto4lin-0.3/moto_ui/images/folder_sound.png
moto4lin-0.3/moto_ui/images/configure.png
moto4lin-0.3/moto_ui/images/folder_image.png
moto4lin-0.3/moto_ui/images/connect_no.png
moto4lin-0.3/moto_ui/images/sound.png
moto4lin-0.3/moto_ui/images/image.png
moto4lin-0.3/moto_ui/images/folder.png
moto4lin-0.3/moto_ui/images/txt.png
moto4lin-0.3/moto_ui/images/connect_creating.png
moto4lin-0.3/moto_ui/images/empty.png
moto4lin-0.3/moto_ui/images/colorscm.png
moto4lin-0.3/moto_ui/images/exit.png
moto4lin-0.3/moto_ui/images/folder_video.png
moto4lin-0.3/moto_ui/frmfilemanager.h
moto4lin-0.3/moto_ui/moto_ui.pro
moto4lin-0.3/moto_ui/p2kproc.h
moto4lin-0.3/moto_ui/frmconfig.cpp
moto4lin-0.3/moto_ui/form1_base.ui
moto4lin-0.3/moto_ui/frmseemeditor.cpp
moto4lin-0.3/moto_ui/custmsg.h
moto4lin-0.3/moto_ui/frmseemeditor_base.ui
moto4lin-0.3/moto_ui/appconfig.h
moto4lin-0.3/moto_ui/fmpixmap.h
moto4lin-0.3/moto4lin
moto4lin-0.3/moto4lin.pro
moto4lin-0.3/INSTALL
moto4lin-0.3/Changelog
moto4lin-0.3/templates/
moto4lin-0.3/templates/h
moto4lin-0.3/templates/CVS/
moto4lin-0.3/templates/CVS/Root
moto4lin-0.3/templates/CVS/Repository
moto4lin-0.3/templates/CVS/Entries
moto4lin-0.3/templates/cpp
justin@linux:~> cd moto4lin-0.3
justin@linux:~/moto4lin-0.3> qmake
bash: qmake: command not found
justin@linux:~/moto4lin-0.3>

Last edited by agentchange; 06-24-2006 at 01:25 PM.
 
Old 06-25-2006, 03:02 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check if the qmake command is in the /usr/lib/qt3/bin/ directory. If it is, add this to your PATH variable by editing your ~/.bash_login or ~/.bash_profile.

After editing, you will need to run "bash -l" for your changes to take affect. Then type in "which qmake" to check that the command is in your path.
 
Old 06-25-2006, 07:00 PM   #11
agentchange
Member
 
Registered: May 2006
Distribution: Ubuntu 8.04
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
If it is, add this to your PATH variable by editing your ~/.bash_login or ~/.bash_profile.
I've read and looked and read and looked, but this line is still Chinese to me. I intrepreted it as meaning that I need to edit my profile settings or Bash settings in order to recognize qmake, or to make Bash recognize the qmake program on the fly, especially if it was added after the initial installation, but I still have not found any way to edit or configure any settings to accomplish this.

Thank you for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a real newbie how-to question - setting up moto4lin agentchange SUSE / openSUSE 9 06-08-2006 06:37 PM
Moto4lin causes cdc_amc module failure? tinksmartbstupi Linux - Software 0 05-22-2005 12:20 PM
Installing Trouble! Drenerk Linux - Newbie 6 03-01-2005 12:30 PM
trouble installing rh 9.0 therealdeal316 Red Hat 2 03-11-2004 02:04 PM
Trouble installing Qt. Manyguns Linux - General 0 04-22-2002 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration