faaxm / spix

UI test automation library for QtQuick/QML Apps
MIT License
188 stars 49 forks source link

Can't run examples after built #52

Closed lzt007 closed 2 years ago

lzt007 commented 2 years ago

I have ran "install-deps.sh" in /ci (I delete the --config in install-deps.sh ) Then I build spix with cmake-3.23.0-rc2,using the following command:

export CMAKE_PREFIX_PATH=/my/qt/path mkdir build && cd build cmake .. cmake --build . --target install

After that, I open the RemoteCtrl in qtcreator and try to debug it Then I got a serious errors:

:-1: error: /usr/local/lib/x86_64-linux-gnu/libSpix.a(AnyRpcServer.cpp.o): in function std::__cxx11::basic_string<char, >std::char_traits<char>, std::allocator<char> > spix::utils::unpackAnyRpcParam<std::__cxx11::basic_string<char, >std::char_traits<char>, std::allocator<char> > >(anyrpc::Value&)': AnyRpcServer.cpp:-1: error: undefined reference toanyrpc::Value::GetString() const' ... ...

and many other errors like that says cannot find xxx.cpp in some other qt modules I have installed both QT and AnyRpc,but it looks like I didn't confirm them well. Is there a more more detailed description for the installation such as how to set the parameters,which ubuntu/qt/cmake version should I use?

And,as you can see, i'm a noob both in coding and English I hope my question doesn't offend you