jpl and XPCE
Sergio Castro <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I wanted to experiment a bit with XPCE from a Java application embedding SWI by means of JPL.
I tried with this query: "use_module(library(lists)), gtrace, member(X, [1,2,3])"
In OSX, the query is frozen and I do not see any window.
From a very old post I found here: "http://osdir.com/ml/ai.prolog.swi/2003-05/msg00045.html", I read that in JPL applications the scripts needed to setup XPCE are not called. Is that still the case in current swi versions ?
In that link, Jan recommended to execute first: "consult(swi('plwin.rc'))."
Apparently, that file does not exist anymore, but I found "swipl-win.rc" that looks like its modern incarnation, and tried with that but it did not help.
In Ubuntu it was a bit worse, since I got this trace with errors:
---
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_principal.pl:141:
'$open_shared_object'/3: /usr/local/lib/swipl-6.6.2/lib/x86_64-linux/pl2xpce.so: undefined symbol: PL_prof_exit
Warning: /usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_principal.pl:141:
Goal (directive) failed: pce_principal:use_foreign_library(foreign(pl2xpce))
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/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
ERROR: [Thread 2]: exception handler failed to define pce:object/1
ERROR: [Thread 2]: exception handler failed to define pce:object/1
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_principal.pl:341: Initialization goal raised exception:
'<meta-call>'/1: Undefined procedure: pce:object/1
ERROR: [Thread 2]: exception handler failed to define pce_principal:send/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_global.pl:106: Initialization goal raised exception:
pce_global:register_handler/0: Undefined procedure: pce_principal:send/2
However, there are definitions for:
pce_principal:send/3
pce_principal:send/4
pce_principal:send/5
pce_principal:send/6
pce_principal:send/7
pce_principal:send/8
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_autoload.pl:97: Initialization goal raised exception:
pce_autoload:register_handler/0: Undefined procedure: pce_principal:send/2
However, there are definitions for:
pce_principal:send/3
pce_principal:send/4
pce_principal:send/5
pce_principal:send/6
pce_principal:send/7
pce_principal:send/8
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_editor.pl:132:
pce_principal:free/1: Undefined procedure: pce:object/1
Warning: /usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_editor.pl:132:
Goal (directive) failed: editor_buttons:free(@editor_recogniser)
ERROR: [Thread 2]: exception handler failed to define pce_principal:get/3
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_editor.pl:130: Initialization goal raised exception:
pce_principal:get/4: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: [Thread 2]: exception handler failed to define pce_principal:new/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_editor.pl:133: Initialization goal raised exception:
editor_buttons:make_editor_recogniser/1: Undefined procedure: pce_principal:new/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_keybinding.pl:214: Initialization goal raised exception:
pce_principal:get/4: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_keybinding.pl:246: Initialization goal raised exception:
pce_principal:get/4: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_keybinding.pl:259: Initialization goal raised exception:
pce_keybinding:make_key_binding_style_type/0: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_keybinding.pl:293: Initialization goal raised exception:
pce_principal:get/4: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/boot/pce_keybinding.pl:301: Initialization goal raised exception:
pce_principal:get/4: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/lib/pce.pl:160: Initialization goal raised exception:
pce:set_version/0: Undefined procedure: pce_principal:send/2
However, there are definitions for:
pce_principal:send/3
pce_principal:send/4
pce_principal:send/5
pce_principal:send/6
pce_principal:send/7
pce_principal:send/8
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/trace.pl:34:
/usr/local/lib/swipl-6.6.2/xpce/prolog/lib/pce.pl:169: Initialization goal raised exception:
pce:get_pce_version/0: Undefined procedure: pce_principal:get/3
However, there are definitions for:
pce_principal:get/4
pce_principal:get/5
pce_principal:get/6
pce_principal:get/7
pce_principal:get/8
get/1
get0/1
get/2
get0/2
ERROR: [Thread 2]: exception handler failed to define pce_principal:send/2
ERROR: /usr/local/lib/swipl-6.6.2/xpce/prolog/lib/trace/util.pl:41:
/usr/local/lib/swipl-6.6.2/xpce/prolog/lib/pce_config.pl:364: Initialization goal raised exception:
catch/3: Undefined procedure: pce_principal:send/2
However, there are definitions for:
pce_principal:send/3
pce_principal:send/4
pce_principal:send/5
pce_principal:send/6
pce_principal:send/7
pce_principal:send/8
/usr/lib/jvm/java-7-openjdk-amd64/bin/java: symbol lookup error: /usr/local/lib/swipl-6.6.2/lib/x86_64-linux/readutil.so: undefined symbol: PL_new_atom
---
Is there something additional I could do to try XPCE from a Java application using JPL ?
Thanks,
Sergio
-------------- next part --------------
HTML attachment scrubbed and removed