Author Topic: Chronos Cam App open source build discussion  (Read 26346 times)

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Chronos Cam App open source build discussion
« on: November 20, 2017, 09:46:27 PM »
At long last, the Chronos Camera application source is now available at the following git repository:

chronos-cam-app

Currently we only support Ubuntu 16.04 LTS as a build environment. 17.04 is known to NOT work due to different compiler versions included. You're welcome to try other environments, please let us know what works and what doesn't.

Follow the instructions in the repository readme to set up your build environment.

We suggest not doing any significant changes or customization right now. We are in the process of breaking out the low level camera control into a daemon controlled over D-Bus. This will allow the cam app to talk to the camera seamlessly, whether local or operating remotely over a network connection. Ideally, the exact same application will be able to be compiled to run on the camera or on a PC.

Once you have the application compiling, you can connect to your camera over SSH. Plug the mini-USB port into your computer, and it will enumerate as a USB to Ethernet bridge (serial numbers 00050 and above, earlier cameras need an update, available here). You can then log into the camera using root/<no password>

I'm sure there will be many questions, please let us know any problems so we can provide better build instructions.

David
« Last Edit: December 15, 2017, 01:35:33 AM by tesla500 »

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Re: Chronos Cam App open source build discussion
« Reply #1 on: November 20, 2017, 09:46:46 PM »
Holding in case more space is needed #1

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Re: Chronos Cam App open source build discussion
« Reply #2 on: November 20, 2017, 09:46:59 PM »
Holding in case more space is needed #2

Simon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #3 on: November 20, 2017, 11:54:56 PM »
That's great news and looking forward to trying it. I'm on Mint 17 which is based on the ubiquitous Ubuntu 14.04 so will let the forum know if all good.
« Last Edit: November 20, 2017, 11:56:53 PM by Simon »

tretee

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #4 on: November 21, 2017, 01:43:13 AM »
Great news! I have S/N 34 so will wait for the USB/ETH fix before I dive in.   

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Re: Chronos Cam App open source build discussion
« Reply #5 on: December 15, 2017, 01:34:20 AM »
Great news! I have S/N 34 so will wait for the USB/ETH fix before I dive in.

Update posted, see topic at:
http://forum.krontech.ca/index.php?topic=105.0

tretee

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #6 on: December 21, 2017, 08:09:54 AM »
Thanks!
Did a quick attempt at building the QT framework and got stuck at the step where you "make" "make install".
I will figure it out, but ran out of time, this time.

Dan D

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #7 on: December 21, 2017, 04:20:21 PM »
Outstanding! Looking forward to playing around with it

tretee

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #8 on: December 22, 2017, 08:35:03 AM »
Running the script conf.sh to setup the QT build generates an error. I tried to Google it, seems lots of people have fallen i this trap but failed to find a solution. I am sure it's fixable but also guess it will take a lot of time. Any chance you could update the readme with the steps required to build tslib for the Chronos apps processor or maybe even include the necessary files in the target rootfs so we don't have to build it.
The error ...
"The tslib functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR and QMAKE_LIBDIR in
 /home/davor/work/qt-everywhere-opensource-src-4.8.7/mkspecs/qws/linux-omap2-g++.
"     

tretee

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #9 on: December 22, 2017, 06:07:51 PM »
Hooking up the mini USB to a Linux machine to get an ETH interface works fine. The camera responds to ping.
But
"You can then log into the camera using root/<no password>"
user=root, password=<nothing just press enter>
Generates an "Access denied" response.

I am using Putty as my terminal program.

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Re: Chronos Cam App open source build discussion
« Reply #10 on: December 23, 2017, 01:21:09 AM »
Running the script conf.sh to setup the QT build generates an error. I tried to Google it, seems lots of people have fallen i this trap but failed to find a solution. I am sure it's fixable but also guess it will take a lot of time. Any chance you could update the readme with the steps required to build tslib for the Chronos apps processor or maybe even include the necessary files in the target rootfs so we don't have to build it.
The error ...
"The tslib functionality test failed!
 You might need to modify the include and library search paths by editing
 QMAKE_INCDIR and QMAKE_LIBDIR in
 /home/davor/work/qt-everywhere-opensource-src-4.8.7/mkspecs/qws/linux-omap2-g++.
"     

I knew there was a step missing from the instructions! You need to put tslib.h in /usr/include in your targetfs directory. Using the paths shown in the instructions, that would be ~/Work/chronos-sdk/targetfs/usr/include. We forgot to include that on the filesystem shipped with the camera.

File is attached.


Hooking up the mini USB to a Linux machine to get an ETH interface works fine. The camera responds to ping.
But
"You can then log into the camera using root/<no password>"
user=root, password=<nothing just press enter>
Generates an "Access denied" response.

I am using Putty as my terminal program.

The camera uses an old version of SSH, and only supports a deprecated (insecure) key exchange algorithm. You need to use the following command to connect to the camera with SSH from modern systems:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 [email protected]

tretee

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #11 on: December 23, 2017, 09:06:52 AM »
Thank you.
QT builds fine now and I can connect to the camera via SSH.
Next obstacle.
When trying to build the Camera app in QT creator I get an error in video.h originating from line 42 where OMX_Types.h is included.
I can't find the file so I assume that is a legitimate error and not the usual path problem.

 

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Re: Chronos Cam App open source build discussion
« Reply #12 on: December 23, 2017, 11:51:46 AM »
Thank you.
QT builds fine now and I can connect to the camera via SSH.
Next obstacle.
When trying to build the Camera app in QT creator I get an error in video.h originating from line 42 where OMX_Types.h is included.
I can't find the file so I assume that is a legitimate error and not the usual path problem.

You've copied the contents of the boot MicroSD card to the targetfs folder, right? There are some header files in there that are needed. Also, what OS are you using as your build host?

tretee

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Chronos Cam App open source build discussion
« Reply #13 on: December 23, 2017, 03:00:30 PM »
Yes I did copy the content of the SD card ROOTFS partion to the ...../targetfs/  folder.
Where on the SD card can I find the missing header files? I already looked in the most obvious places and did a search. 

My host machine runs Ubuntu 16.04 LTS

tesla500

  • Krontech
  • Full Member
  • *****
  • Posts: 218
    • View Profile
    • krontech.ca
Re: Chronos Cam App open source build discussion
« Reply #14 on: December 23, 2017, 10:29:10 PM »
Did you copy from the Linux EXT3 partition? I can make up a tar with the entire filesystem on it if needed.