Reply to topic

Unable to compile Calligra

leleu
Registered Member
Posts
19
Karma
0

Unable to compile Calligra

Fri Apr 01, 2016 4:58 pm
Trying to compile Calligra 3 following https://community.kde.org/Calligra/Building/3
the best (less bad) result I obtain is summarized here below


leleu@leleu-portable:~/kde$ ls
build inst5 src
leleu@leleu-portable:~/kde$ cd build
leleu@leleu-portable:~/kde/build$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde/inst5 $HOME/kde/src/calligra -DCMAKE_BUILD_TYPE=RelWithDebInfo
-- Using CMake version: 3.2.2
CMake Error at CMakeLists.txt:32 (message):
Compiling Calligra inside the source directory is not possible. Please
refer to the build instruction
https://community.kde.org/Calligra/Building/3


-- Configuring incomplete, errors occurred!
See also "/home/leleu/kde/src/calligra/CMakeFiles/CMakeOutput.log".
leleu@leleu-portable:~/kde/build$

The relevant lines in ~/kde/src/calligra/CMakelists.txt are
string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" isBuildInSource)
if(isBuildInSource)
message(FATAL_ERROR "Compiling Calligra inside the source directory is not possible. Please refer to the build instruction https://community.kde.org/Calligra/Building/3")
endif()

In the 995 lines log file I see no clue.


My cmake command has been delivered from the build repertory $HOME/kde/build/calligra which is distinct of the source directory, so I don't find why it fails.
User avatar jstaniek
Moderator
Posts
848
Karma
2
OS

Re: Unable to compile Calligra

Fri Apr 01, 2016 5:28 pm
Moved the topic here.

Also as I suppose you would like to build Kexi 3: it's not in calligra.git anymore. So I added this note to the https://community.kde.org/Kexi/Building page:
Just note that Kexi 3 is now in separate git repository so instead of "git clone kde:calligra" invoke " git clone kde:kexi".


I am sorry for the state of the instructions, it's Alpha stage.


Best regards,
Jarosław Staniek
Image

Kexi - Open Source Visual DB Apps Builder
• Request feature or fix for Kexi here
May I help you? Please mention your app's version and OS when asking for help
User avatar jstaniek
Moderator
Posts
848
Karma
2
OS

Re: Unable to compile Calligra

Fri Apr 01, 2016 5:30 pm
Ideas:
- remove and recreate the build/ directory : "rm -rf build"
- clean up the source directory ("cd calligra; git clean -fd"); to compile Kexi, get the kexi repository instead


Best regards,
Jarosław Staniek
Image

Kexi - Open Source Visual DB Apps Builder
• Request feature or fix for Kexi here
May I help you? Please mention your app's version and OS when asking for help
frinring
Registered Member
Posts
7
Karma
0

Re: Unable to compile Calligra

Fri Apr 01, 2016 5:35 pm
Hi leleu, this sounds like you before already tried to build inside the sources, and from that still have some build artifacts around in the sources (most important a file CMakeCache.txt). You are not the first to run into it, we should improve the error message.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], bartoloni, Bing [Bot], Capitain_Jack, Dibo, Exabot [Bot], gerdeg, gfielding, Google [Bot], Kevaaq, luigitrezzi, lynnux, marthab, raddison, Sogou [Bot], Yahoo [Bot]