CHDKPTP in Linux: Not working - General Help and Assistance on using CHDK stable releases - CHDK Forum

CHDKPTP in Linux: Not working

  • 3 Replies
  • 5027 Views
CHDKPTP in Linux: Not working
« on: 07 / May / 2015, 18:52:37 »
Advertisements
HI Folks,

I'm trying to use CHDKPTP to control my camera using my computer and program a couple of scripts. I'm currently running Debian Jessie operating system and I'm not able to start CHDKPTP for Linux.

I have the following error when I run CHDKPTP:

Code: [Select]
pcall failed 2
error [string "require('main')"]:1: module 'main' not found:
        no field package.preload['main']
        no file '/usr/local/share/lua/5.2/main.lua'
        no file '/usr/local/share/lua/5.2/main/init.lua'
        no file '/usr/local/lib/lua/5.2/main.lua'
        no file '/usr/local/lib/lua/5.2/main/init.lua'
        no file './main.lua'
        no file '/usr/local/lib/lua/5.2/main.so'
        no file '/usr/local/lib/lua/5.2/loadall.so'
        no file './main.so'

And the following error when trying to run the CHDKPTP_GUI:

Code: [Select]
./chdkptp_gui: error while loading shared libraries: libiuplua52.so: cannot open shared object file: No such file or directory

I haven't been able to find this last library in the Debian's repositories. So, how can I solve this problem?

Best,

C.

*

Offline reyalp

  • ******
  • 14125
Re: CHDKPTP in Linux: Not working
« Reply #1 on: 07 / May / 2015, 22:17:17 »
You need to set the LUA_PATH, as described in USAGE.TXT. The suggested way to do this is to copy chdkptp-sample.sh to chdkptp.sh, edit as explained in the coments, and then run it instead of trying to run the binary directly.

If you want to use the GUI, you need to download the IUP and CD libraries, and set LD_LIBRARY_PATH appropriately.
Don't forget what the H stands for.

Re: CHDKPTP in Linux: Not working
« Reply #2 on: 08 / May / 2015, 16:03:59 »
You need to set the LUA_PATH, as described in USAGE.TXT. The suggested way to do this is to copy chdkptp-sample.sh to chdkptp.sh, edit as explained in the coments, and then run it instead of trying to run the binary directly.

If you want to use the GUI, you need to download the IUP and CD libraries, and set LD_LIBRARY_PATH appropriately.

Do you know a repository for those libraries? I can't find them in Debian's reps and I'm not very handy at installing libs manually.

Thanks for your answer ;)

*

Offline reyalp

  • ******
  • 14125
Re: CHDKPTP in Linux: Not working
« Reply #3 on: 08 / May / 2015, 16:11:53 »
Do you know a repository for those libraries? I can't find them in Debian's reps and I'm not very handy at installing libs manually.
The IUP and CD sites offer binaries for various operating systems:

http://webserver2.tecgraf.puc-rio.br/cd/
http://webserver2.tecgraf.puc-rio.br/iup/

To use them with chdkptp, you just need to unpack the files somewhere and set LD_LIBRARY_PATH appropriately.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal