LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2012, 06:53 AM   #1
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Rep: Reputation: Disabled
Wink ./project line 1 : Syntax error : unexpected word (expecting ")")...


hello chrism01,,
the problem is not in the code of my project as its running successfully when i build the project...
i think i should give something using tslib.....
even when i build the project using ./project i am getting output successfully.....but while deploying my applications from pc to device using qws command,its showing as ./project line1 : Syntax error : unexpected word (expecting ")")....


Regards,
Navya

Last edited by navya; 04-19-2012 at 12:29 AM.
 
Old 04-18-2012, 07:45 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Show us the code for 'project'
 
Old 04-19-2012, 12:30 AM   #3
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
the problem is not in the code of my project as its running successfully when i build the project...
i think i should give something using tslib.....
even when i build the project using ./project i am getting output successfully.....but while deploying my applications from pc to device using qws command,its showing as ./project line1 : Syntax error : unexpected word (expecting ")")....


Regards,
Navya
 
Old 04-19-2012, 12:37 AM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Quote:
Originally Posted by navya View Post
... line1 : Syntax error : unexpected word (expecting ")")....
There is an error, it maybe compiling but with warnings and passing through, could you post the last lines of the compile output?

Regards
 
1 members found this post helpful.
Old 04-19-2012, 01:08 AM   #5
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
hello,
here i have been posted the ftp and telnet procedure,,,pls see it and say me where i am going wrong

[root@FriendlyARM /root]# telnet 192.168.1.230

Entering character mode
Escape character is '^]'.


Kernel 2.6.38-FriendlyARM on (/dev/pts/1)
FriendlyARM login: root
Password:
[root@FriendlyARM /]# cd /root/
[root@FriendlyARM /root]# ls
Applications GTJ project
Documents Settings tmp
[root@FriendlyARM /root]# chmod +x project
[root@FriendlyARM /root]# ls
Applications GTJ project
Documents Settings tmp
[root@FriendlyARM /root]# export TSLIB_TSEVENTTYPE=INPUT
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export TSLIB_CONSOLEDEVICE=none
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export TSLIB_FBDEVICE=/dev/fb0
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export TSLIB_TSDEVICE=/dev/touchscreen-1wire
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export TSLIB_CALIBFILE=/etc/pointercal
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export TSLIB_CONFFILE=/etc/ts.conf
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export TSLIB_PLUGINDIR=/usr/lib/ts
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export LD_LIBRARY_PATH=/usr/local/arm/4.3.2/lib
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export QTDIR=/usr/local/arm/4.3.2
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export QWS_MOUSE_PROTO=tslib:/dev/touchscreen-1wire
[root@FriendlyARM /root]#
[root@FriendlyARM /root]# export QWS_SIZE='480X272'
[root@FriendlyARM /root]# ls
Applications GTJ project
Documents Settings tmp
[root@FriendlyARM /root]# cd
[root@FriendlyARM /]# ls
Settings home lost+found project tmp
bin init.d-rcs mnt root usr
dev lib opt sbin var
etc linuxrc proc sys www
[root@FriendlyARM /]# cd /root/
[root@FriendlyARM /root]# ls
Applications GTJ project
Documents Settings tmp
[root@FriendlyARM /root]# ./project -qws
./project: line 1: syntax error: unexpected word (expecting ")")
[root@FriendlyARM /root]#
 
Old 04-19-2012, 01:56 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,103

Rep: Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138
just execute head project and send us the result
 
Old 04-19-2012, 02:39 AM   #7
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
ya even if i execute ./project also the result will be same......
as Syntax error : unexpected word (expecting ")")


Regards,
Navya
 
Old 04-19-2012, 04:55 AM   #8
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Verify the 1st line in your code there is an error, please could you post the begin of the code. Also could you use the BBCodes when posting outputs please, it helps the visualization, the code tag is what you will use.
Here one example how it will looks like:
Code:
[root@FriendlyARM /root]# ./project -qws
./project: line 1: syntax error: unexpected word (expecting ")")
[root@FriendlyARM /root]#
That is also used to avoid smiles to appear where it shouldn't, example:
Without the bbCodes:
With bbCodes:
Code:
:):):)
Regards
 
Old 04-19-2012, 06:44 AM   #9
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
there are 2 .h files and 2 .cpp files...
for mainwindow.h
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include <QByteArray>
#include <QButtonGroup>
#include <QTimer>

and for serial.h
#ifndef SERIAL_H
#define SERIAL_H
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <unistd.h>

and for mainwindow.cpp
#include "mainwindow.h"
#include "serial.h"
#include "ui_form1.h"
#include "ui_form2.h"
#include "ui_form3.h"
#include "ui_form4.h"
#include "iostream"
#include <QByteArray>
#include <QTimer>
#include <QDebug>

for serial.cpp
#include <stdio.h>
#include "serial.h"
#include "iostream"
#include "QDebug"

go through it and say me where am i going wrong
 
Old 04-19-2012, 06:50 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,103

Rep: Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138
the file named project is not ok
 
Old 04-19-2012, 06:51 AM   #11
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
sorry as i am new to this postings,i dont know how to use bbcodes....


Regards,
Navya

---------- Post added 04-19-12 at 04:21 PM ----------

sorry as i am new to this postings,i dont know how to use bbcodes....


Regards,
Navya
 
Old 04-19-2012, 07:27 AM   #12
navya
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
ya i will change the thing,,can u say what changes i can apply to come out of this syntax error....

Regards,
navya
 
Old 04-19-2012, 07:31 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,103

Rep: Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138Reputation: 7138
please show us the file named project, because we cannot say what should you change
 
Old 04-19-2012, 12:34 PM   #14
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by navya View Post
sorry as i am new to this postings,i dont know how to use bbcodes....
The easiest way is to go into Advanced posting mode and use the # button.
 
Old 04-19-2012, 08:27 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
https://www.linuxquestions.org/quest...do=bbcode#code
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
i2c4: line1 : syntax error: unexpected word (expecting " )" ) pillisrikanth Linux - Software 1 12-07-2011 07:18 AM
[SOLVED] line 1: syntax error: word unexpected (expecting ")") me011089 Linux - Embedded & Single-board computer 5 08-23-2011 09:34 AM
Busybox Syntax error: word unexpected (expecting ")") asprakash Linux - Embedded & Single-board computer 6 10-13-2010 03:22 AM
Backup Script error "line 31: syntax error: unexpected end of file" eswanepoel General 7 12-07-2007 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 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