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

Output path breaks compile #153

Closed
aishfenton opened this issue Dec 19, 2016 · 2 comments
Closed

Output path breaks compile #153

aishfenton opened this issue Dec 19, 2016 · 2 comments
Labels

Comments

@aishfenton
Copy link

aishfenton commented Dec 19, 2016

When I run:
java -jar javacpp.jar -d myOutputDir Processor

JavaCPP correctly outputs the jniProcessor.cpp file to the myOutputDir. But then when the clang++ command runs it bombs out with

clang: error: no such file or directory: 'myOutputDir/jniProcessor.cpp

Having a look at how Builder works, I see that the compile method sets it's working directory to outputPath. But then its given sources also have the output path prefixed to them (i.e. it ends up looking for myOutputPath/myOutputPath/jniProcessor.cpp)

@saudet saudet added the bug label Dec 19, 2016
saudet added a commit that referenced this issue Dec 19, 2016
…nd line option (issue #153)

 * Add `Loader.extractResources()` and `cacheResources()` methods to extract or cache all resources with given name
@saudet
Copy link
Member

saudet commented Dec 19, 2016

Fixed! Thanks for reporting

@saudet
Copy link
Member

saudet commented Dec 24, 2016

Fix is in version 1.3.1. Enjoy!

@saudet saudet closed this as completed Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants