You are not logged in.

#1 2008-04-07 15:08:37

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Moto4lin compile errors.

I am trying to compile moto4lin from aur.  So I get the PKGBUILD the run makepkg, where it give me the error that qt is not the right version, which I know it is it's version 3.3.8.  So I remove that line from the PKGBUILD and run makepkg again.  Then it give me this error:

cd moto_ui && qmake moto_ui.pro -o Makefile
cd moto_ui && make -f Makefile
make[1]: Entering directory `/home/semperfiguy/src/Moto4lin/src/moto4lin-build/moto_ui'
/bin/uic form1_base.ui -o ui/form1_base.h
make[1]: /bin/uic: Command not found
make[1]: *** [ui/form1_base.h] Error 127
make[1]: Leaving directory `/home/semperfiguy/src/Moto4lin/src/moto4lin-build/moto_ui'

So as root I make a ln -s /opt/qt/bin/uic /bin/uic to get rid of that error.  Then it gives me this error which I am stuck on right now:

cd moto_ui && make -f Makefile
make[1]: Entering directory `/home/semperfiguy/src/Moto4lin/src/moto4lin-build/moto_ui'
g++ -c -pipe -Wall -W -g -D_REENTRANT  -DQT_THREAD_SUPPORT -I/opt/qt/mkspecs/default -I. -I/include -Iui/ -I. -Imoc/ -o obj/main.o main.cpp
main.cpp:21:26: error: qapplication.h: No such file or directory
main.cpp:23:24: error: qtextcodec.h: No such file or directory
In file included from form1.h:24,
                 from main.cpp:24:
ui/form1_base.h:13:22: error: qvariant.h: No such file or directory
ui/form1_base.h:14:25: error: qmainwindow.h: No such file or directory
In file included from form1.h:24,
                 from main.cpp:24:
ui/form1_base.h:30: error: expected class-name before '{' token
ui/form1_base.h:31: error: ISO C++ forbids declaration of 'Q_OBJECT' with no type
ui/form1_base.h:33: error: expected ';' before 'public'
ui/form1_base.h:41: error: ISO C++ forbids declaration of 'QMenuBar' with no type
ui/form1_base.h:41: error: expected ';' before '*' token
ui/form1_base.h:62: error: expected `:' before 'slots'
ui/form1_base.h:63: error: expected primary-expression before 'virtual'
ui/form1_base.h:63: error: ISO C++ forbids declaration of 'slots' with no type
ui/form1_base.h:63: error: expected ';' before 'virtual'
ui/form1_base.h:65: error: expected `:' before 'slots'
ui/form1_base.h:66: error: expected primary-expression before 'virtual'
ui/form1_base.h:66: error: ISO C++ forbids declaration of 'slots' with no type
ui/form1_base.h:66: error: expected ';' before 'virtual'
In file included from main.cpp:24:
form1.h:50: error: ISO C++ forbids declaration of 'Q_OBJECT' with no type
form1.h:51: error: expected ';' before 'public'
form1.h:82: error: expected `:' before 'slots'
form1.h:83: error: expected primary-expression before 'void'
form1.h:83: error: ISO C++ forbids declaration of 'slots' with no type
form1.h:83: error: expected ';' before 'void'
main.cpp: In function 'int main(int, char**)':
main.cpp:28: error: variable 'const QString localePath' has initializer but incomplete type
main.cpp:29: error: 'QApplication' was not declared in this scope
main.cpp:29: error: expected `;' before 'a'
main.cpp:30: error: 'QTranslator' was not declared in this scope
main.cpp:30: error: expected `;' before 'translator'
main.cpp:31: error: 'translator' was not declared in this scope
main.cpp:31: error: 'QTextCodec' has not been declared
main.cpp:32: error: 'a' was not declared in this scope
ui/form1_base.h: In constructor 'Form1::Form1()':
ui/form1_base.h:35: error: 'Form1_base::~Form1_base()' is private
form1.h:49: error: within this context
main.cpp: In function 'int main(int, char**)':
main.cpp:34: note: synthesized method 'Form1::Form1()' first required here 
form1.h:53: error: 'Form1::~Form1()' is private
main.cpp:34: error: within this context
main.cpp:35: error: 'class Form1' has no member named 'show'
main.cpp:36: error: 'lastWindowClosed' was not declared in this scope
main.cpp:36: error: 'SIGNAL' was not declared in this scope
main.cpp:36: error: 'quit' was not declared in this scope
main.cpp:36: error: 'SLOT' was not declared in this scope
main.cpp: At global scope:
main.cpp:26: warning: unused parameter 'argc'
main.cpp:26: warning: unused parameter 'argv'
make[1]: *** [obj/main.o] Error 1
make[1]: Leaving directory `/home/semperfiguy/src/Moto4lin/src/moto4lin-build/moto_ui'
make: *** [sub-moto_ui] Error 2
==> ERROR: Build Failed.
    Aborting...

Any help on this? is there any other way that works to get moto4lin?

EDIT:  Found the problem, I had to add /opt/qt into my QTPATH.   Now I need to get this software to work with my phone. the V3C, has anyone gotten this to work?

Last edited by semperfiguy (2008-04-07 20:25:15)

Offline

Board footer

Powered by FluxBB