Welcome, Guest
Username: Password: Remember me
26 Sep 2020
No bulk downloads - PLEASE! THIS IS OVERLOADING OUR SERVER AND DENYING ACCESS TO COMMUNITY USERS
SVP - Pas de téléchargement en masse ! Cela surcharge le serveur et empêche la communauté d'utilisateurs d'accéder aux données
_______________________________
WE WILL BLOCK IP'S THAT ARE BULK DOWNLOADING! Nous bloquerons les IPs des personnes qui agissent de la sorte.
PLEASE GO DIRECTLY TO THE GRIB PRODUCERS (NOAA, DWD...) FOR BULK DOWNLOADS. Allez chercher les données directement à la source (NOAA, DWD ...)
Read More...
  • Page:
  • 1

TOPIC:

Problem with menu bar when developing new version 4 years 7 months ago #733

  • Jproj
  • Jproj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
First thank you for sharing this fantastic tool.
I'have made some adaptations in MAC OS environment for gliding purpose (display of height data from Arome model and integration of elevation data).
Everything works well except I have realized that sometimes several menus are missing in the menu bar (it could reappear if the language is changed). I have the same issue even with the native version 1.2.6 which is installed as well on my computer. (I'm working in parallel on a development app 1.2.7).
I'm not really an expert of C++ and QTranslation but I think something is wrong with the translation. Do you know how I can proceed to regenerate the .ts file when some *.cpp files have been modified? It is strange because even if I remove the tr() method sometimes it works sometimes not depending how I write the menu text.
It affect in particular the Options menu ->Internet parameters and Graphical parameters & Weather Map -> Weather options, for an unknown reason.
Do you have any idea of the problem and how to solve it?
Best regards
Jérôme

Please Log in to join the conversation.

Problem with menu bar when developing new version 4 years 7 months ago #736

Hi,
MacOS will move some menu options into the OS menus if the names are common like "Options". They menu items exist but under the OS menus and not the XyGrib menus. If the name of the menu is set differently in the translation file, i.e. "Weather Options", then the OS sees the menu item as belonging to the software package and not as a common OS menu item -- and it will appear where expected.
Try to use names that are not common with the Mac OS.
David

Please Log in to join the conversation.

Problem with menu bar when developing new version 4 years 7 months ago #738

  • Jproj
  • Jproj's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Thank you for your answer. It works when I change the name. So it means that I have to update the translation file .ts (since I have modified the code in the *.cpp files). Do you know what is the simplest way to do it ? So how can I regenerate the ts files ?

In addition I have realized that I can only create Xgryb.app. The compilation works but I have some issues to deploy the package on the Mac.
When I execute /usr/local/opt/qt5/bin/macdeployqt/XyGrib.app -verbose=2
I have the following error:
WARNING: Could not find any external Qt frameworks to deploy in "XyGrib.app"
WARNING: Perhaps macdeployqt was already used on "XyGrib.app" ?
WARNING: If so, you will need to rebuild "XyGrib.app" before trying again.

Maybe it is obvious for you but not for me, do you have any advices for the deployment ?
And the tool repogen is not found on my computer.

Please Log in to join the conversation.

Problem with menu bar when developing new version 4 years 7 months ago #739

Hi,
Best path to take is to install Qt on your Mac and build the app in the Qt environment.
The Qt documentation gives good instructions on building for MacOS within Qt. There is a utility for Mac that grabs all the dependencies and packages them with the deployed app.
There is also documentation regarding language generation. There are two utilities for this and they get installed when you install the Qt package.
David

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.044 seconds

Resources on this site will always be free and open with no commercialization. However, operating costs of the servers to pre-process and deliver GRIB files to XyGrib are not trivial.

If you found the site useful, please share in the effort and help keep us up and running

 

Please Support

Go to top