Comments (10)
Useful Vs Code Extensions:
- ms-vscode.cpptools
- twxs.cmake
- tonka3000.qtvsctools
- felgo.felgo or bbenoist.QML
- Gruntfuggly.todo-tree: for project management
We could add a .vscode/extensions.json and useful tasks.json to our helloworld repo (and more if people find that useful)
from asteroidos.org.
I love this idea. Another thing that would be useful is to document what SailfishOS refers to as "callchains" for example:
Sensors: sensorfw-qt5 <> sensorfw-qt5-hybris <> libgbinder <> Android BSP HAL: android.hardware.sensors
Could such mapping be automated? Automating documentation from the code is a good way to make sure that they stay in synchronization. Doxygen uses this approach.
from asteroidos.org.
For reference on your comment that information is provided by https://sailfishos.org/wiki/Architecture.
Doxygen is an awesome tool to get documentation from the code. However, I'm not familiar with a method that would allow doing the same for all different source codes (QtSensors, General Qt modules, MCE APIs, etc)
from asteroidos.org.
Also we need simple logging and linux commands one can use for debugging (like journalctl). It maybe redundant but it would be helpful for people coming from other dev environments cough (flutter + windows) cough. And running and setting up command line things not GUI coz qtcreator breaks a lot. (aos docs are not clear on that)
Some developing tips like setting up qmltester on watch and reduction of testing cycles by separating logic and design.
Again it may be redundant but seeing how easy it is for developers to pick up something like flutter and make up a simple app, we should be inspired by that. I know it isn't fair to compare two projects that have vastly different amounts of resources and organizations backing them up, but atleast we can take inspiration and move in the right direction.
If nobody is writing this, can I?, I will try and make up a PR. and then somebody more experienced and nuanced than me can review it.
I am exploring setting up the environment in vscode (the IDE noobs like me use :P), if I got things working I will mention that also!
from asteroidos.org.
have 2 terminals
- do ssh and journalctl in one
- other build app or vim
Useful Vs Code Extensions:
- ms-vscode.cpptools
- twxs.cmake
- tonka3000.qtvsctools
- felgo.felgo or bbenoist.QML
- Gruntfuggly.todo-tree: for project management
not related to qml/qt but Codeium.codeium
is the only thing that works well for qml autocomplete
from asteroidos.org.
here is a shell script to quickly install an app:
#!/bin/sh
source /usr/local/oecore-x86_64/environment-setup-armv7vehf-neon-oe-linux-gnueabi
export CMAKE_PROGRAM_PATH=/usr/local/oecore-x86_64/sysroots/armv7vehf-neon-oe-linux-gnueabi/usr/bin/
cmake -B build
cmake --build build
cmake --build build -t package
file="$(ls ./build/*.ipk | sort -V | tail -n1)"
filename="$(basename $file)"
sshpass -p "<password>" scp $file [email protected]:/home/ceres/
sshpass -p "<password>" ssh [email protected] << EOF
cd /home/ceres/
opkg install --force-overwrite $filename
EOF
from asteroidos.org.
Add these lines at the end of CMakeLists.txt for package automation:
set(CPACK_GENERATOR "DEB")
string(TOLOWER "${CMAKE_PROJECT_NAME}" lcproject_name)
set(CPACK_DEBIAN_FILE_NAME "${lcproject_name}-${CMAKE_PROJECT_VERSION}.ipk")
set(CPACK_STRIP_FILES TRUE)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE armv7vehf-neon)
if (NOT CPACK_PACKAGE_CONTACT)
set(CPACK_PACKAGE_CONTACT [email protected])
message(WARNING "No package contact specified: using ${CPACK_PACKAGE_CONTACT}")
endif()
include(CPack)
from asteroidos.org.
Main docs: https://doc.qt.io/ (AOS uses qt5)
AOS specific component/API: https://github.com/AsteroidOS/qml-asteroid
Examples of use of most of those can be found by searching the AsteroidOS codebase: https://github.com/search?q=org%3AAsteroidOS+StatusPage&type=code
from asteroidos.org.
Dump logs by
sshpass -p "<password>" ssh [email protected] << EOF
journalctl -e --no-pager > /home/ceres/log.txt
EOF
sshpass -p "<password>" scp [email protected]:/home/ceres/log.txt ./build/
Follow Along by
journalctl -f
from asteroidos.org.
Using QML tester for small testing cycles:
opkg install qmltester
Edit qmls by vim and scp
vim scp://user@myserver[:port]//path/to/file.txt
Follow along by
journalctl -f
from asteroidos.org.
Related Issues (20)
- Temponly install method call out box does not display devicename
- Tetra simg download link misses HOT 1
- Catfish model names break mobile view HOT 1
- [Porting status] Give recent info who is the current maintainer
- Slug link for Watches page still points to install
- Add font licenses used in stock wf to license documentation page
- Slug is either too high or not centered to the mean line of the title HOT 4
- Feature table breaks at inharmony
- Automatically publish on publication date
- Typo -> it's = its* :)
- Provide more detailed SoC information.
- Do not advise users to solder to the watch pads
- [Real Install] Advise users to first test HW in WearOS HOT 1
- [Install Troubleshoot] Advise to update WearOS to the latest available version HOT 1
- [Feature Request] Filter Watches gallery by features HOT 1
- [Beluga Install] Advise users to update to latest WearOS
- Add MacOS instructions
- Nightlies FTP folder is not accessible anymore HOT 2
- Update watches specs to show all available sensors
- Add release date of original watch in feature list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asteroidos.org.