UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
*** 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:
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
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
*** 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:
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
..
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.