From: evn1984 <ev...@12...> - 2009-03-14 03:12:03
|
hi Hedayat i'm sorry for not tell you clearly,i truely want to build satic libraries on linux.for spark,i have changed CMakeLists.txt (mainly change SHARED to STATIC),then i do cmake ../make ,it's ok.but for rcsserver3d,i also do the previouse work ,and change the FINDXXX.cmake in linker,it linked the static libraries which were built in spark.(include libspark.a libsalt.a libzeitgeist.a liboxygen.a libkerosin.a librcssnet3D.a).and then i compile rcsserver3d ,when compile soccermonitor it present error,i check it and add ${RCSSNET3D_INCLUDE_DIR} in soccermonitor/CMakeLists.txt 's line for include_directories .it passed. but when compile rcssagent, it present error again but for different reasons,for example: libzeitgeist.a xxxx.cpp undefined reference to "salt::path::xxx()" it seems that libzeitgeist.a need to add some libraries,could you give me some advise.thx 在2009-03-14 03:46:53,"Hedayat Vatankhah" <hed...@ai...> 写道: Hi, Buildint static libraries on Linux is not supported. If you build simspark on Windows, you'll automatically get static libraries. But you can't build rcssserver3d on Windows currently. And I think support for static libraries on Windows will be dropped soon too. You can try building static libraries but you'll get undefined symbol errors in rcssserver3d. However, if you really like, you can try building static libraries but you'll need to add all of the libraries linked to simspark to rcssserver3d. For building static libraries on Linux, just have a look at spark/CMakeLists.txt, you can find how it is enabled on Windows. Good luck, Hedayat evn1984 <ev...@12...> wrote on 03/13/2009 06:34:53 PM: hi Hedayat i was planning to compile the release server3d(mainly in rcsserver3d and spark) to a static version,but i have found there it is difficult to realize.do you have a static version of the server3d ,or could you give me a sample. �������䣬�й��һ������ʼ������� |