WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Repetier Server  (Read 1549 times)

Offline Project23D

  • WikiUser
  • *
  • Posts: 24
    • Technology Research and Development
Repetier Server
« on: December 20, 2014, 11:50:14 AM »
This is my first time using git and trying to setup/install something on tinycore beyond the usualy .tcz extension.

Following the instructions from here:
https://github.com/repetier/Repetier-Server/blob/master/INSTALL.txt

I get the follow mess of messages that I have zero idea how to interpret.

Code: [Select]
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
  file Internal CMake error when trying to open file:
  /home/tc/repetier/Repetier-Server/build/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
  for writing.
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:3 (project)


CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
  file Internal CMake error when trying to open file:
  /home/tc/repetier/Repetier-Server/build/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
  for writing.
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:3 (project)


CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
  file Internal CMake error when trying to open file:
  /home/tc/repetier/Repetier-Server/build/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
  for writing.
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:3 (project)


-- The C compiler identification is unknown
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
  file Internal CMake error when trying to open file:
  /home/tc/repetier/Repetier-Server/build/CMakeFiles/3.0.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
  for writing.
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:3 (project)


CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
  file Internal CMake error when trying to open file:
  /home/tc/repetier/Repetier-Server/build/CMakeFiles/3.0.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
  for writing.
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:3 (project)


-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:3 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/tc/repetier/Repetier-Server/build/CMakeFiles/CMakeOutput.log".
See also "/home/tc/repetier/Repetier-Server/build/CMakeFiles/CMakeError.log".

anyone have any idea what this means? I haven't found the keywords to have google return useful info

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5850
Re: Repetier Server
« Reply #1 on: December 20, 2014, 05:21:24 PM »
Hi Project23D
Do you have the  compiletc.tcz  extension installed?

Offline Project23D

  • WikiUser
  • *
  • Posts: 24
    • Technology Research and Development
Re: Repetier Server
« Reply #2 on: December 22, 2014, 08:18:16 AM »
apparently I didn't... so I did as soon as I read the message.

Now I just need to find the boost libraries.

Are these the files mounted on loop, or elsewhere?

Offline Project23D

  • WikiUser
  • *
  • Posts: 24
    • Technology Research and Development
Re: Repetier Server
« Reply #3 on: December 22, 2014, 08:30:31 AM »
well, something isn't working.

lookie here:
Code: [Select]
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/local/bin/cc
-- Check for working C compiler: /usr/local/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:513 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:515 ] Boost_USE_MULTITHREADED = ON
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:517 ] Boost_USE_STATIC_LIBS = ON
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:519 ] Boost_USE_STATIC_RUNTIME = OFF
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:521 ] Boost_ADDITIONAL_VERSIONS =
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:523 ] Boost_NO_SYSTEM_PATHS =
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:575 ] Declared as CMake or Environmental Variables:
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:577 ]   BOOST_ROOT =
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:579 ]   BOOST_INCLUDEDIR = /tmp/tcloop/boost-dev/usr/local/include/boost
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:581 ]   BOOST_LIBRARYDIR = /tmp/tcloop/boost/usr/local/lib
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:583 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:652 ] Include debugging info:
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:654 ]   _boost_INCLUDE_SEARCH_DIRS = /tmp/tcloop/boost-dev/usr/local/include/boost;PATHS;C:/boost/include;C:/boost;/sw/local/include
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:656 ]   _boost_PATH_SUFFIXES = boost-1_56_0;boost_1_56_0;boost/boost-1_56_0;boost/boost_1_56_0;boost-1_56;boost_1_56;boost/boost-1_56;boost/boost_1_56;boost-1_55_0;boost_1_55_0;boost/boost-1_55_0;boost/boost_1_55_0;boost-1_55;boost_1_55;boost/boost-1_55;boost/boost_1_55;boost-1_54_0;boost_1_54_0;boost/boost-1_54_0;boost/boost_1_54_0;boost-1_54;boost_1_54;boost/boost-1_54;boost/boost_1_54;boost-1_53_0;boost_1_53_0;boost/boost-1_53_0;boost/boost_1_53_0;boost-1_53;boost_1_53;boost/boost-1_53;boost/boost_1_53;boost-1_52_0;boost_1_52_0;boost/boost-1_52_0;boost/boost_1_52_0;boost-1_52;boost_1_52;boost/boost-1_52;boost/boost_1_52;boost-1_51_0;boost_1_51_0;boost/boost-1_51_0;boost/boost_1_51_0;boost-1_51;boost_1_51;boost/boost-1_51;boost/boost_1_51;boost-1_50_0;boost_1_50_0;boost/boost-1_50_0;boost/boost_1_50_0;boost-1_50;boost_1_50;boost/boost-1_50;boost/boost_1_50;boost-1_49_0;boost_1_49_0;boost/boost-1_49_0;boost/boost_1_49_0;boost-1_49;boost_1_49;boost/boost-1_49;boost/boost_1_49;boost-1_48_0;boost_1_48_0;boost/boost-1_48_0;boost/boost_1_48_0;boost-1_48;boost_1_48;boost/boost-1_48;boost/boost_1_48
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:676 ] location of version.hpp: /usr/local/include/boost/version.hpp
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:700 ] version.hpp reveals boost 1.55.0
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:785 ] guessed _boost_COMPILER = -gcc47
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:795 ] _boost_MULTITHREADED = -mt
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:838 ] _boost_RELEASE_ABI_TAG = -
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:840 ] _boost_DEBUG_ABI_TAG = -d
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:888 ] _boost_LIBRARY_SEARCH_DIRS = /tmp/tcloop/boost/usr/local/lib;/usr/local/include/lib;/usr/local/include/../lib;/usr/local/include/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for FILESYSTEM_LIBRARY_RELEASE: boost_filesystem-gcc47-mt-1_55;boost_filesystem-gcc47-mt;boost_filesystem-mt-1_55;boost_filesystem-mt;boost_filesystem
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for FILESYSTEM_LIBRARY_DEBUG: boost_filesystem-gcc47-mt-d-1_55;boost_filesystem-gcc47-mt-d;boost_filesystem-mt-d-1_55;boost_filesystem-mt-d;boost_filesystem-mt;boost_filesystem
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-gcc47-mt-1_55;boost_thread-gcc47-mt;boost_thread-mt-1_55;boost_thread-mt;boost_thread
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-gcc47-mt-d-1_55;boost_thread-gcc47-mt-d;boost_thread-mt-d-1_55;boost_thread-mt-d;boost_thread-mt;boost_thread
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc47-mt-1_55;boost_program_options-gcc47-mt;boost_program_options-mt-1_55;boost_program_options-mt;boost_program_options
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc47-mt-d-1_55;boost_program_options-gcc47-mt-d;boost_program_options-mt-d-1_55;boost_program_options-mt-d;boost_program_options-mt;boost_program_options
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-gcc47-mt-1_55;boost_system-gcc47-mt;boost_system-mt-1_55;boost_system-mt;boost_system
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-gcc47-mt-d-1_55;boost_system-gcc47-mt-d;boost_system-mt-d-1_55;boost_system-mt-d;boost_system-mt;boost_system
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for DATE_TIME_LIBRARY_RELEASE: boost_date_time-gcc47-mt-1_55;boost_date_time-gcc47-mt;boost_date_time-mt-1_55;boost_date_time-mt;boost_date_time
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for DATE_TIME_LIBRARY_DEBUG: boost_date_time-gcc47-mt-d-1_55;boost_date_time-gcc47-mt-d;boost_date_time-mt-d-1_55;boost_date_time-mt-d;boost_date_time-mt;boost_date_time
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for CHRONO_LIBRARY_RELEASE: boost_chrono-gcc47-mt-1_55;boost_chrono-gcc47-mt;boost_chrono-mt-1_55;boost_chrono-mt;boost_chrono
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for CHRONO_LIBRARY_DEBUG: boost_chrono-gcc47-mt-d-1_55;boost_chrono-gcc47-mt-d;boost_chrono-mt-d-1_55;boost_chrono-mt-d;boost_chrono-mt;boost_chrono
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:998 ] Searching for REGEX_LIBRARY_RELEASE: boost_regex-gcc47-mt-1_55;boost_regex-gcc47-mt;boost_regex-mt-1_55;boost_regex-mt;boost_regex
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1034 ] Searching for REGEX_LIBRARY_DEBUG: boost_regex-gcc47-mt-d-1_55;boost_regex-gcc47-mt-d;boost_regex-mt-d-1_55;boost_regex-mt-d;boost_regex-mt;boost_regex
-- [ /tmp/tcloop/cmake/usr/local/share/cmake-3.0/Modules/FindBoost.cmake:1085 ] Boost_FOUND = 1
-- Could NOT find Boost
Boost version: 1.55.0
Boost include path: /usr/local/include
Could not find the following static Boost libraries:
        boost_filesystem
        boost_thread
        boost_program_options
        boost_system
        boost_date_time
        boost_chrono
        boost_regex
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tc/repetier/Repetier-Server/build

after changing the boost include and lib directories in the CMakeLists.txt, I deleted all the files in the build directory and ran cmake again.

This here is what I have for the CMakeLists.txt, which I assume (wrongly?) is the config file for cmake for this particular instance of confubering.
Code: [Select]
# Main CMake file

project(Repetier-Server)
cmake_minimum_required(VERSION 2.6)
 
# Appends the cmake/modules path inside the MAKE_MODULE_PATH variable which stores the
# directories of additional CMake modules (eg MacroOutOfSourceBuild.cmake):
set(CMAKE_MODULE_PATH ${Repetier-Server_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
 
# The macro below forces the build directory to be different from source directory:
include(MacroOutOfSourceBuild)
macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build.")

############## include Boost

# Activate debug if you don't know where cmake is looking for your boost files
set(Boost_DEBUG 1)
SET(BOOST_INCLUDEDIR "/tmp/tcloop/boost-dev/usr/local/include/boost") # correct???
SET(BOOST_LIBRARYDIR "/tmp/tcloop/boost/usr/local/lib") # correct????
 
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.48.0 COMPONENTS filesystem thread program_options system date_time chrono regex)
IF (Boost_FOUND)
    INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
    ADD_DEFINITIONS( "-DHAS_BOOST" )
  #  target_link_libraries("Repetier-Server" ${Boost_LIBRARIES})
ENDIF()

add_subdirectory(Repetier-Server)
INCLUDE_DIRECTORIES("Repetier-Server/json_spirit")
INCLUDE_DIRECTORIES("Repetier-Server/mongoose")
INCLUDE_DIRECTORIES("Repetier-Server/moFileReader")
INCLUDE_DIRECTORIES("Repetier-Server/libconfig")
INCLUDE_DIRECTORIES("Repetier-Server/server")

#message("Files: ${RepetierServer_SOURCES}")
#message("Boost libs: ${Boost_LIBRARIES}")
add_executable("RepetierServer" ${RepetierServer_SOURCES})
target_link_libraries("RepetierServer" ${Boost_LIBRARIES})
IF (UNIX)
  target_link_libraries(RepetierServer dl m)
ENDIF (UNIX)

???????

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Repetier Server
« Reply #4 on: December 22, 2014, 08:36:42 AM »
Please read the book: http://tinycorelinux.net/book.html
The repo has boost and boost-dev.
Have you installed boost-dev?

Offline Project23D

  • WikiUser
  • *
  • Posts: 24
    • Technology Research and Development
Re: Repetier Server
« Reply #5 on: December 22, 2014, 11:03:49 AM »
yes it is. Just confirmed.

In the 'include' and 'lib' directories for the CMakeLists.txt, I attempted to fill that info in from the command:
Code: [Select]
sudo find / -name *boost*
But, evidently, those paths are not correct and/or there is another place I have to specify boost directories that I'm not yet aware about