Coder Social home page Coder Social logo

fog's People

Watchers

 avatar

fog's Issues

Build failed on debian amd64

What steps will reproduce the problem?
1. Check out the SVN at r622
2. cd fog-read-only/Fog; mkdir build; cd build; cmake../
3. make

What is the expected output? What do you see instead?
A nominal compilation is expected. The out-of-tree build failed with:
In file included from 
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp:28:
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png_p.h:77: 
error: ‘png_longjmp_ptr’ has not been declared
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp: In 
member function ‘virtual err_t 
Fog::ImageIO::PngDecoderDevice::readHeader()’:
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp:284: 
error: invalid conversion from ‘void (*)(__jmp_buf_tag*, int)throw ()’ to 
‘int’
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp: In 
member function ‘virtual err_t 
Fog::ImageIO::PngDecoderDevice::readImage(Fog::Image&)’:
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp:355: 
error: invalid conversion from ‘void (*)(__jmp_buf_tag*, int)throw ()’ to 
‘int’
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp: In 
member function ‘virtual err_t 
Fog::ImageIO::PngEncoderDevice::writeImage(const Fog::Image&)’:
/home/renaud/svnco/fog-read-only/Fog/Fog/Graphics/ImageIO/ImageIO_Png.cpp:546: 
error: invalid conversion from ‘void (*)(__jmp_buf_tag*, int)throw ()’ to 
‘int’
make[2]: *** [CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Png.cpp.o] Erreur 
1
make[1]: *** [CMakeFiles/Fog.dir/all] Erreur 2
make: *** [all] Erreur 2


What version of the product are you using? On what operating system?
SVN r622 on debian amd64 testing/unstable


Please provide any additional information below.

g++ (Debian 4.4.5-10) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cmake version 2.8.3

Original issue reported on code.google.com by [email protected] on 15 Feb 2011 at 10:03

Unexpected behavior of some Fog binaries on debian amd64

What steps will reproduce the problem?
1. svn co (r623)

2. Compile out-of-tree build:

renaud@daneel:~/svnco/fog-read-only$ mkdir build
renaud@daneel:~/svnco/fog-read-only$ cd build/; cmake ../Fog
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of void*
-- Check size of void* - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Looking for include files FOG_HAVE_FLOAT_H
-- Looking for include files FOG_HAVE_FLOAT_H - found
-- Looking for include files FOG_HAVE_LIMITS_H
-- Looking for include files FOG_HAVE_LIMITS_H - found
-- Looking for include files FOG_HAVE_STDINT_H
-- Looking for include files FOG_HAVE_STDINT_H - found
-- Looking for include files FOG_HAVE_UNISTD_H
-- Looking for include files FOG_HAVE_UNISTD_H - found
-- Looking for include files FOG_HAVE_FENV_H
-- Looking for include files FOG_HAVE_FENV_H - found
-- Looking for include files FOG_HAVE_DLFCN_H
-- Looking for include files FOG_HAVE_DLFCN_H - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for include files FOG_HAVE_FONTCONFIG
-- Looking for include files FOG_HAVE_FONTCONFIG - found
-- Looking for include files FOG_HAVE_LIBJPEG
-- Looking for include files FOG_HAVE_LIBJPEG - found
-- Looking for include files FOG_HAVE_LIBPNG
-- Looking for include files FOG_HAVE_LIBPNG - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/renaud/svnco/fog-read-only/build
renaud@daneel:~/svnco/fog-read-only/build$ make
Scanning dependencies of target Fog
[  0%] Building CXX object CMakeFiles/Fog.dir/Fog/Canvas/CanvasDelegate.cpp.o
[  1%] Building CXX object CMakeFiles/Fog.dir/Fog/Canvas/CanvasElement.cpp.o
[  1%] Building CXX object CMakeFiles/Fog.dir/Fog/Canvas/CanvasView.cpp.o
[  2%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Algorithms.cpp.o
[  2%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Application.cpp.o
[  3%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Assert.cpp.o
[  3%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Byte.cpp.o
[  4%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ByteArray.cpp.o
[  4%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ByteArrayFilter.cpp.o
[  5%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ByteArrayMatcher.cpp.o
[  6%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Char.cpp.o
[  6%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/CharUtil.cpp.o
[  7%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/CpuInfo.cpp.o
[  7%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/DirIterator.cpp.o
[  8%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Event.cpp.o
[  8%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/EventLoop.cpp.o
[  9%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Error.cpp.o
[  9%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/FileSystem.cpp.o
[ 10%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Format.cpp.o
[ 10%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Funcs.cpp.o
[ 11%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Hash.cpp.o
[ 12%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/HashUtil.cpp.o
[ 12%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Init.cpp.o
[ 13%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Lazy.cpp.o
[ 13%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Library.cpp.o
[ 14%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/List.cpp.o
[ 14%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ListenerList.cpp.o
[ 15%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Locale.cpp.o
[ 15%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Lock.cpp.o
[ 16%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ManagedString.cpp.o
[ 17%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/MapFile.cpp.o
[ 17%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Math.cpp.o
[ 18%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Memory.cpp.o
[ 18%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/MemoryAllocator.cpp.o
[ 19%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/MemoryBuffer.cpp.o
[ 19%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/MemoryManager.cpp.o
[ 20%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Misc.cpp.o
[ 20%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Object.cpp.o
[ 21%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/OS.cpp.o
[ 21%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Range.cpp.o
[ 22%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Std.cpp.o
[ 23%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Stream.cpp.o
[ 23%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/String.cpp.o
[ 24%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/StringFilter.cpp.o
[ 24%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/StringMatcher.cpp.o
[ 25%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Strings.cpp.o
[ 25%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/StringUtil.cpp.o
[ 26%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/StringUtil_gen.cpp.o
[ 26%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Stub.cpp.o
[ 27%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Task.cpp.o
[ 28%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/TextCodec.cpp.o
[ 28%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Thread.cpp.o
[ 29%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ThreadCondition.cpp.o
[ 29%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ThreadEvent.cpp.o
[ 30%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ThreadLocalStorage.cpp.o
[ 30%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/ThreadPool.cpp.o
[ 31%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Time.cpp.o
[ 31%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Timer.cpp.o
[ 32%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/UserInfo.cpp.o
[ 32%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Value.cpp.o
[ 33%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/WinIStream.cpp.o
[ 34%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/WinUtil.cpp.o
[ 34%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/AnalyticRasterizer.cpp.o
[ 35%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Color.cpp.o
[ 35%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ColorAnalyzer.cpp.o
[ 36%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ColorLut.cpp.o
[ 36%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ColorMatrix.cpp.o
[ 37%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ColorUtil.cpp.o
[ 37%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Constants.cpp.o
[ 38%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ConvolutionMatrix.cpp.o
[ 39%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Curve.cpp.o
[ 39%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/DitherMatrix.cpp.o
[ 40%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Dpi.cpp.o
[ 40%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Font.cpp.o
[ 41%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Funcs.cpp.o
[ 41%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Geometry.cpp.o
[ 42%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Glyph.cpp.o
[ 42%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/GlyphCache.cpp.o
[ 43%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/GlyphSet.cpp.o
[ 43%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Gradient.cpp.o
[ 44%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Image.cpp.o
[ 45%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ImageContext.cpp.o
[ 45%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageData_WinDib.cpp.o
[ 46%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ImageFilter.cpp.o
[ 46%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageFilterEngine.cpp.o
[ 47%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageFilterParams.cpp.o
[ 47%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ImageIO.cpp.o
[ 48%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/ImagePixels.cpp.o
[ 48%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Painter.cpp.o
[ 49%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine.cpp.o
[ 50%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/PaintUtil.cpp.o
[ 50%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Palette.cpp.o
[ 51%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Path.cpp.o
[ 51%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/PathStroker.cpp.o
[ 52%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/PathTransform.cpp.o
[ 52%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Pattern.cpp.o
[ 53%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine.cpp.o
[ 53%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Reduce.cpp.o
[ 54%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Region.cpp.o
[ 54%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Scanline.cpp.o
[ 55%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Shader.cpp.o
[ 56%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Span.cpp.o
[ 56%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/TextIterator.cpp.o
[ 57%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/TextLayout.cpp.o
[ 57%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/TextOnPath.cpp.o
[ 58%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Transform.cpp.o
[ 58%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Transform_3dNow.cpp.o
[ 59%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Transform_SSE.cpp.o
[ 59%] Building CXX object CMakeFiles/Fog.dir/Fog/Graphics/Transform_SSE2.cpp.o
[ 60%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Bmp.cpp.o
[ 60%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_GdiPlus.cpp.o
[ 61%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Gif.cpp.o
[ 62%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Ico.cpp.o
[ 62%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Jpeg.cpp.o
[ 63%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Pcx.cpp.o
[ 63%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/ImageIO/ImageIO_Png.cpp.o
[ 64%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/FontEngine/FTFontEngine.cpp.o
[ 64%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/FontEngine/NullFontEngine.cpp.o
[ 65%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/FontEngine/WinFontEngine.cpp.o
[ 65%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/NullPaintEngine.cpp.o
[ 66%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintAction.cpp.o
[ 67%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintCalc.cpp.o
[ 67%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintCmd.cpp.o
[ 68%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintContext.cpp.o
[ 68%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintEngine.cpp.o
[ 69%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintRender.cpp.o
[ 69%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintState.cpp.o
[ 70%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/PaintEngine/RasterPaintWorker.cpp.o
[ 70%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine/Init_C.cpp.o
[ 71%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine/Init_MMX.cpp.o
[ 71%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine/Init_MMX3dNow.cpp.o
[ 72%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine/Init_MMXSSE.cpp.o
[ 73%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine/Init_SSE2.cpp.o
[ 73%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Graphics/RasterEngine/Init_SSSE3.cpp.o
[ 74%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Animation.cpp.o
[ 74%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/BorderLayout.cpp.o
[ 75%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/BoxLayout.cpp.o
[ 75%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Button.cpp.o
[ 76%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/ButtonBase.cpp.o
[ 76%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/CheckBox.cpp.o
[ 77%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Composite.cpp.o
[ 78%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Event.cpp.o
[ 78%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/FlowLayout.cpp.o
[ 79%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Frame.cpp.o
[ 79%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/GridLayout.cpp.o
[ 80%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/GroupBox.cpp.o
[ 80%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/GuiEngine.cpp.o
[ 81%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Layout.cpp.o
[ 81%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/LayoutHint.cpp.o
[ 82%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/LayoutItem.cpp.o
[ 82%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/LayoutUtil.cpp.o
[ 83%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Margin.cpp.o
[ 84%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/MenuBar.cpp.o
[ 84%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/MenuItem.cpp.o
[ 85%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/MenuSeparator.cpp.o
[ 85%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/RadioButton.cpp.o
[ 86%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/ScrollArea.cpp.o
[ 86%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/ScrollBar.cpp.o
[ 87%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/TextArea.cpp.o
[ 87%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/TextField.cpp.o
[ 88%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/ThemeEngine.cpp.o
[ 89%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/ToolBar.cpp.o
[ 89%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/ToolButton.cpp.o
[ 90%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Widget.cpp.o
[ 90%] Building CXX object CMakeFiles/Fog.dir/Fog/Gui/Window.cpp.o
[ 91%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Gui/ThemeEngine/DefaultThemeEngine.cpp.o
[ 91%] Building CXX object 
CMakeFiles/Fog.dir/Fog/Gui/ThemeEngine/WinThemeEngine.cpp.o
[ 92%] Building CXX object CMakeFiles/Fog.dir/Fog/Svg/SvgBase.cpp.o
[ 92%] Building CXX object CMakeFiles/Fog.dir/Fog/Svg/SvgContext.cpp.o
[ 93%] Building CXX object CMakeFiles/Fog.dir/Fog/Svg/SvgDom.cpp.o
[ 93%] Building CXX object CMakeFiles/Fog.dir/Fog/Svg/SvgUtil.cpp.o
[ 94%] Building CXX object CMakeFiles/Fog.dir/Fog/Xml/XmlDom.cpp.o
[ 95%] Building CXX object CMakeFiles/Fog.dir/Fog/Xml/XmlEntity.cpp.o
[ 95%] Building CXX object CMakeFiles/Fog.dir/Fog/Xml/XmlReader.cpp.o
[ 96%] Building CXX object CMakeFiles/Fog.dir/Fog/Xml/XmlWriter.cpp.o
Linking CXX shared library libFog.so
[ 96%] Built target Fog
Scanning dependencies of target FogAnim
[ 96%] Building CXX object CMakeFiles/FogAnim.dir/Examples/FogAnim.cpp.o
Linking CXX executable FogAnim
[ 96%] Built target FogAnim
Scanning dependencies of target FogBlur
[ 97%] Building CXX object CMakeFiles/FogBlur.dir/Examples/FogBlur.cpp.o
Linking CXX executable FogBlur
[ 97%] Built target FogBlur
Scanning dependencies of target FogComposite
[ 97%] Building CXX object 
CMakeFiles/FogComposite.dir/Examples/FogComposite.cpp.o
Linking CXX executable FogComposite
[ 97%] Built target FogComposite
Scanning dependencies of target FogGradients
[ 98%] Building CXX object 
CMakeFiles/FogGradients.dir/Examples/FogGradients.cpp.o
Linking CXX executable FogGradients
[ 98%] Built target FogGradients
Scanning dependencies of target FogSvgView
[ 98%] Building CXX object CMakeFiles/FogSvgView.dir/Examples/FogSvgView.cpp.o
Linking CXX executable FogSvgView
[ 98%] Built target FogSvgView
Scanning dependencies of target FogTest
[ 99%] Building CXX object CMakeFiles/FogTest.dir/Examples/FogTest.cpp.o
Linking CXX executable FogTest
[ 99%] Built target FogTest
Scanning dependencies of target Fog_Gui_X11
[100%] Building CXX object 
CMakeFiles/Fog_Gui_X11.dir/Fog/Gui/GuiEngine/X11GuiEngine.cpp.o
Linking CXX shared library libFog_Gui_X11.so
[100%] Built target Fog_Gui_X11

3. Exec the binaries for testing
renaud@daneel:~/svnco/fog-read-only$ cd build/

What is the expected output? What do you see instead?
− FogBlur only draw void squares (paintImage does nothing?)
− Same for FogComposite
− ./FogGradients −> Linear gradients are weird (are they?), check 
FogGradients.png
− ./FogSvgView SVG_Simple_Logo.svg (from 
http://upload.wikimedia.org/wikipedia/commons/2/22/SVG_Simple_Logo.svg) works 
OK but the V letter rendering is bad, check FogSvgView.png
− FogTest: KEY_C clip works but UP/DOWN/LEFT/RIGHT don't

(./FogAnim seems to work OK)


What version of the product are you using?

renaud@daneel:~/svnco/fog-read-only$ svn diff
Index: Fog/CMakeLists.txt
===================================================================
--- Fog/CMakeLists.txt  (révision 623)
+++ Fog/CMakeLists.txt  (copie de travail)
@@ -7,10 +7,10 @@
 # =============================================================================

 # Whether to build examples.
-# Set(FOG_BUILD_EXAMPLES TRUE)
+Set(FOG_BUILD_EXAMPLES TRUE)

 # Whether to build support for X11.
-# Set(FOG_BUILD_GUI_X11 TRUE)
+Set(FOG_BUILD_GUI_X11 TRUE)

 # =============================================================================
 # [Basics]

On what operating system? Debian amd64 testing.

Please provide any additional information below.
Local libpng version 1.5.1

Maybe it will be nice to use CTest and provide more unit testing. I could help 
if needed.

Best regards,

Renaud

Original issue reported on code.google.com by [email protected] on 24 Mar 2011 at 6:33

Attachments:

GetGlyphOutlineW returned dataSize is not based on directly on gmBlackBoxY

Getting assert:
  FOG_ASSERT(dataSize == bitmapd->stride * bitmapd->height);

As bitmap not allocated to correct size based on dataSize returned
from GetGlyphOutlineW.

Code fix is below.



GlyphData* WinFontFace::renderGlyph(HDC hdc, uint32_t uc)
{
  // renderBegin() must be called before
  FOG_ASSERT(hdc);

  GlyphData* glyphd = NULL;
  ImageData* bitmapd = NULL;

  GLYPHMETRICS gm;
  ZeroMemory(&gm, sizeof(gm));

  MAT2 mat2;

  if (transform.isIdentity())
  {
    mat2 = mat2identity;
  }
  else
  {
    mat2.eM11 = FloatToFIXED(transform._00);
    mat2.eM12 = FloatToFIXED(transform._01);
    mat2.eM21 = FloatToFIXED(transform._10);
    mat2.eM22 = FloatToFIXED(transform._11);
  }

  uint32_t dataSize = GetGlyphOutlineW(hdc, uc, GGO_GRAY8_BITMAP, &gm, 0, NULL, &mat2);

  // GetGlyphOutline() fails when being called for GGO_GRAY8_BITMAP and white space.
  if (dataSize == GDI_ERROR)
  {
    dataSize = GetGlyphOutlineW(hdc, uc, GGO_METRICS, &gm, 0, NULL, &mat2);
    if (dataSize == GDI_ERROR) return NULL;
    dataSize = 0;
  }

  glyphd = fog_new GlyphData();
  if (glyphd == NULL) return NULL;

  // Whitespace?
  if (dataSize == 0) gm.gmBlackBoxX = gm.gmBlackBoxY = 0;

  glyphd->offset.set(gm.gmptGlyphOrigin.x, (int)metrics.getAscent() - gm.gmptGlyphOrigin.y);
  glyphd->beginWidth = 0;
  glyphd->endWidth = 0;

  glyphd->advance = gm.gmCellIncX;
  // glyphd->advanceY = -gm.gmCellIncY;

  // Whitespace? We are done
  if (dataSize == 0) return glyphd;

  // dataSize returned by GetGlyphOutlineW is not always based on gm.bmBlackBoxY
  // so wee need to get the correct height using the stride and the dataSize returned by GetGlyphOutlineW
  int stride = (gm.gmBlackBoxX + 3) & ~3 ;
  int bmheight = dataSize / stride ;

  // Alloc image for glyph
  if (glyphd->bitmap.create(gm.gmBlackBoxX, bmheight, IMAGE_FORMAT_A8) != ERR_OK)
  {
    fog_delete(glyphd);
    return NULL;
  }
  bitmapd = glyphd->bitmap._d;

  // Fog library should align scanlines to 32 bits like Windows does.
  FOG_ASSERT((bitmapd->stride & 0x3) == 0);
  // This should be also equal.
  FOG_ASSERT(dataSize == bitmapd->stride * bitmapd->height);

  dataSize = GetGlyphOutlineW(hdc, uc, GGO_GRAY8_BITMAP, &gm, dataSize, bitmapd->data, &mat2);
  // If previous call to GetGlyphOutlineW was ok, this should be also ok, but nobody knows.
  if (dataSize == GDI_ERROR)
  {
    fog_delete(glyphd);
    return NULL;
  }

  // Fog is using 256 level of antialiasing so extend the glyph provided by
  // Windows (that uses only 64 levels).
  uint32_t x, y;
  for (y = 0; y != gm.gmBlackBoxY; y++)
  {
    uint8_t* p = bitmapd->first + y * bitmapd->stride;
    for (x = 0; x < gm.gmBlackBoxX; x++)
    {
      uint8_t p0 = p[0];
      *p++ = (p0 > 63) ? (0xFF) : (p0 << 2) | (p0 & 0x03);
    }
  }

  return glyphd;
}


Original issue reported on code.google.com by [email protected] on 1 Nov 2010 at 12:56

Linux error when compile

Hi, I'm not able to complile Fog libraries on my system.
I would like use Fog in my Qt Application because QGraphicsView is very slow 
for my drawings.
Can I help me? Thanks in advance. :D

What steps will reproduce the problem?
1. svn co r880

2. Configure
spire@Johnny /opt/fog-read-only/Fog/Util $ sh configure-unix-makefiles-dbg.sh 
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Created Fog-Framework project (FOG_BUILD_SLAVE not enabled).

== ====================================================
== [Fog-Framework - Normal Build (Debug)]
== ====================================================

-- Build Slave - Disabled
-- Build Nothing - Disabled
-- Build Static - Disabled
-- Build Fog/UI - Enabled
-- Build Fog/UI(X11) - Enabled

-- Initializing FOG_DIR=/opt/fog-read-only/Fog
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Detected Compiler - GNU
-- Performing Test FOG_CC_HAS_CPP0X
-- Performing Test FOG_CC_HAS_CPP0X - Success
-- Performing Test FOG_CC_HAS_FLTO
-- Performing Test FOG_CC_HAS_FLTO - Success
-- Performing Test FOG_CC_HAS_INLINE_FUNCTIONS
-- Performing Test FOG_CC_HAS_INLINE_FUNCTIONS - Success
-- Performing Test FOG_CC_HAS_FMERGE_ALL_CONSTANTS
-- Performing Test FOG_CC_HAS_FMERGE_ALL_CONSTANTS - Success
-- Performing Test FOG_CC_HAS_FNO_KEEP_STATIC_CONSTS
-- Performing Test FOG_CC_HAS_FNO_KEEP_STATIC_CONSTS - Success
-- Performing Test FOG_CC_HAS_WINLINE
-- Performing Test FOG_CC_HAS_WINLINE - Success
-- Performing Test FOG_CC_HAS_WNO_ENUM_COMPARE
-- Performing Test FOG_CC_HAS_WNO_ENUM_COMPARE - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of void*
-- Check size of void* - done
-- Looking for include files FOG_HAVE_FLOAT_H
-- Looking for include files FOG_HAVE_FLOAT_H - found
-- Looking for include files FOG_HAVE_LIMITS_H
-- Looking for include files FOG_HAVE_LIMITS_H - found
-- Looking for include files FOG_HAVE_STDARG_H
-- Looking for include files FOG_HAVE_STDARG_H - found
-- Looking for include files FOG_HAVE_STDINT_H
-- Looking for include files FOG_HAVE_STDINT_H - found
-- Looking for include files FOG_HAVE_UNISTD_H
-- Looking for include files FOG_HAVE_UNISTD_H - found
-- Looking for include files FOG_HAVE_FENV_H
-- Looking for include files FOG_HAVE_FENV_H - found
-- Looking for include files FOG_HAVE_DLFCN_H
-- Looking for include files FOG_HAVE_DLFCN_H - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Configuring Fog/Core
   Added optimized file Src/Fog/Core/Tools/List_SSE2.cpp (SSE2)
-- Configuring Fog/G2d
   Added optimized file Src/Fog/G2d/Geometry/PathClipper_SSE.cpp (SSE)
   Added optimized file Src/Fog/G2d/Geometry/Transform_SSE.cpp (SSE)
   Added optimized file Src/Fog/G2d/Geometry/PathClipper_SSE2.cpp (SSE2)
   Added optimized file Src/Fog/G2d/Geometry/Transform_SSE2.cpp (SSE2)
   Added optimized file Src/Fog/G2d/Imaging/ImageResize_SSE2.cpp (SSE2)
   Added optimized file Src/Fog/G2d/Imaging/Filters/FeColorMatrix_SSE.cpp (SSE)
-- Looking for include files FOG_HAVE_LIBJPEG
-- Looking for include files FOG_HAVE_LIBJPEG - found
-- Looking for include files FOG_HAVE_LIBPNG
-- Looking for include files FOG_HAVE_LIBPNG - found
   Added optimized file Src/Fog/G2d/Painting/RasterPaintEngine_SSE2.cpp (SSE2)
   Added optimized file Src/Fog/G2d/Source/Color_SSE2.cpp (SSE2)
-- Looking for include files FOG_HAVE_FONTCONFIG
-- Looking for include files FOG_HAVE_FONTCONFIG - found
   Added optimized file Src/Fog/G2d/Tools/Region_SSE2.cpp (SSE2)
-- Configuring Fog/UI
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/fog-read-only/Fog/Build
spire@Johnny /opt/fog-read-only/Fog/Util $ 

3. Compile

spire@Johnny /opt/fog-read-only/Fog/Util $ cd ../Build/
spire@Johnny /opt/fog-read-only/Fog/Build $ make
Scanning dependencies of target Fog
[  0%] Building CXX object CMakeFiles/Fog.dir/Src/Fog/Core/Dom/Dom.cpp.o
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
size_t Fog::DomElement::_getPropertyIndex(const Fog::InternedStringW&) const’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: ‘<::’ cannot 
begin a template-argument list [-fpermissive]
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: (if you use 
‘-fpermissive’ G++ will accept your code)
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
size_t Fog::DomElement::_getPropertyIndex(const Fog::CharW*, size_t) const’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: ‘<::’ cannot 
begin a template-argument list [-fpermissive]
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
err_t Fog::DomElement::_getPropertyInfo(size_t, Fog::PropertyInfo&) const’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: ‘<::’ cannot 
begin a template-argument list [-fpermissive]
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
err_t Fog::DomElement::_getProperty(size_t, Fog::StringW&) const’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: ‘<::’ cannot 
begin a template-argument list [-fpermissive]
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
err_t Fog::DomElement::_setProperty(size_t, const Fog::StringW&)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: ‘<::’ cannot 
begin a template-argument list [-fpermissive]
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected ‘]’ 
before ‘)’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected ‘{’ 
before ‘)’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
err_t Fog::DomElement::_setProperty(size_t, const Fog::StringW&)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: expected ‘)’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘virtual 
err_t Fog::DomElement::_resetProperty(size_t)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: error: ‘<::’ cannot 
begin a template-argument list [-fpermissive]
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1913:1: note: ‘<:’ is an 
alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘]’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘{’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘)’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘]’ 
before ‘,’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1914:3: error: expected ‘{’ 
before ‘,’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘]’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘{’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘)’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘]’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘{’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1915:3: error: expected ‘)’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘]’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘{’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘)’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘<’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected 
type-specifier before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘>’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘(’ 
before ‘<:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected 
identifier before ‘:’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘]’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In lambda function:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘{’ 
before ‘;’ token
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp: In member function ‘size_t 
Fog::DomElement::_handleProperty(size_t, const void*, void*)’:
/opt/fog-read-only/Fog/Src/Fog/Core/Dom/Dom.cpp:1916:1: error: expected ‘)’ 
before ‘;’ token
make[2]: *** [CMakeFiles/Fog.dir/Src/Fog/Core/Dom/Dom.cpp.o] Error 1
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
make: *** [all] Error 2
spire@Johnny /opt/fog-read-only/Fog/Build $ 

What version of the product are you using? On what operating system?
I'm using Linux Mint 12 based on Ubuntu 11.10

Please provide any additional information below.
gcc/g++ 4.6.1


Original issue reported on code.google.com by [email protected] on 3 Feb 2012 at 2:09

Doxygen process is not portable

What steps will reproduce the problem?
1. doxygen Doxygen

What is the expected output? What do you see instead?
sh: C:/Program Files/HTML Help Workshop/hhc.exe: not found

What version of the product are you using? On what operating system?
svn r623 / Debian GNU/Linux

Please provide any additional information below.
− Doxygen should be renamed to Doxyfile (since it is the standard naming 
scheme). Nothing is wrong but the fact that the configuration file is named 
Doxygen is just… disapointing. More over, the file permissions on GNU/Linux 
are not set correctly on that file (to be verified). exec bits must be set to 0.
− Since Fog aims to be portable, the doxygen process should be. chm is not 
portable and should be excluded de facto from the doc generation process.
− I suggest to include the doxygen processing to the build process.

Best regards,

Renaud

Original issue reported on code.google.com by [email protected] on 24 Mar 2011 at 7:21

typo in varname

 ALIGNMENT_CENTER   = ALIGNMENT_VCENTER | ALIGNMENT_VCENTER, // Centers in
both dimensions.

One should be H not V

Original issue reported on code.google.com by [email protected] on 14 Apr 2010 at 7:35

Many errors

Steps:
1. Get fog from svn
2. Enable Fog-UI, Fog-UI-X11, Fog-UI-X11 Module
3. cmake -i
4. make
5. enjoy your errors (G2d/Text/OpenType/OTEnum.h needs 
G2d/Text/OpenType/OTapi.h, not OTAPI.h; UI/Engine/X11UIEngineWindow.cpp has 
errors because members of  requested are lacking prefixed underscore (around 
lines 611-621); UI/Engine/X11UIEventLoopImpl.cpp is looking for absent file 
Core/Tools/ManagedString.h, and "APPLICATION_UI_X11" and "FOG_STR_")

OS: CentOS 6 x86_64

Original issue reported on code.google.com by [email protected] on 22 Sep 2012 at 1:59

Library shouldn't shutdown on failure

If there is assertion failure or some problem and exit() or similar method
is called, Fog library will shutdown using standard fog_shutdown() method.
See Fog/Core/Init.cpp.

This is problem, because for example Fog::ThreadPool wants to destroy all
threads and if some problem was in thread owned by ThreadPool then library
never exit, instead there will be message:

"""
Fog::ThreadPool::~ThreadPool() - Destroying instance, but some threads are
still used, waiting...
"""

This is problem and it must be solved. Maybe using flag fog_failed or
something like this?

Original issue reported on code.google.com by kobalicek.petr on 12 Dec 2009 at 4:09

sincosf() and sincos() are not availble under Mac OS X with GCC 4.2

The methods sincosf() and sincos() don't seem to be available under Mac OS
X when trying to compile with GCC 4.2 (brought by XCode). In order to make
it working #if defined(FOG_CC_GNU) ... has to be changed to #if
defined(FOG_CC_GNU) && !defined(FOG_OS_MAC) ... or something similar. 

The problem might be that sincosf() and sincos() are just GNU extensions?

Original issue reported on code.google.com by [email protected] on 31 Jan 2010 at 12:02

windows MinGW release version can't compile

D:\Work\Library\fog\Fog\Build>mingw32-make
Scanning dependencies of target Fog
[  0%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Collection/Util.cpp.obj
In file included from D:/Work/Library/fog/Fog/Fog/Core/C++/IntrinMMX.h:12:0,
                 from D:/Work/Library/fog/Fog/Fog/Core/C++/StdHeaders.h:35,
                 from D:/Work/Library/fog/Fog/Fog/Core/C++/Base.h:21,
                 from D:/Work/Library/fog/Fog/Fog/Core/Global/Global.h:11,
                 from D:/Work/Library/fog/Fog/Fog/Core/Collection/Util.h:11,
                 from D:\Work\Library\fog\Fog\Fog\Core\Collection\Util.cpp:12:
d:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.6.1/include/mmintrin.h:32:3: error: #e
rror "MMX instruction set not enabled"
In file included from D:/Work/Library/fog/Fog/Fog/Core/C++/StdHeaders.h:35:0,
                 from D:/Work/Library/fog/Fog/Fog/Core/C++/Base.h:21,
                 from D:/Work/Library/fog/Fog/Fog/Core/Global/Global.h:11,
                 from D:/Work/Library/fog/Fog/Fog/Core/Collection/Util.h:11,
                 from D:\Work\Library\fog\Fog\Fog\Core\Collection\Util.cpp:12:
D:/Work/Library/fog/Fog/Fog/Core/C++/IntrinMMX.h:128:3: error: '__m64' does not
name a type
In file included from D:/Work/Library/fog/Fog/Fog/Core/Global/Global.h:13:0,
                 from D:/Work/Library/fog/Fog/Fog/Core/Collection/Util.h:11,
                 from D:\Work\Library\fog\Fog\Fog\Core\Collection\Util.cpp:12:
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1453:3: error: expected identifier
 before '*' token
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1453:3: warning: 'cdecl' attribute
 only applies to function types [-Wattributes]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1453:80: error: ISO C++ forbids de
claration of 'Range' with no type [-fpermissive]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1453:80: error: 'Range' declared a
s function returning a function
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1534:3: error: expected identifier
 before '*' token
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1534:3: warning: 'cdecl' attribute
 only applies to function types [-Wattributes]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1534:80: error: ISO C++ forbids de
claration of 'Range' with no type [-fpermissive]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1534:80: error: 'Range' declared a
s function returning a function
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1722:3: error: expected identifier
 before '*' token
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1722:3: warning: 'cdecl' attribute
 only applies to function types [-Wattributes]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1722:119: error: ISO C++ forbids d
eclaration of 'TransformF' with no type [-fpermissive]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1722:119: error: 'TransformF' decl
ared as function returning a function
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1734:3: error: expected identifier
 before '*' token
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1734:3: warning: 'cdecl' attribute
 only applies to function types [-Wattributes]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1734:87: error: ISO C++ forbids de
claration of 'PointF' with no type [-fpermissive]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1734:87: error: 'PointF' declared
as function returning a function
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1747:3: error: expected identifier
 before '*' token
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1747:3: warning: 'cdecl' attribute
 only applies to function types [-Wattributes]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1747:119: error: ISO C++ forbids d
eclaration of 'TransformD' with no type [-fpermissive]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1747:119: error: 'TransformD' decl
ared as function returning a function
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1764:3: error: expected identifier
 before '*' token
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1764:3: warning: 'cdecl' attribute
 only applies to function types [-Wattributes]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1764:87: error: ISO C++ forbids de
claration of 'PointD' with no type [-fpermissive]
D:/Work/Library/fog/Fog/Fog/Core/Global/Api.h:1764:87: error: 'PointD' declared
as function returning a function
mingw32-make[2]: *** [CMakeFiles/Fog.dir/Fog/Core/Collection/Util.cpp.obj] Error
 1
mingw32-make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
mingw32-make: *** [all] Error 2

D:\Work\Library\fog\Fog\Build>


Am I missing something?


Original issue reported on code.google.com by [email protected] on 12 Oct 2011 at 5:43

strnlen not available on GCC 4.4.2 (MacPorts)

On GCC 4.4.2 on Mac OS X (Snow Leopard) installed via MacPorts, there
doesn't seem to be the strnlen function available. On MinGW it's the same
thing, so perhaps the nlen function in StringUtils.h should look something
like this (unfortunately I don't know, how the Compiler Macros a really
called, so I used some pseudo macros): 

FOG_INLINE sysuint_t nlen(const char* s, sysuint_t maxlen) 
{
#ifdef FOG_MINGW || (FOG_MAC && GCC_44)
  for(int i=0; i<maxlen; ++i) 
    if(s[i] == '\0') 
      return i;
  return -1;
#else
  return ::strnlen(s, maxlen);
#endif
}


Original issue reported on code.google.com by [email protected] on 23 Nov 2009 at 12:04

Separated Build Targets - Improvement, not bug.

As it stands, I can see that Fog compiles everything into one binary blob. I 
would personally like to be able to compile and use only the rendering part of 
the library as the backend of my own 2D solution.


Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 1:21

OSX build fails because of two _FOG_NO_COPY() uses

It seems like those two have been forgotten. The patch is quite straightforward:

Index: Fog/Src/Fog/Core/OS/MacScopedAutoReleasePool.h
===================================================================
--- Fog/Src/Fog/Core/OS/MacScopedAutoReleasePool.h  (revision 975)
+++ Fog/Src/Fog/Core/OS/MacScopedAutoReleasePool.h  (working copy)
@@ -42,7 +42,7 @@
   NSAutoreleasePool* _pool;

 private:
-  _FOG_NO_COPY(MacScopedAutoReleasePool)
+  FOG_NO_COPY(MacScopedAutoReleasePool)
 };

 } // Fog namespace
Index: Fog/Src/Fog/UI/Engine/MacUIEngineWindow.h
===================================================================
--- Fog/Src/Fog/UI/Engine/MacUIEngineWindow.h   (revision 975)
+++ Fog/Src/Fog/UI/Engine/MacUIEngineWindow.h   (working copy)
@@ -125,7 +125,7 @@
   Image _bufferImage;

 private:
-  _FOG_NO_COPY(MacUIEngineWindowImpl)
+  FOG_NO_COPY(MacUIEngineWindowImpl)
 };

 //! @}

Original issue reported on code.google.com by [email protected] on 7 Mar 2012 at 1:05

Font scaling in drawText - Strange behaviour


If you have a transform that in not identity for the canvas and
your ctx.hints.tranformType is >= RASTER_TRANSFORM_SUBPX,
your font is scaled by the outer transform but if you patch the
ctx.hints.tranformType to 0 as shown below the font is drawn at the correct 
scale.

Not sure how to fix this issue as the path returned from font.getOutline(text, 
tmpPath0) should not be scaled a second time.




err_t RasterPaintEngine::drawText(const PointI& pt_, const String& text, const 
Font& font, const RectI* clip_)
{
  RASTER_ENTER_PAINT_FUNC();

  // TODO: Not optimal, no clip used.

 // ctx.hints.transformType = 0 ; // Add to verify path was scaled twice not just once

  if (ctx.hints.transformType >= RASTER_TRANSFORM_SUBPX || ctx.hints.forceOutlineText)
  {
    tmpPath0.clear();
    FOG_RETURN_ON_ERROR(font.getOutline(text, tmpPath0));
    tmpPath0.translate((double)pt_.x, (double)pt_.y + font.getAscent());
    return _serializePaintPath(tmpPath0, false);
  }
  else
  {
    int tx = ctx.finalTranslate.x;
    int ty = ctx.finalTranslate.y;

    PointI pt(pt_.x + tx, pt_.y + ty);
    RectI clip;

    if (clip_)
    {
      clip.set(clip_->x + tx, clip_->y + ty, clip_->w, clip_->h);
      clip_ = &clip;
    }

    tmpGlyphSet.clear();
    FOG_RETURN_ON_ERROR(font.getGlyphSet(text.getData(), text.getLength(), tmpGlyphSet));

    return _serializePaintGlyphSet(pt, tmpGlyphSet, clip_);
  }
}


Original issue reported on code.google.com by [email protected] on 1 Nov 2010 at 1:01

libFog.dll link failed on MingW64 GCC 4.6.0

What steps will reproduce the problem?
I encountered build errors while building on Windows 7 64-bit OS using MingW64 
compiler, but I managed to make it compile the sources successfully but the 
final DLL linking it failed with undefined references.

What is the expected output? What do you see instead?
Instead of successful linking the DLL I saw:

Linking CXX shared library libFog.dll
Creating library file: libFog.dll.a
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x55ce): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkD, Fog::PathRasterizer8::CellD, 0, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5618): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkD, Fog::PathRasterizer8::CellD, 1, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5647): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkQ, Fog::PathRasterizer8::CellQ, 0, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5665): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkQ, Fog::PathRasterizer8::CellQ, 1, 
1>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'
CMakeFiles\Fog.dir/objects.a(Rasterizer.cpp.obj):Rasterizer.cpp:(.text+0x5694): 
undefined reference to `void Fog::PathRasterizer8_re
nder_st_clip_mask<Fog::PathRasterizer8::ChunkD, Fog::PathRasterizer8::CellD, 1, 
0>(Fog::PathRasterizer8*, Fog::RasterFiller*, Fog::R
asterScanline8*, Fog::MemoryBuffer*)'

What version of the product are you using? On what operating system?
Latest SVN on Windows 7 64-bit OS using MingW64 GCC 4.6.0

Please provide any additional information below.
I attach a patch I made to compile the sources on the mentioned 
platform/compiler

Original issue reported on code.google.com by [email protected] on 10 Aug 2011 at 5:23

Attachments:

VIZERRA: problem with visualization

We have some problem with properly visualization of graphic files, such as 
color filling (not correct color in some examples), don't  all  data are appear 
(text and shapes). I was attaching an example of the svg file.


What version of the product are you using? On what operating system?
version: 2010-05-19, OS: vista/Windows7 x64

Original issue reported on code.google.com by [email protected] on 10 Mar 2011 at 11:50

Attachments:

About onPrepare,onPrepare,onPattern

Hi, Can you tell me what means about the function "onPrepare","onPrepare" 
,"onPattern" in SvgElement ?
Sorry ,the time of learning the fog is very short, I can't understand……

Original issue reported on code.google.com by [email protected] on 14 Sep 2011 at 4:04

Release build crashing on Linux

FogAnim crashes after a while in release build on Linux. According to GDB in 
Fog::RasterEngine::CompositeBaseFuncsSSE2<Fog::RasterEngine::CompositeScreen
SSE2>::xrgb32_cblit_prgb32_span(unsigned char*, Fog::RasterSolid const*, 
Fog::Span const*, Fog::RasterClosure const*)

FogTest does show nothing when run (just a window frame), when resizing the 
frame it crashes. 
Fog::RasterEngine::PatternGradientC::fetch_linear_subxy_pad(Fog::RasterPatte
rn const*, Fog::Span*, unsigned char*, int, unsigned int)

Compiled with GCC 4.5 with default flags as set in CMakeLists.txt.

Original issue reported on code.google.com by [email protected] on 31 May 2010 at 12:06

control87 errors on MinGW

[ 33%] Building CXX object CMakeFiles/Fog.dir/Src/Fog/Core/Tools/StringUtil_dtoa
.cpp.obj
C:\Users\BigMia\fog\Fog\Src\Fog\Core\Tools\StringUtil_dtoa.cpp: In Funktion 
»voi
d Fog::StringUtil_dtoa(Fog::NTOAContext*, double, uint32_t, int)«:
C:\Users\BigMia\fog\Fog\Src\Fog\Core\Tools\StringUtil_dtoa.cpp:1240:3: Fehler: 
»
_control87« wurde in diesem Gültigkeitsbereich nicht definiert
C:\Users\BigMia\fog\Fog\Src\Fog\Core\Tools\StringUtil_dtoa.cpp:1289:5: Fehler: 
»
_clear87« wurde in diesem Gültigkeitsbereich nicht definiert
C:\Users\BigMia\fog\Fog\Src\Fog\Core\Tools\StringUtil_dtoa.cpp:1318:5: Fehler: 
»
_clear87« wurde in diesem Gültigkeitsbereich nicht definiert
C:\Users\BigMia\fog\Fog\Src\Fog\Core\Tools\StringUtil_dtoa.cpp:1998:3: Fehler: 
»
_clear87« wurde in diesem Gültigkeitsbereich nicht definiert
mingw32-make[3]: *** [CMakeFiles/Fog.dir/Src/Fog/Core/Tools/StringUtil_dtoa.cpp.
obj] Error 1
mingw32-make[2]: *** [CMakeFiles/Fog.dir/all] Error 2
mingw32-make[1]: *** [all] Error 2


I am trying to compile the latest version ...


on windows 7 x64 with MinGW

Original issue reported on code.google.com by [email protected] on 13 Sep 2012 at 6:58

Compilation errors with OTCore.h

I'm running Funtoo. When I compile the source (after applying the patches I 
attached in issue #42), I get the following error (with svn 969). The only 
non-default cmake parameters I'm using are -DFOG_BUILD_UI=ON 
-DFOG_BUILD_UI_X11=ON -DFOG_BUILD_UI_X11_MODULE=ON.

[ 92%] Building CXX object 
CMakeFiles/Fog.dir/Src/Fog/G2d/Text/OpenType/OTCore.cpp.o
In file included from 
/var/tmp/portage/media-libs/fog-9999/work/fog-9999/Fog/Src/Fog/G2d/Text/OpenType
/OTCore.cpp:7:0:
/var/tmp/portage/media-libs/fog-9999/work/fog-9999/Fog/Src/Fog/G2d/Text/OpenType
/OTCore.h:595:3: error: ‘LONG’ does not name a type
/var/tmp/portage/media-libs/fog-9999/work/fog-9999/Fog/Src/Fog/G2d/Text/OpenType
/OTCore.h:596:3: error: ‘ULONG’ does not name a type
/var/tmp/portage/media-libs/fog-9999/work/fog-9999/Fog/Src/Fog/G2d/Text/OpenType
/OTCore.h: In member function ‘uint64_t Fog::OT_DateTime::asUInt64() const’:
/var/tmp/portage/media-libs/fog-9999/work/fog-9999/Fog/Src/Fog/G2d/Text/OpenType
/OTCore.h:588:35: error: ‘hi’ was not declared in this scope
/var/tmp/portage/media-libs/fog-9999/work/fog-9999/Fog/Src/Fog/G2d/Text/OpenType
/OTCore.h:588:70: error: ‘lo’ was not declared in this scope
make[2]: *** [CMakeFiles/Fog.dir/Src/Fog/G2d/Text/OpenType/OTCore.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:51

drawImage not correct result

What steps will reproduce the problem?

If you take tileFillPattern1.png as your source image
and using a scale width and height by .5 you get tileFillPattern2.png.   

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

The right and bottom edges should be filled black but the image is only 
stretched to 15x15 instead of 16x16?

There is something wrong in the transforms causing rounding issues.



Original issue reported on code.google.com by [email protected] on 30 Nov 2010 at 3:18

Attachments:

Compilation Failed on MinGW

What steps will reproduce the problem?
1. Run release config script for windows.
2. cd to Build directory and make

What is the expected output? What do you see instead?
Expected successful compilation, instead got the following.

C:\version-controlled\fog-read-only\Fog/Fog/Core/Tools/String.h:115:21: sorry, 
unimplemented: inlining failed in call to 'size_t Fog::String::getReference() 
const': function not inlinable
C:\version-controlled\fog-read-only\Fog/Fog/Core/Tools/String.h:117:60: sorry, 
unimplemented: called from here
make[2]: *** [CMakeFiles/Fog.dir/Fog/Core/Collection/List.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
make: *** [all] Error 2


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

Please provide any additional information below.
MinGW GCC reports a version of 4.5.2


Original issue reported on code.google.com by [email protected] on 8 Sep 2011 at 1:24

Forcing inlining gives an error with MingW64 compiler

I've got a new patch to loosen the inlining defined for MingW64 compilers.
It's just a workaround though, so it needs more investigation.

According to the C++ standard, methods that are defined inside the class 
declaration block are inline by nature, so I think it doesn't need to be forced 
to inline and better leave the decision to the compiler.

Inlining doesn't mean always "fast", there are better alternative optimization 
methods like LTO(link-time optimizations or code generation) and profile-based 
optimizations.

Cheers!
Jay

Index: Fog/Core/C++/CompilerGcc.h
===================================================================
--- Fog/Core/C++/CompilerGcc.h  (revision 772)
+++ Fog/Core/C++/CompilerGcc.h  (working copy)
@@ -21,7 +21,12 @@
 #endif

 // Standard attributes.
-#define FOG_INLINE inline __attribute__((always_inline))
+// FIXME: Forcing inlining for some methods gives a compiler error under 
MingW64
+#if defined(__MINGW32__)
+# define FOG_INLINE inline
+#else
+# define FOG_INLINE inline __attribute__((always_inline))
+#endif
 #define FOG_NO_INLINE __attribute__((noinline))
 #define FOG_NO_RETURN __attribute__((noreturn))
 #define FOG_DEPRECATED __attribute__((deprecated))

Original issue reported on code.google.com by [email protected] on 11 Oct 2011 at 11:48

Clip to paths and stablity

When clipping to paths get FOG_ASSERTS on out of range checks on the spans.

Any attempt to fix this and I get it working for some cases but not all.

Sometime I then get asserts in memory operations.

Is there any stable build of FOG where all graphic and clipping operations 
actually work.

I like the performance when it does but it has to be stable as well.


Original issue reported on code.google.com by [email protected] on 10 Nov 2010 at 10:50

Painter::drawPoint(), bila na bilem pozadi, artefakty

Kdyz kreslim nekolik bilych bodu s tloustkou cary napr. 15 do obrazku na
bilem pozadi, renderuji se do nej artefakty (takovy maly tecky a carky),
viz. screenshot. Prikladam i kod, jedna se o takovou stupidni aplikaci,
ktera skoro nic neumi a je tam jakysi pokus o kreslici canvas. Ale v
podstate je to tam nejak takto

Image im(500, 350, Image::FormatARGB32);
im.clear(0xffffffff);
Painter p(im);
p.setSource(0xffffffff);
p.setLineWidth(15);
p.drawPoint(tam_kde_bylo_kliknuto_mysi);
p.end();

Original issue reported on code.google.com by [email protected] on 16 Jul 2009 at 5:00

Attachments:

Crash in Painter::flush() after SVG rendering

Fog's SVG render test application crashes in Painter::flush() call after
rendering
http://svn.berlios.de/svnroot/repos/haiku/haiku/trunk/data/artwork/HAIKU%20logo%
20-%20black.svg
with SvgDocument::onRender().

Original issue reported on code.google.com by [email protected] on 16 Sep 2009 at 8:53

Cannot build latest SVN versions

It is not possible for me to build Fog library with MSVC 2008 (amd64) for 
like 4 (maybe more) latest SVN commits. I get this:

[  1%] Building CXX object CMakeFiles/Fog.dir/Fog/Core/Application.cpp.obj
Application.cpp
c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Include\math.h(136) : 
warn
ing C4985: 'ceil': attributes not present on previous declaration.
        c:\Program Files (x86)\Microsoft Visual Studio 
9.0\VC\Include\intrin.h(1
42) : see declaration of 'ceil'
C:\Development\fog\Fog\Fog\Core\Application.cpp(335) : warning C4244: 
'argument'
 : conversion from 'sysuint_t' to 'DWORD', possible loss of data
C:\Development\fog\Fog\Fog/Core/Atomic.h(70) : error C2664: 
'Fog::AtomicInt64::g
et' : cannot convert parameter 1 from 'const __int64 *' to 'int64_t *'
        Conversion loses qualifiers
        C:\Development\fog\Fog\Fog/Core/Atomic.h(69) : while compiling 
class tem
plate member function 'sysuint_t Fog::AtomicOperation<T>::get(const T *)'
        with
        [
            T=sysuint_t
        ]
        C:\Development\fog\Fog\Fog/Core/Atomic.h(124) : see reference to 
class t
emplate instantiation 'Fog::AtomicOperation<T>' being compiled
        with
        [
            T=sysuint_t
        ]
        C:\Development\fog\Fog\Fog/Core/Atomic.h(124) : while compiling 
class te
mplate member function 'sysuint_t Fog::Atomic<T>::get(void) const'
        with
        [
            T=sysuint_t
        ]
        C:\Development\fog\Fog\Fog/Core/String.h(117) : see reference to 
class t
emplate instantiation 'Fog::Atomic<T>' being compiled
        with
        [
            T=sysuint_t
        ]
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe' : 
return
 code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 
9.0\
VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 
9.0\
VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.

Original issue reported on code.google.com by [email protected] on 21 Dec 2009 at 10:13

‘__m64’ does not name a type on Linux

What steps will reproduce the problem?
1. cmake .
2. make

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

Instead of successfully building I get:

Scanning dependencies of target Fog
[  0%] Building CXX object CMakeFiles/Fog.dir/Src/Fog/Core/Acc/Constants.cpp.o
In file included from 
/home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/C++/IntrinMmx.h:12:0,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/C++/StdHeaders.h:35,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/C++/Base.h:19,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/Acc/Constants.h:11,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/Acc/Constants.cpp:7:
/usr/lib/gcc/i686-linux-gnu/4.6/include/mmintrin.h:32:3: error: #error "MMX 
instruction set not enabled"
In file included from 
/home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/C++/StdHeaders.h:35:0,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/C++/Base.h:19,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/Acc/Constants.h:11,
                 from /home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/Acc/Constants.cpp:7:
/home/juanchi/Descargas/fog-read-only/Fog/Src/Fog/Core/C++/IntrinMmx.h:128:3: 
error: ‘__m64’ does not name a type
make[2]: *** [CMakeFiles/Fog.dir/Src/Fog/Core/Acc/Constants.cpp.o] Error 1
make[1]: *** [CMakeFiles/Fog.dir/all] Error 2
make: *** [all] Error 2


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

Checked out the source from svn. I'm running Ubuntu 12.04 32bits






Original issue reported on code.google.com by [email protected] on 14 Feb 2013 at 8:51

Several files reference files with names in wrong letter case

I'm running Funtoo Linux (a fork of Gentoo). While trying to compile the svn 
source 969 I get errors that certain files cannot be found. It turns out that 
several files have names that are in the wrong case. For example IntrinSse.h 
might be referenced, but that actual file is named IntrinSSE.h. I'm including 
diff patches to correct the issues I've found.

Original issue reported on code.google.com by [email protected] on 5 Mar 2012 at 10:45

Attachments:

VIZERRA: Hight and Width of document

For our project we need to get Height and Width of SVG-document, these data are 
contain in header of file, but I didn't find how to take it?


What version of the product are you using? On what operating system?
version: 2010-05-19, OS: vista x64


Original issue reported on code.google.com by [email protected] on 10 Mar 2011 at 11:55

about layout and button

i create a HBoxLayout and a Button, but i donn't know how add the button to 
hboxlayout and show on a window,can give some example?thanks.

Original issue reported on code.google.com by [email protected] on 10 Nov 2011 at 3:19

Windows compile error

VS2010 x32 compile FogBlend, FogGradient, etc with error:
...: error C2143: syntax error : missing ';' before '{'


Original issue reported on code.google.com by [email protected] on 29 Mar 2012 at 11:31

Multi-threaded version

hi,I am looking forward to fog mt version,
the Benchmarks show MT version be even faster to others.
But the function “RasterPaintSerializer_init_mt” is empty in the source 
code ? 
fog mt is not implemented ? 

Original issue reported on code.google.com by [email protected] on 31 Aug 2011 at 5:00

Framework not compiling on Mac Platform

Reproduction Steps:

1.Get latest release.
2.Cmake for xcode on mac.
3.Build in Xcode.

Expected output and issue:

The project is failing to compile. MacGuiEngine.h is including 
<Fog/Core/Mac/MacScopedAutoReleasePool.h> while this file is not found in the 
repository.

Original issue reported on code.google.com by [email protected] on 1 Dec 2011 at 1:05

drawimage skew all black

What steps will reproduce the problem?
1.transformed with skew
2.image pargb
3.backstair parbg

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

What version of the product are you using? On what operating system?
Current source, previously clippath failed but it works and now images fail it 
skewed

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Oct 2010 at 1:28

_FOG_RASTER_IMAGE_PARAMS is incorrect

Petr,

I came across this issue trying to use blitImage from image fragment and 
getting a blank result.

_FOG_RASTER_IMAGE_PARAMS macro defined in RasterPaintEngine.cpp and used in 
blitImage has incorrect test for image fragment validity. 

Currently it is using '-' for the test where '+' should be used:
...
if ((uint)(sX) >= (uint)sW || \
        (uint)(sY) >= (uint)sH || \
        (uint)(_ImageFragment_->w - sX) > (uint)sW || \
        (uint)(_ImageFragment_->h - sY) > (uint)sH) \
    { \
..

Correct  definition :
...
if ((uint)(sX) >= (uint)sW || \
        (uint)(sY) >= (uint)sH || \
        (uint)(_ImageFragment_->w + sX) > (uint)sW || \
        (uint)(_ImageFragment_->h + sY) > (uint)sH) \
    { \
...

Fixing this macro produced very nice results!
Thank you,
Pawel

Original issue reported on code.google.com by [email protected] on 9 Jan 2013 at 10:06

Library suffix on Mac OS X

Actually, library suffixes are:
- .dylib
- .bundle
- .so
But the library class (Core/Library.h) only allows to specify one suffix
(in this case: .bundle), so for example the freetype library cannot be loaded.

Original issue reported on code.google.com by [email protected] on 12 Dec 2009 at 11:05

Image_writeToStream leaks reference to stream

1. Write image to a file stream
2. Note that the file is locked by the application until the process exits

The bug appears to be in Image.cpp Image_writeToStream. The stream is attached 
to the ImageEncoder, but never detached before the encoder is destroyed, 
leaking a reference and causing the stream to remain open.

The stream should be detached either via the destruction of the encoder, or 
explicitly before returning from Image_writeToStream.


Original issue reported on code.google.com by [email protected] on 31 May 2012 at 9:22

how to render images in skia ]

What steps will reproduce the problem?
1.
2.
3.

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


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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 2 Nov 2011 at 9:16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.