Skip to content

Commit 12c4f87

Browse files
committed
Make common build errors easier to read
1 parent 894894a commit 12c4f87

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

docs/SCIRun5ModuleGeneration.md

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,49 +1354,47 @@ With the module fully completed, we can now submit it to be included in the main
13541354

13551355
#### 6.3 Common Build Errors
13561356
1.
1357-
> ConvertMeshToPointCloudDialog.h:32:10: fatal error:
1357+
```
1358+
ConvertMeshToPointCloudDialog.h:32:10: fatal error:
13581359
Interface/Modules/Field/ui_ConvertMeshToPointCloudDialog.h' file not found
1360+
```
13591361

13601362

1361-
In this instance, the path to the header is misspelled. Check for the correct path and filename. Make sure the file you want to include exists. If the code was converted from SCIRun4, some of the dependent header files are renamed, combined with other files, or deprecated.
1363+
In this instance, the path to the header is misspelled. Check for the correct path and filename. Make sure the file you want to include exists. If the code was converted from SCIRun 4, some of the dependent header files are renamed, combined with other files, or deprecated.
13621364

13631365
2.
1364-
> /Users/jess/software/SCIRun_mine/bin/SCIRun/Core/AlgorithmsFactoryAlgorithmFactoryImpl_Generated.cc:4:10: error: empty filename
1365-
1366-
13671366
```
1367+
/Users/jess/software/SCIRun_mine/bin/SCIRun/Core/AlgorithmsFactoryAlgorithmFactoryImpl_Generated.cc:4:10: error: empty filename
13681368
#include <>
13691369
^
13701370
```
1371-
> /Users/jess/software/SCIRun_mine/bin/SCIRun/Core/Algorithms/Factory/AlgorithmFactoryImpl_Generated.cc: 21:43: error: expected namespace name
1372-
13731371
```
1372+
/Users/jess/software/SCIRun_mine/bin/SCIRun/Core/Algorithms/Factory/AlgorithmFactoryImpl_Generated.cc: 21:43: error: expected namespace name
13741373
using namespace SCIRun::Core::Algorithms::;
13751374
^
13761375
```
13771376

1377+
```
1378+
/Users/jess/software/SCIRun_mine/bin/SCIRun/Core/Algorithms/Factory/AlgorithmFactoryImpl_Generated.cc: 39:3: error: expected expression
1379+
ADD_MODULE_ALGORITHM_GENERATED(, );
1380+
```
13781381

1379-
> /Users/jess/software/SCIRun_mine/bin/SCIRun/Core/Algorithms/Factory/AlgorithmFactoryImpl_Generated.cc:
1380-
1381-
>39:3: error: expected expression
1382-
1383-
`ADD_MODULE_ALGORITHM_GENERATED(, );`
1384-
1385-
This is a result of something wrong with the module configuration file. Check the spelling and syntax of the new file. Specifically, check the quotation characters used, as they may be different (for instance on mac TextEdit). This may also be caused if the Algorithm and other files have not been added to the `CMakeList.txt` file.
1382+
This is a result of something wrong with the module configuration file. Check the spelling and syntax of the new file. Specifically, check the quotation characters used, as they may be different (for instance on Mac TextEdit). This may also be caused if the Algorithm and other files have not been added to the `CMakeList.txt` file.
13861383

13871384
3.
1388-
>/Users/jess/software/SCIRun_mine/src/Interface/Modules/Base/ModuleDialogGeneric.h:71:5: warning: 'metaObject' overrides a member function but is not marked 'override'
1389-
>[-Winconsistent-missing-override]
1390-
13911385
```
1386+
/Users/jess/software/SCIRun_mine/src/Interface/Modules/Base/ModuleDialogGeneric.h:71:5: warning: 'metaObject' overrides a member function but is not marked
1387+
'override' [-Winconsistent-missing-override]
13921388
Q_OBJECT
13931389
^
13941390
```
1395-
> /usr/local/Cellar/qt/4.8.7_3/lib/QtCore.framework/Headers/qobjectdefs.h:162:32:
1396-
note: expanded from macro 'Q_OBJECT'
1397-
virtual const QMetaObject *metaObject() const;*
13981391

1399-
Errors that involve qt and qt objects deal with the GUI code. Make sure that the GUI name is spelled correctly. Also make sure that the Qobject name is set properly.
1392+
```
1393+
/usr/local/Cellar/qt/4.8.7_3/lib/QtCore.framework/Headers/qobjectdefs.h:162:32: note: expanded from macro 'Q_OBJECT'
1394+
virtual const QMetaObject *metaObject() const;
1395+
```
1396+
1397+
Errors that involve Qt and Qt objects deal with the GUI code. Make sure that the GUI name is spelled correctly. Also make sure that the QObject name is set properly.
14001398

14011399
### Chapter 7
14021400

0 commit comments

Comments
 (0)