I've got the following code in WebStorm 9 that I believe is valid (ecma6)
'use strict';
import codeCampBase from './src';
export default codeCampBase;
The error is on ./src saying "can not resolve ./src yet /src is a valid directory and the program works correctly.
Related
I installed Qt 6.2.0 with the online installer and selected most of the module for Desktop development.
I get this strange message:
/home/user/Qt/Examples/Qt-6.2.0/multimedia/video/mediaplayer/CMakeLists.txt:28: error: Found package configuration file: /home/user/Qt/6.2.0/gcc_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Quick". Expected Config file at "/home/user/Qt/6.2.0/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake" exists
English is not my primary language, and I'm not sure what the last sentence really means:
"Expected Config file at <path> exists"
Actually the file exists:
$ ls /home/user/Qt/6.2.0/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake
/home/user/Qt/6.2.0/gcc_64/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake
I don't understand why it don't find QtQuick and then I don't know how to fix it...
Failed to find Qt component "Quick".
see the file lib/cmake/Qt6Quick/Qt6QuickTargets.cmake
the variable _IMPORT_PREFIX tells cmake
where to find the include/ and lib/ files for QtQuick
usually its the parent-parent-parent folder of the cmake file
so /home/user/Qt/6.2.0/gcc_64 in your case
for debugging, add this to Qt6QuickTargets.cmake
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
# ...
message("debug: _IMPORT_PREFIX = ${_IMPORT_PREFIX}")
the file libQt6Quick.so should be in the _IMPORT_PREFIX path
otherwise find it by
cd /home/user/Qt/6.2.0/gcc_64
find . -name 'libQt6Quick.so*'
related:
the environment variable QT_ADDITIONAL_PACKAGES_PREFIX_PATH
helps qt to find the lib/cmake/Qt6(modulename)/Qt6(modulename)Targets.cmake files
Is it possible to build foundation from the .scss files simply using scss?
If I run:
scss compile --watch foundation.scss
I get an error:
error No such file or directory # rb_sysopen - compile
How to build the whole suite just using scss?
We use gulp for the most setups.
See https://github.com/foundation/foundation-zurb-template/blob/master/package.json#L7
The question comes from my puzzlement when compiling a makefile for Deep Learning framework Caffe on Ubuntu, but it relates, I believe, to a more general phenomenon of the nature of compiling a C++ makefile.
After "make all", the resulting files from the compilation were put in a hidden folder: .build_release, not in the respective folders where the cpp files are.
Then when I tried to run the following lines:
./data/mnist/get_mnist.sh
./examples/mnist/create_mnist.sh
I was getting an error that the system does not find the file:
./create_mnist.sh: 16: ./create_mnist.sh: build/examples/mnist/convert_mnist_data.bin: not found
But the file actually existed in the .build_release folder.
What happened and how to fix this problem?
The issue is not with make, you simply need to follow the instructions carefully. The BUILD_DIR is specified by Makefile.config. By default this folder is named build. Once you followed the compilation instructions:
cp Makefile.config.example Makefile.config
# Adjust Makefile.config (for example, if using Anaconda Python)
make all
make test
make runtest
Navigate to build:
cd build
./data/mnist/get_mnist.sh
./examples/mnist/create_mnist.sh
I am trying to compile the code from the following website on a 64 bit windows computer..
https://dms.sztaki.hu/en/project/gaussian-mixture-modeling-gmm-es-fisher-vector-toolkit
I am getting the following errors:
1) error configuration.. project files may be invalid
2) CMake Error: The source directory "/GMM_Fisher_toolkit/GMM_CUDA_src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
How can I compile it?
To create an out-of-source build:
Extract your source code to ~/src/test
Create a folder ~/build/test
Goto: ~/build/test
Run: cmake ../../src/test
Run: make
I would like to import an C++ GUI Project with its own Makefile in Eclipse.
In the command prompt, everything works fine. But when I import the project, it gives an error
make all
make: *** No rule to make target `all'. Stop.
Would be glad, if you give me an idea where I am going wrong.
Thanks
Kiran
How did you import the project? I have used Eclipse with existing makefile projects a couple of times by creating a new empty makefile project and overriding the location of the project to refer to where the Makefile is present. It warns that the directory already exists, but it works fine.
Make sure that your Makefile has an "all" target.
A typical all target rule could look like
all: ../bin/myApplicationName
#true
You'll probably also want to include a rule for clean if you don't already have one.
clean:
#-rm -f ../bin/myApplicationName *.o *.d