On freebsd 12 the xwindows module in PolyML is not implemented so I am trying to compile its source outside the ports tree. It does compile, but I cannot open the XWindows module in poly.
What I did is:
copied libX11 to /usr/lib to be sure, and made symbolic links in /usr/include for Xm and X11 to /usr/local/include.
inserted one space in xwindows.cpp because of a clang error
added these options to configure : --x-includes=/usr/local/include/X11 --x-libraries=/usr/local/lib/ --with-x --with-system-libffi
set the environment : LDFLAGS=-L/usr/local/lib/gcc7 , where libstdc++ is located
tried with clang and gcc7
The code compiles without further errors. There is a file xwindows.o, 375160 bytes for cc and 291184 for gcc7. The log contains Created structure XWindows Created structure Motif
I run poly from where it was compiled, and get open XWindows poly: : error: Structure (XWindows) has not been declared Found near open XWindows.
The non-graphics modules open normally
What am i doing wrong here ?? thanks for pointers
lang/polyml
port: freshports.org/lang/polyml Doesn't it suit for you? – arrowdMOTIF
option does exactly what you want. But you'll need to compile this software from ports by runningmake -C /usr/ports/lang/polyml config install clean
. – arrowdMakefile:OPTIONS_DEFINE= MOTIF
MOTIF_CONFIGURE_WITH= x
MOTIF_USE= motif
after compilation however, 'strings xwindows.o' showsNot implemented
xwindows.cpp
PolyXWindowsGeneral
zPLR – jordyTTxOPTIONS_DEFINE
only declares an option. You should enable it inmake config
dialog and then compile a port. Have you done this? – arrowd