Re: [Texmacs-dev] Experimental packages (experience with building on FreeBSD)
Hi Philippe, Thanks, this is very helpful! The Qt5 package I am using is indeed 5.15.2, this is the latest for FreeBSD. No Qt6 is available yet. With respect to the discussion im savannah, here is one more data point: the following simple program works fine with Qt 5.15.2. // clang++ -O2 -Wall -Wextra -pthread -fPIC -std=c++11 -I/usr/local/include - D_THREAD_SAFE -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtCore - L/usr/local/lib/qt5 -lQt5Core QTMPipeLink.cpp #include #include #include int main() { QString cmd = "ls"; QStringList args = {"-l"}; QProcess *myp = new QProcess(); myp->start(cmd, args); if (myp->waitForFinished()) { QString result = myp->readAll(); std::cout << result.toStdString() << std::endl; }; }; Now this is not nearly as complex as the pipe scheme in TeXmacs, but it's a data point. Kostas On Tue, 2021-12-07 at 19:01 +0100, Philippe Joyez wrote: > Hi Kostas, > > For some reason I can't manage to post on the mailing list, so I email > you directly. > > Given the issue you reported yesterday with TeXmacs plugins in FreeBSD, > I believe you made a Qt5 build which is then having the issue described > in https://savannah.gnu.org/bugs/?60931 > > Regards, > Philippe ___ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev
Re: [Texmacs-dev] Experimental packages (experience with building on FreeBSD)
I'm happy to say that svn version 13819M builds fine on FreeBSD 13 using configure --prefix=/opt/texmacs/2.1-svn --with-qt and with the default compiler, clang 11. Now a report on how it is working. First, it's great to see that C-x b finally works! Second, the main problem is that all plugins segfault immediately upon invocation. The simplest example is the shell plugin. I found that the call QProcess::start(utf8_to_qstring(cmd)) in src/src/Plugins/Qt/QTMPipeLink.cpp is what causes the segfault. [There is no problem with utf8_to_qstring(cmd).] In trying to fix this, I fixed a couple of deprecation warnings: in QTMPipeLink.cpp it seems that QStringList args = {}; QProcess::start(utf8_to_qstring(cmd), args); is now needed (also with #include ). And in src/src/Plugins/Qt/qt_pipe_link.cpp:150 we need Q_PID pid = PipeLink.processId (); But these didn't solve the problem. The Qt pipe code is complicated. I know that FreeBSD is not a supported platform, but any suggestions for debugging this process/pipe problem would be greatly appreciated. Kostas ___ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev
Re: [Texmacs-dev] Experimental packages
Sorry for the wrong (local) link. Here is the correct one: http://www.texmacs.org/tmweb/download/experimental.en.html Best wishes, --Joris On Sat, Dec 04, 2021 at 01:06:44PM +0100, TeXmacs wrote: > As you may know, we are working on Qt5 and Qt6 versions of TeXmacs. > Some experimental packages (based on Qt4 and Qt5 for the moment) > can be found here: > > file:///Users/vdhoeven/websites/tmweb/download/experimental.en.html > > Any feedback would be welcome. It would be best to send such feedback > to texmacs-dev. ___ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev
[Texmacs-dev] Experimental packages
Dear all, As you may know, we are working on Qt5 and Qt6 versions of TeXmacs. Some experimental packages (based on Qt4 and Qt5 for the moment) can be found here: file:///Users/vdhoeven/websites/tmweb/download/experimental.en.html Any feedback would be welcome. It would be best to send such feedback to texmacs-dev. Best wishes, --Joris ___ Texmacs-dev mailing list Texmacs-dev@gnu.org https://lists.gnu.org/mailman/listinfo/texmacs-dev