Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature_req] ghpoto2 command line tool build #1

Open
laheller opened this issue Feb 5, 2020 · 23 comments
Open

[Feature_req] ghpoto2 command line tool build #1

laheller opened this issue Feb 5, 2020 · 23 comments

Comments

@laheller
Copy link
Collaborator

laheller commented Feb 5, 2020

Hi!

First of all thank you for adding me here.

Based on your instructions I was not able to build libgphoto2, the configure script ended with an error, it was not able to found/probe ltdl. Maybe I did something wrong.

But my feature request or a suggestion would be to build also the gphoto2 command line tool made by the same developers as the libgphoto2 library.
It would be useful at least for developers to test the library directly on (a rooted) Android device.

BTW I checked your repo and realized that you are doing it in a different way (standalone toolchain) than me. I started to create Android buildscripts and building the stuff using ndk-build script.

BR,

Ladislav

@wangguanxiao
Copy link

did you build success?

@laheller
Copy link
Collaborator Author

did you build success?

Unfortunately no.

@wangguanxiao
Copy link

oh, unhappy .

@SiuyuenChow
Copy link

Hi!

First of all thank you for adding me here.

Based on your instructions I was not able to build libgphoto2, the configure script ended with an error, it was not able to found/probe ltdl. Maybe I did something wrong.

But my feature request or a suggestion would be to build also the gphoto2 command line tool made by the same developers as the libgphoto2 library.
It would be useful at least for developers to test the library directly on (a rooted) Android device.

BTW I checked your repo and realized that you are doing it in a different way (standalone toolchain) than me. I started to create Android buildscripts and building the stuff using ndk-build script.

BR,

Ladislav

Again, can it be built successfully?

@laheller
Copy link
Collaborator Author

@SiuyuenChow

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

@SiuyuenChow
Copy link

SiuyuenChow commented Aug 19, 2021

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

how can u do it? can you give me your demo for reference?
Upload it to a github repository address or just email it?

@laheller
Copy link
Collaborator Author

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

how can u do it? can you give me your demo for reference?
Upload it to a github repository address or just email it?

You can build it for yourself based on instructions described here:
gphoto/libgphoto2#335 (comment)

Or I can upload somewhere my current build for arm64 architecture. But again, it will work only on rooted Android devices!

@SiuyuenChow
Copy link

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

how can u do it? can you give me your demo for reference?
Upload it to a github repository address or just email it?

You can build it for yourself based on instructions described here:
gphoto/libgphoto2#335 (comment)

Or I can upload somewhere my current build for arm64 architecture. But again, it will work only on rooted Android devices!

thank you,
Yes, it runs on Android.
In addition, if there are other questions, I would like to consult you. Could you please give me your email?

@SiuyuenChow
Copy link

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

how can u do it? can you give me your demo for reference?
Upload it to a github repository address or just email it?

You can build it for yourself based on instructions described here:
gphoto/libgphoto2#335 (comment)

Or I can upload somewhere my current build for arm64 architecture. But again, it will work only on rooted Android devices!

hello again,
can you upload your demo to Github to study and reference it?
I have some troubles recently, and I can't deal with them at present.
Thank you very much.

@websocketing
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

@SiuyuenChow
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

啊哈,是的.就目前而言的话, usb的模块已经实现了,现在就差无线网络这模块的功能.
想问一下,您用gphoto实现了无线网络的传输了吗?
gphoto底层实际上是2个TCP/IP,但是如果自己去写的话,时间不允许,而且不够gphoto的全面

@websocketing
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的特性,整个 gphoto2/libgphoto2只能在有的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你给我你的演示以供参考吗?
将其上传到github存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
我可以将我当前的 arm64 架构构建到某个地方。 但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的演示上传到 Github 上学习参考吗?
我最近有一些麻烦吗,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来因为演示非把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,我尝试过,在root以后的机器才可以,root现在的情况没有办法。

啊哈,是的。就目前而言的话,USB的模块已经实现了,现在就差无线网络这模块的功能。
想问一下,您用gphoto实现了无线网络的传输了吗?
gphoto 确实是 2 个 TCP/IP,但是如果去写的话,时间还可以,而且 gphoto 的整体

你可以告诉我你的qq,回头我加你把,

@websocketing
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

啊哈,是的.就目前而言的话, usb的模块已经实现了,现在就差无线网络这模块的功能.
想问一下,您用gphoto实现了无线网络的传输了吗?
gphoto底层实际上是2个TCP/IP,但是如果自己去写的话,时间不允许,而且不够gphoto的全面

你可以编译成so文件,然后调用,通过wifi通信,类似于再IOS一样。你可以告诉我你的QQ或者VX,再沟通,很少能碰到国内研究这玩意的。

@websocketing
Copy link

@SiuyuenChow 我帮你咨询了一下作者,是可以直接采用wifi模式,你编译好以后去调用,然后wifi通信,不要采用usb通信,就可以了。虽然我也没明白你说的‘’usb的模块已经实现了,现在就差无线网络这模块的功能‘’这句话的意思。

@SiuyuenChow
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

啊哈,是的.就目前而言的话, usb的模块已经实现了,现在就差无线网络这模块的功能.
想问一下,您用gphoto实现了无线网络的传输了吗?
gphoto底层实际上是2个TCP/IP,但是如果自己去写的话,时间不允许,而且不够gphoto的全面

你可以编译成so文件,然后调用,通过wifi通信,类似于再IOS一样。你可以告诉我你的QQ或者VX,再沟通,很少能碰到国内研究这玩意的。

你发一下你qq,我加你好了

@laheller
Copy link
Collaborator Author

laheller commented Sep 2, 2021

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

how can u do it? can you give me your demo for reference?
Upload it to a github repository address or just email it?

You can build it for yourself based on instructions described here:
gphoto/libgphoto2#335 (comment)
Or I can upload somewhere my current build for arm64 architecture. But again, it will work only on rooted Android devices!

hello again,
can you upload your demo to Github to study and reference it?
I have some troubles recently, and I can't deal with them at present.
Thank you very much.

Attached you can find my aarch64 build of the whole gphoto2 stuff. Please note that you will need a rooted 64bit Android device to test it. Also you will need a Terminal app or Android ADB.
In my case I unzipped the content on my Samsung device to the /data/local/tmp folder.
To make it work we also need following 3 environment wariables:
LD_LIBRARY_PATH=[path to gphoto2 folder]
IOLIBS=[path to IOLIBS folder]
CAMLIBS=[path to camlibs folder]

The root is needed due to USB connection (between smartphone and camera).
For wifi enabled camers root is not needed.

You can build your Android application around these binaries, but again, without root it will not support USB cameras.

Good luck!

gphoto2.zip

@socketing
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

啊哈,是的.就目前而言的话, usb的模块已经实现了,现在就差无线网络这模块的功能.
想问一下,您用gphoto实现了无线网络的传输了吗?
gphoto底层实际上是2个TCP/IP,但是如果自己去写的话,时间不允许,而且不够gphoto的全面

你可以编译成so文件,然后调用,通过wifi通信,类似于再IOS一样。你可以告诉我你的QQ或者VX,再沟通,很少能碰到国内研究这玩意的。

你发一下你qq,我加你好了

我的QQ有问答,我加你把,你留我你的QQ

@oumingjiang
Copy link

是的内容!
我们可以成功完成所有内容。请参阅线程的最后一条评论。但实际上,Android 上 USB 的安全性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要libgphoto2 中修复,我已经报告

你怎么做

您可以根据它的描述为 Android 制造它:
gphoto/libphoto2#335(评论)
可以将我当前的 arm64 构建架构或描述到我的某个地方。但同样适用于有的设备!

你好,
可以把你的demo上传到Github上吗?
我最近有一些学习问题,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来非root试用演示把,
如果你想在实现上实现,首先你解决libusb的改造需要,因为我过,必须在root以后的机器才可以,现在的话措施。

啊哈,是的。就目前而言,usb的模块实现了,现在就差无线网络这个模块的功能了。
想问一下,你用gphoto实现了无线网络的传输了吗?
gphoto实际上是写个TCP/IP的话,但是有时间,而且足够gphoto

你可以通过 wifi 通信,像再 IOS。

你发一下你qq,我加你好了

我的QQ有问题,我加你把,你留我你的QQ

我在编译这个项目的时候遇到一些错误,可以加我QQ联系吗?谢谢 845274309

@SiuyuenChow
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把,
如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

啊哈,是的.就目前而言的话, usb的模块已经实现了,现在就差无线网络这模块的功能.
想问一下,您用gphoto实现了无线网络的传输了吗?
gphoto底层实际上是2个TCP/IP,但是如果自己去写的话,时间不允许,而且不够gphoto的全面

你可以编译成so文件,然后调用,通过wifi通信,类似于再IOS一样。你可以告诉我你的QQ或者VX,再沟通,很少能碰到国内研究这玩意的。

你发一下你qq,我加你好了

我的QQ有问答,我加你把,你留我你的QQ

加QQ交流下

@SiuyuenChow
Copy link

Yes!
The whole stuff we can build successfully. See the last comment of this thread. But unfortunately the whole gphoto2/libgphoto2 will work only on rooted Android devices due to the nature of USB security on Android. There is a solution but it needs to be fixed in the libgphoto2, which I already reported here.

how can u do it? can you give me your demo for reference?
Upload it to a github repository address or just email it?

You can build it for yourself based on instructions described here:
gphoto/libgphoto2#335 (comment)
Or I can upload somewhere my current build for arm64 architecture. But again, it will work only on rooted Android devices!

hello again,
can you upload your demo to Github to study and reference it?
I have some troubles recently, and I can't deal with them at present.
Thank you very much.

Attached you can find my aarch64 build of the whole gphoto2 stuff. Please note that you will need a rooted 64bit Android device to test it. Also you will need a Terminal app or Android ADB. In my case I unzipped the content on my Samsung device to the /data/local/tmp folder. To make it work we also need following 3 environment wariables: LD_LIBRARY_PATH=[path to gphoto2 folder] IOLIBS=[path to IOLIBS folder] CAMLIBS=[path to camlibs folder]

The root is needed due to USB connection (between smartphone and camera). For wifi enabled camers root is not needed.

You can build your Android application around these binaries, but again, without root it will not support USB cameras.

Good luck!

gphoto2.zip

hello again,
There are some problems with the demo you provided. Can you communicate with us by email or other means when you have time?

@socketing
Copy link

@SiuyuenChow Hi,SiuyuenChow,I was busy with other projects recently, so I didn't reply to you in time.

Send me your QQ. You can't add my QQ.

@wangguanxiao
Copy link

我的微信:wangguanxiao

@shareach
Copy link

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把, 如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

是的!
我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 Android 上 USB 安全的性质,整个 gphoto2/libgphoto2只能在有根的Android 设备上运行。有一个解决方案,但它需要在 libgphoto2 中修复,我已经在这里报告

你怎么做?你能给我你的演示以供参考吗?
将其上传到 github 存储库地址还是仅通过电子邮件发送?

您可以根据此处描述的说明为自己构建它:
gphoto/libgphoto2#335(评论)
或者我可以将我当前的 arm64 架构构建上传到某个地方。但同样,它仅适用于有根的 Android 设备!

你好,
可以把你的demo上传到Github上学习参考吗?
我最近有一些麻烦,目前我无法处理。
非常感谢。

你应该是中国人,所以我用汉语来跟你讲解把, 如果你想在安卓上来实现,首先你需要解决libusb的改造,因为我尝试过,必须在root以后的机器才可以,非root的话目前还没办法。

hello ,https://github.com/JohnChu/Snoopy 这个很老,5D3都不支持了,我也没有老的相机测试,请问不用root 有其他的办法吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants