Configure Syntax Error Word Unexpected
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack
Configure Syntax Error Near Unexpected Token
Overflow the company Business Learn more about hiring developers or posting ads with us syntax error word unexpected (expecting do ) Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community
Syntax Error Word Unexpected (expecting ) ) Shell Script
of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error: word unexpected (expecting “)”) up vote 1 down vote favorite Problem in short- In line 1 syntax error word unexpected expecting linux whenever we get the following error "Syntax error: word unexpected (expecting ")")", what does it generally mean? Problem in details- I have been trying to cross-compile Qt-4.6 as per Sourcery tool chain on Ubuntu 10.04. I followed the exact steps mentioned at the link compiling Qt-4.6. But I get the following error right in the ./configure step - /home/weds/qt-everywhere-opensource-src-4.6.1/bin/qmake: 1: Syntax error: word unexpected (expecting ")") Searching in internet I syntax error word unexpected (expecting ) ) makefile found lots of posts regarding this error. Read all of them. But still clueless as to What this error is and How to solve it. I would be glad if someone would help me in understanding this error. P.S 1- Sourcery toolchain is present inside /opt/ folder and my PATH variable is correctly pointing to it. P.S 2- This toolchain was not installed manually by me. Rather it was provided by a vendor as a .tgz file which I extracted inside /opt/ folder. arm qt4 share|improve this question asked Apr 19 at 13:53 satya prakash Panigrahi 813 migrated from unix.stackexchange.com Apr 19 at 17:50 This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems. add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted An answer to this seems to be posted in the instructions to which you linked. Admittedly it's a long way down in the comments but it didn't take long to search for qmake: Syntax error: word unexpected. Quote: Tej says: January 4, 2013 at 12:20 pm Ok, I have solved the Problem. Its very unfortunate that ppl did not tell what actually is the problem. Problem is we have to use Host qmake. For that whatever Export
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack
Syntax Error Word Unexpected (expecting ) ) Ubuntu
Overflow the company Business Learn more about hiring developers or posting ads with us emulator syntax error word unexpected expecting Raspberry Pi Questions Tags Users Badges Unanswered Ask Question _ Raspberry Pi Stack Exchange is a question and answer site for users
Python Syntax Error: Word Unexpected (expecting ")")
and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted http://stackoverflow.com/questions/36725864/syntax-error-word-unexpected-expecting up and rise to the top Syntax error: word unexpected (expecting “)”) ERROR when run : python configure.py up vote 1 down vote favorite I followed this link to install PyQt5 on Raspbian. First I cross compiled Qt5 (this link) for Raspberry and executed an example. It worked fine. When executing this command: python configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib I received the following error: Querying qmake about your Qt installation... /usr/local/qt5pi/bin/qmake: http://raspberrypi.stackexchange.com/questions/34019/syntax-error-word-unexpected-expecting-error-when-run-python-configure 1: /usr/local/qt5pi/bin/qmake: ELF: not found /usr/local/qt5pi/bin/qmake: 2: /usr/local/qt5pi/bin/qmake: Syntax error: word unexpected (expecting ")") Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the --qmake flag to specify the correct version of qmake. Did I do something wrong? software-installation qt share|improve this question edited Jul 31 '15 at 19:13 HeatfanJohn 2,01221228 asked Jul 31 '15 at 17:47 Mostafa Farzane 164 Are you running the python configure.py command on your Raspberry Pi? –HeatfanJohn Jul 31 '15 at 19:26 yes,I run: python configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplib. and if I run python configure.py without any arguman it say: Error: Use the --qmake argument to explicitly specify a working Qt qmake –Mostafa Farzane Jul 31 '15 at 19:56 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged software-installation qt or ask your own question. a
ERROR Post a reply 4 posts by semofa » Fri Jul 31, 2015 5:11 pm Hi,I followed this link https://github.com/pyqt/python-qt5/wiki/Compiling-PyQt5-on-Ubuntu-12.04 https://www.raspberrypi.org/forums/viewtopic.php?t=117094&p=796867 to install pyqt5 on raspbian.when I want configure (python configure.py)PyQt, I faced the following error:Code: Select allQuerying qmake about your Qt installation...
/usr/local/qt5pi/bin/qmake: 1: /usr/local/qt5pi/bin/qmake: ELF: not found
/usr/local/qt5pi/bin/qmake: 2: /usr/local/qt5pi/bin/qmake: Syntax error: word unexpected (expecting ")")
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v3. Use the
--qmake flag to syntax error specify the correct version of qmake.
Posts: 21Joined: Mon Jun 01, 2015 8:18 pm by Heater » Fri Jul 31, 2015 5:23 pm There is no Qt5 in the Raspian system. So installing PyQt5 is going to be a bit of strife.First install Qt5 from the repository at twolife https://twolife.be/raspbian/When you have that done try syntax error word to install PyQt5 again. Report pack here when that fails.Or...why not just use PyQt for Qt 4 ? Posts: 5495Joined: Tue Jul 17, 2012 3:02 pm by semofa » Fri Jul 31, 2015 5:31 pm I installed Qt5 using this http://wiki.qt.io/RaspberryPi_Beginners_Guide .but when I run Code: Select allpython configure.py --qmake ~/Qt5.3.1/5.3/gcc_64/bin/qmake --sip-incdir ../sip-4.16.5/siplibI faced the error Posts: 21Joined: Mon Jun 01, 2015 8:18 pm by Heater » Fri Jul 31, 2015 6:23 pm There is the problem. Those instructions at http://wiki.qt.io/RaspberryPi_Beginners_Guide are for compiling Qt apps on a PC with a cross-compiler. As far as I know that does not build a Raspi version of qmake that you can use on the Pi. I have managed to compile Qt5 on the Pi itself, including creating a qmake on the Pi. I have documented what I did here: http://the.linuxd.org/qt-5-2-for-raspberry-pi/. Others have had success with that. That process is pretty complex and takes many hours so I provide the finished binaries as a package. See the link.I