53

I am running Ubuntu v14.04, and after some effort, I have successfully installed the Ubuntu SDK.

I need to use Perl + QML/Qt to develop a (potentially large) number of fully-functional apps through the Ubuntu SDK, which can then run "convergently" on both desktop Ubuntu as well as on the Ubuntu phone platform. The Qt bindings for Perl are out of date, but I am willing to re-implement updated Qt bindings myself, for use when Perl is running in normal interpreted mode.

https://metacpan.org/pod/QtCore4

Also, I will be using the new Perl compiler (I am the author), so we can generate C++ output code which directly calls Qt, for use when Perl is running in Perl compiled mode.

http://rperl.org

Apparently, the interface to Qt is different if we use Perl in normal interpreted mode vs. RPerl compiled mode, although from the Perl side of things both modes are considered valid and should be (mostly) technically equivalent, as long as I do a good job implementing the updated Qt bindings.

Relatedly, I know that the Ubuntu SDK strongly supports C++, and Python is (at least partially) supported as well, but I can't seem to find any good tutorials about using either C++ or Python to build Ubuntu SDK apps. Since Python is similar to Perl interpreted mode, and C++ is similar to Perl compiled mode, I was hoping to find some helpful examples to go from, but no luck so far...

So, my three interrelated questions are:

  1. How do I enable support for interpreted Perl with my to-be-created Qt bindings, for use as the "logic" language when building an app in the Ubuntu SDK?

  2. How do I enable support for compiled Perl which outputs C++ with native Qt bindings, again for use as the "logic" language when building an app in the Ubuntu SDK?

  3. How did the Ubuntu community enable support for Python, again for use as the "logic" language when building an app in the Ubuntu SDK?

Thanks in advance! :-)

UPDATE Nov 14 2017:

Unity and Ubuntu Mobile are now being retired by Canonical, although the open source community may choose to carry forth with one or both projects, so I am still interested in any Perl-in-Ubuntu-SDK answers you may have, thanks!

7
  • 3
    For 3. we managed to avoid creating a complex app (i.e with C++ bits) just by using github.com/thp/pyotherside. Aug 15, 2016 at 8:07
  • 1
    @j0h: You are telling me how to install and use the cpanm command, which is a very useful command but does not actually help us with any of the questions posed. Dec 27, 2016 at 20:48
  • 1
    @WillBraswell - have you run cpan in terminal ? What is in cpan following command delivering to you ? > install /qt/ - there must be some output ... Dec 30, 2016 at 19:47
  • 2
    @dschinn1001: Sorry I don't understand what you're trying to tell me or ask me. As I mentioned to user j0h in my comment above, I'm definitely NOT in need of help with CPAN in any way, I am a Perl programmer and more than capable of using the cpan or cpanm utilities. This question is about building Perl support into the Ubuntu SDK. Jan 2, 2017 at 16:30
  • 2
    @kenorb you may be unaware but both Unity and Ubuntu Mobile are being retired. There seems to be little point to answering this question.
    – Tim
    Nov 14, 2017 at 0:50

1 Answer 1

1

You could import all modules altogether into your project with perl, where you want to set up a script. It is described here:

https://www.perlmonks.org/?node_id=798650

And here it is described how this can be automated:

https://stackoverflow.com/questions/24908530/perl-use-all-modules-from-specified-subdirectory-and-solve-its-dependencies-a

Load and autoload are two different things :

https://perldoc.perl.org/Module/Load.html

I think it is not dependent whether Ubuntu would build a full Perl SDK or if you would solve this for to create a Perl environment - suiting to you on your machine.

1
  • Thanks but I am not at all asking for help with Perl. I am asking for help with the Ubuntu SDK. Feb 27, 2019 at 4:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .