Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building rulewerk for Windows #169

Open
mrnolte opened this issue Apr 16, 2020 · 1 comment
Open

Building rulewerk for Windows #169

mrnolte opened this issue Apr 16, 2020 · 1 comment
Labels
documentation Related to helping others using Rulewerk upstream bug This is a bug in an upstream dependency (e.g., VLog)

Comments

@mrnolte
Copy link

mrnolte commented Apr 16, 2020

Hey there,
Im am very sorry to bother you again, but I have a question regarding Rulewerk for Windows.
As mentioned, I suceeded building Rulewerk 0.6.0-SNAPSHOT using the provided script.
The resulting jars work just fine on Linux,; the reported bug is indeed fixed now.
On Windows however, the following error occurs whenever I try to instantiate a VLogReasoner:

java.lang.UnsatisfiedLinkError: while loading kognac-core: Stream closed
	at karmaresearch.vlog.VLog.loadLibrary(VLog.java:76)
	at karmaresearch.vlog.VLog.<clinit>(VLog.java:23)
	at org.semanticweb.rulewerk.core.reasoner.implementation.VLogReasoner.<init>(VLogReasoner.java:82)	

Do I have to build VLog for Windows specifically? And if so, how do I do that?

Thank you a lot for your help so far!

Cheers,
Robin

@irina-dragoste irina-dragoste added upstream bug This is a bug in an upstream dependency (e.g., VLog) documentation Related to helping others using Rulewerk labels Apr 16, 2020
@irina-dragoste
Copy link
Collaborator

irina-dragoste commented Apr 16, 2020

I reported this issue to karmaresearch/vlog#45.
The self-built jar is OS-dependent, therefore a jar built on a certain OS only contains the libraries required by that OS, and cannot function on another OS.
The cmake instructions in build-vlog-library.sh script only work for Linux and MacOS, this script cannot be used on Windows. I hope that karmaresearch/vlog project will soon contain instructions on how the jar can be built on Windows.

The relased jars (with artifact id vlog4j-base) contain OS-specific libraries for Windows, Linux and MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to helping others using Rulewerk upstream bug This is a bug in an upstream dependency (e.g., VLog)
Projects
None yet
Development

No branches or pull requests

2 participants