[Automotive] Getting started with automotive and qt

Aras Balali Moghaddam arasbm at gmail.com
Mon Aug 8 20:12:42 CEST 2016


Could you tell me where to report the bug? Searching for QT bug report took
me here <https://bugreports.qt.io/secure/Dashboard.jspa>, but I could not
find qtivi project there and the qtivi project README file also does not
mention where to report bugs. Thanks!

On Mon, Aug 8, 2016 at 10:43 AM, Dominik Holland <
dominik.holland at pelagicore.com> wrote:

> Hi,
>
> this looks like you are compiling without having c++11.
> It seems the c++11 is missing in the pro file.
>
> Could you create a bug-report and give more information about your
> enivornment there ?
>
> OS
> compiler-version
> Qt version
> ...
>
> Dominik
>
>
> Am 08.08.16 um 17:46 schrieb Aras Balali Moghaddam:
> > I think I am hitting all the possible errors. I tried building qtivi as
> > you suggested and I get this error after running "make"
> >
> > In file included from
> > ../../../include/QtIviCore/qivipropertyattribute.h:1:0,
> >                  from ../../../include/QtIviCore/
> QIviPropertyAttribute:1,
> >                  from
> > ../../../include/QtIviCore/../../src/ivicore/qiviproperty.h:48,
> >                  from ../../../include/QtIviCore/qiviproperty.h:1,
> >                  from ../../../include/QtIviCore/QIviProperty:1,
> >                  from
> > ../../../include/QtIviVehicleFunctions/../../src/ivivehiclefunctions/
> qiviclimatecontrol.h:46,
> >                  from
> > ../../../include/QtIviVehicleFunctions/qiviclimatecontrol.h:1,
> >                  from
> > ../../../include/QtIviVehicleFunctions/QIviClimateControl:1,
> >                  from mainwindow.h:57,
> >                  from main.cpp:53:
> > ../../../include/QtIviCore/../../src/ivicore/qivipropertyattribute.h: In
> > member function ‘void QIviPropertyAttribute<T>::registerConverter()’:
> > ../../../include/QtIviCore/../../src/ivicore/
> qivipropertyattribute.h:154:73:
> > *error*: ‘>>’ should be ‘> >’ within a nested template argument list
> >          if
> > (!QMetaType::hasRegisteredComparators<QIviPropertyAttribute<T>>())
> >
> ^
> > ../../../include/QtIviCore/../../src/ivicore/
> qivipropertyattribute.h:155:67:
> > *error*: ‘>>’ should be ‘> >’ within a nested template argument list
> >              QMetaType::registerComparators<QIviPropertyAttribute<T>>();
> >                                                                    ^
> > Makefile:442: recipe for target '.obj/main.o' failed
> > make[3]: *** [.obj/main.o] Error 1
> > make[3]: Leaving directory
> > '/home/aras/Projects/qtivi/examples/vehiclefunctions/climate_widget'
> > Makefile:44: recipe for target 'sub-climate_widget-make_first' failed
> > make[2]: *** [sub-climate_widget-make_first] Error 2
> >
> >
> > I cloned the repo using "git clone git://code.qt.io/qt/qtivi.git
> > <http://code.qt.io/qt/qtivi.git>", did I somehow get the wrong code or
> > am I missing something else?
> >
> > On Mon, Aug 8, 2016 at 12:34 AM, Dominik Holland
> > <dominik.holland at pelagicore.com <mailto:dominik.holland at pelagicore.com>>
> > wrote:
> >
> >     Clone http://code.qt.io/cgit/qt/qtivi.git/
> >     <http://code.qt.io/cgit/qt/qtivi.git/>
> >
> >     and build/install it with
> >
> >     qmake
> >     make
> >     make install
> >
> >     Am 08.08.16 um 01:56 schrieb Aras Balali Moghaddam:
> >     > I suspect the root of my current problem is this error:
> >     >
> >     > ClimateService.qml:34 module "QtIvi.VehicleFunctions" is not
> installed
> >     >
> >     > I did some googling but could not find anything helpful. How can I
> >     > install the QtIvi module?
> >     >
> >     > thanks!
> >     >
> >     > On Sun, Aug 7, 2016 at 3:49 PM, Aras Balali Moghaddam <
> arasbm at gmail.com <mailto:arasbm at gmail.com>
> >     > <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>>> wrote:
> >     >
> >     >     I got further by changing the permissions for the /opt/am
> >     folder as
> >     >     you suggested. Now I am getting two new errors. Here is the
> >     command
> >     >     I am running and the output:
> >     >
> >     >     $ sudo appman --recreate-database -c /opt/am/config.yaml -c
> >     >     am-config.yaml
> >     >     [DBG  | am.system] Found Applications:
> >     >     [
> >        [:0]
> >     >     [DBG  | am.system]  * APP: "com.kdab.keyboarddemo" (
> >     >     "/home/aras/Projects/neptune-ui/apps/com.kdab.keyboarddemo"
> >     >     )
> >     >     [:0]
> >     >     [DBG  | am.system]  * APP: "com.pelagicore.browser" (
> >     >     "/home/aras/Projects/neptune-ui/apps/com.pelagicore.browser"
> >     >     )
> >     >     [:0]
> >     >     [DBG  | am.system]  * APP: "com.pelagicore.movies" (
> >     >     "/home/aras/Projects/neptune-ui/apps/com.pelagicore.movies"
> >     >     )
> >     >     [:0]
> >     >     [DBG  | am.system]  * APP: "com.pelagicore.music" (
> >     >     "/home/aras/Projects/neptune-ui/apps/com.pelagicore.music"
> >     >     )
> >     >     [:0]
> >     >     [DBG  | am.system]
> >     >     ]
> >     >     [:0]
> >     >     [CRIT | am.system] ERROR: could not connect to D-Bus ():
> Failed to
> >     >     connect to socket /tmp/dbus-M4yXecMpU8: Connection
> >     >     refused
> >     >     [:0]
> >     >     [WARN | default] QQmlApplicationEngine failed to load
> >     >     component                                          [:0]
> >     >     [WARN | default] file:///home/aras/Projects/
> neptune-ui/Main.qml:65
> >     >     Type Display unavailable
> >     >     file:///home/aras/Projects/neptune-ui/sysui/Display.qml:121
> Type
> >     >     ClimateBar unavailable
> >     >
> >      file:///home/aras/Projects/neptune-ui/sysui/Climate/
> ClimateBar.qml:79
> >     Type
> >     >     TemperatureLevel unavailable
> >     >
> >      file:///home/aras/Projects/neptune-ui/sysui/Climate/
> TemperatureLevel.qml:-1
> >     >     Type ClimateService unavailable
> >     >
> >      file:///home/aras/Projects/neptune-ui/imports/shared/
> service/climate/ClimateService.qml:34
> >     >     module "QtIvi.VehicleFunctions" is not installed
> >     >
> >     >     [:0]
> >     >     [CRIT | am.system] ERROR: Qml scene does not have a root object
> >     >
> >     >     Feels like I am so close to getting this thing running. Any
> idea
> >     >     what else I am missing?
> >     >
> >     >     Thank you!
> >     >     Aras
> >     >
> >     >     On Sat, Aug 6, 2016 at 1:17 AM, Dominik Holland
> >     >     <dominik.holland at pelagicore.com
> >     <mailto:dominik.holland at pelagicore.com>
> >     >     <mailto:dominik.holland at pelagicore.com
> >     <mailto:dominik.holland at pelagicore.com>>> wrote:
> >     >
> >     >         Hi,
> >     >
> >     >         the next thing is to execute the command line listed in the
> >     >         README.md
> >     >
> >     >         ...
> >     >         or with the Application Manager
> >     >
> >     >                 $ appman --recreate-database -c $AM_CONFIG_FILE -c
> >     >         am-config.yaml
> >     >
> >     >         where `AM_CONFIG_FILE` is the path to the Application
> Manager
> >     >         `config.yaml` file (inside the template-opt folder within
> the
> >     >         Application Manager delivery). The default `config.yaml`
> >     points
> >     >         to the
> >     >         `/opt/am` folder. If that folder does not exists, make
> sure to
> >     >         update
> >     >         the config.yaml settings to the corresponding paths.
> >     >         ...
> >     >
> >     >         Am 05.08.16 um 23:05 schrieb Aras Balali Moghaddam:
> >     >         > It seems as soon as I make a bit of progress I get stuck
> >     with a new
> >     >         > error. Now I am trying to run the neptune app using the
> >     following command:
> >     >         >
> >     >         > :seek: IODevice is not
> >     >         > open                                                 [:0]
> >     >         > [CRIT | am.system] ERROR: could not not seek to position
> >     0 in the
> >     >         > application database (/opt/am/apps.db): Permission denied
> >     >
> >     >         I guess you copied the /termplate-opt folder to your /opt
> >     folder ?
> >     >         To make it readable from appman you need to add correct
> >     >         permissions to
> >     >         the folder.
> >     >
> >     >         sudo chmod -R 774 /opt/am
> >     >
> >     >         >
> >     >         > Interesting thing is that the file /opt/am/apps.db does
> >     not exist. The
> >     >         > folder "opt/am" does exist though. What should I try
> next?
> >     >
> >     >         The apps.db is created by appman while scanning the
> >     application
> >     >         folders.
> >     >
> >     >         Dominik
> >     >
> >     >         >
> >     >         > Thanks!
> >     >         > Aras
> >     >         >
> >     >         > On Fri, Aug 5, 2016 at 1:34 PM, Aras Balali Moghaddam
> >     <arasbm at gmail.com <mailto:arasbm at gmail.com> <mailto:arasbm at gmail.com
> >     <mailto:arasbm at gmail.com>>
> >     >         > <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>
> <mailto:arasbm at gmail.com
> >     <mailto:arasbm at gmail.com>>>> wrote:
> >     >         >
> >     >         >     Please ignore my last email, it was clearly
> permission issues. I
> >     >         >     tried again doing a "sudo qmake" "sudo make"
> followed by "sudo make
> >     >         >     install" and this time build and install finished
> without error.
> >     >         >
> >     >         >     Now that I have appman installed, what is next? How
> can I get appman
> >     >         >     to run Neptune? I could not find any documentation
> on how to use appman.
> >     >         >
> >     >         >     Thanks again!
> >     >         >
> >     >         >     On Fri, Aug 5, 2016 at 1:20 PM, Aras Balali Moghaddam
> >     >         >     <arasbm at gmail.com <mailto:arasbm at gmail.com> <mailto:
> arasbm at gmail.com
> >     <mailto:arasbm at gmail.com>>
> >     >         <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>
> >     <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>>>> wrote:
> >     >         >
> >     >         >         I am developing on Ubuntu. I got through a
> >     number of build
> >     >         >         dependency errors by following your suggestion
> >     and installing qt
> >     >         >         dev related packages. I have not tried building
> >     the whole qt
> >     >         >         yet, but one of these days I am sure I will.
> >     >         >
> >     >         >         Should I follow [these instructions]
> >     >         >
> >     >          <https://doc.qt.io/QtApplicationManager/installation.html
> >     <https://doc.qt.io/QtApplicationManager/installation.html>
> >     >         <https://doc.qt.io/QtApplicationManager/installation.html
> >     <https://doc.qt.io/QtApplicationManager/installation.html>>>for
> >     >         >         building the application mmanager? Currently I
> >     am getting this
> >     >         >         error when I run the build command (*sudo* qmake
> &&
> >     >         make && make
> >     >         >         install):
> >     >         >
> >     >         >         make[2]: Entering directory
> >     >         >
> >      '/home/aras/Projects/qtapplicationmanager/src/manager'
> >     >         >         install -m 755 -p ../../bin/appman
> >     /usr/local/bin/appman
> >     >         >         install: cannot remove '/usr/local/bin/appman':
> >     >         Permission denied
> >     >         >         Makefile:619: recipe for target 'install_target'
> >     failed
> >     >         >         make[2]: [install_target] Error 1 (ignored)
> >     >         >         strip /usr/local/bin/appman
> >     >         >         strip: '/usr/local/bin/appman': No such file
> >     >         >         Makefile:619: recipe for target 'install_target'
> >     failed
> >     >         >         make[2]: [install_target] Error 1 (ignored)
> >     >         >         mkdir: cannot create directory
> >     ‘/usr/local/share/dbus-1’:
> >     >         >         Permission denied
> >     >         >         Makefile:629: recipe for target 'install_dbusif'
> >     failed
> >     >         >         make[2]: *** [install_dbusif] Error 1
> >     >         >         make[2]: Leaving directory
> >     >         >
> >      '/home/aras/Projects/qtapplicationmanager/src/manager'
> >     >         >         Makefile:216: recipe for target
> >     >         'sub-manager-install_subtargets'
> >     >         >         failed
> >     >         >         make[1]: *** [sub-manager-install_subtargets]
> >     Error 2
> >     >         >         make[1]: Leaving directory
> >     >         >         '/home/aras/Projects/qtapplicationmanager/src'
> >     >         >         Makefile:66: recipe for target
> >     >         >         'sub-src-install_subtargets-ordered' failed
> >     >         >         make: *** [sub-src-install_subtargets-ordered]
> >     Error 2
> >     >         >
> >     >         >         Any ideas what I am missing now?
> >     >         >
> >     >         >         Thanks!
> >     >         >         Aras
> >     >         >
> >     >         >         On Fri, Aug 5, 2016 at 9:57 AM, Johan Thelin
> >     >         >         <johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>
> >     >         <mailto:johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>>
> >     >         >         <mailto:johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>
> >     >         <mailto:johan.thelin at pelagicore.com <mailto:johan.thelin@
> pelagicore.com>>>>
> >     wrote:
> >     >         >
> >     >         >             You need the qml or qtquick development
> package installed. What
> >     >         >             platform are you developing from? If you're
> on Linux, you
> >     >         >             should look
> >     >         >             for the qt5*-dev or -devel packages.
> >     >         >
> >     >         >             One (more advanced) way around this is to
> build your own
> >     >         >             version of
> >     >         >             Qt, and then build Application Manager with
> the qmake-binary
> >     >         >             from your
> >     >         >             custom Qt build. Qt depends on QML, but also
> QtWayland.
> >     >         >
> >     >         >             /J
> >     >         >
> >     >         >             On 5 August 2016 at 14:23, Aras Balali
> Moghaddam
> >     >         >             <arasbm at gmail.com <mailto:arasbm at gmail.com>
> <mailto:arasbm at gmail.com
> >     <mailto:arasbm at gmail.com>>
> >     >         <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>
> >     <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>>>> wrote:
> >     >         >             > Thanks Johan,
> >     >         >             > Yes that was my first problem. I am trying
> to
> >     >         build the
> >     >         >             application manager
> >     >         >             > now and I get this error:
> >     >         >             >
> >     >         >             > Project ERROR: Unknown module(s) in QT: qml
> >     >         >             > Makefile:126: recipe for target
> >     >         >             'sub-notification-lib-make_first' failed
> >     >         >             > make[1]: *** [sub-notification-lib-make_
> first]
> >     >         Error 3
> >     >         >             > make[1]: Leaving directory
> >     >         >             '/home/aras/Projects/
> qtapplicationmanager/src'
> >     >         >             > Makefile:42: recipe for target
> >     >         >             'sub-src-make_first-ordered' failed
> >     >         >             > make: *** [sub-src-make_first-ordered]
> Error 2
> >     >         >             >
> >     >         >             > When I run "qmake --version" I get the
> >     following:
> >     >         >             >
> >     >         >             > QMake version 3.0
> >     >         >             > Using Qt version 5.5.1 in
> >     /usr/lib/x86_64-linux-gnu
> >     >         >             >
> >     >         >             > I am new to Qt and so far have only built
> >     a few
> >     >         of the
> >     >         >             sample apps and they
> >     >         >             > seem to be working. Any ideas why I am
> getting
> >     >         this build
> >     >         >             error?
> >     >         >             >
> >     >         >             > Thank you!
> >     >         >             > Aras
> >     >         >             >
> >     >         >             > On Fri, Aug 5, 2016 at 4:31 AM, Johan
> Thelin
> >     >         >             <johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>
> >     >         <mailto:johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>>
> >     >         >             <mailto:johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>
> >     >         <mailto:johan.thelin at pelagicore.com <mailto:johan.thelin@
> pelagicore.com>>>>
> >     >         >             > wrote:
> >     >         >             >>
> >     >         >             >> Hi Aras,
> >     >         >             >>
> >     >         >             >> What executable are you missing? Neptune
> is meant to be
> >     >         >             run using the
> >     >         >             >> Application Manager found here:
> >     >         >             >> http://code.qt.io/cgit/qt/
> qtapplicationmanager.git/
> >     <http://code.qt.io/cgit/qt/qtapplicationmanager.git/>
> >     >         <http://code.qt.io/cgit/qt/qtapplicationmanager.git/
> >     <http://code.qt.io/cgit/qt/qtapplicationmanager.git/>> .
> >     >         >             Could that be
> >     >         >             >> what is missing?
> >     >         >             >>
> >     >         >             >> Best regards,
> >     >         >             >>
> >     >         >             >> Johan Thelin   ヨハン  テリン
> >     >         >             >> M.Sc.E.E.
> >     >         >             >> System Architect
> >     >         >             >>
> >     >         >             >> PELAGICORE | Experience Change
> >     >         >             >> Ekelundsgatan 4, 6tr, SE-411 18
> Gothenburg, Sweden
> >     >         >             >> Mobile: +46 (0)700 900 250
> <tel:%2B46%20%280%29700%20900%20250>
> >     <tel:%2B46%20%280%29700%20900%20250>
> >     >         >             <tel:%2B46%20%280%29700%20900%20250>
> >     >         >             >> Skype: jothpelagicore
> >     >         >             >> E-Mail: johan.thelin at pelagicore.com
> <mailto:johan.thelin at pelagicore.com>
> >     >         <mailto:johan.thelin at pelagicore.com <mailto:johan.thelin@
> pelagicore.com>>
> >     >         >             <mailto:johan.thelin at pelagicore.com
> >     <mailto:johan.thelin at pelagicore.com>
> >     >         <mailto:johan.thelin at pelagicore.com <mailto:johan.thelin@
> pelagicore.com>>>
> >     >         >             >>
> >     >         >             >>
> >     >         >             >> On 5 August 2016 at 12:37, Aras Balali
> Moghaddam
> >     >         >             <arasbm at gmail.com <mailto:arasbm at gmail.com>
> <mailto:arasbm at gmail.com
> >     <mailto:arasbm at gmail.com>>
> >     >         <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>
> >     <mailto:arasbm at gmail.com <mailto:arasbm at gmail.com>>>> wrote:
> >     >         >             >> > Hello!
> >     >         >             >> > I have started designing an interface
> >     for an
> >     >         industrial
> >     >         >             vehicle. I am
> >     >         >             >> > planning to develop the UI in Qt and it
> >     will
> >     >         run using
> >     >         >             a Linux touch
> >     >         >             >> > screen
> >     >         >             >> > computer inside the cab. I have a lot
> to do
> >     >         and a long
> >     >         >             ways to go, so I
> >     >         >             >> > am
> >     >         >             >> > hoping to find an open source project to
> >     >         collaborate
> >     >         >             with and build on
> >     >         >             >> > top.
> >     >         >             >> >
> >     >         >             >> > In my search I came across Neptune
> project
> >     >         which looks
> >     >         >             promising. I
> >     >         >             >> > cloned
> >     >         >             >> > this repo and tried building it, but I
> have
> >     >         not been
> >     >         >             able to run it
> >     >         >             >> > (missing
> >     >         >             >> > executable). Will that project run on a
> >     64bit
> >     >         ubuntu
> >     >         >             linux computer?
> >     >         >             >> >
> >     >         >             >> > Do you think Neptune would be a good
> >     project
> >     >         to look at
> >     >         >             as a starting
> >     >         >             >> > point.
> >     >         >             >> > The things I am mostly looking for are
> >     a set
> >     >         of UI
> >     >         >             components that are
> >     >         >             >> > suitable for in vehicle use,
> >     integration with
> >     >         CAN, and
> >     >         >             I would like to
> >     >         >             >> > have
> >     >         >             >> > one view that is an interactive 3D
> model of
> >     >         the vehicle.
> >     >         >             >> >
> >     >         >             >> > Thank you for your great work with Qt
> and
> >     >         automotive.
> >     >         >             Please let me know
> >     >         >             >> > if
> >     >         >             >> > I am on the right track here or not. Any
> >     >         advice or
> >     >         >             pointers would be
> >     >         >             >> > appreciated, as I am still at very early
> >     >         stages of this
> >     >         >             project.
> >     >         >             >> >
> >     >         >             >> > Thank you!
> >     >         >             >> > Aras
> >     >         >             >> >
> >     >         >             >> > ps: I just joined this list, so I
> apologize
> >     >         in advance
> >     >         >             if this is not
> >     >         >             >> > the
> >     >         >             >> > right place for my question.
> >     >         >             >> >
> >     >         >             >> >
> >     _______________________________________________
> >     >         >             >> > Automotive mailing list
> >     >         >             >> > Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org>
> >     >         <mailto:Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org>>
> >     >         >             <mailto:Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org>
> >     >         <mailto:Automotive at qt-project.org <mailto:
> Automotive at qt-project.org>>>
> >     >         >             >> >
> >     >         http://lists.qt-project.org/mailman/listinfo/automotive
> >     <http://lists.qt-project.org/mailman/listinfo/automotive>
> >     >         <http://lists.qt-project.org/mailman/listinfo/automotive
> >     <http://lists.qt-project.org/mailman/listinfo/automotive>>
> >     >         >             >> >
> >     >         >             >
> >     >         >             >
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         >
> >     >         > _______________________________________________
> >     >         > Automotive mailing list
> >     >         > Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org> <mailto:Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org>>
> >     >         > http://lists.qt-project.org/mailman/listinfo/automotive
> >     <http://lists.qt-project.org/mailman/listinfo/automotive>
> >     >         <http://lists.qt-project.org/mailman/listinfo/automotive
> >     <http://lists.qt-project.org/mailman/listinfo/automotive>>
> >     >         >
> >     >         _______________________________________________
> >     >         Automotive mailing list
> >     >         Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org> <mailto:Automotive at qt-project.org
> >     <mailto:Automotive at qt-project.org>>
> >     >         http://lists.qt-project.org/mailman/listinfo/automotive
> >     <http://lists.qt-project.org/mailman/listinfo/automotive>
> >     >         <http://lists.qt-project.org/mailman/listinfo/automotive
> >     <http://lists.qt-project.org/mailman/listinfo/automotive>>
> >     >
> >     >
> >     >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/automotive/attachments/20160808/9c20e96a/attachment-0001.html>


More information about the Automotive mailing list