Comments (24)
You've compiled libdc1394 for Windows and you've confirmed that it works for your camera?
from procamcalib.
I see you did. So, we would need to generate JNI bindings for that now... Could you try to follow the instructions on the following page?
https://github.com/bytedeco/javacpp-presets/#build-instructions
Or at least could you tell me how you got libdc1394 to work on Windows, and I'll add it to the cppbuild.sh script? Thanks!
from procamcalib.
Hi sam, thanks for the quick response. I compiled libdc1394 using MinGW to create an exe file which can run the camera. So I have all the cpp files available in the environment path. I will try following those build instructions and let you know how i get on! Thanks
from procamcalib.
You didn't need to specify any special configure flags? It just worked?
from procamcalib.
The only thing I changed from default settings in the cpp code was the image resolution to 1024 x 1024. When I compiled it, it recognized the camera from the IEEE1394 port.
from procamcalib.
It requires the CMU 1394 Camera Driver to be installed though:
checking for GetCmdrVersion in -l1394camera... no
configure: error: lib1394camera not found or too old. Please upgrade to 6.4.5 or a more recent version.
And we might want to install libusb
as well:
pacman -S mingw-w64-x86_64-libusb mingw-w64-i686-libusb
I can easily produce an EXE with that, but not a DLL like we need for Java. Do you know how to make it create a DLL?
from procamcalib.
Oh, I think I got something working. Get the latest commit above and try a mvn clean install
on that!
from procamcalib.
Yes sorry I forgot to mention I installed the CMU driver and changed the driver on the camera to the CMU one.
Ok looks great. I am away from work for the next 9 days on a conference, but I will try the above when I am back on my uni computer with the CCD. Thanks for the help!
from procamcalib.
hi samuel, I have been back and having a play with this again this week. we have been trying desperately to get it to compile but had a lot of issues along the way
am i right in saying that I first need to build javacpp in maven and javacpp presets then once that is in the repository run install on the libdc1394 build?
is it possible to simply compile the libdc1394 in maven and the copy over the jar files into the existing folder. at the moment i am just running
mvn install --projects .,libdc1394
or will i need to compile all the different plugins by building and running mvn clean install on all of these files after downloading them all?
would it also be possible to get a copy of the compiled jar file that worked for you please so i can test it in the software to see if it will be compatible with my CMU?
thanks for your help in advance
from procamcalib.
You could build libdc1394 only yes, but you would need to backport the changes to JavaCPP 1.1.
Anyway, we should be making a new release by next week, so you could also wait a bit.
from procamcalib.
I've released version 1.2, which should work out of the box with libdc1394 on Windows.
Thanks for reporting this!
from procamcalib.
Hi Samuel,
Thanks for the update. I have been playing with it this morning. At the moment I am having difficulty with the new 1.2 version. It crashes on my system the moment I do anything ie. try to load in previous calibration pcc settiongs. I get the following error
java platform se binary has stopped working
And then it closes. However version 1.1 seems to work so I wouldn't think it is an issue with my java platform but I could be wrong. I have the most up to date version. I have also tried it on multiple computers and I get the same issue.
Thanks for your help again,
from procamcalib.
Well, it works here (Windows 10), so I will not be able to debug something that works fine.
If you could try to build from source and figure out what makes it work on your system, that would help.
from procamcalib.
Ok I will have another go at the build again and let you know how I get on
from procamcalib.
Thanks! BTW, instructions for that are here:
https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments#windows-x86-and-x86_64
from procamcalib.
You know, I don't have a camera to test libdc1394 at the moment, so there are good chances this is related to the new libdc1394 module for Windows. If you remove the libdc1394*jar files from the modules directory, does it still crash? If not, then we could limit our investigation to that module...
from procamcalib.
yep we did have a go at just removing those files, but it still crashed. the good news is before it crashes when i have the camera plugged in it recognises it. do you know of a way i could debug or get a problem signature when running the module to give you a bit more info? I tried running the file through command line but got no information back on why it crashed.
i am just trying the build again from source and getting further than before
from procamcalib.
When the JVM crashes, it usually creates a log file with a name like hs_err_pidxxxx.log
either in the current directory or in a temporary directory somewhere. That should contain useful information.
from procamcalib.
Ok I think i have found the Java error. Does this mean anything useful? (sorry for the lack of knowledge, i am not a computer science student)
hs_err_pid5852.txt
from procamcalib.
I've seen crashes like that with older system libraries on Linux before. Maybe the same bug is in the current version of libraries on Windows in MSYS2...
from procamcalib.
one question, if i boot in linux and run procamcalib either 1.1 or 1.2 i shouldnt have the same problem?
from procamcalib.
It's possible, but I think it's a bug in some versions of the libraries that's used on both platforms...
from procamcalib.
Since this problem seems to be happening only during deallocation, you could try to set the "org.bytedeco.javacpp.nopointergc" system property to "true". This will lead to memory leaks, but the calibration session doesn't usually take too much time, so I don't think it would be an issue. :)
from procamcalib.
While doing some testing for the release of version 1.3, I encountered those crashes and setting the "org.bytedeco.javacpp.nopointergc" property to "true" does indeed work around the problem so I have added that flag to the launch script by default...
from procamcalib.
Related Issues (20)
- Error getting static method ID of org/bytedeco/javacpp/Loader/putMemberOffset HOT 3
- Opencv grabber problem HOT 14
- RealSense F200 enable_stream error HOT 6
- complie HOT 2
- Ran into out of memory error HOT 28
- procamlib doesn't run HOT 4
- Test Calibration HOT 3
- Save the captured images and feed them to calibration HOT 1
- The cordinate system of procamcalib HOT 1
- Instruction about the experiment setting HOT 2
- Unable to project or get Camera settings HOT 7
- Using calibration data with OpenCV HOT 4
- Procamlib and Unity HOT 3
- procamcalib doesn't run when calibration one camera and a projector HOT 3
- Realsense2: ClassNotFoundException HOT 17
- Realsense2 device is found, but cannot run program HOT 5
- Crashes on open - realsense.dll HOT 6
- Getting severe error on start HOT 5
- Error when using 1024 x 768 projector resolution HOT 4
- procamcalib doesn't run(doesn't even show the UI) when calibration one camera and a projector HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from procamcalib.