thebino / libgphoto2android

📸 Android Wrapper around libgphoto2 to connect and remote control digital cameras via usb.
27 stars 8 forks source link

[Feature_req] ghpoto2 command line tool build #1

Open laheller opened 4 years ago

laheller commented 4 years ago

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 commented 4 years ago

did you build success?

laheller commented 4 years ago

did you build success?

Unfortunately no.

wangguanxiao commented 4 years ago

oh, unhappy .

SiuyuenChow commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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: https://github.com/gphoto/libgphoto2/issues/335#issuecomment-881946081

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

SiuyuenChow commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

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

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

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

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

SiuyuenChow commented 3 years ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 commented 3 years ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 commented 3 years ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 commented 3 years ago

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

SiuyuenChow commented 3 years ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 commented 3 years ago

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 commented 3 years ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 commented 2 years ago

是的内容! 我们可以成功完成所有内容。请参阅线程的最后一条评论。但实际上,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 commented 2 years ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 commented 2 years ago

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 commented 2 years ago

@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 commented 1 year ago

我的微信:wangguanxiao

shareach commented 1 year ago

是的! 我们可以成功构建的全部内容。请参阅线程的最后一条评论。但不幸的是,由于 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 有其他的办法吗?