Re: SWI-Prolog and Mac OS X 10.9 Maverick, and XPCE

Jonathan Millen <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
I just tried swi-prolog on Mavericks, and encountered a similar but somewhat
different problem.

swi-prolog itself seems to run correctly. However, xpce does not run. The
simplest example
occurs with :- use_module(library(pce)) followed by manpce. The exception
says that
pce_principal:pce_init is undefined, and says further that
/opt/X11/lib/libXpm.4.dylib is
not loaded. 

On my machine, that library is located at /usr/X11/lib/libXpm.4.dylib.

Is there any (easy) way I can redirect swi-prolog to the correct library?

I tried this with both 6.6.0 and 7.1.0, downloaded as disk images from the
website.

-Jon

ERROR:
/Applications/SWI-Prolog.app/Contents/swipl/xpce/prolog/boot/pce_principal.pl:141:
	'$open_shared_object'/3:
dlopen(/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin13.0.0/pl2xpce.dylib,
1): Library not loaded: /opt/X11/lib/libXpm.4.dylib
  Referenced from:
/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin13.0.0/pl2xpce.dylib
  Reason: image not found
Warning:
/Applications/SWI-Prolog.app/Contents/swipl/xpce/prolog/boot/pce_principal.pl:141:
	Goal (directive) failed:
pce_principal:use_foreign_library(foreign(pl2xpce))
ERROR:
/Applications/SWI-Prolog.app/Contents/swipl/xpce/prolog/lib/pce_manual.pl:38:

/Applications/SWI-Prolog.app/Contents/swipl/xpce/prolog/boot/pce_principal.pl:142:
Initialization goal raised exception:
	pce_principal:init_pce/0: Undefined procedure: pce_principal:pce_init/1
	  However, there are definitions for:
	        pce_principal:init_pce/0




--
View this message in context: http://swi-prolog.996271.n3.nabble.com/SWI-Prolog-and-Mac-OS-X-10-9-Maverick-tp13339p13589.html
Sent from the SWI Prolog mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.