SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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 #
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/.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.