Failed to initialise xpce | missing or incompatible x11 library

96 views
Skip to first unread message

Levente Zsíros

unread,
Dec 28, 2016, 6:07:15 PM12/28/16
to SWI-Prolog
I've just upgraded from 6.4.1-64bit to 7.2.3-64bit on Windows 7 and can't start xpce (which includes the consult-file-chooser of swipl-win) The error message I get is:

Undefined procedure: pce_principal:load_foreign_library/1
... /xpce/prolog/boot/pce_principal.pl:147

Failed to initialise xpce ... missing or incompatible x11 library
...
Exit status 1

I get the same message with the 32bit version. However I found a non-official portable version of the 32 bit version that works fine: http://portableapps.com/apps/development/swi-prolog_portable#download_details

However I need the 64bit version, due to wanting to use it with 64 bit Java.

Screenshot of full error message:

Jan Wielemaker

unread,
Dec 29, 2016, 4:21:53 AM12/29/16
to Levente Zsíros, SWI-Prolog
I don't know. The swi_723 in the path suggests this is not a version
downloaded from swi-prolog.org? Most likely cause is an incomplete
or wrongly installed version or something in the environment that
causes a mixup with other installed versions, such as a setting for
%SWI_HOME_DIR% or one of SWI-Prolog's dlls/exes installed in the
windows directory, etc.

Make sure all old traces are gone. Might be wise to install 7.3.x
from swi-prolog.org. That is more stable and will become the next
stable in not too long time.

Cheers --- Jan

On 12/29/2016 12:07 AM, Levente Zsíros wrote:
> I've just upgraded from 6.4.1-64bit to 7.2.3-64bit on Windows 7 and
> can't start xpce (which includes the /consult-file-chooser/ of
> swipl-win) The error message I get is:
>
> Undefined procedure: pce_principal:load_foreign_library/1
> ... /xpce/prolog/boot/pce_principal.pl:147
>
> Failed to initialise xpce ... missing or incompatible x11 library
> ...
> Exit status 1
>
> I get the same message with the 32bit version. However I found a
> non-official portable version of the 32 bit version that works
> fine: http://portableapps.com/apps/development/swi-prolog_portable#download_details
>
> However I need the 64bit version, due to wanting to use it with 64 bit Java.
>
> Screenshot of full error message:
> http://imgur.com/1hPl3XE
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swi-prolog+...@googlegroups.com
> <mailto:swi-prolog+...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/swi-prolog.
> For more options, visit https://groups.google.com/d/optout.

Levente Zsíros

unread,
Dec 29, 2016, 8:01:41 AM12/29/16
to SWI-Prolog
I got the one with the problem from the official source. It was the 3rd party 32bit one that worked fine. SWI_HOME_DIR and PATH (containing both bin and lib directories) were also properly set up.


One more detail: when installing I get an error message:

FATAL ERROR: Saved state has incompatible save version
Reply all
Reply to author
Forward
0 new messages