You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't compile the linux version.
It seems an ambiguity with the Font classes initialized in Font.hpp vs a given type in X11/X.h (typedef XID Font)
Any help would be appreciated, thanks.
../../../../src/core/../core/../utils/Font.hpp:153:55: error: reference to ‘Font’ is ambiguous
inline void save_construct_data(Archive & ar, const Font * t, const unsigned int file_version)
^
In file included from /usr/include/X11/Xlib.h:44:0,
from /usr/include/GL/glx.h:30,
from /usr/include/wx-3.0/wx/unix/glx11.h:13,
from /usr/include/wx-3.0/wx/gtk/glcanvas.h:14,
from /usr/include/wx-3.0/wx/glcanvas.h:192,
from ../../../../src/core/../core/Precompiled.hpp:149,
from ../../../../src/core/ChartView.cpp:22:
/usr/include/X11/X.h:100:13: note: candidates are: typedef XID Font
typedef XID Font;
^
In file included from ../../../../src/core/../core/VisualLabel.hpp:31:0,
from ../../../../src/core/ChartView.cpp:35:
../../../../src/core/../core/../utils/Font.hpp:45:8: note: class GenGIS::Font
class Font : private Uncopyable
^
../../../../src/core/../core/../utils/Font.hpp:153:55: error: ‘Font’ does not name a type
inline void save_construct_data(Archive & ar, const Font * t, const unsigned int file_version)
^
../../../../src/core/../core/../utils/Font.hpp:153:62: error: ISO C++ forbids declaration of ‘t’ with no type [-fpermissive]
inline void save_construct_data(Archive & ar, const Font * t, const unsigned int file_version)
^
../../../../src/core/../core/../utils/Font.hpp: In function ‘void boost::serialization::save_construct_data(Archive&, const int*, unsigned int)’:
../../../../src/core/../core/../utils/Font.hpp:156:13: error: request for member ‘m_fontFile’ in ‘t->’, which is of non-class type ‘const int’
ar << t->m_fontFile; // std::string
^
../../../../src/core/../core/../utils/Font.hpp:157:19: error: request for member ‘Size’ in ‘t->’, which is of non-class type ‘const int’
uint size = t->Size(); // uint
^
../../../../src/core/../core/../utils/Font.hpp: At global scope:
../../../../src/core/../core/../utils/Font.hpp:162:49: error: reference to ‘Font’ is ambiguous
inline void load_construct_data(Archive & ar, Font * t, const unsigned int file_version)
^
In file included from /usr/include/X11/Xlib.h:44:0,
from /usr/include/GL/glx.h:30,
from /usr/include/wx-3.0/wx/unix/glx11.h:13,
from /usr/include/wx-3.0/wx/gtk/glcanvas.h:14,
from /usr/include/wx-3.0/wx/glcanvas.h:192,
from ../../../../src/core/../core/Precompiled.hpp:149,
from ../../../../src/core/ChartView.cpp:22:
/usr/include/X11/X.h:100:13: note: candidates are: typedef XID Font
typedef XID Font;
^
In file included from ../../../../src/core/../core/VisualLabel.hpp:31:0,
from ../../../../src/core/ChartView.cpp:35:
../../../../src/core/../core/../utils/Font.hpp:45:8: note: class GenGIS::Font
class Font : private Uncopyable
^
../../../../src/core/../core/../utils/Font.hpp:162:49: error: ‘Font’ has not been declared
inline void load_construct_data(Archive & ar, Font * t, const unsigned int file_version)
^
../../../../src/core/../core/../utils/Font.hpp: In function ‘void boost::serialization::load_construct_data(Archive&, int*, unsigned int)’:
../../../../src/core/../core/../utils/Font.hpp:174:12: error: expected type-specifier before ‘Font’
::new(t)Font(fontFile, size);
^
../../../../src/core/../core/../utils/Font.hpp:174:12: error: expected ‘;’ before ‘Font’
Makefile:270: recipe for target 'BUILD/RELEASE/OBJECTS/ChartView.o' failed
make[1]: *** [BUILD/RELEASE/OBJECTS/ChartView.o] Error 1
make[1]: Leaving directory '/home/zorino/packages/bif/gengis/linux/i386/build/gcc'
Makefile:214: recipe for target 'release' failed
make: *** [release] Error 2
The text was updated successfully, but these errors were encountered:
Can't compile the linux version.
It seems an ambiguity with the Font classes initialized in Font.hpp vs a given type in X11/X.h (typedef XID Font)
Any help would be appreciated, thanks.
The text was updated successfully, but these errors were encountered: