LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-13-2010, 11:02 AM   #1
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Rep: Reputation: 17
Question Problem compiling BASIC-256 from source


This is my first time compiling a software, I have successfully downloaded and extracted the "basic256_0.9.6.32.tgz" file,but There is no configure file present in the extracted contents,also make and checkinstall exit with error.What seems to be the problem
Here is the output of errors I got during Installation

Quote:
nabeel@nabeel-laptop:~/Desktop/Basic256$ make clean
make -f Makefile.Release clean
make[1]: Entering directory `/home/nabeel/Desktop/Basic256'
rm -f tmp/moc/moc_BasicEdit.cpp tmp/moc/moc_Interpreter.cpp tmp/moc/moc_RunController.cpp tmp/moc/moc_BasicOutput.cpp tmp/moc/moc_BasicGraph.cpp tmp/moc/moc_GhostButton.cpp tmp/moc/moc_PauseButton.cpp tmp/moc/moc_DockWidget.cpp tmp/moc/moc_BasicWidget.cpp tmp/moc/moc_ToolBar.cpp tmp/moc/moc_MainWindow.cpp tmp/moc/moc_VariableWin.cpp tmp/moc/moc_DocumentationWin.cpp tmp/moc/moc_EditSyntaxHighlighter.cpp
rm -f release/qrc_resource.cpp
rm -f tmp/obj/lex.yy.o tmp/obj/basicParse.tab.o tmp/obj/BasicEdit.o tmp/obj/Interpreter.o tmp/obj/RunController.o tmp/obj/Main.o tmp/obj/BasicOutput.o tmp/obj/BasicGraph.o tmp/obj/GhostButton.o tmp/obj/PauseButton.o tmp/obj/DockWidget.o tmp/obj/BasicWidget.o tmp/obj/ToolBar.o tmp/obj/ViewWidgetIFace.o tmp/obj/MainWindow.o tmp/obj/VariableWin.o tmp/obj/DocumentationWin.o tmp/obj/EditSyntaxHighlighter.o tmp/obj/Stack.o tmp/obj/moc_BasicEdit.o tmp/obj/moc_Interpreter.o tmp/obj/moc_RunController.o tmp/obj/moc_BasicOutput.o tmp/obj/moc_BasicGraph.o tmp/obj/moc_GhostButton.o tmp/obj/moc_PauseButton.o tmp/obj/moc_DockWidget.o tmp/obj/moc_BasicWidget.o tmp/obj/moc_ToolBar.o tmp/obj/moc_MainWindow.o tmp/obj/moc_VariableWin.o tmp/obj/moc_DocumentationWin.o tmp/obj/moc_EditSyntaxHighlighter.o tmp/obj/qrc_resource.o
rm -f *~ core *.core
make[1]: Leaving directory `/home/nabeel/Desktop/Basic256'
make -f Makefile.Debug clean
make[1]: Entering directory `/home/nabeel/Desktop/Basic256'
rm -f tmp/moc/moc_BasicEdit.cpp tmp/moc/moc_Interpreter.cpp tmp/moc/moc_RunController.cpp tmp/moc/moc_BasicOutput.cpp tmp/moc/moc_BasicGraph.cpp tmp/moc/moc_GhostButton.cpp tmp/moc/moc_PauseButton.cpp tmp/moc/moc_DockWidget.cpp tmp/moc/moc_BasicWidget.cpp tmp/moc/moc_ToolBar.cpp tmp/moc/moc_MainWindow.cpp tmp/moc/moc_VariableWin.cpp tmp/moc/moc_DocumentationWin.cpp tmp/moc/moc_EditSyntaxHighlighter.cpp
rm -f debug/qrc_resource.cpp
rm -f tmp/obj/lex.yy.o tmp/obj/basicParse.tab.o tmp/obj/BasicEdit.o tmp/obj/Interpreter.o tmp/obj/RunController.o tmp/obj/Main.o tmp/obj/BasicOutput.o tmp/obj/BasicGraph.o tmp/obj/GhostButton.o tmp/obj/PauseButton.o tmp/obj/DockWidget.o tmp/obj/BasicWidget.o tmp/obj/ToolBar.o tmp/obj/ViewWidgetIFace.o tmp/obj/MainWindow.o tmp/obj/VariableWin.o tmp/obj/DocumentationWin.o tmp/obj/EditSyntaxHighlighter.o tmp/obj/Stack.o tmp/obj/moc_BasicEdit.o tmp/obj/moc_Interpreter.o tmp/obj/moc_RunController.o tmp/obj/moc_BasicOutput.o tmp/obj/moc_BasicGraph.o tmp/obj/moc_GhostButton.o tmp/obj/moc_PauseButton.o tmp/obj/moc_DockWidget.o tmp/obj/moc_BasicWidget.o tmp/obj/moc_ToolBar.o tmp/obj/moc_MainWindow.o tmp/obj/moc_VariableWin.o tmp/obj/moc_DocumentationWin.o tmp/obj/moc_EditSyntaxHighlighter.o tmp/obj/qrc_resource.o
rm -f *~ core *.core
make[1]: Leaving directory `/home/nabeel/Desktop/Basic256'
nabeel@nabeel-laptop:~/Desktop/Basic256$ qmake
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
make: bison: Command not found
make: *** [all] Error 127
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
make: bison: Command not found
make: *** [all] Error 127
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
make: bison: Command not found
make: *** [all] Error 127
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
nabeel@nabeel-laptop:~/Desktop/Basic256$ sudo checkinstall

checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.



*****************************************
**** Debian package creation selected ***
*****************************************

*** Warning: The package name "Basic256" contains upper case
*** Warning: letters. dpkg might not like that so I changed
*** Warning: them to lower case.

This package will be built according to these values:

0 - Maintainer: [ root@nabeel-laptop ]
1 - Summary: [ Package created with checkinstall 1.6.1 ]
2 - Name: [ basic256 ]
3 - Version: [ 20100912 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ Basic256 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ basic256 ]

Enter a number to change any of them or press ENTER to continue:

Installing with make...Installing with install...

========================= Installation results ===========================
make -f Makefile.Release install
make[1]: Entering directory `/home/nabeel/Desktop/Basic256'
gcc -c -pipe -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/lex.yy.o LEX/lex.yy.c
lex.yy.c:3370: warning: ‘yyunput’ defined but not used
lex.yy.c:3411: warning: ‘input’ defined but not used
gcc -c -pipe -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/basicParse.tab.o LEX/basicParse.tab.c
basicParse.y: In function ‘newByteCode’:
basicParse.y:133: warning: unused parameter ‘size’
basicParse.y: In function ‘addInt’:
basicParse.y:179: warning: unused parameter ‘data’
basicParse.y: In function ‘yyerror’:
basicParse.y:1073: warning: unused parameter ‘msg’
g++ -c -g -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/BasicEdit.o BasicEdit.cpp
BasicEdit.cpp:21:23: error: QTextCursor: No such file or directory
BasicEdit.cpp:22:23: error: QFileDialog: No such file or directory
BasicEdit.cpp:23:23: error: QMessageBox: No such file or directory
BasicEdit.cpp:24:22: error: QStatusBar: No such file or directory
BasicEdit.cpp:25:20: error: QPrinter: No such file or directory
BasicEdit.cpp:26:24: error: QPrintDialog: No such file or directory
In file included from BasicEdit.cpp:30:
BasicEdit.h:23:24: error: QApplication: No such file or directory
BasicEdit.h:24:21: error: QTextEdit: No such file or directory
BasicEdit.h:25:23: error: QMainWindow: No such file or directory
BasicEdit.h:26:21: error: QKeyEvent: No such file or directory
In file included from BasicEdit.h:28,
from BasicEdit.cpp:30:
ViewWidgetIFace.h:22:17: error: QMenu: No such file or directory
In file included from ViewWidgetIFace.h:23,
from BasicEdit.h:28,
from BasicEdit.cpp:30:
ToolBar.h:22:20: error: QToolBar: No such file or directory
In file included from ViewWidgetIFace.h:23,
from BasicEdit.h:28,
from BasicEdit.cpp:30:
ToolBar.h:25: error: expected class-name before ‘{’ token
ToolBar.h:26: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
ToolBar.h:29: error: expected ‘)’ before ‘&’ token
ToolBar.h:30: error: expected ‘)’ before ‘*’ token
In file included from BasicEdit.h:28,
from BasicEdit.cpp:30:
ViewWidgetIFace.h:31: error: ‘QMenu’ has not been declared
In file included from BasicEdit.cpp:30:
BasicEdit.h:30: error: expected class-name before ‘,’ token
BasicEdit.h:32: error: ISO C++ forbids declaration of ‘Q_OBJECT’ with no type
BasicEdit.h:34: error: expected ‘)’ before ‘*’ token
BasicEdit.h:35: error: ‘QString’ has not been declared
BasicEdit.h:38: error: expected ‘:’ before ‘slots’
BasicEdit.h:39: error: expected primary-expression before ‘void’
BasicEdit.h:39: error: ISO C++ forbids declaration of ‘slots’ with no type
BasicEdit.h:39: error: expected ‘;’ before ‘void’
BasicEdit.h:54: error: ‘QKeyEvent’ has not been declared
BasicEdit.h:57: error: ISO C++ forbids declaration of ‘QMainWindow’ with no type
BasicEdit.h:57: error: expected ‘;’ before ‘*’ token
BasicEdit.h:62: error: ‘QString’ does not name a type
BasicEdit.cpp:32: error: expected ‘)’ before ‘*’ token
BasicEdit.cpp: In member function ‘void BasicEdit::changeFontSize(unsigned int)’:
BasicEdit.cpp:72: error: ‘QFont’ was not declared in this scope
BasicEdit.cpp:72: error: expected ‘;’ before ‘f’
BasicEdit.cpp:73: error: ‘f’ was not declared in this scope
BasicEdit.cpp:76: error: ‘setFont’ was not declared in this scope
BasicEdit.cpp: In member function ‘void BasicEdit::cursorMove()’:
BasicEdit.cpp:82: error: ‘QTextCursor’ was not declared in this scope
BasicEdit.cpp:82: error: expected ‘;’ before ‘t’
BasicEdit.cpp:84: error: ‘t’ was not declared in this scope
BasicEdit.cpp:85: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:87: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:90: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:96: error: ‘mainwin’ was not declared in this scope
BasicEdit.cpp:96: error: ‘tr’ was not declared in this scope
BasicEdit.cpp:96: error: ‘QString’ has not been declared
BasicEdit.cpp:96: error: ‘QString’ has not been declared
BasicEdit.cpp: In member function ‘void BasicEdit::highlightLine(int)’:
BasicEdit.cpp:102: error: ‘QTextCursor’ was not declared in this scope
BasicEdit.cpp:102: error: expected ‘;’ before ‘t’
BasicEdit.cpp:103: error: ‘t’ was not declared in this scope
BasicEdit.cpp:107: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:110: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:110: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:111: error: ‘setTextCursor’ was not declared in this scope
BasicEdit.cpp: In member function ‘void BasicEdit::goToLine(int)’:
BasicEdit.cpp:117: error: ‘QTextCursor’ was not declared in this scope
BasicEdit.cpp:117: error: expected ‘;’ before ‘t’
BasicEdit.cpp:118: error: ‘t’ was not declared in this scope
BasicEdit.cpp:120: error: ‘QTextCursor’ is not a class or namespace
BasicEdit.cpp:124: error: ‘setTextCursor’ was not declared in this scope
BasicEdit.cpp:125: error: ‘setFocus’ was not declared in this scope
BasicEdit.cpp: At global scope:
BasicEdit.cpp:130: error: variable or field ‘keyPressEvent’ declared void
BasicEdit.cpp:130: error: ‘QKeyEvent’ was not declared in this scope
BasicEdit.cpp:130: error: ‘e’ was not declared in this scope
BasicEdit.cpp:138: error: no ‘void BasicEdit::newProgram()’ member function declared in class ‘BasicEdit’
BasicEdit.cpp: In member function ‘void BasicEdit::saveProgram()’:
BasicEdit.cpp:162: error: ‘filename’ was not declared in this scope
BasicEdit.cpp:164: error: ‘QFileDialog’ has not been declared
BasicEdit.cpp:164: error: ‘tr’ was not declared in this scope
BasicEdit.cpp:167: error: ‘filename’ was not declared in this scope
BasicEdit.cpp:169: error: ‘QRegExp’ was not declared in this scope
BasicEdit.cpp:169: error: expected ‘;’ before ‘rx’
BasicEdit.cpp:170: error: ‘rx’ was not declared in this scope
BasicEdit.cpp:174: error: ‘QFile’ was not declared in this scope
BasicEdit.cpp:174: error: expected ‘;’ before ‘f’
BasicEdit.cpp:176: error: ‘f’ was not declared in this scope
BasicEdit.cpp:177: error: ‘QMessageBox’ was not declared in this scope
BasicEdit.cpp:177: error: expected ‘;’ before ‘msgBox’
BasicEdit.cpp:178: error: ‘msgBox’ was not declared in this scope
BasicEdit.cpp:178: error: ‘tr’ was not declared in this scope
BasicEdit.cpp:180: error: ‘QMessageBox’ is not a class or namespace
BasicEdit.cpp:180: error: ‘QMessageBox’ is not a class or namespace
BasicEdit.cpp:181: error: ‘QMessageBox’ is not a class or namespace
BasicEdit.cpp:182: error: ‘QMessageBox’ is not a class or namespace
BasicEdit.cpp:185: error: ‘f’ was not declared in this scope
BasicEdit.cpp:185: error: ‘QIODevice’ has not been declared
BasicEdit.cpp:185: error: ‘QIODevice’ has not been declared
BasicEdit.cpp:186: error: ‘class BasicEdit’ has no member named ‘document’
BasicEdit.cpp:188: error: ‘QFileInfo’ was not declared in this scope
BasicEdit.cpp:188: error: expected ‘;’ before ‘fi’
BasicEdit.cpp:189: error: ‘mainwin’ was not declared in this scope
BasicEdit.cpp:189: error: ‘fi’ was not declared in this scope
BasicEdit.cpp:189: error: ‘tr’ was not declared in this scope
BasicEdit.cpp:190: error: ‘QDir’ has not been declared
BasicEdit.cpp: In member function ‘void BasicEdit::saveAsProgram()’:
BasicEdit.cpp:199: error: ‘QString’ was not declared in this scope
BasicEdit.cpp:199: error: expected ‘;’ before ‘tempfilename’
BasicEdit.cpp:201: error: ‘tempfilename’ was not declared in this scope
BasicEdit.cpp:203: error: ‘filename’ was not declared in this scope
BasicEdit.cpp: In member function ‘void BasicEdit::loadProgram()’:
BasicEdit.cpp:211: error: ‘QString’ was not declared in this scope
BasicEdit.cpp:211: error: expected ‘;’ before ‘s’
BasicEdit.cpp:212: error: ‘s’ was not declared in this scope
BasicEdit.cpp: At global scope:
BasicEdit.cpp:216: error: variable or field ‘loadFile’ declared void
BasicEdit.cpp:216: error: ‘QString’ was not declared in this scope
make[1]: *** [tmp/obj/BasicEdit.o] Error 1
make[1]: Leaving directory `/home/nabeel/Desktop/Basic256'
make: *** [release-install] Error 2

**** Installation failed. Aborting package creation.

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.
 
Old 09-13-2010, 11:49 AM   #2
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 615

Rep: Reputation: 98
Have you read the extracted file called "compiling.txt"?
 
Old 09-13-2010, 02:04 PM   #3
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
yes and I have also installed all the libraries said in this file,it just asks to run make install command,but i get the above errors when doing it
 
Old 09-13-2010, 03:14 PM   #4
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
Bison isn't installed.
Also, for compiling software on Ubuntu and many other distros, you need the -dev packages as well as the regular libraries.
 
Old 09-13-2010, 04:14 PM   #5
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 615

Rep: Reputation: 98
Have a look at http://amitech.50webs.com/installing...hp.html#source

Have you installed: build-essentials ?
 
Old 09-15-2010, 11:11 AM   #6
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Ok I had build libraries and now i have installed Bison too but still I get errors with make command.
 
Old 09-15-2010, 12:53 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The prerequisites are :

g++ flex bison autoconf automake libqt4-dev libsdl1.2-dev libsdl-mixer1.2-dev

Did you install all that ?


cd BACIC256/ && qmake && make : No errors on Ubuntu 10.04 :
The command : './BASIC256' will display the GUI.
.....

Last edited by knudfl; 09-15-2010 at 12:58 PM.
 
Old 09-17-2010, 09:59 AM   #8
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
ok these are the errors which I got after installing all the prerequisties and running cd ~/Desktop/Basic256 && qmake && make


Quote:
nabeel@nabeel-laptop:~/Desktop/Basic256$ cd ~/Desktop/Basic256 && qmake && make
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
basicParse.y: conflicts: 1 shift/reduce
flex basicParse.l
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
basicParse.y: conflicts: 1 shift/reduce
flex basicParse.l
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
basicParse.y: conflicts: 1 shift/reduce
flex basicParse.l
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
make -f Makefile.Release
make[1]: Entering directory `/home/nabeel/Desktop/Basic256'
gcc -c -pipe -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/lex.yy.o LEX/lex.yy.c
lex.yy.c:3370: warning: ‘yyunput’ defined but not used
lex.yy.c:3411: warning: ‘input’ defined but not used
gcc -c -pipe -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/basicParse.tab.o LEX/basicParse.tab.c
basicParse.y: In function ‘newByteCode’:
basicParse.y:133: warning: unused parameter ‘size’
basicParse.y: In function ‘addInt’:
basicParse.y:179: warning: unused parameter ‘data’
basicParse.y: In function ‘yyerror’:
basicParse.y:1073: warning: unused parameter ‘msg’
g++ -c -g -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/Interpreter.o Interpreter.cpp
Interpreter.cpp:26:21: error: sqlite3.h: No such file or directory
In file included from Interpreter.cpp:52:
Interpreter.h:267: error: ISO C++ forbids declaration of ‘sqlite3’ with no type
Interpreter.h:267: error: expected ‘;’ before ‘*’ token
Interpreter.h:268: error: ISO C++ forbids declaration of ‘sqlite3_stmt’ with no type
Interpreter.h:268: error: expected ‘;’ before ‘*’ token
Interpreter.cpp: In member function ‘void Interpreter::initialize()’:
Interpreter.cpp:566: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:567: error: ‘dbset’ was not declared in this scope
Interpreter.cpp: In member function ‘void Interpreter::cleanup()’:
Interpreter.cpp:589: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:590: error: ‘sqlite3_finalize’ was not declared in this scope
Interpreter.cpp:593: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:594: error: ‘sqlite3_close’ was not declared in this scope
Interpreter.cpp: In member function ‘int Interpreter::execByteCode()’:
Interpreter.cpp:3262: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:3263: error: ‘sqlite3_finalize’ was not declared in this scope
Interpreter.cpp:3266: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:3267: error: ‘sqlite3_close’ was not declared in this scope
Interpreter.cpp:3270: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:3270: error: ‘sqlite3_open’ was not declared in this scope
Interpreter.cpp:3281: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:3282: error: ‘sqlite3_finalize’ was not declared in this scope
Interpreter.cpp:3285: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:3286: error: ‘sqlite3_close’ was not declared in this scope
Interpreter.cpp:3297: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:3298: error: ‘sqlite3_exec’ was not declared in this scope
Interpreter.cpp:3299: error: ‘SQLITE_OK’ was not declared in this scope
Interpreter.cpp:3301: error: ‘sqlite3_errmsg’ was not declared in this scope
Interpreter.cpp:3315: error: ‘dbconn’ was not declared in this scope
Interpreter.cpp:3316: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:3316: error: ‘sqlite3_prepare_v2’ was not declared in this scope
Interpreter.cpp:3317: error: ‘SQLITE_OK’ was not declared in this scope
Interpreter.cpp:3319: error: ‘sqlite3_errmsg’ was not declared in this scope
Interpreter.cpp:3332: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:3333: error: ‘sqlite3_finalize’ was not declared in this scope
Interpreter.cpp:3343: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:3343: error: ‘sqlite3_step’ was not declared in this scope
Interpreter.cpp:3343: error: ‘SQLITE_ROW’ was not declared in this scope
Interpreter.cpp:3355: error: ‘dbset’ was not declared in this scope
Interpreter.cpp:3356: error: ‘sqlite3_column_count’ was not declared in this scope
Interpreter.cpp:3361: error: ‘sqlite3_column_int’ was not declared in this scope
Interpreter.cpp:3364: error: ‘sqlite3_column_double’ was not declared in this scope
Interpreter.cpp:3367: error: ‘sqlite3_column_text’ was not declared in this scope
make[1]: *** [tmp/obj/Interpreter.o] Error 1
make[1]: Leaving directory `/home/nabeel/Desktop/Basic256'
make: *** [release] Error 2
 
Old 09-17-2010, 06:22 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 8.
Quote:
error: sqlite3.h: No such file or directory
Sorry, didn't notice the use of sqlite.

Ubuntu : sudo apt-get install libsqlite3-dev

..
 
1 members found this post helpful.
Old 09-22-2010, 11:31 AM   #10
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
OK I installed libsqlite3-dev and i got this error again




Quote:
nabeel@nabeel-laptop:~$ cd ~/Desktop/Basic256 && qmake && make
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
basicParse.y: conflicts: 1 shift/reduce
flex basicParse.l
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
basicParse.y: conflicts: 1 shift/reduce
flex basicParse.l
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
Project MESSAGE: Running make for ./LEX/Makefile
make: Entering directory `/home/nabeel/Desktop/Basic256/LEX'
bison -d basicParse.y
basicParse.y: conflicts: 1 shift/reduce
flex basicParse.l
make: Leaving directory `/home/nabeel/Desktop/Basic256/LEX'
make -f Makefile.Release
make[1]: Entering directory `/home/nabeel/Desktop/Basic256'
gcc -c -pipe -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/lex.yy.o LEX/lex.yy.c
lex.yy.c:3370: warning: ‘yyunput’ defined but not used
lex.yy.c:3411: warning: ‘input’ defined but not used
gcc -c -pipe -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/basicParse.tab.o LEX/basicParse.tab.c
basicParse.y: In function ‘newByteCode’:
basicParse.y:133: warning: unused parameter ‘size’
basicParse.y: In function ‘addInt’:
basicParse.y:179: warning: unused parameter ‘data’
basicParse.y: In function ‘yyerror’:
basicParse.y:1073: warning: unused parameter ‘msg’
g++ -c -g -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/Interpreter.o Interpreter.cpp
g++ -c -g -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/RunController.o RunController.cpp
RunController.cpp:41:25: error: speak_lib.h: No such file or directory
RunController.cpp: In member function ‘void RunController::speakWords(QString)’:
RunController.cpp:309: error: ‘espeakCHARS_AUTO’ was not declared in this scope
RunController.cpp:309: error: ‘espeakPHONEMES’ was not declared in this scope
RunController.cpp:309: error: ‘espeakENDPAUSE’ was not declared in this scope
RunController.cpp:311: error: ‘AUDIO_OUTPUT_SYNCH_PLAYBACK’ was not declared in this scope
RunController.cpp:311: error: ‘espeak_Initialize’ was not declared in this scope
RunController.cpp:313: error: ‘espeak_SetVoiceByName’ was not declared in this scope
RunController.cpp:315: error: ‘espeak_ERROR’ was not declared in this scope
RunController.cpp:315: error: expected ‘;’ before ‘err’
RunController.cpp:316: error: ‘err’ was not declared in this scope
RunController.cpp:316: error: ‘EE_OK’ was not declared in this scope
RunController.cpp:319: error: ‘espeak_Synchronize’ was not declared in this scope
RunController.cpp:320: error: ‘espeak_Terminate’ was not declared in this scope
RunController.cpp:314: warning: unused variable ‘size’
RunController.cpp:309: warning: unused variable ‘synth_flags’
RunController.cpp: At global scope:
RunController.cpp:457: warning: unused parameter ‘text’
make[1]: *** [tmp/obj/RunController.o] Error 1
make[1]: Leaving directory `/home/nabeel/Desktop/Basic256'
make: *** [release] Error 2
nabeel@nabeel-laptop:~/Desktop/Basic256$ checkinstall

checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.



*****************************************
**** Debian package creation selected ***
*****************************************

*** Warning: The package name "Basic256" contains upper case
*** Warning: letters. dpkg might not like that so I changed
*** Warning: them to lower case.

This package will be built according to these values:

0 - Maintainer: [ nabeel@nabeel-laptop ]
1 - Summary: [ Package created with checkinstall 1.6.1 ]
2 - Name: [ basic256 ]
3 - Version: [ 20100922 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ Basic256 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ basic256 ]

Enter a number to change any of them or press ENTER to continue:

Installing with make...Installing with install...

========================= Installation results ===========================
make -f Makefile.Release install
make[1]: Entering directory `/home/nabeel/Desktop/Basic256'
g++ -c -g -O2 -D_REENTRANT -Wall -W -DLINUX_ESPEAK -DUSESDL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I. -I/usr/include/espeak -Itmp/moc -o tmp/obj/RunController.o RunController.cpp
RunController.cpp:41:25: error: speak_lib.h: No such file or directory
RunController.cpp: In member function ‘void RunController::speakWords(QString)’:
RunController.cpp:309: error: ‘espeakCHARS_AUTO’ was not declared in this scope
RunController.cpp:309: error: ‘espeakPHONEMES’ was not declared in this scope
RunController.cpp:309: error: ‘espeakENDPAUSE’ was not declared in this scope
RunController.cpp:311: error: ‘AUDIO_OUTPUT_SYNCH_PLAYBACK’ was not declared in this scope
RunController.cpp:311: error: ‘espeak_Initialize’ was not declared in this scope
RunController.cpp:313: error: ‘espeak_SetVoiceByName’ was not declared in this scope
RunController.cpp:315: error: ‘espeak_ERROR’ was not declared in this scope
RunController.cpp:315: error: expected ‘;’ before ‘err’
RunController.cpp:316: error: ‘err’ was not declared in this scope
RunController.cpp:316: error: ‘EE_OK’ was not declared in this scope
RunController.cpp:319: error: ‘espeak_Synchronize’ was not declared in this scope
RunController.cpp:320: error: ‘espeak_Terminate’ was not declared in this scope
RunController.cpp:314: warning: unused variable ‘size’
RunController.cpp:309: warning: unused variable ‘synth_flags’
RunController.cpp: At global scope:
RunController.cpp:457: warning: unused parameter ‘text’
make[1]: *** [tmp/obj/RunController.o] Error 1
make[1]: Leaving directory `/home/nabeel/Desktop/Basic256'
make: *** [release-install] Error 2

**** Installation failed. Aborting package creation.

Restoring overwritten files from backup... FAILED!

Cleaning up...OK

Bye.
 
Old 09-23-2010, 10:46 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
COMPILING.txt : Please read the file (again).

Quote :
To compile, you'll need the open source version of QT4, GNU flex and bison.
Specifcally for LINUX you will need:
* FLite or Espeak development libraries
* sqlite3 database development libraries

sudo apt-get install espeak libespeak-dev
.. will probably do.
..
 
1 members found this post helpful.
Old 09-23-2010, 11:36 AM   #12
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
Thanks I have sucessfully compiled and made the *.deb file of the software,but how do I add a launcher to the start menu??????
 
Old 09-23-2010, 01:40 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
General information : Google .. make launcher Gnome menu ..
http://developers.sun.com/solaris/ar...ing_gnome.html

Or plug out a file "basic256.desktop" from a package
ftp://ftp.pbone.net/mirror/www.pclin...s2007.i586.rpm

.. and : sudo cp basic256.desktop /usr/share/applications/

( Is usable without editing when you do
'cd BASIC-256/ && sudo make install ).
........
Attached Images
 
Attached Files
File Type: txt Basic-desktop-file.tar.gz.txt (398 Bytes, 21 views)

Last edited by knudfl; 09-23-2010 at 02:34 PM.
 
1 members found this post helpful.
Old 09-24-2010, 12:03 AM   #14
Nabeel
Member
 
Registered: Nov 2009
Location: Pakistan
Distribution: Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 17
thank you so very much,I have extracted the launcher from the *.rpm file and it is launching the BASIC-256 program, and i have also taken the icon you uploaded, However I still can't understand how to add it under the gnome menu.
 
Old 09-24-2010, 10:03 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
We all forgot this : sudo apt-get install basic256

Basic-256 is actually available for all versions of Ubuntu.
(Menu) Programs → Science → BASIC-256 : The icon.

Menu entry location : /usr/share/menu/basic256.
And : /usr/share/applications/basic256.desktop
http://packages.ubuntu.com/lucid/i386/basic256/filelist
..

Last edited by knudfl; 09-24-2010 at 10:04 AM.
 
  


Reply

Tags
basic-256, basic256



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
problem in compiling svn from source rockyrakesh1331 Programming 1 05-30-2008 03:26 PM
Problem compiling Kile 1.9.2 from source ReubenG Linux - Software 2 03-19-2007 03:36 AM
Problem compiling from source rkfb Slackware 3 11-06-2004 04:37 PM
Compiling From Source Problem(g++) Chryzmo Linux - Software 7 01-31-2004 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:23 AM.

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