Installed Octave package runs command line code but not Matlab scripts - runtime-error

I have installed Octave (Octave syntax is largely compatible with Matlab), on my ubuntu/linux desktop and I am encountering error messages on running an example script. However, I am able to run code from the command line (GNOME Terminal), just not scripts. Can anyone advise how to solve this issue?
Example script:
x = -10:0.1:10; # Create an evenly-spaced vector from -10..10
y = sin (x); # y is also a vector
a = plot (x, y);
title ("Simple 2-D Plot");
xlabel ("x");
ylabel ("sin (x)");
saveas(a, 'home/brendan/software/PlanetProfile_v2.0.0/examples/example1d.png','png');
Output error message on running script and octave:
(base) brendan#Desktop:~/software/PlanetProfile_v2.0.0/examples$ octave example1c.m
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000/snap.octave', please create it with 0700 permissions.
Qt: Session management error: Could not open network socket
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/70-no-bitmaps.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
error: ignoring const execution_exception& while preparing to exit

Related

Unresolved symbol when building Qt Cmake Project

I was working on a QT program including libtorch and opencv which was compiling without any error in my previous Ubuntu 21.04.
The libtorch library locates at /home/user/Downloads/libtorch and OpenCV installed with the following command:
apt install python3-opencv libopencv-dev libdc1394-22-dev
After upgrading my OS to Ubuntu jammy (22.04), building that program returns the following errors:
warning: libicui18n.so.67, needed by /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3, not found (try using -rpath or -rpath-link)
warning: libicuuc.so.67, needed by /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3, not found (try using -rpath or -rpath-link)
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getDSTSavings_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_setMillis_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_strcoll_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_open_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `u_strToUpper_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getTimeZoneDisplayName_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `uenum_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_getSortKey_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_get_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_getDefaultTimeZone_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openTimeZones_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `u_strToLower_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `uenum_next_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_close_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucol_setAttribute_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_inDaylightTime_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_clone_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_open_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openTimeZoneIDEnumeration_67'
error: /usr/local/Qt-6.2.3/lib/libQt6Core.so.6.2.3: undefined reference to `ucal_openCountryTimeZones_67'
error: collect2: error: ld returned 1 exit status
error: [CMakeFiles/example.dir/build.make:234: bina] Error 1
CMakeLists.txt is as following code:
cmake_minimum_required(VERSION 3.5)
project(example LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_PREFIX_PATH /home/user/Downloads/libtorch)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets LinguistTools REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets LinguistTools REQUIRED)
find_package(Torch REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
set(TS_FILES example_en_US.ts)
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
torchtestdlg.cpp
classification.cpp
${TS_FILES}
)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(example
${PROJECT_SOURCES}
)
qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
else()
if(ANDROID)
add_library(example SHARED
${PROJECT_SOURCES}
)
else()
add_executable(example
${PROJECT_SOURCES}
)
endif()
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
endif()
target_link_libraries(example PRIVATE Qt${QT_VERSION_MAJOR}::Widgets ${TORCH_LIBRARIES} ${OpenCV_LIBS})
Obviously it means that it has unresolved symbols which I couldn't understand what symbols they are.

r - Error: package or namespace load failed for ‘caret’ in namespaceExport(ns, exports): undefined exports: dim_na<-,

I'm getting the following error with the command library(caret) in R:
Error: package or namespace load failed for ‘caret’ in namespaceExport(ns, exports): undefined exports: dim_na<-, as.listenv, get_variable, listenv, map, mapping, parse_env_subset, undim
I'm also getting the following warning:
In addition: Warning message:
S3 methods ‘$.listenv’, ‘$<-.listenv’, ‘[.listenv’, ‘[<-.listenv’, ‘[[.listenv’, ‘[[<-.listenv’, ‘dim<-.listenv’, ‘dimnames<-.listenv’, ‘length<-.listenv’, ‘names<-.listenv’, ‘all.equal.listenv’, ‘as.list.listenv’, ‘as.listenv.default’, ‘as.listenv.environment’, ‘as.listenv.list’, ‘as.listenv.listenv’, ‘as.matrix.listenv’, ‘as.vector.listenv’, ‘dim.listenv’, ‘dimnames.listenv’, ‘get_variable.listenv’, ‘is.array.listenv’, ‘is.matrix.listenv’, ‘length.listenv’, ‘lengths.listenv’, ‘names.listenv’, ‘print.listenv’, ‘undim.default’, ‘undim.listenv’, ‘unlist.listenv’ were declared in NAMESPACE but not found
I've tried removing and reinstalling caret but that did nothing. Any pointers even (like what are the listenv methods) would be helpful. Thanks!

R package issues deploying shiny to beta.rstudioconnect.com

I had a shiny app that was deploying without problems on beta.rstudioconnect.com. I added some maps to it and then could no longer get it to work; one of the packages did not appear to be supported. I thought I might be able to get around this by using packrat on my project before deploying. However that didn't work. Now I can't seem to go back to my original version and don't understand where the problem lies. Does any of the following make any sense to anyone? what do I have to do to get back to my original (working) shiny? I had to take some lines out of the output to fit it in here:
Preparing to deploy application...DONE
Uploading bundle for application: 2539...DONE
Deploying bundle: 5321 for application: 2539 ...
Bundle requested R version 3.3.2; using /opt/R/3.3.1/bin/R which has version 3.3.1
2017/02/19 12:05:49.268297412 # Validating R library read / write permissions --------------------------------
2017/02/19 12:05:49.297061610 # Validating packrat installation ----------------------------------------------
2017/02/19 12:05:49.297171083 Installed packrat SHA is: 00bce0ead9f58d31c29e65fb7b87858586356f15
2017/02/19 12:05:49.297294331 Packaged packrat SHA is: 00bce0ead9f58d31c29e65fb7b87858586356f15
2017/02/19 12:05:49.298977087 Packrat is up-to-date.
2017/02/19 12:05:49.299134572 R version: 3.3.1
2017/02/19 12:05:49.299203258 packrat version: 0.4.8.11
2017/02/19 12:05:49.299948491 # Validating packrat cache read / write permissions ----------------------------
2017/02/19 12:05:49.494836685 Audited package hashes with local packrat installation.
2017/02/19 12:05:49.498803369 # Installing required R packages with `packrat::restore()` ---------------------
2017/02/19 12:05:51.169831244 Installing BH (1.62.0-1) ...
2017/02/19 12:05:51.182200494 Using cached BH.
2017/02/19 12:05:51.182461055 OK (symlinked cache)
2017/02/19 12:05:51.182679371 Installing DBI (0.5-1) ...
17/02/19 12:05:51.584223157 Installing packrat (0.4.8-1) ...
2017/02/19 12:05:51.595465126 Using cached packrat.
2017/02/19 12:05:51.595776430 OK (symlinked cache)
...
2017/02/19 12:05:52.163895821 Installing maptools (0.8-39) ...
2017/02/19 12:05:52.178467525 Using cached maptools.
2017/02/19 12:05:52.178690072 OK (symlinked cache)
2017/02/19 12:05:52.178939945 Installing dplyr (0.5.0) ...
2017/02/19 12:05:52.200480032 Using cached dplyr.
2017/02/19 12:05:52.200709370 OK (symlinked cache)
2017/02/19 12:05:52.200956042 Installing feather (0.3.1) ...
2017/02/19 12:06:05.282400309 [1] "Command failed (1)\n\nFailed to run system command:\n\n\t'/opt/R/3.3.1/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/RtmpssUwbS/feather' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1' --install-tests --no-docs --no-multiarch --no-demo \n\nThe command failed with output:\n* installing *source* package 'feather' ...\n** package 'feather' successfully unpacked and MD5 sums checked\nPlatform is little endian. Good.\n** libs\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c feather-read.cpp -o feather-read.o\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include... <truncated>
t/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c feather-types.cpp -o feather-types.o\ng++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I\"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include\" -fpic -g -O2 -c feather-write.cpp -o feather-write.o\nIn file included from feather/api.h:24:0,\n from feather-read.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n from feather-read.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:74:28: error: 'override' does not name a type\n./feather/io.h:75:59: error: expected ';' at end of m... <truncated>
ther/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./feather/io.h:94:26: error: expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n./feather/io.h:109:26: error: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: expected ';' at end of member declaration\n./feather/io.h:150:18: error: 'override' does not name a typ... <truncated>
: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feather/io.h:152:53: error: 'override' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n./feather/io.h:174:53: error: 'override' does not name a type\nIn file included from feather/api.h:24:0,\n from feather-types.h:2,\n from feather-types.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n ... <truncated>
er-types.h:2,\n from feather-types.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:74:28: error: 'override' does not name a type\n./feather/io.h:75:59: error: expected ';' at end of member declaration\n./feather/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./feather/io.h:94:26: error: expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n.... <truncated>
ror: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: expected ';' at end of member declaration\n./feather/io.h:150:18: error: 'override' does not name a type\n./feather/io.h:151:29: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feather/io.h:152:53: error: 'override' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n... <truncated>
rror: 'override' does not name a type\nIn file included from feather/api.h:24:0,\n from feather_types.h:2,\n from RcppExports.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n from feather_types.h:2,\n from RcppExports.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:74:28: error: 'override' does not name a type\n./feather/io.h:75:59: error: expected ';' at end of member declaration\n./feather/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./fea... <truncated>
expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n./feather/io.h:109:26: error: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: expected ';' at end of member declaration\n./feather/io.h:150:18: error: 'override' does not name a type\n./feather/io.h:151:29: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feathe... <truncated>
verride' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n./feather/io.h:174:53: error: 'override' does not name a type\nIn file included from feather/api.h:24:0,\n from feather-write.cpp:4:\n./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here\n./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here\nIn file included from feather/api.h:25:0,\n from feather-write.cpp:4:\n./feather/io.h:73:29: error: expected ';' at end of member declaration\n./feather/io.h:73:35: error: 'override' does not name a type\n./feather/io.h:74:26: error: expected ';' at end of member declaration\n./feather/io.h:... <truncated>
does not name a type\n./feather/io.h:75:59: error: expected ';' at end of member declaration\n./feather/io.h:75:61: error: 'override' does not name a type\n./feather/io.h:93:29: error: expected ';' at end of member declaration\n./feather/io.h:93:35: error: 'override' does not name a type\n./feather/io.h:94:26: error: expected ';' at end of member declaration\n./feather/io.h:94:28: error: 'override' does not name a type\n./feather/io.h:95:59: error: expected ';' at end of member declaration\n./feather/io.h:95:61: error: 'override' does not name a type\n./feather/io.h:108:29: error: expected ';' at end of member declaration\n./feather/io.h:108:35: error: 'override' does not name a type\n./feather/io.h:109:26: error: expected ';' at end of member declaration\n./feather/io.h:109:28: error: 'override' does not name a type\n./feather/io.h:110:59: error: expected ';' at end of member declaration\n./feather/io.h:110:61: error: 'override' does not name a type\n./feather/io.h:150:16: error: exp... <truncated>
er declaration\n./feather/io.h:150:18: error: 'override' does not name a type\n./feather/io.h:151:29: error: expected ';' at end of member declaration\n./feather/io.h:151:35: error: 'override' does not name a type\n./feather/io.h:152:51: error: expected ';' at end of member declaration\n./feather/io.h:152:53: error: 'override' does not name a type\n./feather/io.h:172:16: error: expected ';' at end of member declaration\n./feather/io.h:172:18: error: 'override' does not name a type\n./feather/io.h:173:29: error: expected ';' at end of member declaration\n./feather/io.h:173:35: error: 'override' does not name a type\n./feather/io.h:174:51: error: expected ';' at end of member declaration\n./feather/io.h:174:53: error: 'override' does not name a type\nmake: *** [feather-types.o] Error 1\nmake: *** Waiting for unfinished jobs....\nmake: *** [feather-read.o] Error 1\nmake: *** [RcppExports.o] Error 1\nmake: *** [feather-write.o] Error 1\nERROR: compilation failed for package 'feather'\n* re... <truncated>
nect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/feather'"
2017/02/19 12:06:05.283810404 Error: Command failed (1)
2017/02/19 12:06:05.283822886
2017/02/19 12:06:05.283836187 Failed to run system command:
2017/02/19 12:06:05.283839368
2017/02/19 12:06:05.283847263 '/opt/R/3.3.1/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/RtmpssUwbS/feather' --library='/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1' --install-tests --no-docs --no-multiarch --no-demo
2017/02/19 12:06:05.283878906
2017/02/19 12:06:05.283889984 The command failed with output:
2017/02/19 12:06:05.283899167 * installing *source* package 'feather' ...
2017/02/19 12:06:05.283908105 ** package 'feather' successfully unpacked and MD5 sums checked
2017/02/19 12:06:05.283911064 Platform is little endian. Good.
2017/02/19 12:06:05.283918990 ** libs
2017/02/19 12:06:05.283921520 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
2017/02/19 12:06:05.283944289 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c feather-read.cpp -o feather-read.o
2017/02/19 12:06:05.283947838 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c feather-types.cpp -o feather-types.o
2017/02/19 12:06:05.283955637 g++ -std=c++0x -I/opt/R/3.3.1/lib/R/include -DNDEBUG -I. -I/usr/local/include -I"/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/3.3.1/Rcpp/include" -fpic -g -O2 -c feather-write.cpp -o feather-write.o
2017/02/19 12:06:05.283958522 In file included from feather/api.h:24:0,
2017/02/19 12:06:05.283967685 from feather-read.cpp:4:
2017/02/19 12:06:05.283970576 ./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.283978363 ./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.283981078 In file included from feather/api.h:25:0,
2017/02/19 12:06:05.283989020 from feather-read.cpp:4:
2017/02/19 12:06:05.283991718 ./feather/io.h:73:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.283999364 ./feather/io.h:73:35: error: 'override' does not name a type
2017/02/19 12:06:05.284001824 ./feather/io.h:74:26: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284162768 ./feather/io.h:172:18: error: 'override' does not name a type
2017/02/19 12:06:05.284165214 ./feather/io.h:173:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284171921 ./feather/io.h:173:35: error: 'override' does not name a type
2017/02/19 12:06:05.307706691 Warning message:
2017/02/19 12:06:05.307863198 In packrat::restore(overwrite.dirty = TRUE, prompt = FALSE, restart = FALSE) :
2017/02/19 12:06:05.307879290 The most recent snapshot was generated using R version 3.3.2
2017/02/19 12:06:05.284174366 ./feather/io.h:174:51: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284235118 ./feather/io.h:174:53: error: 'override' does not name a type
2017/02/19 12:06:05.284239266 In file included from feather/api.h:24:0,
2017/02/19 12:06:05.284246654 from feather-types.h:2,
2017/02/19 12:06:05.284249805 from feather-types.cpp:4:
2017/02/19 12:06:05.284256762 ./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284259715 ./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284266625 In file included from feather/api.h:25:0,
2017/02/19 12:06:05.284268985 from feather-types.h:2,
2017/02/19 12:06:05.284275396 from feather-types.cpp:4:
2017/02/19 12:06:05.284277912 ./feather/io.h:73:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284302465 ./feather/io.h:73:35: error: 'override' does not name a type
2017/02/19 12:06:05.284310963 ./feather/io.h:74:26: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284455903 ./feather/io.h:152:53: error: 'override' does not name a type
2017/02/19 12:06:05.284458901 ./feather/io.h:172:16: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284465785 ./feather/io.h:172:18: error: 'override' does not name a type
2017/02/19 12:06:05.284468388 ./feather/io.h:173:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284475582 ./feather/io.h:173:35: error: 'override' does not name a type
2017/02/19 12:06:05.284478069 ./feather/io.h:174:51: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284499196 ./feather/io.h:174:53: error: 'override' does not name a type
2017/02/19 12:06:05.284502459 In file included from feather/api.h:24:0,
2017/02/19 12:06:05.284510402 from feather_types.h:2,
2017/02/19 12:06:05.284520035 from RcppExports.cpp:4:
2017/02/19 12:06:05.284528059 ./feather/common.h:24:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284530517 ./feather/common.h:25:28: error: both 'const' and 'constexpr' cannot be used here
2017/02/19 12:06:05.284537373 In file included from feather/api.h:25:0,
2017/02/19 12:06:05.284539717 from feather_types.h:2,
2017/02/19 12:06:05.284546913 from RcppExports.cpp:4:
2017/02/19 12:06:05.284549095 ./feather/io.h:73:29: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284555829 ./feather/io.h:73:35: error: 'override' does not name a type
2017/02/19 12:06:05.284558295 ./feather/io.h:74:26: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284565421 ./feather/io.h:74:28: error: 'override' does not name a type
2017/02/19 12:06:05.284568368 ./feather/io.h:75:59: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284699666 ./feather/io.h:152:53: error: 'override' does not name a type
2017/02/19 12:06:05.284702743 ./feather/io.h:172:16: error: expected ';' at end of member declaration
2017/02/19 12:06:05.284709426 ./feather/io.h:172:18: error: 'override' does not name a typ
2017/02/19 12:06:05.284716004
2017/02/19 12:06:05.284724049 Unable to fully restore the R packages associated with this deployment.
2017/02/19 12:06:05.284726910 Please review the preceding messages to determine which package
2017/02/19 12:06:05.284734403 encountered installation difficulty and the cause of the failure.
2017/02/19 12:06:05.284737341
2017/02/19 12:06:05.284755686 Some typical reasons for package installation failures:
2017/02/19 12:06:05.284759213 * A system library needed by the R package is not installed.
2017/02/19 12:06:05.284766893 Some of the most common package dependencies are cataloged at:
2017/02/19 12:06:05.284769816 https://github.com/rstudio/shinyapps-package-dependencies
2017/02/19 12:06:05.284777079
2017/02/19 12:06:05.284779889 * The R package requires a newer version of R.
2017/02/19 12:06:05.284795781
2017/02/19 12:06:05.284799144 * The C/C++ compiler is outdated. This is often true for packages
2017/02/19 12:06:05.284806731 needing C++11 features.
2017/02/19 12:06:05.284810026
2017/02/19 12:06:05.284817282 * The R package is Windows-only or otherwise unavailable for this
2017/02/19 12:06:05.284820216 operating system.
2017/02/19 12:06:05.284827881
2017/02/19 12:06:05.284830674 * The package is housed in a private repository that requires
2017/02/19 12:06:05.284837746 authentication to access. For more details on this, see:
2017/02/19 12:06:05.284840342 http://docs.rstudio.com/connect/admin/process-management.html#private-packages
2017/02/19 12:06:05.284848534
2017/02/19 12:06:05.284851222 The package description and documentation will list system requirements
2017/02/19 12:06:05.284858379 and restrictions.
2017/02/19 12:06:05.284861051
2017/02/19 12:06:05.284883420 Please contact your RStudio Connect administrator for further help
2017/02/19 12:06:05.284887648 resolving this issue.
Application deployment failed with error: exit status 1\

Module not found: Error: Cannot resolve 'file' or 'directory' (import sass in webpack)

My project structure is:
/src/styles/main.scss
#import 'materialize/sass/materialize.scss';
....
I also try #import './materialize/sass/materialize.scss'; here
notwork.
It only work when I import the lib in index.js
/src/index.js (this worked)
import './styles/reset.css';
import './styles/main.scss';
import './styles/font-awesome/font-awesome.scss';
webpack loader:
loaders: [
{
test: /\.js?/,
exclude: [/node_modules/, /styles/],
loaders: ['babel'],
include: path.join(__dirname, 'src')
},
{
test: /\.scss$/,
loader: 'style!css!sass'
},
{
test: /\.css$/,
loader: "style-loader!css-loader"
},
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'url-loader?limit=10000&mimetype=application/font-woff'
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader'
}
]
But got error:
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Thin.eot in E:\Project\simple-redux
-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:73945-73987 6:74010-74052
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Thin.woff2 in E:\Project\simple-red
ux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74104-74148
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Thin.woff in E:\Project\simple-redu
x-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74181-74224
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Thin.ttf in E:\Project\simple-redux
-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74256-74298
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Light.eot in E:\Project\simple-redu
x-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74430-74473 6:74496-74539
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Light.woff2 in E:\Project\simple-re
dux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74591-74636
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Light.woff in E:\Project\simple-red
ux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74669-74713
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Light.ttf in E:\Project\simple-redu
x-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74745-74788
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Regular.eot in E:\Project\simple-re
dux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:74922-74967 6:74990-75035
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Regular.woff2 in E:\Project\simple-
redux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75087-75134
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Regular.woff in E:\Project\simple-r
edux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75167-75213
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Regular.ttf in E:\Project\simple-re
dux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75245-75290
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Medium.eot in E:\Project\simple-red
ux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75401-75445 6:75468-75512
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Medium.woff2 in E:\Project\simple-r
edux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75564-75610
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Medium.woff in E:\Project\simple-re
dux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75643-75688
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Medium.ttf in E:\Project\simple-red
ux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75720-75764
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Bold.eot in E:\Project\simple-redux
-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:75875-75917 6:75940-75982
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Bold.woff2 in E:\Project\simple-red
ux-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:76034-76078
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Bold.woff in E:\Project\simple-redu
x-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:76111-76154
ERROR in ./~/css-loader!./~/sass-loader!./src/styles/main.scss
Module not found: Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Bold.ttf in E:\Project\simple-redux
-boilerplate\src\styles
# ./~/css-loader!./~/sass-loader!./src/styles/main.scss 6:76186-76228
It looks like webpack search for a wrong directory, not search fonts folder under materialize.
I got error every time when I put import sass lib in main.scss, which force me to put import to index.js. Anyway to workaround ?
Update:
I found there are config in
\src\styles\materialize\sass\components\_variables.scss:
$roboto-font-path: "../fonts/roboto/" !default;
But it is relate to components, is this webpack 's bug?
I think it is a problem related to css-loader or sass-loader, somehow they are not really resolving the paths correctly when inside node_modules. And that is the reason why you have those errors.
Look at the error:
Error: Cannot resolve 'file' or 'directory' ../fonts/roboto/Roboto-Bold.woff in E:\Project\simple-redux-boilerplate\src\styles
It seems that the css-loader is trying to find ../fonts/ inside your src/styles folder.
As a workaround, you can specify the "correct" place where the fonts are placed as your $roboto-font-path variable. If installed via npm install materialize-css you can do the following:
$roboto-font-path: '~materialize-css/fonts/roboto/';
The tilde (~) character will say to your loaders to look into node_modules. Then, when resolving your paths, your loaders will look to the correct place and there will be no errors.
I think (and tested it locally) you don't need to use the tilde character to look at node_modulesusing sass-loader.
If you don't want to look into node_modules (because you prefer to download the dependencies manually) you can just use the relative paths. In your case $roboto-font-path: './materialize/fonts/roboto/'; should fix it.
Update:
You can also try using resolve-url-loader, that tries to fix the urls for you.
Related:
How do I load font-awesome using SCSS (SASS) in Webpack using relative paths?

Using leptonica with qt 5.2.0 (vs2012) issues

I'm trying to get the Leptonica 1.68 to work with Qt 5.2.0 (vs2012) static libraries. So i decided to try out the static libraries first, i downloaded the following package leptonica-1.68-win32-lib-include-dirs.zip
And iclude it in my project like so:
LIBS += -L$$PWD\leptonica-1.68-win32-lib-include-dirs\lib -lliblept168-static-mtdll -lgiflib416-static-mtdll
I also use the opencv that i build myself using vc2012+cmake
LIBS += -L$$PWD\opencv\static_libs -llibjpegd -llibpngd -llibtiffd -lIlmImfd -llibjasperd -lopencv_calib3d246d -lopencv_contrib246d -lopencv_core246d -lopencv_features2d246d -lopencv_flann246d -lopencv_gpu246d -lopencv_highgui246d -lopencv_imgproc246d -lopencv_legacy246d -lopencv_ml246d -lopencv_nonfree246d -lopencv_objdetect246d -lopencv_photo246d -lopencv_stitching246d -lopencv_superres246d -lopencv_ts246d -lzlibd
Opencv is built with /MTd and leptonica is built with /MTd too (i assume it from the library name "static-mtdll")
My qt is built with the following configuration:
configure -static -debug-and-release -opensource -confirm-license -platform win
32-msvc2012 -mp -qt-sql-sqlite -plugin-sql-mysql -I C:\MYSQL\include -L C:\QT\lib -c++11 -no-opengl
-nomake tests -nomake examples -no-crt -qt-zlib -qt-libpng -qt-libjpeg
When i'm trying to build my application i get
Qt5Cored.lib(zutil.obj) : error LNK2005: _z_errmsg already defined in zlibd.lib(zutil.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _malloc already defined in LIBCMTD.lib(dbgmalloc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _calloc already defined in LIBCMTD.lib(dbgcalloc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fprintf already defined in LIBCMTD.lib(fprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: ___iob_func already defined in LIBCMTD.lib(_file.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _rand already defined in LIBCMTD.lib(rand.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __localtime64 already defined in LIBCMTD.lib(loctim64.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _sprintf already defined in LIBCMTD.lib(sprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strchr already defined in LIBCMTD.lib(strchr.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strstr already defined in LIBCMTD.lib(strstr.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fseek already defined in LIBCMTD.lib(fseek.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _ftell already defined in LIBCMTD.lib(ftell.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fclose already defined in LIBCMTD.lib(fclose.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _srand already defined in LIBCMTD.lib(rand.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __snprintf_s already defined in LIBCMTD.lib(sprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fread already defined in LIBCMTD.lib(fread.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strrchr already defined in LIBCMTD.lib(strrchr.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strncmp already defined in LIBCMTD.lib(strncmp.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _sscanf already defined in LIBCMTD.lib(sscanf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strftime already defined in LIBCMTD.lib(strftime.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fopen already defined in LIBCMTD.lib(fopen.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fwrite already defined in LIBCMTD.lib(fwrite.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _rewind already defined in LIBCMTD.lib(rewind.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _remove already defined in LIBCMTD.lib(unlink.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __lseek already defined in LIBCMTD.lib(lseek.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fputc already defined in LIBCMTD.lib(fputc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fgetc already defined in LIBCMTD.lib(fgetc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _longjmp already defined in LIBCMTD.lib(longjmp.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _atof already defined in LIBCMTD.lib(atof.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fgets already defined in LIBCMTD.lib(fgets.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _memmove already defined in LIBCMTD.lib(memmove.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _setvbuf already defined in LIBCMTD.lib(setvbuf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strncpy already defined in LIBCMTD.lib(strncpy.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _realloc already defined in LIBCMTD.lib(dbgrealloc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __isnan already defined in LIBCMTD.lib(ieeemisc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __fpclass already defined in LIBCMTD.lib(ieeemisc.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _toupper already defined in LIBCMTD.lib(toupper.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __vsnprintf already defined in LIBCMTD.lib(vsnprint.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _vfprintf already defined in LIBCMTD.lib(vfprintf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _getenv already defined in LIBCMTD.lib(getenv.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __errno already defined in LIBCMTD.lib(dosmap.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __wopen already defined in LIBCMTD.lib(wopen.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fflush already defined in LIBCMTD.lib(fflush.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _floor already defined in LIBCMTD.lib(floor_pentium4.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _printf already defined in LIBCMTD.lib(printf.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: _strtol already defined in LIBCMTD.lib(strtol.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info##AAE#ABV0##Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info##AAEAAV0#ABV0##Z) already defined in LIBCMTD.lib(typinfo.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __getpid already defined in LIBCMTD.lib(getpid.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __fileno already defined in LIBCMTD.lib(fileno.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __setmode already defined in LIBCMTD.lib(setmode.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __close already defined in LIBCMTD.lib(close.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __open already defined in LIBCMTD.lib(open.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __read already defined in LIBCMTD.lib(read.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __write already defined in LIBCMTD.lib(write.obj)
MSVCRT.lib(MSVCR110.dll) : error LNK2005: __getcwd already defined in LIBCMTD.lib(getcwd.obj)
LIBCMTD.lib(wfopen.obj) : error LNK2005: __wfopen already defined in MSVCRT.lib(MSVCR110.dll)
Creating library debug\test.lib and object debug\test.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
fatal error LNK1169: one or more multiply defined symbols found
I tried to add /NODEFAULTLIBRARY:MSVCRT.LIB to my pro file but LIBCMTD errors still remain, and i get more warnings like this:
libxml2_a.lib(xmlmemory.obj) : warning LNK4217: locally defined symbol _malloc imported in function _xmlMallocBreakpoint
giflib416-static-mtdll.lib(gifalloc.obj) : warning LNK4049: locally defined symbol _malloc imported
giflib416-static-mtdll.lib(dgif_lib.obj) : warning LNK4217: locally defined symbol _malloc imported in function _DGifCloseFile
libxml2_a.lib(globals.obj) : warning LNK4049: locally defined symbol _malloc imported
libxml2_a.lib(threads.obj) : warning LNK4049: locally defined symbol _malloc imported
liblept168-static-mtdll.lib(pix1.obj) : warning LNK4217: locally defined symbol _malloc imported in function _pix_malloc
liblept168-static-mtdll.lib(jpegio.obj) : warning LNK4049: locally defined symbol _malloc imported
liblept168-static-mtdll.lib(fpix1.obj) : warning LNK4049: locally defined symbol _malloc imported
If i build that project dynamically using non-static qt version and opencv non-static libraries everything works just fine. (i guess that would be /MD). So i assume that leptonica is compiled with /MD and i need to recomplie it with /MTd (static debug). Please help, or maybe provide a faq or solution for building leptonica using vc2012.

Resources