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

Faild ninja build: FAILED: gfx/packing_rects_tests #57

Open
yudi-azvd opened this issue Mar 2, 2023 · 0 comments
Open

Faild ninja build: FAILED: gfx/packing_rects_tests #57

yudi-azvd opened this issue Mar 2, 2023 · 0 comments

Comments

@yudi-azvd
Copy link

yudi-azvd commented Mar 2, 2023

I tried following the compile section but I got a error when running ninja:

FAILED: gfx/packing_rects_tests 
: && /usr/bin/c++   gfx/CMakeFiles/packing_rects_tests.dir/packing_rects_tests.cpp.o -o gfx/packing_rects_tests  lib/libgtest.a  gfx/liblaf-gfx.a  -lpthread  base/liblaf-base.a  -lpthread  /usr/lib/x86_64-linux-gnu/libdl.so  /usr/lib/x86_64-linux-gnu/libGL.so  third_party/zlib/lib/libz.a  /usr/lib/x86_64-linux-gnu/libfontconfig.so && :
gfx/liblaf-gfx.a(packing_rects.cpp.o): In function `gfx::Region::createSubtraction(gfx::Region const&, gfx::Region const&)':
packing_rects.cpp:(.text._ZN3gfx6Region17createSubtractionERKS0_S2_[_ZN3gfx6Region17createSubtractionERKS0_S2_]+0x29): undefined reference to `SkRegion::op(SkRegion const&, SkRegion const&, SkRegion::Op)'
gfx/liblaf-gfx.a(packing_rects.cpp.o): In function `gfx::Region::~Region()':
packing_rects.cpp:(.text._ZN3gfx6RegionD2Ev[_ZN3gfx6RegionD5Ev]+0x14): undefined reference to `SkRegion::~SkRegion()'
gfx/liblaf-gfx.a(region_skia.cpp.o): In function `gfx::Region::Region()':
region_skia.cpp:(.text+0x80): undefined reference to `SkRegion::SkRegion()'
gfx/liblaf-gfx.a(region_skia.cpp.o): In function `gfx::Region::Region(gfx::Region const&)':

...

There are more undefined reference error, but I omitted them.

Previously when running cmake I get some warnings:

CMake Warning at cmake/FindSkia.cmake:150 (target_link_libraries):
  Target <TARGET> requests linking to directory
  "/home/yudi/deps/skia/out/Release-x64".  Targets may link only to
  libraries.  CMake is dropping the item.
Call Stack (most recent call first):
  CMakeLists.txt:47 (include)

This warning is printed several times with different values for<TARGET>.

Am I missing something?

Versions:

cmake: 3.25.2
g++: 11.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant