[scribus] Errror 6, again

Owen Cook owen.cook at gmx.com
Sat Feb 25 00:23:56 UTC 2017




> ------------------------------------------
> 
> Also, I have never understood why you go and download the whole repository 
> for each build. Why don't you do what everyone else does,
> 
> 1. Get the base repository ( See 
> https://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake )
> 
> 2. Build it
> 
> 3. And then on after, do a # svn up followed by a # make install (The link 
> above is *really* worth following )
>   
>  My answer:
>  As so often happens cmake screws up. Here is my compile script:
>  -------------------------------------------------------------------------
>   svn co svn://scribus.net/trunk/Scribus scribus15
> mkdir ~/src/
> mkdir ~/src/scribus_svn
> sudo mkdir /usr/local/scribus_svn
> cd ~/src/scribus_svn
> svn up svn://scribus.net/trunk/Scribus
> cd ./Scribus
> mkdir build
> cd build
> cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/bin/scribus
> make
> sudo make install
> 
> ---------------------------------------------------------------------
>  And here is the error message:
>  ----------------------------------------------------------------------
>   CMake Error: The source directory "/root/src/scribus_svn/Scribus/build" 
> does not appear to contain CMakeLists.txt
>  ------------------------------------------------------------
>   
>  The irony here is that multiple copies of CMakeLists.txt exist  in various 
> locations.




Hi John,

All I can say is that script is nonsense.

However to fix your immediate problem, try;

 # cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/bin/scribus             instead of 
 # cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/bin/scribus

(From the build directory you need to get back to the Scribus directory.

It might find  a CMakeLists.txt then, but it could well be problematical if it does anything else. 



Here is a suggestion, install Scribus into your home directory. You then get rid of all the permission problems that might or might not exist as you keep it all in house.

If you like scripts, this untested off the top of my head script might do you. Save it as scbuild.sh and make it executable

======================scbuild.sh===========================

#!/bin/sh

SVN="/usr/bin/svn"
CMAKE="/usr/bin/cmake"
MAKE="/usr/bin/make"
INSTALL="/usr/bin/install"
cd

$SVN co svn://scribus.net/trunk/Scribus scribus15
cd scribus15
mkdir build
cd build
$CMAKE .. -DCMAKE_INSTALL_PREFIX:PATH=~/Scribus-1.5.3
$MAKE
$INSTALL


and then start Scribus # ~/Scribus-1.5.3/bin/scribus









Owen



More information about the scribus mailing list