EwanKho Posted July 4, 2005 Report Share Posted July 4, 2005 Hello I'm trying to connect my Motorola mobile phone to my PC. I found a program called Moto4Lin that does this but I can't install it. Below is the text from the INSTALL file: 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'm a newbie and not too knowledgable with Linux. I am not sure how to go about the instructions above. When I type 'qmake' I get command not found. Any help would be greatly appreciated. I am using Mandrake 10.1 Thanks Ewan Quote Link to comment Share on other sites More sharing options...
aioshin Posted July 5, 2005 Report Share Posted July 5, 2005 qmake, if me not wrong, is part of qt3, you got an error ocz, might be that qt3 is not yet installed in your system... so if you know how to urpmi, try to install those listed package first, in order for you to build that source software... #urpmi.update -a -v ( it will update all your urpmi sources) #urpmi qt3 libusb g++ (this will install the listed package, if package name are correct) Quote Link to comment Share on other sites More sharing options...
demonseth17 Posted February 1, 2009 Report Share Posted February 1, 2009 qmake, if me not wrong, is part of qt3, you got an error ocz, might be that qt3 is not yet installed in your system... so if you know how to urpmi, try to install those listed package first, in order for you to build that source software...#urpmi.update -a -v ( it will update all your urpmi sources) #urpmi qt3 libusb g++ (this will install the listed package, if package name are correct) I'm using the info on this post but I get this [root@localhost moto4lin-0.3]# urpmi qt3 libusb Packages libusb0.1_4-0.1.12-12mdv2009.0.i586, qt3-common-3.3.8b-8mdv2009.0.i586 are already installed [root@localhost moto4lin-0.3]# urpmi qt3 libusb g++ No package named g++ and when I try the qmake (INSTALL file said that)\ [root@localhost moto4lin-0.3]# qmake [root@localhost moto4lin-0.3]# make cd moto_ui/ && make -f Makefile make[1]: Entering directory `/home/roger/Sources/moto4lin-0.3/moto_ui' /usr/lib/qt4/bin/uic form1_base.ui -o ui/ui_form1_base.h uic: File generated with too old version of Qt Designer File 'form1_base.ui' is not valid make[1]: *** [ui/ui_form1_base.h] Error 1 make[1]: Leaving directory `/home/roger/Sources/moto4lin-0.3/moto_ui' make: *** [sub-moto_ui-make_default] Error 2 can somebody tell me how to make it work Quote Link to comment Share on other sites More sharing options...
Greg2 Posted February 2, 2009 Report Share Posted February 2, 2009 You need to install libusb-devel, libqt3-devel, gcc and gcc-c++ from the repos. Also, you should not compile source code as root. Quote Link to comment Share on other sites More sharing options...
demonseth17 Posted February 3, 2009 Report Share Posted February 3, 2009 You need to install libusb-devel, libqt3-devel, gcc and gcc-c++ from the repos. Also, you should not compile source code as root. thx Greg2 [root@localhost roger]# urpmi libusb-devel http://api.mandriva.com/mirrors/basic.2009.0.i586.list: media/main/release/libusb-devel-0.1.12-12mdv2009.0.i586.rpm installing libusb-devel-0.1.12-12mdv2009.0.i586.rpm from /var/cache/urpmi/rpms Preparing... ################################ 1/1: libusb-devel ################################ [root@localhost roger]# urpmi libqt3-devel Package libqt3-devel-3.3.8b-8mdv2009.0.i586 is already installed [root@localhost roger]# urpmi gcc Package gcc-4.3.2-3mnb2.i586 is already installed [root@localhost roger]# urpmi gcc-c++ Package gcc-c++-4.3.2-3mnb2.i586 is already installed but when I followed your advice (Also, you should not compile source code as root) I got this. [roger@localhost Sources]$ cd moto4lin-0.3 && ls Changelog INSTALL moto4lin.kdevelop README CVS/ Makefile moto4lin.pro templates/ GPL-2 moto4lin@ moto_ui/ [roger@localhost moto4lin-0.3]$ qmake Failure to open file: /home/roger/Sources/moto4lin-0.3/Makefile Unable to generate makefile for: /home/roger/Sources/moto4lin-0.3/moto4lin.pro [roger@localhost moto4lin-0.3]$ there's a failure opening th Makefile...what can I do now? Do I need something else? thx in advance Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted February 3, 2009 Report Share Posted February 3, 2009 For the compilation to succeed as not-root, you have to do all the steps as the same user. If you uncompress the archive as root, and then try and compile as another user, it's bound to fail. Maybe that's the problem you had. Yves. Quote Link to comment Share on other sites More sharing options...
Greg2 Posted February 3, 2009 Report Share Posted February 3, 2009 theYinYeti is correct. When you ran qmake as root you created makefiles with root perms. I would suggest that you delete the current moto4lin-0.3 directory and extract the moto4lin-0.3.tar.bz2 again. Make sure you have qmake installed. Then cd the new moto4lin-0.3 directory and run qmake and make again Quote Link to comment Share on other sites More sharing options...
demonseth17 Posted February 3, 2009 Report Share Posted February 3, 2009 theYinYeti is correct. When you ran qmake as root you created makefiles with root perms. I would suggest that you delete the current moto4lin-0.3 directory and extract the moto4lin-0.3.tar.bz2 again. Make sure you have qmake installed. Then cd the new moto4lin-0.3 directory and run qmake and make again I did as you told me....but I got the same results [roger@localhost moto4lin-0.3]$ qmake --version QMake version 2.01a Using Qt version 4.4.3 in /usr/lib after verifying the qmake version and try again to make the program.... [roger@localhost moto4lin-0.3]$ qmake [roger@localhost moto4lin-0.3]$ make cd moto_ui/ && make -f Makefile make[1]: Entering directory `/home/roger/Sources/moto4lin-0.3/moto_ui' /usr/lib/qt4/bin/uic form1_base.ui -o ui/ui_form1_base.h uic: File generated with too old version of Qt Designer File 'form1_base.ui' is not valid make[1]: *** [ui/ui_form1_base.h] Error 1 make[1]: Leaving directory `/home/roger/Sources/moto4lin-0.3/moto_ui' make: *** [sub-moto_ui-make_default] Error 2 should I change qmake permission or something like that? or there's something else I should know? Quote Link to comment Share on other sites More sharing options...
Greg2 Posted February 3, 2009 Report Share Posted February 3, 2009 It appears that you have two versions of QT installed. So in a terminal (as user), cd to the moto4lin-0.3 directory, then do exactly as I have done here (one line at a time) PATH=$PATH:/usr/lib/qt3/bin export QTDIR=/usr/lib/qt3 /usr/lib/qt3/bin/qmake make then you will find your new moto4lin binary in the /moto4lin-0.3/moto_ui directory. Quote Link to comment Share on other sites More sharing options...
demonseth17 Posted February 4, 2009 Report Share Posted February 4, 2009 It appears that you have two versions of QT installed. So in a terminal (as user), cd to the moto4lin-0.3 directory, then do exactly as I have done here (one line at a time)PATH=$PATH:/usr/lib/qt3/bin export QTDIR=/usr/lib/qt3 /usr/lib/qt3/bin/qmake make then you will find your new moto4lin binary in the /moto4lin-0.3/moto_ui directory. [roger@localhost moto4lin-0.3]$ PATH=$PATH:/usr/lib/qt3/bin [roger@localhost moto4lin-0.3]$ export QTDIR=/usr/lib/qt3 [roger@localhost moto4lin-0.3]$ /usr/lib/qt3/bin/qmake [roger@localhost moto4lin-0.3]$ make cd moto_ui && make -f Makefile make[1]: Entering directory `/home/roger/Sources/moto4lin-0.3/moto_ui' /usr/lib/qt4/bin/uic form1_base.ui -o ui/ui_form1_base.h uic: File generated with too old version of Qt Designer File 'form1_base.ui' is not valid make[1]: *** [ui/ui_form1_base.h] Error 1 make[1]: Leaving directory `/home/roger/Sources/moto4lin-0.3/moto_ui' make: *** [sub-moto_ui] Error 2 what did you do? and there's something wrong with the source or something??? Quote Link to comment Share on other sites More sharing options...
Greg2 Posted February 5, 2009 Report Share Posted February 5, 2009 I've absolutely no idea why you are having problems compiling this. I don't know what else I can do to help you with this, except give you a link for the qmake-manual, and I've compiled it for you. :) I will attach it here for now. Please let me know when you have it. Moto4lin is distributed under the GPL-2 License. You can obtain the source code here: sourceforge.net You can find more information here: moto4lin.sourceforge.net My disclaimer: I do not own a Motorola phone to test this, so it has not been tested by me. If it damages your phone and or PC, I'm not responsible. This binary was compiled on Mandriva 2009.0 using GCC 4.3.2 and QT 3-3.3.8b. Please extract it in your ~/home directory, then in a terminal (as user) run cd moto; ./moto4lin Good luck, I hope it works for you. Here it is: I had to make a zip archive because the forum software wouldn't accept a bz2, and it corrupted a gz. Quote Link to comment Share on other sites More sharing options...
demonseth17 Posted February 6, 2009 Report Share Posted February 6, 2009 I downloaded the source in that page....thx a lot 4 the manual.....and the binary works fine!.....I used to run firefox 2 binary :) and don't worry my cell is a survivor :D...you're right about my pc somethings wrong with my notebook it doesn't want to compile it...............thx a lot Quote Link to comment Share on other sites More sharing options...
Greg2 Posted February 6, 2009 Report Share Posted February 6, 2009 I'm glad it's working for you! :) Since the binary has now been tested and works, I'll leave it here for a while. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.