Giter Site home page Giter Site logo

Comments (24)

saudet avatar saudet commented on June 3, 2024

You've compiled libdc1394 for Windows and you've confirmed that it works for your camera?

from procamcalib.

saudet avatar saudet commented on June 3, 2024

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.

DanLighter avatar DanLighter commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

You didn't need to specify any special configure flags? It just worked?

from procamcalib.

DanLighter avatar DanLighter commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

Oh, I think I got something working. Get the latest commit above and try a mvn clean install on that!

from procamcalib.

DanLighter avatar DanLighter commented on June 3, 2024

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.

DanLighter avatar DanLighter commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

I've released version 1.2, which should work out of the box with libdc1394 on Windows.

Thanks for reporting this!

from procamcalib.

DanLighter avatar DanLighter commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

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.

DanLighter avatar DanLighter commented on June 3, 2024

Ok I will have another go at the build again and let you know how I get on

from procamcalib.

saudet avatar saudet commented on June 3, 2024

Thanks! BTW, instructions for that are here:
https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments#windows-x86-and-x86_64

from procamcalib.

saudet avatar saudet commented on June 3, 2024

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.

DanLighter avatar DanLighter commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

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.

DanLighter avatar DanLighter commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

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.

DanLighter avatar DanLighter commented on June 3, 2024

one question, if i boot in linux and run procamcalib either 1.1 or 1.2 i shouldnt have the same problem?

from procamcalib.

saudet avatar saudet commented on June 3, 2024

It's possible, but I think it's a bug in some versions of the libraries that's used on both platforms...

from procamcalib.

saudet avatar saudet commented on June 3, 2024

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.

saudet avatar saudet commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.