From 68f7c7608abd67c30558055ef5cad1fb19cb8cd5 Mon Sep 17 00:00:00 2001 From: Aleksey Kontsevich Date: Tue, 18 Aug 2020 17:37:38 +0300 Subject: [PATCH] QML Image: Cannot open: error fix on custom build --- custom-example/InstrumentValueIcons.qrc | 301 ++++++++++++++++++++++++ custom-example/updateinstrumentqrc.py | 21 ++ qgroundcontrol.pro | 6 + 3 files changed, 328 insertions(+) create mode 100644 custom-example/InstrumentValueIcons.qrc create mode 100755 custom-example/updateinstrumentqrc.py diff --git a/custom-example/InstrumentValueIcons.qrc b/custom-example/InstrumentValueIcons.qrc new file mode 100644 index 000000000..b5c479d29 --- /dev/null +++ b/custom-example/InstrumentValueIcons.qrc @@ -0,0 +1,301 @@ + + + ../resources/InstrumentValueIcons/cheveron-outline-left.svg + ../resources/InstrumentValueIcons/forward.svg + ../resources/InstrumentValueIcons/fast-rewind.svg + ../resources/InstrumentValueIcons/zoom-in.svg + ../resources/InstrumentValueIcons/lock-open.svg + ../resources/InstrumentValueIcons/bolt.svg + ../resources/InstrumentValueIcons/arrow-base-down.svg + ../resources/InstrumentValueIcons/bookmark-outline.svg + ../resources/InstrumentValueIcons/factory.svg + ../resources/InstrumentValueIcons/pause-solid.svg + ../resources/InstrumentValueIcons/refresh.svg + ../resources/InstrumentValueIcons/airplane.svg + ../resources/InstrumentValueIcons/cheveron-outline-down.svg + ../resources/InstrumentValueIcons/brightness-up.svg + ../resources/InstrumentValueIcons/fast-forward.svg + ../resources/InstrumentValueIcons/user.svg + ../resources/InstrumentValueIcons/volume-mute.svg + ../resources/InstrumentValueIcons/star-full.svg + ../resources/InstrumentValueIcons/view-tile.svg + ../resources/InstrumentValueIcons/travel-case.svg + ../resources/InstrumentValueIcons/attachment.svg + ../resources/InstrumentValueIcons/dashboard.svg + ../resources/InstrumentValueIcons/heart.svg + ../resources/InstrumentValueIcons/reply-all.svg + ../resources/InstrumentValueIcons/stroke-width.svg + ../resources/InstrumentValueIcons/user-group.svg + ../resources/InstrumentValueIcons/bookmark.svg + ../resources/InstrumentValueIcons/pylon.svg + ../resources/InstrumentValueIcons/ticket.svg + ../resources/InstrumentValueIcons/target.svg + ../resources/InstrumentValueIcons/music-album.svg + ../resources/InstrumentValueIcons/travel-train.svg + ../resources/InstrumentValueIcons/calculator.svg + ../resources/InstrumentValueIcons/play.svg + ../resources/InstrumentValueIcons/cheveron-left.svg + ../resources/InstrumentValueIcons/view-column.svg + ../resources/InstrumentValueIcons/stethoscope.svg + ../resources/InstrumentValueIcons/tools copy.svg + ../resources/InstrumentValueIcons/watch.svg + ../resources/InstrumentValueIcons/mood-sad-solid.svg + ../resources/InstrumentValueIcons/store-front.svg + ../resources/InstrumentValueIcons/chat-bubble-dots.svg + ../resources/InstrumentValueIcons/copy.svg + ../resources/InstrumentValueIcons/user-add.svg + ../resources/InstrumentValueIcons/align-left.svg + ../resources/InstrumentValueIcons/format-italic.svg + ../resources/InstrumentValueIcons/align-right.svg + ../resources/InstrumentValueIcons/cog.svg + ../resources/InstrumentValueIcons/notifications.svg + ../resources/InstrumentValueIcons/arrow-simple-right.svg + ../resources/InstrumentValueIcons/travel-bus.svg + ../resources/InstrumentValueIcons/inbox-download.svg + ../resources/InstrumentValueIcons/arrow-outline-down.svg + ../resources/InstrumentValueIcons/document-add.svg + ../resources/InstrumentValueIcons/portfolio.svg + ../resources/InstrumentValueIcons/chart-pie.svg + ../resources/InstrumentValueIcons/arrow-thin-down.svg + ../resources/InstrumentValueIcons/folder-outline-add.svg + ../resources/InstrumentValueIcons/playlist.svg + ../resources/InstrumentValueIcons/share-alt.svg + ../resources/InstrumentValueIcons/dots-horizontal-double.svg + ../resources/InstrumentValueIcons/volume-up.svg + ../resources/InstrumentValueIcons/map.svg + ../resources/InstrumentValueIcons/tuning.svg + ../resources/InstrumentValueIcons/location-shopping.svg + ../resources/InstrumentValueIcons/radar copy 2.svg + ../resources/InstrumentValueIcons/step-forward.svg + ../resources/InstrumentValueIcons/text-box.svg + ../resources/InstrumentValueIcons/border-top.svg + ../resources/InstrumentValueIcons/tablet.svg + ../resources/InstrumentValueIcons/timer.svg + ../resources/InstrumentValueIcons/cheveron-outline-right.svg + ../resources/InstrumentValueIcons/radar.svg + ../resources/InstrumentValueIcons/travel-car.svg + ../resources/InstrumentValueIcons/battery-half.svg + ../resources/InstrumentValueIcons/code.svg + ../resources/InstrumentValueIcons/cloud-upload.svg + ../resources/InstrumentValueIcons/shopping-cart.svg + ../resources/InstrumentValueIcons/keyboard.svg + ../resources/InstrumentValueIcons/list-add.svg + ../resources/InstrumentValueIcons/border-bottom.svg + ../resources/InstrumentValueIcons/information-outline.svg + ../resources/InstrumentValueIcons/arrow-simple-down.svg + ../resources/InstrumentValueIcons/show-sidebar.svg + ../resources/InstrumentValueIcons/computer-desktop.svg + ../resources/InstrumentValueIcons/music-notes.svg + ../resources/InstrumentValueIcons/send.svg + ../resources/InstrumentValueIcons/border-left.svg + ../resources/InstrumentValueIcons/dial-pad.svg + ../resources/InstrumentValueIcons/arrow-simple-left.svg + ../resources/InstrumentValueIcons/mood-sad-outline.svg + ../resources/InstrumentValueIcons/notification.svg + ../resources/InstrumentValueIcons/camera.svg + ../resources/InstrumentValueIcons/compose.svg + ../resources/InstrumentValueIcons/location-gas-station.svg + ../resources/InstrumentValueIcons/document.svg + ../resources/InstrumentValueIcons/inbox.svg + ../resources/InstrumentValueIcons/apparel.svg + ../resources/InstrumentValueIcons/thumbs-down.svg + ../resources/InstrumentValueIcons/exclamation-solid.svg + ../resources/InstrumentValueIcons/announcement.svg + ../resources/InstrumentValueIcons/headphones.svg + ../resources/InstrumentValueIcons/conversation.svg + ../resources/InstrumentValueIcons/mouse.svg + ../resources/InstrumentValueIcons/share-01.svg + ../resources/InstrumentValueIcons/edit-pencil.svg + ../resources/InstrumentValueIcons/hard-drive.svg + ../resources/InstrumentValueIcons/list.svg + ../resources/InstrumentValueIcons/indent-decrease.svg + ../resources/InstrumentValueIcons/dots-horizontal-triple.svg + ../resources/InstrumentValueIcons/arrow-base-up.svg + ../resources/InstrumentValueIcons/library.svg + ../resources/InstrumentValueIcons/browser-window-open.svg + ../resources/InstrumentValueIcons/photo.svg + ../resources/InstrumentValueIcons/edit-crop.svg + ../resources/InstrumentValueIcons/information-solid.svg + ../resources/InstrumentValueIcons/duplicate.svg + ../resources/InstrumentValueIcons/subdirectory-right.svg + ../resources/InstrumentValueIcons/screen-full.svg + ../resources/InstrumentValueIcons/backward-step.svg + ../resources/InstrumentValueIcons/mood-happy-solid.svg + ../resources/InstrumentValueIcons/flag.svg + ../resources/InstrumentValueIcons/arrow-outline-up.svg + ../resources/InstrumentValueIcons/clipboard.svg + ../resources/InstrumentValueIcons/mood-neutral-outline.svg + ../resources/InstrumentValueIcons/bluetooth.svg + ../resources/InstrumentValueIcons/reload.svg + ../resources/InstrumentValueIcons/browser-window-new.svg + ../resources/InstrumentValueIcons/brightness-down.svg + ../resources/InstrumentValueIcons/battery-low.svg + ../resources/InstrumentValueIcons/thermometer.svg + ../resources/InstrumentValueIcons/php-elephant.svg + ../resources/InstrumentValueIcons/currency-dollar.svg + ../resources/InstrumentValueIcons/color-palette.svg + ../resources/InstrumentValueIcons/mood-happy-outline.svg + ../resources/InstrumentValueIcons/window.svg + ../resources/InstrumentValueIcons/cheveron-up.svg + ../resources/InstrumentValueIcons/border-inner.svg + ../resources/InstrumentValueIcons/search.svg + ../resources/InstrumentValueIcons/border-horizontal.svg + ../resources/InstrumentValueIcons/close-solid.svg + ../resources/InstrumentValueIcons/text-decoration.svg + ../resources/InstrumentValueIcons/window-open.svg + ../resources/InstrumentValueIcons/inbox-full.svg + ../resources/InstrumentValueIcons/location-current.svg + ../resources/InstrumentValueIcons/link.svg + ../resources/InstrumentValueIcons/travel-taxi-cab.svg + ../resources/InstrumentValueIcons/border-all.svg + ../resources/InstrumentValueIcons/tag.svg + ../resources/InstrumentValueIcons/user-solid-circle.svg + ../resources/InstrumentValueIcons/cheveron-right.svg + ../resources/InstrumentValueIcons/servers.svg + ../resources/InstrumentValueIcons/view-carousel.svg + ../resources/InstrumentValueIcons/buoy.svg + ../resources/InstrumentValueIcons/mic.svg + ../resources/InstrumentValueIcons/yin-yang.svg + ../resources/InstrumentValueIcons/shuffle.svg + ../resources/InstrumentValueIcons/backspace.svg + ../resources/InstrumentValueIcons/hand-stop.svg + ../resources/InstrumentValueIcons/menu.svg + ../resources/InstrumentValueIcons/view-list.svg + ../resources/InstrumentValueIcons/calendar.svg + ../resources/InstrumentValueIcons/travel-walk.svg + ../resources/InstrumentValueIcons/trophy.svg + ../resources/InstrumentValueIcons/travel.svg + ../resources/InstrumentValueIcons/close.svg + ../resources/InstrumentValueIcons/window-new.svg + ../resources/InstrumentValueIcons/border-none.svg + ../resources/InstrumentValueIcons/arrow-thick-right.svg + ../resources/InstrumentValueIcons/border-vertical.svg + ../resources/InstrumentValueIcons/volume-down.svg + ../resources/InstrumentValueIcons/arrow-thick-down.svg + ../resources/InstrumentValueIcons/pause-outline.svg + ../resources/InstrumentValueIcons/translate.svg + ../resources/InstrumentValueIcons/location-hotel.svg + ../resources/InstrumentValueIcons/layers.svg + ../resources/InstrumentValueIcons/add-solid.svg + ../resources/InstrumentValueIcons/book-reference.svg + ../resources/InstrumentValueIcons/credit-card.svg + ../resources/InstrumentValueIcons/format-bold.svg + ../resources/InstrumentValueIcons/chart-bar.svg + ../resources/InstrumentValueIcons/wrench.svg + ../resources/InstrumentValueIcons/cheveron-down.svg + ../resources/InstrumentValueIcons/subdirectory-left.svg + ../resources/InstrumentValueIcons/filter.svg + ../resources/InstrumentValueIcons/folder-outline.svg + ../resources/InstrumentValueIcons/explore.svg + ../resources/InstrumentValueIcons/stand-by.svg + ../resources/InstrumentValueIcons/chart.svg + ../resources/InstrumentValueIcons/lock-closed.svg + ../resources/InstrumentValueIcons/add-outline.svg + ../resources/InstrumentValueIcons/beverage.svg + ../resources/InstrumentValueIcons/thumbs-up.svg + ../resources/InstrumentValueIcons/arrow-thin-right.svg + ../resources/InstrumentValueIcons/artist.svg + ../resources/InstrumentValueIcons/notifications-outline.svg + ../resources/InstrumentValueIcons/paste.svg + ../resources/InstrumentValueIcons/inbox-check.svg + ../resources/InstrumentValueIcons/arrow-thick-left.svg + ../resources/InstrumentValueIcons/minus-solid.svg + ../resources/InstrumentValueIcons/badge.svg + ../resources/InstrumentValueIcons/user-solid-square.svg + ../resources/InstrumentValueIcons/vector.svg + ../resources/InstrumentValueIcons/volume-off.svg + ../resources/InstrumentValueIcons/bug.svg + ../resources/InstrumentValueIcons/date-add.svg + ../resources/InstrumentValueIcons/video-camera.svg + ../resources/InstrumentValueIcons/plugin.svg + ../resources/InstrumentValueIcons/mobile-devices.svg + ../resources/InstrumentValueIcons/education.svg + ../resources/InstrumentValueIcons/bookmark-outline-add.svg + ../resources/InstrumentValueIcons/location.svg + ../resources/InstrumentValueIcons/format-underline.svg + ../resources/InstrumentValueIcons/light-bulb.svg + ../resources/InstrumentValueIcons/bookmark copy 2.svg + ../resources/InstrumentValueIcons/zoom-out.svg + ../resources/InstrumentValueIcons/forward-step.svg + ../resources/InstrumentValueIcons/station.svg + ../resources/InstrumentValueIcons/edit-cut.svg + ../resources/InstrumentValueIcons/queue.svg + ../resources/InstrumentValueIcons/cloud.svg + ../resources/InstrumentValueIcons/list-bullet.svg + ../resources/InstrumentValueIcons/play-outline.svg + ../resources/InstrumentValueIcons/arrow-outline-left.svg + ../resources/InstrumentValueIcons/indent-increase.svg + ../resources/InstrumentValueIcons/phone.svg + ../resources/InstrumentValueIcons/browser-window.svg + ../resources/InstrumentValueIcons/pen-tool.svg + ../resources/InstrumentValueIcons/question.svg + ../resources/InstrumentValueIcons/view-hide.svg + ../resources/InstrumentValueIcons/cheveron-outline-up.svg + ../resources/InstrumentValueIcons/shield.svg + ../resources/InstrumentValueIcons/border-outer.svg + ../resources/InstrumentValueIcons/printer.svg + ../resources/InstrumentValueIcons/flashlight.svg + ../resources/InstrumentValueIcons/music-artist.svg + ../resources/InstrumentValueIcons/directions.svg + ../resources/InstrumentValueIcons/box.svg + ../resources/InstrumentValueIcons/news-paper.svg + ../resources/InstrumentValueIcons/envelope.svg + ../resources/InstrumentValueIcons/location-restroom.svg + ../resources/InstrumentValueIcons/checkmark-outline.svg + ../resources/InstrumentValueIcons/minus-outline.svg + ../resources/InstrumentValueIcons/hot.svg + ../resources/InstrumentValueIcons/film.svg + ../resources/InstrumentValueIcons/step-backward.svg + ../resources/InstrumentValueIcons/key.svg + ../resources/InstrumentValueIcons/location-park.svg + ../resources/InstrumentValueIcons/backward.svg + ../resources/InstrumentValueIcons/reply.svg + ../resources/InstrumentValueIcons/bookmark copy 3.svg + ../resources/InstrumentValueIcons/align-justified.svg + ../resources/InstrumentValueIcons/arrow-simple-up.svg + ../resources/InstrumentValueIcons/repost.svg + ../resources/InstrumentValueIcons/hour-glass.svg + ../resources/InstrumentValueIcons/mood-neutral-solid.svg + ../resources/InstrumentValueIcons/format-font-size.svg + ../resources/InstrumentValueIcons/exclamation-outline.svg + ../resources/InstrumentValueIcons/arrow-outline-right.svg + ../resources/InstrumentValueIcons/location-marina.svg + ../resources/InstrumentValueIcons/globe.svg + ../resources/InstrumentValueIcons/arrow-thin-up.svg + ../resources/InstrumentValueIcons/at-symbol.svg + ../resources/InstrumentValueIcons/pause.svg + ../resources/InstrumentValueIcons/music-playlist.svg + ../resources/InstrumentValueIcons/align-center.svg + ../resources/InstrumentValueIcons/edit-copy.svg + ../resources/InstrumentValueIcons/save-disk.svg + ../resources/InstrumentValueIcons/share.svg + ../resources/InstrumentValueIcons/format-text-size.svg + ../resources/InstrumentValueIcons/trash.svg + ../resources/InstrumentValueIcons/album.svg + ../resources/InstrumentValueIcons/arrow-thick-up.svg + ../resources/InstrumentValueIcons/arrow-thin-left.svg + ../resources/InstrumentValueIcons/radio.svg + ../resources/InstrumentValueIcons/wallet.svg + ../resources/InstrumentValueIcons/coffee.svg + ../resources/InstrumentValueIcons/gift.svg + ../resources/InstrumentValueIcons/swap.svg + ../resources/InstrumentValueIcons/view-show.svg + ../resources/InstrumentValueIcons/anchor.svg + ../resources/InstrumentValueIcons/home.svg + ../resources/InstrumentValueIcons/checkmark.svg + ../resources/InstrumentValueIcons/navigation-more.svg + ../resources/InstrumentValueIcons/location-food.svg + ../resources/InstrumentValueIcons/border-right.svg + ../resources/InstrumentValueIcons/network.svg + ../resources/InstrumentValueIcons/pin.svg + ../resources/InstrumentValueIcons/adjust.svg + ../resources/InstrumentValueIcons/computer-laptop.svg + ../resources/InstrumentValueIcons/battery-full.svg + ../resources/InstrumentValueIcons/folder.svg + ../resources/InstrumentValueIcons/load-balancer.svg + ../resources/InstrumentValueIcons/time.svg + ../resources/InstrumentValueIcons/block.svg + ../resources/InstrumentValueIcons/close-outline.svg + ../resources/InstrumentValueIcons/usb.svg + + diff --git a/custom-example/updateinstrumentqrc.py b/custom-example/updateinstrumentqrc.py new file mode 100755 index 000000000..f1ba063fc --- /dev/null +++ b/custom-example/updateinstrumentqrc.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +import os + +def main(): + qrcFile = open("InstrumentValueIcons.qrc", 'wt') + + qrcFile.write("\n") + qrcFile.write("\t\n") + + files = os.listdir("../resources/InstrumentValueIcons") + for filename in files: + if filename.endswith(".svg"): + qrcFile.write("\t\t../resources/InstrumentValueIcons/%s\n" % (filename, filename)) + + qrcFile.write("\t\n") + qrcFile.write("\n") + + qrcFile.close() + +if __name__ == '__main__': + main() diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index ac8797b06..460b01759 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -345,6 +345,12 @@ CustomBuild { } else { RESOURCES += $$PWD/qgcimages.qrc } + exists($$PWD/custom/InstrumentValueIcons.qrc) { + message("Using custom InstrumentValueIcons.qrc") + RESOURCES += $$PWD/custom/InstrumentValueIcons.qrc + } else { + RESOURCES += $$PWD/resources/InstrumentValueIcons/InstrumentValueIcons.qrc + } } else { DEFINES += QGC_APPLICATION_NAME=\"\\\"QGroundControl\\\"\" DEFINES += QGC_ORG_NAME=\"\\\"QGroundControl.org\\\"\" -- 2.22.0