Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] winGRASS master compilation error with cairo-1.17.2 #1562

Closed
hellik opened this issue May 1, 2021 · 1 comment · Fixed by #1697
Closed

[Bug] winGRASS master compilation error with cairo-1.17.2 #1562

hellik opened this issue May 1, 2021 · 1 comment · Fixed by #1697
Labels
bug Something isn't working windows Microsoft Windows specific

Comments

@hellik
Copy link
Member

hellik commented May 1, 2021

Describe the bug

while compiling winGRASS master (GRASS GIS 7.9.dev c395846) with cairo -1.17.2, I get

GRASS GIS 7.9.dev c395846d7 compilation log
--------------------------------------------------
Started compilation: Sat May  1 22:38:50 CEST 2021
--
Errors in:
/usr/src/grassng/grass_master/lib/cairodriver
/usr/src/grassng/grass_master/lib/display
/usr/src/grassng/grass_master/display/d.barscale
/usr/src/grassng/grass_master/display/d.colortable
/usr/src/grassng/grass_master/display/d.erase
/usr/src/grassng/grass_master/display/d.font
/usr/src/grassng/grass_master/display/d.fontlist
[...]

running make in the relevant folder

hkmyr@DESKTOP-VADT8Q4 MINGW64 /usr/src/grassng/grass_master/lib/cairodriver
$ make
gcc -shared -o /usr/src/grassng/grass_master/dist.x86_64-w64-mingw32/lib/libgrass_cairodriver.7.9.dll -L/usr/src/grassng/grass_master/dist.x86_64-w64-mingw32/lib -L/usr/src/grassng/grass_master/dist.x86_64-w64-mingw32/lib -Wl,--export-dynamic,--enable-runtime-pseudo-reloc  -LC:\OSGeo4W/lib   OBJ.x86_64-w64-mingw32/box.o OBJ.x86_64-w64-mingw32/color.o OBJ.x86_64-w64-mingw32/draw.o OBJ.x86_64-w64-mingw32/draw_bitmap.o OBJ.x86_64-w64-mingw32/driver.o OBJ.x86_64-w64-mingw32/erase.o OBJ.x86_64-w64-mingw32/graph.o OBJ.x86_64-w64-mingw32/line_width.o OBJ.x86_64-w64-mingw32/raster.o OBJ.x86_64-w64-mingw32/read.o OBJ.x86_64-w64-mingw32/read_bmp.o OBJ.x86_64-w64-mingw32/read_ppm.o OBJ.x86_64-w64-mingw32/read_xid.o OBJ.x86_64-w64-mingw32/set_window.o OBJ.x86_64-w64-mingw32/text.o OBJ.x86_64-w64-mingw32/write.o OBJ.x86_64-w64-mingw32/write_bmp.o OBJ.x86_64-w64-mingw32/write_ppm.o OBJ.x86_64-w64-mingw32/write_xid.o  -lgrass_driver.7.9 -lgrass_gis.7.9 -lintl -LC:/msys64/mingw64/lib -lcairo -lpng16 -lz -lfontconfig -lfreetype     -liconv
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: OBJ.x86_64-w64-mingw32/text.o: in function `set_font_fc':
C:\msys64\usr\src\grassng\grass_master\lib\cairodriver/text.c:202: undefined reference to `cairo_ft_font_face_create_for_pattern'
collect2.exe: error: ld returned 1 exit status
make: *** [../../include/Make/Shlib.make:10: /usr/src/grassng/grass_master/dist.x86_64-w64-mingw32/lib/libgrass_cairodriver.7.9.dll] Error 1

the related cairo lib is from /osgeo4w/testing/x86_64/release/cairo/

@hellik hellik added bug Something isn't working windows Microsoft Windows specific labels May 1, 2021
@neteler
Copy link
Member

neteler commented May 1, 2021

While old, this message may contain a hint (maybe you could verify that):

https://lists.freedesktop.org/archives/cairo/2012-January/022691.html

@nilason nilason linked a pull request Jul 1, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows Microsoft Windows specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants