First of all you need to build and run the server. Running ./s7webserver_repl.py won't work unless the server is running.
Try this to compile the server: cd qhttpserver-master QMAKE=qmake MOC=moc make On Tue, Mar 30, 2021 at 4:46 PM Forrest Curo <[email protected]> wrote: > > forrest@beefurr:~$ qmake --version > QMake version 3.1 > Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu > ... > forrest@beefurr:~/s7/s7webserver$ make > rm -fr qhttpserver-master.tar.gz qhttpserver-master > wget https://github.com/kmatheussen/qhttpserver/archive/master.tar.gz > --2021-03-30 06:58:11-- > https://github.com/kmatheussen/qhttpserver/archive/master.tar.gz > ... > echo "CONFIG += staticlib" >> qhttpserver-master/src/src.pro > cd qhttpserver-master && qmake-qt5 > /bin/sh: 1: qmake-qt5: not found > make: *** [Makefile:41: qhttpserver-master/lib/libqhttpserver.a] Error 127 > > forrest@beefurr:~/s7/s7webserver$ cd qhttpserver-master && qmake -qt5 > (note space in this line) > Info: creating stash file > /home/forrest/s7/s7webserver/qhttpserver-master/.qmake.stash > forrest@beefurr:~/s7/s7webserver/qhttpserver-master$ make > cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile > /home/forrest/s7/s7webserver/qhttpserver-master/src/src.pro ) && make -f > Makefile > make[1]: Entering directory > '/home/forrest/s7/s7webserver/qhttpserver-master/src' > make -f Makefile.Release > make[2]: Entering directory > '/home/forrest/s7/s7webserver/qhttpserver-master/src' > > ... > forrest@beefurr:~/s7/s7webserver$ ./s7webserver_repl.py > s7> (+ 4 4) > <Unable to contact Radium> > ... > forrest@beefurr:~/s7/s7webserver$ firefox s7webserver_repl.html > [no output to terminal.] > [firefox window, localhost 6080]: > > S7 scheme > >>> (+ 3 5) > Not connected. > Please verify your network connection. > >>> > > =========================== > Finally -- reverting to new s7 folder and then altering the makefile to read : > "cd qhttpserver-master && qmake -qt5 > cd qhttpserver-master && make" > > I get much further but end with: > > make[3]: Leaving directory > '/home/forrest/s7/s7webserver/qhttpserver-master/examples/bodydata' > make[2]: Leaving directory > '/home/forrest/s7/s7webserver/qhttpserver-master/examples' > make[1]: Leaving directory '/home/forrest/s7/s7webserver/qhttpserver-master' > touch mus-config.h > moc-qt5 -DCOMPILING_S7WEBSERVER s7webserver.h -o moc_s7webserver.cpp > make: moc-qt5: Command not found > make: *** [Makefile:27: moc_s7webserver.cpp] Error 127 > > > On Mon, Mar 29, 2021 at 11:25 PM Kjetil Matheussen <[email protected]> > wrote: >> >> On Tue, Mar 30, 2021 at 12:54 AM Forrest Curo <[email protected]> wrote: >> > >> > Everything goes happily to >> > cd qhttpserver-master && qmake-qt5 >> > /bin/sh: 1: qmake-qt5: not found >> > >> > Okay, the line the 'makefile' is # 41: >> > cd qhttpserver-master && $(QMAKE) >> > >> > and the way that's carried out: cd qhttpserver-master && qmake-qt5 >> > is missing a needed space between qmake and -qt5 >> > >> >> "qmake-qt5" means qmake for qt5. If you only have a program called >> "qmake", you should make sure first that it's for qt5, not qt4 or qt6. >> >> >> > I do that manually. Doing this I get >> > >> > 'Info: creating stash file >> > /home/forrest/s7/s7webserver/qhttpserver-master/.qmake.stash' >> > >> > and make (from there) makes lines&lines >> > with a warning: >> > QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I../build >> > -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o >> > ../build/http_parser.o ../http-parser/http_parser.c >> > ../http-parser/http_parser.c: In function ‘http_parser_parse_url’: >> > ../http-parser/http_parser.c:2340:18: warning: this statement may fall >> > through [-Wimplicit-fallthrough=] >> > 2340 | found_at = 1; >> > | ~~~~~~~~~^~~ >> > ../http-parser/http_parser.c:2343:7: note: here >> > 2343 | case s_req_server: >> > | ^~~~ >> > >> >> Looks fine. Those are innocent warnings. >> >> >> > but the end result is a repl at localhost 6080 that responds with "Not >> > connected" >> >> What exactly is happening? Can you post the output of the terminal >> when you run the program? >> >> >> > and a python s7webserver_repl that just says: "Unable to contact Radium" >> > >> >> That's expected if the server is not running. > > _______________________________________________ > Cmdist mailing list > [email protected] > https://cm-mail.stanford.edu/mailman/listinfo/cmdist _______________________________________________ Cmdist mailing list [email protected] https://cm-mail.stanford.edu/mailman/listinfo/cmdist
