jordyTTx
jordyTTx

Reputation: 13

FreeBSD - how do I compile PolyML including XWindows module

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:

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

Upvotes: 0

Views: 103

Answers (1)

jordyTTx
jordyTTx

Reputation: 13

I

  1. added CONFIGURE_ENV= LDFLAGS=-L/usr/local/lib to the port's Makefile, and
  2. inserted a space before ZERO_X in xwindows.cpp

after which the ports code compiled, including the 2 modules in poly

My error has been to omit a make rmconfig before new compilation, and I had originally compiled poly without motif, so that kept coming back

Upvotes: 0

Related Questions