New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAVLink folder dose not exist at ‘libs/mavlink/include/mavlink/v2.0’! Run ‘git submodule init && git submodule update’ on the command line. #10323
Comments
Is there any reason to use the old QGC 3.5.6 version? |
I don't know the exact version, but building a modified code based on the 3.x.x version is my current mission and final goal for my company. Assuming that if the major versions are the same, the build environment is the same, I hope that if this challenge succeeds, I can achieve my final goal. I liked Sherlock Holmes' mystery novels, but when I was about to become a detective, I felt that it was a tough job. |
It looks like you need more knowledge of Git. I just cloned the source code of QGC v3.5.6 and found nothing strange. Try the following methods.
|
make submodulesclean Make sure to download them all, because you never check them |
Thank you for your reply. Unfortunately, I don't think I can understand your connotation yet. I'll look for more for understanding. |
If you need to build QGC 3.X version, update the submodule using the git command. Copying and pasting can cause unintended behavior. 복붙말고, 명령어를 통해 서브모듈 업데이트 한번 해보세요. P.S 첨부하신 사진을 보니 한국인이신 것 같은데, 선임 개발자 분들께 깃이나 빌드 관련해서 도움 요청하는 것이 더 좋아 보여요. |
만나서 반갑습니다.^^ 저도 펭귄님 프로필 보고 그냥 한국말로 해도 되나 한참 고민했습니다. 짧은 영어 실력이라 번역기 돌리고 제대로 된건지 한 번 더 확인하고 하느라 빠른 소통을 할 수 없어 답답했습니다. 깃허브 정책이나 분위기를 아직 잘 몰라서 망설여지는데 같은 언어 사용자와는 꼭 영어를 쓰지 않아도 되는 것인가요? Good to meet you.^^ When I saw Penguin's profile, I was wondering if I could speak in Korean. I was frustrated that I couldn't communicate quickly because I was checking whether it was properly done after using the translator because of my short English skills. I'm hesitant because I don't know the GitHub policy or atmosphere yet, but do I not have to speak English with people who speak the same language other than English? |
원래는 영어를 쓰는 것이 권장되지만, 저도 영어에 익숙하지 않다 보니 빠른 도움을 주기 위해 한국말 썼다. 이해 부탁 드린다. 식으로 했습니다. 영 마음에 걸리신다 하면, 제 프로필에 있는 메일로 따로 연락을 주는 방식도 괜찮다 봅니다. |
With the help of WTPENGUIN and other people around me,
The above method allows me to complete the build of the source code left by my predecessor and view the execution screen. But.. There are still a number of questions as below.
I look forward to resolving the above questions as my understanding deepens. |
the same problem. |
Your question suddenly came to me today. If the intent of your question is the same as above, I ask you again like a child. |
|
I think we can close this one due to inactivity... |
I had the same issue, but on
Then I just ran |
Hello, everyone.
I'm a newbie developer, unfamiliar with all three of Qt and QGC and Git.
[My first challenge]
https://dev.qgroundcontrol.com/master/en/getting_started/
A few days ago, I downloaded the qgc code with git clone according to the guide on the link above
Installation of Qt 5.15.2 and Visual Studio 2019 community (64 bit)
The build was successful.
Of course, I couldn't succeed at once, but after a few days of challenge, I did the following three things
I managed to succeed. (I was a little surprised because it took about 10 minutes to build. )
I only followed the method that was informed with the help of other developers, and I haven't understood the meaning of those three tasks yet, and I don't understand why that content is missing from the QGC guide.
It is not complete, but based on the above success experience, I proceeded with the next challenge.
[ My second challenge ]
http://dev.qgc.dimianzhan.com/en/getting_started/
This time, I referred to the guide of the link above
Without downloading the source code through git clone,
https://github.com/mavlink/qgroundcontrol/releases/tag/v3.5.6 here
Download and extract the qgc v3.5.6.zip file
Install Qt 5.11.0 and Visual Studio 2015 community (32 bit)
I tried building. With the expectation that it'll work out at once.
However, contrary to expectations, less than a second later, I encountered the first error.
The error related to the submodule and the details are as follows.
Figure 1: Build Error Message
I checked the error message and just downloaded and unzipped it
I checked the libs/mavlink/include/mavlink/v2.0 folder. And I was a little surprised to see that there was nothing in it and it was empty.
"Why isn't there anything in the folder? Did someone accidentally miss it when he or she uploaded it to GitHub?"
After searching on the web for some time,
I found out that Git managed the project using 'submodule' for efficiency, and that when I downloaded the compressed file without using the git clone command, He or she deliberately left out the contents of 'submodule' and uploaded it compressed , so I got an empty folder. And [My First Challenge] confirmed that the 'submodule' folder of the same name downloaded with the git clone command is not empty and contains some files needed for the build.
And the information about the submodule that I need to fill is in the .gitmodules file
It was confirmed that the number of submodules was 2.
Figure 2: Submodule Information
Let's move on to the next sentence of the error message
In order to solve the problem, search is done without a sufficient understanding of git
I updated the submodule as below and filled in two empty folders.
Figure 3: submodule “src/GPS/Drivers” update
Figure 4: submodule “libs/mavlink/include/mavlink/v2.0” update
In each empty folder, four git commands were entered by opening a cmd window with Git Bash.
I saw an empty folder filled immediately after the add command.
But through the above work, MAVLink folder
It does not appear to occur in 'libs/mavlink/include/mavlink/v2.0'
I tried building again, hoping that the cause of the error was resolved through the above work.
Figure 5: Check the QT and compiler version
The result is
Figure 6: Again, the same error message as the first time
I saw the same error message again.
It is judged that I did not perform the submodule update properly.
I don't know which part I've gone wrong yet.
I ask for your help.
System Information
The text was updated successfully, but these errors were encountered: