0

I have a problem with Doxygen GUI I am currently using version of the Doxygen 1.8.19 I selected project path and directory for the scan source code correctly, And activated EXTRACT_ALL to ENABLE.

The output I see:

enter image description here

I have .cpp and .c codes together. But main is cpp so I added detail file in main.cpp as a:

/**
  * @file           : main.cpp
  * @brief          : Main program body

When I Run doxygen button, I have just seen,

Empty Main page and I cant see another Tab.

How can I solve this problem?

My source code:

In main.cpp file:

/**
*@mainpage  MyPROJECT
*
*
*
*/

/**
   *@file         main.cpp
   *@brief        This is the main source code of the project.
*/....

In main.h file:

/**
*@mainpage  MYPROJECT
*
*
*
*/


    /**
       *@file         main.h
       *@brief        This is the main source code of the project.
    */
    ...
albert
  • 8,285
  • 3
  • 19
  • 32
mathco
  • 107
  • 11
  • You can only have one `\mainpage` in your project. Only the comment from the comment block with the `\mainpage` will land on the main page – albert Jun 15 '20 at 11:23
  • I removed /mainpage from main.h file but it didnt solve my problem – mathco Jun 15 '20 at 11:34
  • Probably some misunderstanding about what lands where. The documentation in the comment block with the `\mainpage` will land on the "Main Page". The documentation in the comment blocks with the `@file` will land on the pages describing trhe mentioned file. – albert Jun 15 '20 at 12:14

2 Answers2

1

I solved the problem. For those who get the same error as me:

Before the "Run doxygen" save the Doxygen file to where main.cpp file to copy there. For example your main.cpp file in the Src/main.cpp than you have to copy "Doxygen.txt" file to Src/main.cpp.

And it works !

mathco
  • 107
  • 11
  • Sorry I don't understand what you are writing. Do you mean that you have to copy the doxygen configuration file? Can you show some resulting output? – albert Jun 15 '20 at 12:16
  • My file system seperate some function and library. Inc file and Src file have lots of .c and .h file. When I generate the Doxygen.txt file to project directory I saw as I have problem . But when I generate Doxygen.txt file in Src folder A mean, main.cpp in the Src file so it works. I dont understand why, I think doxygen cannot see all files. Is there any configuration for this ? – mathco Jun 16 '20 at 06:54
  • I don't know which settings you aleady used / tried, but probably `INPUT` and `RECURSIVE` could be of some use. – albert Jun 16 '20 at 07:20
  • RECURSIVE->ENABLE and I added Inc and Src folder to Input path – mathco Jun 16 '20 at 07:24
  • I added netw topic here https://stackoverflow.com/questions/62403371/doxygen-file-system – mathco Jun 16 '20 at 08:27
0

Getting text on the Main Page is not triggered by the name of the file but can be accomplished with

Small note:
When the file documentation is in the same file as the file itself the name of the file with the @file command is not necessary (and @file can actually be omitted. The : is also not OK.

albert
  • 8,285
  • 3
  • 19
  • 32
  • I added @mainpage and did USE_MDFILE_AS_MAINPAGE congifuration like you and remove ":" but It didnt work again I see empty Doxygen file :( – mathco Jun 15 '20 at 08:52
  • Please show in your question by means of an edit (and properly shown as edit to the original question) what you tried. make a small complete example out of it that we can reproduce. – albert Jun 15 '20 at 09:44
  • I added part of code. I can not see any files TAB and I can not see any function biref although I have lots of function. – mathco Jun 15 '20 at 11:09