[owncloud-devel] cross compile make package error

Muhammad Rofi Arofah mrofia at live.com
Fri Jul 4 05:33:46 GMT 2014


Hi guys, so i have successfully compiled using 

Code: Select allmingw32-cmake
 -DCMAKE_BUILD_TYPE="Debug" ../mirall-master 
-DCMAKE_TOOLCHAIN_FILE=../mirall-master/admin/win/Toolchain-mingw32-openSUSE.cmake

There's no error happening in that process, but when i run make package (or mingw32-make package)

this error occurs
Code: Select allCMake Error at /home/rofi/Documents/mirall-build-win2/csync/src/cmake_install.cmake:37 (message):
  ABSOLUTE path INSTALL DESTINATION forbidden (by caller):
 
 
/usr/i686-w64-mingw32/sys-root/mingw/etc/ownCloud/sync-exclude.lst;/usr/i686-w64-mingw32/sys-root/mingw/lib/owncloud/libocsync.dll.a
Call Stack (most recent call first):
  /home/rofi/Documents/mirall-build-win2/csync/cmake_install.cmake:32 (include)
  /home/rofi/Documents/mirall-build-win2/cmake_install.cmake:44 (include)

CPack Error: Error when generating package: ownCloud
make: *** [package] Error 1

when i lookup the file, this is the line that throws the error:
Code: Select allif(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  endif()

so i tried to change the reference directory and moved the .lst file to /home/Documents

but then same error message occurs, but it points to different cmake file, which is /csync/src/cmake-install.cmake
Code: Select alllist(APPEND CMAKE_ABSOLUTE_DESTINATION_FILES
   "/usr/i686-w64-mingw32/sys-root/mingw/lib/owncloud/libocsync.dll.a")
  if(CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(WARNING "ABSOLUTE path INSTALL DESTINATION : ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  endif()
  if(CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION)
    message(FATAL_ERROR "ABSOLUTE path INSTALL DESTINATION forbidden (by caller): ${CMAKE_ABSOLUTE_DESTINATION_FILES}")
  endif()

I cannot change this file anyhow, and when i lookup to the directory, such directory (lib/owncloud) does not exist.

can anyone explain what's wrong? any workaround on this? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20140704/b63eb418/attachment.html>


More information about the Devel mailing list