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