I've started a Qt project with CMake and until now is very successfull but I'm wondering how to package my program for use with debian with the correct dependencies<br><br>In the main CMakeLists.txt I have:<br><br>
set (CPACK_GENERATOR "DEB")<br> set (${VERSION} CPACK_DEBIAN_PACKAGE_VERSION)<br> set (CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})<br> set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS TRUE)<br>
set (CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${FOOBARVERSION}_${LICENSE_TYPE}_${CPACK_DEBIAN_ARCHITECTURE}")<br> SET(CPACK_PACKAGE_EXECUTABLES "FOOBAR" "FOOBAR (v${FOOBAR_MAJOR}.${FOOBAR_MINOR}.${FOOBAR_PATCH})")<br>
<br>and in the CMakeLists.txt related to the executable itself<br><br>if (UNIX AND NOT APPLE)<br>add_executable(Foobar ${ALL_THE_NEEDED_FILES} )<br>target_link_libraries(Foobar ${QT_LIBRARIES} Common GL GLU glut)<br><br>INSTALL(TARGETS Foobar DESTINATION Foobar)<br>
endif (UNIX AND NOT APPLE)<br><br>The debian package is created correctly but once in a clean test virtual machine, I try to run it, the dpkg installer complains saying that <b>freeglut3</b> dependencies are not satisfiable<b>.</b><br>
<b>Dependency is not satisfiable: freeglut3</b><br><br>This is what I get after a dpkg --info<br><br>Package: FooBar<br> Version: 0.1.1<br> Section: devel<br> Priority: optional<br> Architecture: i386<br> Depends: freeglut3, libc6 (>= 2.3.6-6~), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libgomp1 (>= 4.2.1), libqt4-opengl (>= 4:4.5.3), libqtcore4 (>= 4:4.6.1), libqtgui4 (>= 4:4.5.3), libstdc++6 (>= 4.4.0)<br>
<br><br>I've found somewhere the cpack_add_component command, is this somewhat related to the missing dependencies?<br><br>Some hints?<br>