WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Sigil  (Read 4854 times)

Offline quellen

  • Newbie
  • *
  • Posts: 47
Sigil
« on: June 08, 2014, 02:20:15 PM »
Hi,
How Can I install Sigil on Tiny Core?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14788
Re: Sigil
« Reply #1 on: June 08, 2014, 11:18:41 PM »
Compile it and make an extension out of it.

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Sigil
« Reply #2 on: June 09, 2014, 06:26:12 AM »
Code: [Select]
tc@box:~/sigil-x.y.z/build$ cmake -G "Unix Makefiles" -DCMAKE_PREFIX_PATH=/opt/Q
t5.y.z/5.y.z/gcc/lib/cmake -DCMAKE_INSTALL_PREFIX=~/sigil-x.y.z/run -DCMAKE_BUIL
D_TYPE=Release -DFORCE_BUNDLED_COPIES=1 ~/sigil-x.y.z/src
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /home/tc/sigil-x.y.z/build/CMakeFiles/2.8.12/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: /home/tc/sigil-x.y.z/build/CMakeFiles/2.8.12/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Sigil
« Reply #3 on: June 09, 2014, 06:31:46 AM »
Did you install compiletc.tcz?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Sigil
« Reply #4 on: May 01, 2015, 02:03:31 PM »

Hi,
i'm trying to compile Sigil-0.6.2 (last versions are too heavy) from a modern pc with Virtual Box.

README of Sigil source code:
Code: [Select]
== Compiling on Linux ==

You will need to install Qt4 including, any dependencies and development
packages if your distro provides separate *dev* packages. Also, many distros
split the Qt packages into multiple subpackages. XML, SVG, and WebKit support
are required.

It is assumed you want to generate Makefiles. You can do this by creating a new
folder *outside* of the source distribution.

Now navigate to that folder with a terminal. Then type in and run the following:

{{{
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release /path/to/extracted/folder
$ make
$ sudo make install
}}}

That builds and installs Sigil on Linux. By default, Sigil is installed in
`${CMAKE_INSTALL_PREFIX}/bin`, with `CMAKE_INSTALL_PREFIX` defaulting to
`usr/local`.

You can change the install location by running cmake like this: {{{ cmake -G
"Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/new/install/prefix
-DCMAKE_BUILD_TYPE=Release /path/to/extracted/folder }}}

Building from source in the git repository is *NOT* recommended, since code in
the git repository is not stable. Do not open a bug report against a non release
version.


i have installed compiletc.tcz, cmake.tcz, qt4-base.tcz but i don't know what should i do,
someone can help me please?


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Sigil
« Reply #5 on: May 01, 2015, 02:23:18 PM »
Hi quellen
Just a guess, but try:
Code: [Select]
cd ~/cacca
{{{ cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/cacca/usr/local -DCMAKE_BUILD_TYPE=Release ~/sigil/ }}}
Also check the QT4 packages for names that end in  dev,  you probably need some of those.

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Sigil
« Reply #6 on: May 01, 2015, 02:31:49 PM »
I used
Code: [Select]
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release /home/tc/sigil/
-- Could NOT find Boost
-- Could NOT find MiniZip
-- checking for module 'xerces-c>=3.1'
--   package 'xerces-c>=3.1' not found
-- checking for module 'hunspell'
--   package 'hunspell' not found
-- checking for module 'libpcre16'
--   package 'libpcre16' not found
-- Could NOT find Xerce.tensions
-- Could NOT find FlightCrew
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindQt4.cmake:1326 (message):
  Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
  src/Sigil/CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/tc/sigil/CMakeFiles/CMakeOutput.log".
See also "/home/tc/sigil/CMakeFiles/CMakeError.log".
/

CMakeOutput.log
http://pastebin.com/VkzDrLdY

CMakeError.log
http://pastebin.com/9CfPrzPr

Code: [Select]
$ ls -l /home/tc/sigil/
total 12888
-rw-r--r--    1 tc       staff        22834 May  1 18:25 CMakeCache.txt
drwxr-sr-x    5 tc       staff          220 May  1 18:25 CMakeFiles/
-rw-r--r--    1 tc       staff         4669 May  1 18:24 CMakeLists.txt
-rw-r--r--    1 tc       staff        35147 May  1 18:24 COPYING.txt
-rw-r--r--    1 tc       staff        65267 May  1 18:24 ChangeLog.txt
-rw-r--r--    1 tc       staff         6737 May  1 18:24 INSTALL.txt
-rw-r--r--    1 tc       staff         1457 May  1 18:24 README.txt
-rw-r--r--    1 tc       staff     13047687 May  1 18:24 Sigil-0.6.2-Code.zip
drwxrwxrwx    2 tc       staff          140 May  1 18:24 cmake_extras/
drwxrwxrwx    3 tc       staff          100 May  1 18:24 installer/
drwxrwxrwx   13 tc       staff          260 May  1 18:24 src/


Code: [Select]
$ cat /home/tc/sigil/CMakeLists.txt
########################################################

#  This is a CMake configuration file.
#  To use it you need CMake which can be
#  downloaded from here:
#    http://www.cmake.org/cmake/resources/software.html
#
#########################################################

cmake_minimum_required( VERSION 2.8 )

project( Sigil )

set( CMAKE_DEBUG_POSTFIX "d" )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib )
set( PACKAGE_DIRECTORY ${PROJECT_BINARY_DIR}/package )
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake_extras" )

set( SIGIL_MAJOR_VERSION 0 )
set( SIGIL_MINOR_VERSION 6 )
set( SIGIL_REVISION_VERSION 2 )
set( SIGIL_FULL_VERSION ${SIGIL_MAJOR_VERSION}.${SIGIL_MINOR_VERSION}.${SIGIL_REVISION_VERSION} )

# Apple users building with XCode notes:
# If building with XCode you need to set the target and location
# of the SDK. If you are building with the Command Line Tools
# you do not need to specify the follwing options.
# It is recommened to set them when running cmake using -D
# rather than editing this file directly.
# CMAKE_OSX_DEPLOYMENT_TARGET "10.8"
# CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.8.sdk"


# Check if platform is 64 bit
if( NOT APPLE )
   if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
     set( 64_BIT_PLATFORM 0 )
   else()
     set( 64_BIT_PLATFORM 1 )
   endif()
endif()

# Profiler configuration for GCC
if( CMAKE_COMPILER_IS_GNUCXX  )
    set( CMAKE_BUILD_TYPE profiling )
    set( CMAKE_CXX_FLAGS_PROFILING "-O2 -DNDEBUG -pg -g -fno-omit-frame-pointer -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls" )

    # After creating the new build type,
    # we clear the default back to empty
    set( CMAKE_BUILD_TYPE  )
endif()

# This disables the building of the test runner app for FlightCrew
set( NO_TEST_EXE 1 )

if( NOT FORCE_BUNDLED_COPIES )
    find_package( Boost COMPONENTS date_time filesystem program_options regex system thread )
    find_package( ZLIB )
    find_package( PkgConfig )
    find_package( MiniZip )
    pkg_check_modules( XERCES xerces-c>=3.1 )
    pkg_check_modules( HUNSPELL hunspell )
    if ( NOT APPLE )
        pkg_check_modules( PCRE libpcre16 )
    endif()
    find_package( Xerce.tensions )
    find_package( FlightCrew )
endif()

# We must use the bundled Tidy because there are Sigil
# specific changes to it.
add_subdirectory( src/tidyLib )

if( FORCE_BUNDLED_COPIES OR NOT Boost_FOUND )
    add_subdirectory( src/BoostParts )
    # Set these so zipios doesn't complain.
    set( Boost_DATE_TIME_LIBRARY 1 )
    set( Boost_FILESYSTEM_LIBRARY 1 )
    set( Boost_PROGRAM_OPTIONS_LIBRARY 1 )
    set( Boost_REGEX_LIBRARY 1 )
    set( Boost_SYSTEM_LIBRARY 1 )
    set( Boost_THREAD_LIBRARY 1 )
    set( BOOST_LIBS BoostParts )
    set( BOOST_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/BoostParts )
else()
    set( BOOST_LIBS ${Boost_DATE_TIME_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_REGEX_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} )
    set( BOOST_INCLUDE_DIRS ${Boost_INCLUDE_DIRS} )
endif()

if( FORCE_BUNDLED_COPIES OR NOT ZLIB_FOUND )
    add_subdirectory( src/zlib )
    set( ZLIB_LIBRARIES zlib )
    set( ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/zlib ${CMAKE_BINARY_DIR}/src/zlib )
endif()

if( FORCE_BUNDLED_COPIES OR NOT MINIZIP_FOUND )
    add_subdirectory( src/minizip )
    set( MINIZIP_LIBRARIES minizip )
    set( MINIZIP_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/minizip )
endif()

if( FORCE_BUNDLED_COPIES OR NOT XERCES_FOUND )
    add_subdirectory( src/Xerces )
    set( XERCES_LIBRARIES Xerces )
    set( XERCES_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/Xerces )
endif()

if( FORCE_BUNDLED_COPIES OR NOT HUNSPELL_FOUND )
    add_subdirectory( src/hunspell )
    set( HUNSPELL_LIBRARIES hunspell )
    set( HUNSPELL_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/hunspell )
endif()

if( FORCE_BUNDLED_COPIES OR NOT PCRE_FOUND OR APPLE )
    add_subdirectory( src/pcre )
    set( PCRE_LIBRARIES pcre )
    set( PCRE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/pcre ${CMAKE_BINARY_DIR}/src/pcre )
endif()

if( NOT XERCE.TENSIONS_FOUND )
    add_subdirectory( src/Xerce.tensions )
    set( XERCE.TENSIONS_LIBRARIES Xerce.tensions )
    set( XERCE.TENSIONS_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/Xerce.tensions )
endif()

if( NOT FLIGHTCREW_FOUND )
    add_subdirectory( src/FlightCrew )
    set( FLIGHTCREW_LIBRARIES FlightCrew )
    set( FLIGHTCREW_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src/FlightCrew )
endif()

add_subdirectory( src/Sigil )

« Last Edit: May 01, 2015, 02:37:34 PM by quellen »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Sigil
« Reply #7 on: May 01, 2015, 02:56:46 PM »
Hi quellen
I think you also need:
libsigc++-dev.tcz
qt-4.x-dev.tcz
qt-4.x-webkit.tcz
qt-4.x-xml.tcz

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Sigil
« Reply #8 on: May 02, 2015, 05:01:32 AM »
i can't find qt-4.x-dev.tcz and qt-4.x-webkit.tcz on AppManager.

i have installed/started:
qt-4.x-dev.tcz (from tcz_4x repo)
qt-4.x-webkit.tcz (from tcz_4x repo)
boost
libsigc++-dev.tcz
qt-4.x-xml.tcz
hunspell.tcz
hunspell/en/us.tcz

but it still says error:
Code: [Select]
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release /mnt/sda1/sigil
-- Could NOT find Boost
-- Could NOT find MiniZip
-- checking for module 'xerces-c>=3.1'
--   package 'xerces-c>=3.1' not found
-- checking for module 'hunspell'
--   package 'hunspell' not found
-- checking for module 'libpcre16'
--   package 'libpcre16' not found
-- Could NOT find Xerce.tensions
-- Could NOT find FlightCrew
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find Qt4: Found unsuitable version "4.7.4", but required is at
  least "4.8.0" (found /usr/local/bin/qmake)
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:372 (_FPHSA_FAILURE_MESSAGE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindQt4.cmake:1333 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/Sigil/CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
See also "/mnt/sda1/sigil/CMakeFiles/CMakeOutput.log".
See also "/mnt/sda1/sigil/CMakeFiles/CMakeError.log".




It's a mission:impossible?
i will try to compile an old version of Sigl which support qt4.7
« Last Edit: May 02, 2015, 05:26:19 AM by quellen »

Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Sigil
« Reply #9 on: May 02, 2015, 06:07:18 AM »
i have tried to compile Sigil 0.5.0 with qt4 of 4.x repo:
Code: [Select]
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release /mnt/sda1/sigil
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find Qt4 (missing: QT_QTSVG_LIBRARY) (found suitable version
  "4.7.4", minimum required is "4.7.0")
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.2/Modules/FindQt4.cmake:1333 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/Sigil/CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!
See also "/mnt/sda1/sigil/CMakeFiles/CMakeOutput.log".
See also "/mnt/sda1/sigil/CMakeFiles/CMakeError.log".


Offline quellen

  • Newbie
  • *
  • Posts: 47
Re: Sigil
« Reply #10 on: May 02, 2015, 06:49:00 AM »
I SOLVED!!!
I have downloaded the binaries from Sigil site:

Code: [Select]
$ wget http://sigil.googlecode.com/files/Sigil-0.5.3-Linux-x86-Setup.bin
$ chmod +x Sigil-0.5.3-Linux-x86-Setup.bin
$ ./Sigil-0.5.3-Linux-x86-Setup.bin
It installs Sigil on /home/tc/sigil

Code: [Select]
$ cd /home/tc/sigil
$ ./sigil

for run Sigil you need:
qt-4.x-base.tcz
qt-4.x-webkit.tcz
sqlite3.tcz
libpng12.tcz
libffi5.tcz

and "libaudio.so.2" [nas-libs] (you can download it here)



now how can i make a .tcz file for repo?
« Last Edit: May 02, 2015, 07:08:07 AM by quellen »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14788
Re: Sigil
« Reply #11 on: May 02, 2015, 07:02:02 AM »
Good - however, this looks like a binary compiled on/for another distro - to be included in the repo here and avoid incompatibilities, it should really be compiled on tinycore.

In addition, for tc-6.x, we've moved on from libffi5 and libpng12 - these are only there for backwards compatibility until the extensions that depend on them are recompiled for more recent versions of libffi and libpng.

Of course you can make a tcz for your own private use, see the extension section of the wiki.