Re: [Wxart2d-users_dev] Cannot build from SVN
Status: Beta
Brought to you by:
titato
|
From: Ryan T. <ry...@th...> - 2017-09-11 05:29:11
|
Update on this - I ran the configure script with certain options and got
the build to work. Freetype fails with errors, and removing the
"FindFreetype" Cmake script and rerunning it seems to fix the issue.
--------------------
I'm using GCC 6.3.0 for this, and am getting these errors.
these errors:
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp: In
member function ‘virtual wxBitmap& a2dArtProvider::GetImage(a2dImageId)’:
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
};
^
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
/home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/canglob.cpp:501:9:
error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { }
[-Wnarrowing]
---------------------------
The fix I found for those was to recast the values, such as "(char)0xFF"
instead of just "OxFF" at the lines.
----------------------------
More errors:
from /home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/cameleon.cpp:21:
/home/ryan/Downloads/wxart/packages/wxart2d/include/wx/canvas/canobj1.h:2566:54:
error: ‘a2dIOHandlerXmlSerIn’ has not been declared
bool ParseCvgTransForm( a2dAffineMatrix& result,
a2dIOHandlerXmlSerIn& parser );
from /home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/cameleon.cpp:21:
/home/ryan/Downloads/wxart/packages/wxart2d/include/wx/canvas/drawing.h:749:101:
error: invalid use of incomplete type ‘class a2dIOHandlerCVGIn’
from /home/ryan/Downloads/wxart/packages/wxart2d/canvas/src/cameleon.cpp:21:
/home/ryan/Downloads/wxart/packages/wxart2d/include/wx/canvas/drawing.h:752:102:
error: invalid use of incomplete type ‘class a2dIOHandlerCVGOut’
bool SaveToFile( const wxString& filename, a2dIOHandlerStrOut*
handler = new a2dIOHandlerCVGOut() ) const;
--------------------------------------
The samples won't build, with the error:
"undefined reference to symbol 'gdk_pixbuf_get_pixels'"
//usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0: error adding symbols:
DSO missing from command line
On 09/11/2017 12:33 AM, Ryan Thoryk wrote:
> Hi, I'm having trouble building wxArt2D from SVN. The first issue is
> that the wxWidgets library can't be found; this can be possibly fixed by
> removing the wxWidgets CMake scripts and having it use the system ones.
>
> "CMake Error at share/wxwidgets/FindwxWidgets.cmake:1368 (MESSAGE):
> wxWidgets required, please specify it's location.
> Call Stack (most recent call first):
> CMakeLists.txt:115 (find_package)
> "
>
> These errors pop up afterwards when running cmake in the wxart2d directory:
> "CMake Error at CMakeLists.txt:663 (string):
> string no output variable specified
> CMake Error at CMakeLists.txt:664 (string):
> string no output variable specified"
>
> I get this when running cmake on the wxartbase folder:
> Unknown CMake command "GENERATE_POT".
>
> I get these errors when trying to build the wxdocview folder:
> "c++: error: _FILE_OFFSET_BITS=64: No such file or directory
> c++: error: WXUSINGDLL: No such file or directory
> c++: error: __WXGTK__: No such file or directory
> "
>
> Any help would be greatly appreciated. I'm building on Debian 9.0/Stretch.
>
--
Ryan Thoryk
ry...@th...
ry...@tl...
|