In my case (Debian wheezy) I was successful running "download_and_compile.sh ALL", after editing the CMakeLists.txt of the failing project (utils/fgadmin/src/CMakeLists.txt). I added ${CMAKE_DL_LIBS} to the target_link_libraries. Saving the file is not enough if running the script, because it will overwrite every time from your local git repo. You need to "git commit -a" so that the change is persisted to the repo -- subsequent runs of the script with "-u" to update, will succeed (showing that your local repo is 1 commit ahead of the remote). If there is a maintainer reading this thread, maybe it is a good idea to apply a patch like the following:
- Code: Select all
diff --git a/utils/fgadmin/src/CMakeLists.txt b/utils/fgadmin/src/CMakeLists.txt
index 42b95d7..5409751 100644
--- a/utils/fgadmin/src/CMakeLists.txt
+++ b/utils/fgadmin/src/CMakeLists.txt
@@ -13,6 +13,7 @@ target_link_libraries(fgadmin FGAdminUI
${FLTK_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${ZLIB_LIBRARY}
+ ${CMAKE_DL_LIBS}
)
install(TARGETS fgadmin RUNTIME DESTINATION bin)
so that more debian wheezy users can easily build and enjoy fgfs
