Multi-camera setup project. - page 34 - Creative Uses of CHDK - CHDK Forum

Multi-camera setup project.

  • 462 Replies
  • 220250 Views
*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #330 on: 16 / November / 2015, 18:19:48 »
Advertisements
Some news about the project.

There was a convention last weekend , about comics/games/movies/miniatures/collectables.

We participated and we moved the whole camera setup to the place of the convention , shooting people on site.

Well , it didn't go as good as we expected but many people came and saw us and were very interested about the whole concept and many people from the 3d printing industry came to offer partnership and stuff..

I saw that many people aren't very familiar with the whole 3d printing technology yet..they were very confused and amazed about the whole project...

Overall it was a very good experience and we were a lot advertised.

Some pictures from the convention can be seen in our FB page -> https://www.facebook.com/media/set/?set=a.1702480719987064.1073741847.1437202486514890&type=3

We were shooting full-painted people (the first 6  free of charge) , cosplayers ( 20% discount) , and casual dressed people.

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #331 on: 21 / December / 2015, 13:17:01 »
@reyalp

Code: [Select]
chdkptp-r658-win32\lua\main.lua:225: incompatible chdkptp binary version
Imagine a folder where i just mess around with my custom lua file , i dont touch anything else and i just "svn update" once a while , when i remember to do so.

Today , i had this message , i updated to revision 694 , but it keeps popping the same error.

Any ideas?

thanks

*

Offline reyalp

  • ******
  • 14132
Re: Multi-camera setup project.
« Reply #332 on: 21 / December / 2015, 13:44:07 »
@reyalp

Code: [Select]
chdkptp-r658-win32\lua\main.lua:225: incompatible chdkptp binary version
Imagine a folder where i just mess around with my custom lua file , i dont touch anything else and i just "svn update" once a while , when i remember to do so.

Today , i had this message , i updated to revision 694 , but it keeps popping the same error.

Any ideas?

thanks
You need to download the lastest chdkptp.exe from the file area. See the compatibility warning on  https://www.assembla.com/spaces/chdkptp/wiki/Changelog
Don't forget what the H stands for.

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #333 on: 21 / December / 2015, 14:56:15 »
Well , that would have been my next move , to get a newer version of the executable.

Problem solved , thanks reyalp.

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #334 on: 26 / December / 2015, 15:24:15 »
@reyalp


I was messing around with two linux installations in my vmware.

I thought to try to "install" chdkptp..to see how it works.

I failed miserably. :)

I don't know what is going on with IUP and CD , but i dont really like them :)

I installed the necessary libs..and i was forced to install lua 5.2 since thats the version chdkptp is supporting right?(Installations had lua 5.3 installed)
And in both cases i ended up to this

Code: [Select]
chdkptp_gui: symbol lookup error: /usr/lib64/libiuplua52.so: undefined symbol: luaL_setfuncs
I know it probably isnt a chdkptp problem..just saying my story here :)

So what i want to say after all these

1.Can't you not implement the linux version using some other "tools"?Qt?Gtk?I am not programmer..i dont know what is needed..
IUP and CD arent even in the official repos :) Atleast in two distros i was messing around.
2.Maybe support lua 5.3?So no need to install the older version..maybe to avoid errors or whatever?

Not requests..just chatting here ...i think i made it work some time long ago...but today it was a complete NO-GO :)
Maybe newer versions of the packages involved...screwed things up?
Anyone using linux version of it ?

Thanks

Multi-camera setup project.
« Reply #335 on: 26 / December / 2015, 15:51:00 »
Anyone using linux version of it ?
FWIW, I was recently able to build it all on the latest Fedora release and Lua 5.3.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14132
Re: Multi-camera setup project.
« Reply #336 on: 26 / December / 2015, 16:16:59 »
I don't know what is going on with IUP and CD , but i dont really like them :)

I installed the necessary libs..and i was forced to install lua 5.2 since thats the version chdkptp is supporting right?(Installations had lua 5.3 installed)
Are you trying to use the pre-compiled binary, or build your own?

If building your own, I suggest downloading and building the Lua 5.2 source, and then specifying that Lua build for chdkptp in your config.mk. This removes any dependence on the distro's stock lua configuration. The recent binaries are built this way, with Lua statically linked to chdkptp.

If you are using the pre-built binaries, then you need to use the exact libraries listed on https://www.assembla.com/spaces/chdkptp/wiki/Changelog (in the r658 section) and you need to ensure they are on your LD_LIBRARY_PATH when you run chdkptp.

Quote
And in both cases i ended up to this

Code: [Select]
chdkptp_gui: symbol lookup error: /usr/lib64/libiuplua52.so: undefined symbol: luaL_setfuncs
I'm not really sure the exact cause of this, but incorrect libraries or bad  LD_LIBRARY_PATH seems likely.

ldd is a useful tool for diagnosing these kinds of issues. You can use something like

LD_LIBRARY_PATH=/path/to/iup:/path/to/cd ldd chdkptp_gui


Quote
1.Can't you not implement the linux version using some other "tools"?Qt?Gtk?I am not programmer..i dont know what is needed..
IUP and CD arent even in the official repos :) Atleast in two distros i was messing around.
I haven't had time to improve the existing GUI much, let alone switch to a new framework. I chose IUP and and CD because they make it easy to implement the GUI in Lua, and it is easy to make a GUI that works on both Linux and windows.

You are welcome to implement your own tool, using whatever GUI framework you prefer, re-using as much of chdkptp as you want ;)

Quote
2.Maybe support lua 5.3?So no need to install the older version..maybe to avoid errors or whatever?
I will add official support for this eventually, but again it's a matter of time. I still haven't removed support for 5.1. Every permutation makes things harder to maintain and test.

Waterwingz has reported that 5.3 works, but I wouldn't be surprised if there are some corner cases that behave differently.
Don't forget what the H stands for.

*

Offline mphx

  • ***
  • 210
Re: Multi-camera setup project.
« Reply #337 on: 26 / December / 2015, 20:41:07 »
Ok i give up :)

I removed ever trace of cd,im,iup
And the system uses lua 5.3

So i did the following (just for the fun).The whole point is to compile everything against lua 5.3

1.Download sources of cd/im/iup.
2.Download sources of chdkptp.
3. CD and IM compiled nicely.IUP had issues..was trying to find lua5.1 despite i tried to "fix" the references in the config files.
4.I installed the above three suckers.
5.Tried to compile chdkptp.Issues all over , mainly with searching the wrong lua version in cd/im/iup.

So i thought to go the easy way.

1. Download binaries of cd/im/iup for lua 5.3 and installed them
2. Tried again to compile chdkptp for lua 5.3 ...no-go.

Somewhere there , i gave up :) Too much effort !

The installation was openSUSE Tumbleweed ..maybe it is a matter of libs version or anything..i cant say..

My thoughts.

1. I believe that creators of im/cd/iup don't give a fck about these anymore.
They are created (pre-built binaries) in very few and specific distros that they are outdated by now.
So if someone wants to compile them from source , he must change some configuration files to make them "look" for newer versions of libs/headers/lua.

In my efforts,  i had to install A WHOLE BUNCH of libs/headers and some of them old versions...because the compiler configuration of these softwares wanted the specific versions.

2.As i said i am not a programmer...so i can't help you at changing framework or anything..i have alot of free time and i can test stuff..but i cant create something :)

I mentioned if it was possible to change framework at some point , because i was messing around with Agisoft Photoscan today...it has win/linux/macos builds.
I checked out the linux version..and it needed like zero libs/headers...pre-built binary..u click it...it works.
Same interface/gui with the windows version.
And from the little things i can understand it uses QT libs for the GUI...
Just throwing ideas here...
Surely photoscan has nothing to do with lua...entirely different program...but just saying :)

3. Another idea that just popped up in my head.

We know that chdkptp needs lua/cd/im/iup .

Is it possible to use a rather updated distro... compile locally lua/cd/im/iup..compile locally chdkptp using locally built lua/cd/im/iup and fix the config files..so the chdkptp binary will use these locally built dependencies ?(dependencies = lua/cd/im/iup)
Wrap all up into a tar.gz and pass it to the people...

So when someone will untar it and tries to use it..there is no need to have all these installed..chdkptp will use them from the same tallbar folders.

You can tell me that maybe this wont work..different compilers/libs and stuff..but if the distro on which the compile was made is pretty good updated..like a bleeding edge distro , maybe then things might work well :)

Just an idea :)


« Last Edit: 26 / December / 2015, 20:45:15 by mphx »

Multi-camera setup project.
« Reply #338 on: 26 / December / 2015, 22:05:44 »
FWIW, I seem to recall that there are multiple versions of CD and IUP source available.  Are you sure you are using the same ones that CHDKPTP expects?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14132
Re: Multi-camera setup project.
« Reply #339 on: 26 / December / 2015, 22:25:05 »
Ok i give up :)

I removed ever trace of cd,im,iup
And the system uses lua 5.3

So i did the following (just for the fun).The whole point is to compile everything against lua 5.3
This is exactly the opposite of what I suggested. Lua is easy to build, and self contained. The other things are not. Therefore, you are much better of using a locally built copy of Lua, and not worrying about what your particular distro decides to provide.

Quote
3. CD and IM compiled nicely.IUP had issues..was trying to find lua5.1 despite i tried to "fix" the references in the config files.
FWIW, I strongly recommend against trying to compile any of the libraries other than Lua yourself. I do it for the raspberry pi builds because there are no precompiled binaries available, but otherwise, I stick to the pre-built ones.

I also strongly suggest using the library versions listed on the changelog.

Quote
1. Download binaries of cd/im/iup for lua 5.3 and installed them
2. Tried again to compile chdkptp for lua 5.3 ...no-go.
#2 should only minor config.mk changes (though as noted before, I won't promise that it actually runs correctly.) So if you can provide more information about what specifically went wrong, I could probably help.

Note you don't really need to "install" the cd and IUP libraries either. Just unzip them somewhere and adjust config.mk (for compiling) and chdkptp.sh (for running)

With the pre-built binaries, did you try downloading the exact versions of IUP listed in the changelog, extracting them, and setting the LD_LIBRARY_PATH in chkdptp.sh to point to where they are extracted?

Quote
2.As i said i am not a programmer...so i can't help you at changing framework or anything..i have alot of free time and i can test stuff..but i cant create something :)
Yeah, and if someone wants to build me a hot-rod, I'll be happy to test drive it ;)
Quote
I mentioned if it was possible to change framework at some point , because i was messing around with Agisoft Photoscan today...it has win/linux/macos builds.
I checked out the linux version..and it needed like zero libs/headers...pre-built binary..u click it...it works.
Same interface/gui with the windows version.
And from the little things i can understand it uses QT libs for the GUI...
Just throwing ideas here...
That's nice. Agisoft has full time employees who are paid to make this kind of thing happen.
Quote
Surely photoscan has nothing to do with lua...entirely different program...but just saying :)
chdkptp is already written in Lua, with a GUI written in Lua and IUP. That may have been the wrong decision, but changing it would be a lot of work. Personally, I have a lot of things I'd rather do than re-write stuff that already works just because you couldn't get it to run on some particular distro.
Quote
Is it possible to use a rather updated distro... compile locally lua/cd/im/iup..compile locally chdkptp using locally built lua/cd/im/iup and fix the config files..so the chdkptp binary will use these locally built dependencies ?(dependencies = lua/cd/im/iup)
...
You can tell me that maybe this wont work..different compilers/libs and stuff..but if the distro on which the compile was made is pretty good updated..like a bleeding edge distro , maybe then things might work well :)
The whole problem is without a lot of research and testing, I can't say what will or will not work.  In general though, stuff built on older distros is more likely to run on newer ones than the reverse. IIRC, the binaries I built on ubuntu 10.04 still ran on 14.04.

I have thought about trying to make a stand-alone binary for the Linux builds. The windows binaries are statically linked, so everything is in the exe. This may be possible on linux too, but I'm not sure how portable the resulting binaries would be.

I know this is frustrating and I would like to make this easier, but my time is limited.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal