在 Mac os x 上编译播放器/舞台

发布于 2024-10-30 19:36:19 字数 10456 浏览 1 评论 0原文

不确定是否有人遇到此问题或类似问题,但如果您能提供一些帮助,我们将不胜感激。

我在以下位置设置了 postgresql 并将链接路径设置为 /usr/local/pgsql-9.0。还在 /usr/local/lib 中设置 libpqxx

但我猜测错误表明它无法在任何地方找到 postgresql 。这是正确的吗?

Linking CXX shared library libplayerdrivers.dylib Undefined symbols:   "_PQntuples", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::GetLayerData(char const*)in dbconn.o   "_PQresultErrorMessage", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o   "_PQgetvalue", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQexecParams", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o   "_PQresultStatus", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQexec", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQgetlength", referenced from:
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQbinaryTuples", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o   "_PQclear", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQsetdbLogin", referenced from:
      Postlog::Setup()     in postlog.o
      PostgresConn::Connect(char const*, char const*, char const*, char const*, char const*)in dbconn.o   "_PQstatus", referenced from:
      Postlog::Setup()     in postlog.o
      Postlog::isConnected() const in postlog.o
      PostgresConn::Connected()      in postgis.o
      PostgresConn::Connect(char const*, char const*, char const*, char const*, char const*)in dbconn.o   "_PQfinish", referenced from:
      Postlog::Shutdown()     in postlog.o
      Postlog::~Postlog()in postlog.o
      Postlog::~Postlog()in postlog.o
      Postlog::~Postlog()in postlog.o
      PostgresConn::Disconnect()       in dbconn.o
ld: symbol(s) not found

Not sure if any had this problem or similar but if you have some help would be appreciated.

I have setup postgresql in the following location and set the link path to /usr/local/pgsql-9.0. Also setup the libpqxx in the /usr/local/lib

But I am guessing the error says that it cant find the postgresql anywhere. Is that correct ?

Linking CXX shared library libplayerdrivers.dylib Undefined symbols:   "_PQntuples", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::GetLayerData(char const*)in dbconn.o   "_PQresultErrorMessage", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o   "_PQgetvalue", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQexecParams", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o   "_PQresultStatus", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQexec", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQgetlength", referenced from:
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQbinaryTuples", referenced from:
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o   "_PQclear", referenced from:
      Postlog::rollback() constin postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      Postlog::storeData(int, char const*, void const*, double, unsigned short, unsigned short, unsigned char, unsigned char)in postlog.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::WriteLayerData(LayerDataHolder&) in dbconn.o
      PostgresConn::GetLayerData(char const*)in dbconn.o
      PostgresConn::GetLayerInfo(char const*)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o
      PostgresConn::GetVectorMapInfo(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)in dbconn.o "_PQsetdbLogin", referenced from:
      Postlog::Setup()     in postlog.o
      PostgresConn::Connect(char const*, char const*, char const*, char const*, char const*)in dbconn.o   "_PQstatus", referenced from:
      Postlog::Setup()     in postlog.o
      Postlog::isConnected() const in postlog.o
      PostgresConn::Connected()      in postgis.o
      PostgresConn::Connect(char const*, char const*, char const*, char const*, char const*)in dbconn.o   "_PQfinish", referenced from:
      Postlog::Shutdown()     in postlog.o
      Postlog::~Postlog()in postlog.o
      Postlog::~Postlog()in postlog.o
      Postlog::~Postlog()in postlog.o
      PostgresConn::Disconnect()       in dbconn.o
ld: symbol(s) not found

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

病毒体 2024-11-06 19:36:19

感谢“mu 太短”,它确实缺少 -lpq

看起来 Mac Os X 的播放器/舞台构建存在错误

Thanks to "mu is too short" its indeed the missing -lpq

Looks like there is a bug with the player/stage build for Mac Os X

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文