草庐IT

directory-tree

全部标签

c++ - 错误 QApplication : no such file or directory

我已经安装了具有Qt的C++SDK,但是当我尝试编译链接QApplication的代码时,它给了我错误:ErrorQApplication:nosuchfileordirectory如何链接这些库?我搜索了目录,有一个名为QApplication.h的文件;所以我尝试用-I链接它(链接目录),但它仍然给我那个错误。 最佳答案 在Qt5中,您现在必须将widgets添加到QTqmake变量(在您的MyProject.pro文件中)。QT+=widgets 关于c++-错误QApplicat

c++ - ubuntu 12.04 中的 openCV 程序编译错误 "libopencv_core.so.2.4: cannot open shared object file: No such file or directory"

我在ubuntu12.04中编译并安装了openCV2.4.2。在/usr/local/include下我可以看到目录/usr/local/opencv和/usr/local/opencv2。这是我写的代码:#include#include#includeusingnamespacecv;usingnamespacestd;intmain(intargc,char**argv){Matimage;image=imread(argv[1],1);if(argc!=2||!image.data){cout我使用这个命令行编译它:g++DisplayImage.cpp-oDisplayIma

c++ - 无法打开共享对象文件 : No such file or directory

我遇到了在带有torch的集群的头节点上找不到的共享库。我已经构建了库并指定了库的正确路径,同时通过g++编译了我自己的程序“荒谬”。所以我觉得很奇怪。任何想法?谢谢和问候![tim@user1release]$make......g++-pipe-W-Wall-fopenmp-ggdb3-O2-I/home/tim/program_files/ICMCluster/ann_1.1.1/include-I/home/tim/program_files/ICMCluster/libsvm-2.89-I/home/tim/program_files/ICMCluster/svm_light

c++ - linux/videodev.h : no such file or directory - OpenCV on ubuntu 11. 04

我尝试在Ubuntu11.04上安装OpenCV2.2。但是OpenCV编译失败,说明与linux/videodev.h文件相关的错误。/user/includes/linux中可用的文件名为videodev2.h。/home/user/OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp:217:28:fatalerror:linux/videodev.h:Nosuchfileordirectorycompilationterminated.make[2]:***[modules/highgui/CMakeFiles/opencv_highgui.

git - 去安装: no install location for directory

我收到错误goinstall:noinstalllocationfordirectory。我的$GOPATH环境变量设置得很好。我遇到的问题是我不想在我的go工作区中开发。还是这是我唯一的选择?我在其他地方有一个gitrepo,我想在里面工作,如果二进制文件被编译成$GOPATH那很好-但我希望能够编译/从任意目录运行构建。我不希望其他合作者必须将repo克隆到他们的go工作区中?这对我来说似乎是一个严重的限制。 最佳答案 要么:更改您的GOPATH向GOPATH添加更多条目不要用go编译,而是编译器和链接器自己编译Iwouldn'

macos - 去安装: no install location for directory outside GOPATH

我安装了Go,然后在我的.bash_profile中添加了路径要求:导出PATH=$PATH:/usr/local/go/bin导出GOPATH=$HOME/go然后我设置正确的文件夹:我还创建了一个名为轮胎的投影。main.go的内容很简单:packagemainimport"fmt"funcmain(){fmt.Println("Hello,world!")}当我尝试运行goinstall时总是出现以下错误:goinstall:在GOPATH之外没有目录/Users/Daryl/go/src/tire的安装位置这是我运行goenv时得到的结果:GOARCH="amd64"GOBIN

unit-testing - Golang : tests and working directory

我正在为我的Go应用程序编写一些单元测试。然而,测试失败,因为它找不到配置文件。通常二进制文件会在conf/*.conf路径下的工作目录中查找配置文件。我认为浏览到有conf/的目录并在其中运行gotest可以解决它,但它仍然报告文件系统找不到路径指定。如何告诉gotest使用某个目录作为工作目录,以便实际执行测试? 最佳答案 您也许可以使用Caller来获取当前测试源文件的路径,如下所示:packagesampleimport("testing""runtime""fmt")funcTestGetFilename(t*testin

macos - Go 安装失败并出现错误 : no install location for directory xxx outside GOPATH

~/src/go-statsd-client>echo$GOPATH/Users/me/gopath~/src/go-statsd-client>echo$GOROOT/usr/local/Cellar/go/1.1.1\~/src/go-statsd-client>goinstallgoinstall:noinstalllocationfordirectory/Users/me/src/go-statsd-clientoutsideGOPATH无论项目采用何种结构,这总是失败并显示相同的消息。Gobuild完美运行。这是我的goenvGOARCH="amd64"GOBIN=""GOC

java - jackson JSON : get node name from json-tree

如何使用Jackson从JSON树中接收节点名称?JSON文件看起来像这样:{node1:"value1",node2:"value2",node3:{node3.1:"value3.1",node3.2:"value3.2"}}我有JsonNoderootNode=mapper.readTree(fileReader);需要类似的东西for(JsonNodenode:rootNode){if(node.getName().equals("foo"){//bar}}谢谢。 最佳答案 对于Jackson2+(com.fasterxml

linux - asm/errno.h : No such file or directory

在构建gcc时,我收到此错误:Infileincludedfrom/usr/include/bits/errno.h:25,from/usr/include/errno.h:36,from../.././gcc/tsystem.h:96,from../.././gcc/crtstuff.c:68:/usr/include/linux/errno.h:4:23:error:asm/errno.h:Nosuchfileordirectorymake[2]:***[crtbegin.o]Error1make[2]:Leavingdirectory`/opt/gcc-4.1.2/host-x8