MacOS: I don't think appMain() is being called #1751
-
I have been trying to write code in the app layer for a crazyflie, I am trying to add a variable to the log and see it change however it just stays at zero when but in the plotter. Here is my code,
The last output I am getting from the console is ESTKALMAN: State out of bounds, resetting |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments · 27 replies
-
I'm not a Bitcraze expert, but one approach that comes to mind: Put the following in first line of your appMain():
Your complete code then will look like:
Your app layer looks similar to the example: app_hello_world Be sure to build in your app layer directory and run build there.
The command make -j8 should respond you that the build was successful. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I guess it is an issue with my dependencies, do you have any idea what the issue could be? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Please give me the whole output of your build process in your terminal including flashing with make cload At the moment with the current informations from you I cannot say which dependency exactly or something else is the problem. |
Beta Was this translation helpful? Give feedback.
All reactions
-
here is the full output of make clean, make and cload
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Okay, some errors at the beginning. I have never seen them. Please open a new terminal and do exactly
Then post the output here please. |
Beta Was this translation helpful? Give feedback.
All reactions
-
here is the output
|
Beta Was this translation helpful? Give feedback.
All reactions
-
The interesting part still is
It is a macOS specific error. Have you did the macOS part of Dependencies
Please post the output if you need additional help to fix this. |
Beta Was this translation helpful? Give feedback.
All reactions
-
I think you don't have the GNU versions. Maybe you can install them? Good luck! |
Beta Was this translation helpful? Give feedback.
All reactions
-
The solution is:
This installs the newer versions with a gprefix. Before you build and flash your app layer you need to do:
You need to redo the alias-commands every time when you open a new terminal before building the app layer. Put this into a shell script and add your make command at the end for a permanent solution. |
Beta Was this translation helpful? Give feedback.
All reactions
-
OMG IT WORKS NOW. Thank you so much! |
Beta Was this translation helpful? Give feedback.
All reactions
-
I ran
and then replaced all sed with gsed and readlink with greadlink and just deleted the -T |
Beta Was this translation helpful? Give feedback.
All reactions
-
I am very glad that I could help. Have fun! 😄 |
Beta Was this translation helpful? Give feedback.
All reactions
-
Please rename this discussion to MacOS: I don't think appMain() is being called to help others find this solution. |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
I ran
and then replaced all sed with gsed and readlink with greadlink and just deleted the -T