VeaaC / monav

Automatically exported from code.google.com/p/monav
0 stars 0 forks source link

MoNav Preprocessor Compile fail on Fedora-13 x86_64 #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /usr/lib64/qt4/bin/qmake "CONFIG += release" monavpreprocessor.pro && make
2.
3.

What is the expected output? What do you see instead?

[root@trailblazer monav]# /usr/lib64/qt4/bin/qmake "CONFIG += release" 
monavpreprocessor.pro && make

In file included from ../osmimporter/pbfreader.h:24,
                 from qtilerenderer.cpp:23:
../osmimporter/protobuff definitions/fileformat.pb.h:9:42: error: 
google/protobuf/stubs/common.h: No such file or directory
../osmimporter/protobuff definitions/fileformat.pb.h:12:2: error: #error This 
file was generated by a newer version of protoc which is
../osmimporter/protobuff definitions/fileformat.pb.h:13:2: error: #error 
incompatible with your Protocol Buffer headers. Please update
../osmimporter/protobuff definitions/fileformat.pb.h:14:2: error: #error your 
headers.
../osmimporter/protobuff definitions/fileformat.pb.h:22:52: error: 
google/protobuf/generated_message_util.h: No such file or directory
../osmimporter/protobuff definitions/fileformat.pb.h:23:44: error: 
google/protobuf/repeated_field.h: No such file or directory
../osmimporter/protobuff definitions/fileformat.pb.h:24:43: error: 
google/protobuf/extension_set.h: No such file or directory
../osmimporter/protobuff definitions/fileformat.pb.h:25:58: error: 
google/protobuf/generated_message_reflection.h: No such file or directory
In file included from ../osmimporter/pbfreader.h:25,
                 from qtilerenderer.cpp:23:
../osmimporter/protobuff definitions/osmformat.pb.h:12:2: error: #error This 
file was generated by a newer version of protoc which is
../osmimporter/protobuff definitions/osmformat.pb.h:13:2: error: #error 
incompatible with your Protocol Buffer headers. Please update
../osmimporter/protobuff definitions/osmformat.pb.h:14:2: error: #error your 
headers.
In file included from ../osmimporter/pbfreader.h:24,
                 from qtilerenderer.cpp:23:
../osmimporter/protobuff definitions/fileformat.pb.h:40: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:40: error: expected 
‘{’ before ‘Message’
../osmimporter/protobuff definitions/fileformat.pb.h:40: error: invalid type in 
declaration before ‘{’ token
../osmimporter/protobuff definitions/fileformat.pb.h:40: warning: extended 
initializer lists only available with -std=c++0x or -std=gnu++0x
../osmimporter/protobuff definitions/fileformat.pb.h:41: error: expected 
primary-expression before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:41: error: expected 
‘}’ before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:41: error: expected 
‘,’ or ‘;’ before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:43: error: declaration of 
‘~PBF::Blob’ as non-member
../osmimporter/protobuff definitions/fileformat.pb.h:45: error: expected 
unqualified-id before ‘const’
../osmimporter/protobuff definitions/fileformat.pb.h:45: error: expected 
‘)’ before ‘const’
../osmimporter/protobuff definitions/fileformat.pb.h:47: error: ‘PBF::Blob& 
PBF::operator=(const PBF::Blob&)’ must be a nonstatic member function
../osmimporter/protobuff definitions/fileformat.pb.h:52: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:52: error: expected 
initializer before ‘&’ token
../osmimporter/protobuff definitions/fileformat.pb.h:56: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:56: error: expected 
initializer before ‘*’ token
../osmimporter/protobuff definitions/fileformat.pb.h:60: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:60: error: expected 
initializer before ‘*’ token
../osmimporter/protobuff definitions/fileformat.pb.h:67: error: non-member 
function ‘PBF::Blob* PBF::New()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:68: error: expected 
unqualified-id before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:68: error: expected 
‘)’ before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:68: error: expected 
initializer before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:69: error: expected 
unqualified-id before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:69: error: expected 
‘)’ before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:69: error: expected 
initializer before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:73: error: non-member 
function ‘bool PBF::IsInitialized()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:75: error: non-member 
function ‘int PBF::ByteSize()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:77: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:77: error: ‘input’ was 
not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h:79: error: variable or 
field ‘SerializeWithCachedSizes’ declared void
../osmimporter/protobuff definitions/fileformat.pb.h:79: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:79: error: ‘output’ 
was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h:80: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:80: error: expected 
constructor, destructor, or type conversion before ‘*’ token
../osmimporter/protobuff definitions/fileformat.pb.h:81: error: non-member 
function ‘int PBF::GetCachedSize()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘int 
PBF::GetCachedSize()’:
../osmimporter/protobuff definitions/fileformat.pb.h:81: error: 
‘_cached_size_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: At global scope:
../osmimporter/protobuff definitions/fileformat.pb.h:82: error: expected 
unqualified-id before ‘private’
../osmimporter/protobuff definitions/fileformat.pb.h:85: error: non-member 
function ‘void PBF::SetCachedSize(int)’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:86: error: expected 
unqualified-id before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:95: error: non-member 
function ‘bool PBF::has_raw()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:98: error: non-member 
function ‘const std::string& PBF::raw()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:105: error: non-member 
function ‘bool PBF::has_raw_size()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:108: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:108: error: expected 
initializer before ‘raw_size’
../osmimporter/protobuff definitions/fileformat.pb.h:109: error: variable or 
field ‘set_raw_size’ declared void
../osmimporter/protobuff definitions/fileformat.pb.h:109: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:112: error: non-member 
function ‘bool PBF::has_zlib_data()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:115: error: non-member 
function ‘const std::string& PBF::zlib_data()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:122: error: non-member 
function ‘bool PBF::has_lzma_data()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:125: error: non-member 
function ‘const std::string& PBF::lzma_data()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:132: error: non-member 
function ‘bool PBF::has_bzip2_data()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:135: error: non-member 
function ‘const std::string& PBF::bzip2_data()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:142: error: expected 
unqualified-id before ‘private’
../osmimporter/protobuff definitions/fileformat.pb.h:144: error: non-member 
‘_cached_size_’ cannot be declared ‘mutable’
../osmimporter/protobuff definitions/fileformat.pb.h:148: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:148: error: expected 
constructor, destructor, or type conversion before ‘raw_size_’
../osmimporter/protobuff definitions/fileformat.pb.h:155: error: ‘friend’ 
used outside of class
../osmimporter/protobuff definitions/fileformat.pb.h:156: error: ‘friend’ 
used outside of class
../osmimporter/protobuff definitions/fileformat.pb.h:157: error: ‘friend’ 
used outside of class
../osmimporter/protobuff definitions/fileformat.pb.h:159: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:159: error: expected 
constructor, destructor, or type conversion before ‘_has_bits_’
../osmimporter/protobuff definitions/fileformat.pb.h:162: error: non-member 
function ‘bool PBF::_has_bit(int)’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘bool 
PBF::_has_bit(int)’:
../osmimporter/protobuff definitions/fileformat.pb.h:163: error: 
‘_has_bits_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘void 
PBF::_set_bit(int)’:
../osmimporter/protobuff definitions/fileformat.pb.h:166: error: 
‘_has_bits_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘void 
PBF::_clear_bit(int)’:
../osmimporter/protobuff definitions/fileformat.pb.h:169: error: 
‘_has_bits_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: At global scope:
../osmimporter/protobuff definitions/fileformat.pb.h:177: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:177: error: expected 
‘{’ before ‘Message’
../osmimporter/protobuff definitions/fileformat.pb.h:177: error: invalid type 
in declaration before ‘{’ token
../osmimporter/protobuff definitions/fileformat.pb.h:177: warning: extended 
initializer lists only available with -std=c++0x or -std=gnu++0x
../osmimporter/protobuff definitions/fileformat.pb.h:178: error: expected 
primary-expression before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:178: error: expected 
‘}’ before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:178: error: expected 
‘,’ or ‘;’ before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:180: error: declaration of 
‘~BlockHeader’ as non-member
../osmimporter/protobuff definitions/fileformat.pb.h:182: error: expected 
unqualified-id before ‘const’
../osmimporter/protobuff definitions/fileformat.pb.h:182: error: expected 
‘)’ before ‘const’
../osmimporter/protobuff definitions/fileformat.pb.h:184: error: 
‘BlockHeader& operator=(const BlockHeader&)’ must be a nonstatic member 
function
../osmimporter/protobuff definitions/fileformat.pb.h:189: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:189: error: expected 
initializer before ‘&’ token
../osmimporter/protobuff definitions/fileformat.pb.h:193: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:193: error: expected 
initializer before ‘*’ token
../osmimporter/protobuff definitions/fileformat.pb.h:197: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:197: error: expected 
initializer before ‘*’ token
../osmimporter/protobuff definitions/fileformat.pb.h:204: error: non-member 
function ‘BlockHeader* New()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:205: error: expected 
unqualified-id before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:205: error: expected 
‘)’ before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:205: error: expected 
initializer before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:206: error: expected 
unqualified-id before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:206: error: expected 
‘)’ before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:206: error: expected 
initializer before ‘::’ token
../osmimporter/protobuff definitions/fileformat.pb.h:210: error: non-member 
function ‘bool IsInitialized()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:212: error: non-member 
function ‘int ByteSize()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:214: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:214: error: ‘input’ 
was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h:216: error: variable or 
field ‘SerializeWithCachedSizes’ declared void
../osmimporter/protobuff definitions/fileformat.pb.h:216: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:216: error: ‘output’ 
was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h:217: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:217: error: expected 
constructor, destructor, or type conversion before ‘*’ token
../osmimporter/protobuff definitions/fileformat.pb.h:218: error: non-member 
function ‘int GetCachedSize()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘int 
GetCachedSize()’:
../osmimporter/protobuff definitions/fileformat.pb.h:218: error: 
‘_cached_size_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: At global scope:
../osmimporter/protobuff definitions/fileformat.pb.h:219: error: expected 
unqualified-id before ‘private’
../osmimporter/protobuff definitions/fileformat.pb.h:222: error: non-member 
function ‘void SetCachedSize(int)’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:223: error: expected 
unqualified-id before ‘public’
../osmimporter/protobuff definitions/fileformat.pb.h:232: error: non-member 
function ‘bool has_type()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:235: error: non-member 
function ‘const std::string& type()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:242: error: non-member 
function ‘bool has_indexdata()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:245: error: non-member 
function ‘const std::string& indexdata()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:252: error: non-member 
function ‘bool has_datasize()’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h:255: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:255: error: expected 
initializer before ‘datasize’
../osmimporter/protobuff definitions/fileformat.pb.h:256: error: variable or 
field ‘set_datasize’ declared void
../osmimporter/protobuff definitions/fileformat.pb.h:256: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:259: error: expected 
unqualified-id before ‘private’
../osmimporter/protobuff definitions/fileformat.pb.h:261: error: non-member 
‘_cached_size_’ cannot be declared ‘mutable’
../osmimporter/protobuff definitions/fileformat.pb.h:267: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:267: error: expected 
constructor, destructor, or type conversion before ‘datasize_’
../osmimporter/protobuff definitions/fileformat.pb.h:268: error: ‘friend’ 
used outside of class
../osmimporter/protobuff definitions/fileformat.pb.h:269: error: ‘friend’ 
used outside of class
../osmimporter/protobuff definitions/fileformat.pb.h:270: error: ‘friend’ 
used outside of class
../osmimporter/protobuff definitions/fileformat.pb.h:272: error: ‘::google’ 
has not been declared
../osmimporter/protobuff definitions/fileformat.pb.h:272: error: expected 
constructor, destructor, or type conversion before ‘_has_bits_’
../osmimporter/protobuff definitions/fileformat.pb.h:275: error: non-member 
function ‘bool _has_bit(int)’ cannot have cv-qualifier
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘bool 
_has_bit(int)’:
../osmimporter/protobuff definitions/fileformat.pb.h:276: error: 
‘_has_bits_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘void 
_set_bit(int)’:
../osmimporter/protobuff definitions/fileformat.pb.h:279: error: 
‘_has_bits_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: In function ‘void 
_clear_bit(int)’:
../osmimporter/protobuff definitions/fileformat.pb.h:282: error: 
‘_has_bits_’ was not declared in this scope
../osmimporter/protobuff definitions/fileformat.pb.h: At global scope:
../osmimporter/protobuff definitions/fileformat.pb.h:287: error: expected 
declaration before ‘}’ token
../osmimporter/protobuff definitions/fileformat.pb.h:286: warning: 
‘default_instance_’ defined but not used
../osmimporter/protobuff definitions/fileformat.pb.h:173: warning: 
‘PBF::default_instance_’ defined but not used
make[2]: *** [qtilerenderer.o] Error 1
make[2]: Leaving directory `/home/files/DEV/monav/plugins/osmrenderer'
make[1]: *** [sub-osmrenderer-qtilerenderer-pro-make_default] Error 2
make[1]: Leaving directory `/home/files/DEV/monav/plugins'
make: *** [sub-plugins-preprocessor_plugins-pro-make_default] Error 2

[root@trailblazer monav]# 

What version of the product are you using? On what operating system?

This is the latest code from svn monav r450

The monav client code compiled without any errors - but the Preprocessor code 
compile failed.

The last version of the Preprocessor code (svn r219) compiled without error. 

Please provide any additional information below.

[root@trailblazer monav]$ lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch
Distributor ID: Fedora
Description:    Fedora release 13 (Goddard)
Release:    13
Codename:   Goddard

All of the software dependencies (listed on the wiki site) are installed.

Original issue reported on code.google.com by peteadde...@gmail.com on 10 Mar 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Look to me like it cannot find the protobuf library. Can you check whether it 
installed in the correct directories?

Furthermore, the documentation refers to release 0.2. To compile the current 
SVN version of the preprocessor you additionally have to add "DEFINES=NOGUI" to 
the command line of qmake. Of course, this is not necessary for the GUI 
preprocessor.

Original comment by veaac.fd...@gmail.com on 12 Mar 2011 at 5:06

GoogleCodeExporter commented 9 years ago
The protobuf library was not installed. After installing protobuf-2.2.0 on 
Fedora-13 I tried to compile again; the old error was fixed (gone) but there 
was a new error - (compile failed with error stating that the protobuf library 
(protobuf-2.2.0) was to old and a newer version was required). I tried to 
compile protobuf-2.3.0 from source but there were too many dependencies to 
satisfy so I abandon any further attempts to compile monav preprocessor on 
Fedora-13.
I will upgrade to Fedora-14 and try to compile monav again.

Here are the commands used to compile monav preprocessor:

/usr/lib64/qt4/bin/qmake "CONFIG += release" monavpreprocessor-gui.pro && make

/usr/lib64/qt4/bin/qmake "CONFIG += release DEFINES = NOGUI" 
monavpreprocessor.pro && make

Original comment by peteadde...@gmail.com on 14 Mar 2011 at 1:39

GoogleCodeExporter commented 9 years ago

Original comment by veaac.fd...@gmail.com on 14 Mar 2011 at 5:52