Missing Includes with relative Pathes

Hello together,
I'm rather new to Arch and i keep running into errors while including some header files from /usr/include and i don't know how to fix that. I's not like this happens on every header file so i don't know where to search anymore.
Here is what i mean
fatal error: vtkImageReader2.h: No such file or directory
#include <vtkImageReader2.h>
^
compilation terminated.
and if I search for the file i can find it
lerentis@KL45:~$ ls -al /usr/include/vtk-5.10 | grep vtkImageReader2.h
-rw-r--r-- 1 root root 9566 Oct 15 2012 vtkImageReader2.h
Anyone has an idea how to fix that?
Regards
Lerentis

progandy wrote:
lerentis wrote:I'm trying to build plc from the AUR, but it happened before.
Shouldn't the default include path be recursive everything under /usr/include/ ?
No, it shouldn't. Many libraries rely on pkg-config to simplify the generation of the necessary compiler flags, but in this case you'll have to do it manually. Add the following to INCPATH in the makefile:
-I/usr/include/vtk-5.10
# e.g.
INCPATH = -I/usr/share/qt/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include -I/usr/include/vtk-5.10 -I. -I.
If i edit the PKGBUILD and try it again i get the error
/tmp/yaourt-tmp-lerentis/aur-pcl/./PKGBUILD: line 50: INCPATH: command not found
is this in another package?
here is the full file
# Maintainer : Yuxin Wu <[email protected]>
# Contributor: Sven-Hendrik Haase <[email protected]>
# Contributor: hauptmech
# Contributor: figo.zhang
# Contributor: lubosz
pkgname=pcl
pkgver=1.7.1
pkgrel=1
pkgdesc="A comprehensive open source library for n-D Point Clouds and 3D geometry processing"
arch=('x86_64' 'i686')
url='http://www.pointclouds.org'
license=('BSD')
depends=('flann' 'vtk' 'qhull' 'qt4')
makedepends=('cmake' 'eigen3' 'boost' 'openni2')
optdepends=('openmpi' 'cuda' 'openni2')
source=("https://github.com/PointCloudLibrary/pcl/archive/pcl-${pkgver}.tar.gz")
md5sums=('ce8fa17662544eb4bb7b084191a61ad5')
build() {
cd $srcdir/pcl-pcl-$pkgver
# From pcl 1.7.1-1, Use Qt4, since vtk doesn't compile under Qt5
sed -i 's/include.*pcl_find_qt5\.cmake.*//g' CMakeLists.txt
[[ -d build ]] && rm -r build
mkdir -p build && cd build
# -DBUILD_gpu_people=OFF \ Disable until CUDA npp detection is fixed in cmake
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_CUDA=ON \
-DBUILD_cuda_io=ON \
-DBUILD_cuda_apps=ON \
-DBUILD_GPU=ON \
-DBUILD_gpu_surface=ON \
-DBUILD_gpu_tracking=ON \
-DBUILD_apps=ON \
-DBUILD_app_3d_rec_framework=ON \
-DBUILD_app_cloud_composer=ON \
-DBUILD_app_in_hand_scanner=ON \
-DBUILD_app_modeler=ON \
-DBUILD_app_point_cloud_editor=ON \
-DBUILD_examples=OFF \
-DBUILD_global_tests=OFF \
-DBUILD_simulation=ON \
-DBUILD_surface_on_nurbs=ON
INCPATH = -I/usr/include/vtk-5.10
make
package() {
cd $srcdir/pcl-pcl-$pkgver/build
make DESTDIR=$pkgdir install
install -Dm644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
Last edited by lerentis (2014-03-25 13:24:20)

Similar Messages

  • Entity include with relative path in XML using JAXB

    Moving this from the Java Technologies for Web Services forum to this one.
    With the jwsdp jars I'm trying to use JAXB to load in several specified XML files. This works fine. The XML files are read in from a relative link "/templates/mainXML.xml" and the xml string read in and passed to the unmarshaller as a StreamSource:
    BufferedReader reader = new BufferedReader(new InputStreamReader(getClass().getResource(xmlPath_).openStream()));
    while ( (line = reader.readLine()) != null) {
    buff.append(line.trim()+"\n");
    String xml = buff.toString();
    u.unmarshall(new StreamSource(new StringReader(xml)))
    But my XML files are becoming rather large with some repitition across the files so I'd like to use the entity incude in the header of the XML to abstract some of the XML into addMe.xml e.g:
    <!DOCTYPE StrategyTemplate [
    <!ENTITY IncludeTimeComponent SYSTEM "file:///templates/addMe.xml">]>
    with &IncludeTimeComponent;
    But it gives this error:
    Caused by: java.io.FileNotFoundException: \templates\addMe.xml (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
    at java.net.URL.openStream(URL.java:1007)
    at weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:836)
    at weblogic.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:767)
    at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1095)
    at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1513)
    at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
    at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
    at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
    at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
    at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
    at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152)
    at com.lb.cmte.oms.interpreter.jaxb.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
    ... 11 more
    It works fine if I put the file in the working directory or supply the full path e.g.
    <!DOCTYPE StrategyTemplate [
    <!ENTITY IncludeTimeComponent SYSTEM "file:///C:/dev/templates/addMe.xml">]>
    with &IncludeTimeComponent;
    I've tried using jwsdp2.0 jars rather than 1.4 I was using previously, but with the same result.
    But I don't want to do that, because I don't know where that might be. I'd like to be able to supply the xml file's path as it would be shown within a JAR as I do currently for the mainXML.xml files. Thanks in advance for any help!

    Oh, I see why. When XML talks about a "relative path" that means relative to the URL the XML was loaded from. But when the parser doesn't have such a URL -- for example in cases like yours where you are parsing from a String -- then it falls back to assuming the XML was loaded from the current working directory.
    This is almost never a good assumption, but what else can it do?
    Looking at your code, I don't understand why you are parsing from a String anyway. All of that code that reads from an input stream, ignoring the line endings and putting back new line endings, seems pointless to me. You should just marshal directly from getClass().getResource(xmlPath_) as far as I can see. Then your relative paths would work just fine.

  • Acrobat X (10.0.2) trows Error when SaveAs with relative paths

    Hi,
    I'm wondering if this is a bug in Acrobat X.
    When I try to execute the script
    this.saveAs("../TEST.pdf"); or this.saveAs({cPath: "../TEST.pdf"}); it always throws this exception.
    UnsupportedValueError: Value is unsupported. ===> Parameter cPath.
    I did a cross-check with Acrobat 9, there both scripts are working fine and my file is saved into the parent directory.
    What's going on here?

    That's courious,
    a moment ago it doens't work.
    I thought, it may be because of an restriction to the system drive (C:\).
    So I tried it on another drive, but the same result, again, again, again...
    Now, after I killed the whole Acrobat processes it works on every drive, from the console and through a folder level script for local drives and also network paths.
    On another computer I got the exception again.
    But then, after I executed the saveAs once with an absolute path it also works with relative paths.
    What the hell?

  • Problem with include and relative path in jsp

    Precompile jsp with wlappc in 9.2, I got the error "The include file was not found" when the jsp use <%@ include file="../includes/dataEntry/code_error.html" %>
              This code used to work with 8.1. I notice that someone has report the same problem with 9.0 and you have patch for it. Is it fix in 9.2 or do I require a patch as well?
              Thanks,
              Khuemy

    When you precompile, can you say "Keepgenerated=TRUE". It might help you track
              down the difference with the URL. You should only get a 404 error when the
              resource is not found at runtime, which is independant of when you compile. The
              difference should be in how the URL is compiled.
              Chris
              ali wrote:
              > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
              > it forwards ok if I am using directly JSPs but if I am using pre-compiled
              > JSPs (and have proper servlet-mappings
              > in my web.xml), I get 404 error with the relative-path, if I change it to
              > absolute path with pre-compiled JSPs it forwards ok , then.
              > any ideas why this is so?
              > thanks,
              

  • Links to PDF files with relative paths from a Captivate 4 project

    I'm creating a presentation in Captivate 4 (I'm making an exe file) with some links to PDF files; the links are buttons with the 'open URL or file' set. The presentation will be distributed in CDs and obviously the links will not work for they point to an absolute path in my PC. Is there another way to display external files? thanks

    "file:\file folder\filename" is not a relative path.  It's still an absolute path because you're specifying the path all the way from the root drive, whether you used a drive letter or not.
    A relative path shows where to find the other file in relation to the file that is calling it.
    Relative paths look like this:
    myDoc.doc (if the file is in the same directory as the file calling it)
    folderName/myDoc.doc (if the file is inside a folder in the same directory as the file calling it)
    ../myDoc.doc (if the file is located in the parent directory above the file that is calling it)
    ../../myDoc.doc (if the file is located two levels above the file that is calling it)
    etc
    Here's a tutorial that explains it better: http://www.communitymx.com/content/article.cfm?cid=230ad

  • Query with relative paths

    I have a client who is fairly au fait with Dreamweaver but has run into some difficulties so they have asked me to take over.
    The problem files' (downloaded from the net into Dreamweaver using the 'get' function), relative paths were 'out' by an extra hierarchical level and hence didn't display or work correctly locally on my laptop. I haven't yet looked into why this was the case but was able to fix it without too much hassle by using the find and replace feature.
    However I am confused as to why these html pages display correctly online as their paths have an extra ../ in them.
    One of the pages that has the extra level is this http://www.wildlifeartgallery.com/exhibitions/harry_becker2/harry_becker2_page1.html
    The hierachy of the files in the website is as below with the scripts and styles folders on the same level as the index.html page. The problematic pages are located 'exhibitions/harry_becker2/harry_becker2_page1.html' to page7 (page 10 is me testing).
    Surely the relative links to the styles folder should be ../../ as they are with all the other artists' exhibition pages rather than ../../../ ??
    I would be most grateful if someone could take a look for me and give me an expIanation as to how the CSS and scripts display and work without issue when they seem to be linked incorrectly or is it me going mad!!
    Thanking you in anticipation.
    Lisa
    FYI I use Dreamweaver CS5.5 on OSx 10.6 and my clients use Dreamweaver CS6 on Mountain Lion.

    First thing I will tell you at the outset is that before you downloaded the site from the remote server, you should have defined a site on your laptop by creating the necessary folders for the site name, css, scripts, images, downloads, etc etc.  this would have put you in a better position and you would have avoided doing find & replace work.
    Now coming to your main question, the links in a website are either document relative or site relative.  The difference is that with site relative, you need to provide the full http:// address but with document relative, DW will put the links like this:
    <link href="css/main.css" rel="stylesheet" type="text/css">
    </head>
    As your site is now working, you will be better off keeping it as it is otherwise, you can read the first part of David's tutorial that teaches how to setup the basic site.  It doesn't go into creating folders for images, css, scripts etc but you get the idea after you have worked on his tutorial.
    <http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1_cs6.html>
    Good luck.

  • Adobe form - Dynamic resizing and UI elements access with relative path

    In the form, there are 190+ fields, grouped nad divided into different sections. We have section(subform) and field(UI Element) configurations in which we need to make Form ui elements invisible based on section/Fields.
    eg. < Code Snippet>
    if(SectionsList<i> == <SectionName1>)
              Page1.Section1.Field1.presence     =  "hidden";
                    Page1.Section1.Field2.p1esence     =  "hidden";
              <.. rest of fields>
    if(SectionsList<i> == <SectionName2>)
              Page2.Section2.Field1.presence     =  "hidden";
                    Page2.Section2.Field2.p1esence     =  "hidden";
              <.. rest of fields>
    Here we are using absolute path for the the ui elements which includes page numbers.
    The requirement is whenever we make a section or a field invisible the form size should get resized.
    e.g.let us say we suppress 2 sections occupying 3 pages of total 8 pages of the form, then the rendered form should have only 5 pages
    There are two issues here:
    1) When the UI elements of section are hidden, the section is not getting shrinked or resized
    2) Let us say above issue gets resolved and section gets shrinked; how can we locate the UI element using script? Currently we have coded java script for hiding UI elements by giving absolute path of UI element i.e. for example   Page1.Section1.Field1

    Hi Ganga,
    Yes at the time of design itself I will have the fields for one entity in a subforms flowed.
    and all these subforms into a large subform flowed. if there are some special fields they will be into a different subform.
    with is you will have a freedom of manuplating any subsection and since all the subforms are flowed it will automatically wrap up.
    In your case I dont find a reason to have a every single filed in one subform and is flowed unless your form is something like a single column / pillar like Qutub minar.
    If you can send me your xdp file, i can fix the design issue and can check whats resetting your form data.
    Cheers,
    Sai

  • Search and replace with relative paths

    On my 4GB site, each page has a relative link to a single
    image in a top folder. I want to get rid of all the images. How do
    I search for <img src="Access/images/woCmt.gif"> and an img
    with any number of relative links such as <img
    src="../Access/images/woCmt.gif"> or <img
    src="../../Access/images/woCmt.gif"> or more ../s in the src
    path. I want a single find to replace each img tag (to that image)
    with nothing, that is delete each one. I've looked at using regular
    expression with * with no success.

    Have you tried: [\.\/]*
    That will match zero or more . or / characters (which are
    special
    Regular Expression characters, so they need to be escaped).
    HTH,
    Randy
    > On my 4GB site, each page has a relative link to a
    single image in a top
    > folder. I want to get rid of all the images. How do I
    search for <img
    > src="Access/images/woCmt.gif"> and an img with any
    number of relative links
    > such as <img src="../Access/images/woCmt.gif"> or
    <img
    > src="../../Access/images/woCmt.gif"> or more ../s in
    the src path. I want a
    > single find to replace each img tag (to that image) with
    nothing, that is
    > delete each one. I've looked at using regular expression
    with * with no success.

  • How to read file in netbeans web project with relative path.

    Hi friends,
    I have created a web project in Netbeans with following stucture.
    Exercise1
    src --> database --> ConnectionManager.java
    cofig --> databaseproperties.xml
    I want to read config\databaseproperties.xml file in src\database\ConnectionManager.java file.
    I have tried to create a file input stream with path = "config" File.separator "databaseproperties.xml".
    I am getting error of File Not Found..
    Anybody has any idea? In Netbeans what is the default context path?
    Edited by: Jaykishan on Jun 29, 2010 11:54 AM

    place the *.jrxml files in your war (e.g. WEB-INF\classes\report.jrxml) and then in your servlet:
    JasperReport report = JasperCompileManager.compileReport("report.jrxml");

  • Displaying local image file in JEditorPane with relative path

    Hi All,
    I am showing an html inside JEditorPane. I have set its content type to text/html. The code goes like this,
    StringBuffer bf=new StringBuffer();
    bf.append("<html><head></head><body>");
    bf.append("<img src=\"calendar.gif\" width=\"10\" height=\"10\" border=\"0\">");
    bf.append(" <font face=\"Verdana\" size=\"3\">");
    bf.append("Hi All");
    bf.append("</font><br>");
    bf.append("</body></html>");
    jeditorpane.setContentType("text/html");
    jeditorpane.setText(bf.toString());
    The image calendar.gif is present at the base directory of the package. But still it is not shown in JEditorPane. But if i give full path like,
    <img src="file://C:/man/calendar.gif">
    then image appears.
    Any idea like what is the document root for JEditorPane??
    Thanks in Advance,
    Manjinder Singh

    One solution is to dynamically set the base href
    String s = "test.txt"; // "dummy" file in current directory
    File f = new File(s);
    s = f.getAbsolutePath();
    s = "file:\\"+s;
    p("<BASE HREF='" + s + "'>");

  • Problem with jsessionid and relative paths

    I'm having an issue with jsessionid in a J2EE application running on an all Oracle platform (Oracle DB, 9ias, etc.). Most of the time sessions are tracked with cookies, but occasionally the jsessionid appears on the URL (on first login with a new browser window I think?).
    Anyway, sometimes the session id is very large (100 chars +) and includes special characters, specifically a backslash. This is causing problems with relative paths in the page.
    Is this normal behavior or is there a problem with my app server/JVM setup? Has anyone else seen this? Thanks for any advice.

    Hi Stefan,
              The issue was logged as CR238704. You can either contact [email protected] or
              just pass me your email Id and I'll send the patch to you.
              -- Nagesh
              <Stefan Krause> wrote in message news:[email protected]..
              > The problem I have is that the application is very old and at the same
              > time very big (so we're doing the transition step by step) and there are
              > lots of variables (and even methods in JSP pages - no comment) shared
              > between the JSP pages!
              > So for us jsp:include isn't an option...
              >
              > Is there a way to report bugs when you've got only the free development
              > license?

  • Relative path with images

    Hi All -
    I have a strange situation with relative paths. When I use a relative path in cfinclude it works. But when I use a relative path is "src" attribute of <img>, it does not work. Can anyone suggest why could this be happening?
    Thanks

    Adam Cameron. wrote:
    Because you're expectation is that apples work the same as oranges.
    CF relative paths are relative to the CF file the path is in; HTML relative paths are relative to the URL browsed to.
    Remember CF code is run on the CF server; HTML is rendered on the browser.
    Adam
    The beauty of relative pathing is that it plucks them from the tree and calls either fruit.

  • How to open a configurat​ion file with a relative path?

    I want to open a configuration file during the initialization of my application (first "state," u can say) and I am using "Open Config file.vi" and tried to pass the config file's path as "data\myconfig.ini" and the "File exists?" vi didn't give any error (simply, the output was "false") but the Open config File gave an error.
    If I pass an absolute path "D:\xyz\xyz\myconfig.ini" it works fine. Isn't it allowed to use "relative path" as I remember using it before for other tasks?
    I actually prefer to have this file in the "data" folder that my application's setup will create in the destination directory while installing the application, because it will be easy when I want to ask the user to open and edit it. Or, I would just put it in "C:\" which exists on all the windows computers, but then it would be too much open.
    Thanks ahead!
    Vaibhav
    Solved!
    Go to Solution.

    Relative paths have sometimes a meaning for command line tools (where a relative path gets appended to the current path, which usually is the executables directory).
    But for Windows GUI applications that makes not much sense. Windows also maintains a per process current path, but that path gets updated by several Windows APIs, one of them being the File Dialog. So whatever your user has last selected in any file dialog inside your application will from then on be the applciations current path. It should be clear that with such a braindamaged current path implementation it has basically no useful meaning, and LabVIEW consequently does not do path expansion, where relative paths are expanded by prepending them with the applications current path.
    Also LabVIEW uses mostly the Windows 32 Bit API, which does provide the current path implementation but does almost not use it in any of its file operations. The use of that feature is mostly reserved for the Windows shell API, which is a higher level API that can as best be described as a collection of various APIs that have been thrown together by whatever some MS developer felt at the moment. You can not by any means call it a designed API at all, and LabVIEW makes almost no use of it, as it needs lower level access, to make its operation similar in its working across all the platforms, LabVIEW can run on.
    So while you can work with relative paths inside your application (and actually should as much as possible to make your application not depend on a particular location) you should make that path absolute whenever you pass it to a function that actually accesses a file somewhere.
    Rolf Kalbermatter
    Message Edited by rolfk on 09-08-2009 11:31 PM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Frame 12 converting relative paths to absolute paths

    Hi all,
    We recently upgraded to Frame 12 and now have a persistent issue with relative paths to referenced images becoming absolute.  These paths do not traverse a drive and so I believe Frame should be maintaining a relative path for these. In most cases -- perhaps in all, although I have not done exhaustive testing --  the problem paths are for images on a master page.
    Any idea why this might be occurring and what we can do to fix it?  Our docs team shares files checked out from a server, and each time one of us opens a document, it has an absolute path to a location on another writer's computer.  We each maintain the exact same directory structure for all Frame/image files, and again, the path to the problem images is local and does not traverse the C drive.
    Thanks in advance,
    Shelley

    May or may not be relevant, but do the affected relative paths need to traverse the root directory of the logical drive?
    I seem to recall, in experiments some years ago on FM7.1, that the final /../ needed to be at least one level down.

  • TestStand API: Set relative path

    Dear NI community!
    Could someone help, please, with the following - is there is some option to set file path to code modules, inside test sequence, to have relative, but not absolute path? I add programmatically code modules to sequence steps, but currently they have absolute path. Is it possible to change it to relative with TestStand API?
    Thanks in advance.
    Solved!
    Go to Solution.

    I was wrong. It's possible to manually cut path to file (according to Search Directories of TestStand). Then code modules will be added with relative pathes. But one should be careful - path should be cut correctly.
    For example, I have full path
    E:\Development\source code\supplementary\TestVIs\Code Modules\Service\Print.vi
    My Search Directory is 
    E:\Development\source code\supplementary\TestVIs\
    So, I need to cut like this:
    Code Modules\Service\Print.vi
    and without slash at the beginning!
    Then it will be OK.

Maybe you are looking for

  • Macbook pro 2009 unibody with white screen and kernel panics

    I upgrade to Lion a month or two ago and things have been working fine. A few days ago, I try to wake my computer from sleep and it freezes on a white screen. I reboot only to continue to find the white screen. I hear the chime every time on boot. Fr

  • Problems downloading photos from the camera to iPod

    Last week I tried to download photos from the camera to my 60 GB iPod. I had almost near 150 pictures (jpg) but something happened. The iPod (or the iPod Camera Connector) isn't able to transfer more than 60 photos (aprox.). For bigger amounts, the t

  • WBS/ CC number based on PO#

    Hi, I have a requirement where I need to fetch WBS/Cost Center details based on PO # & Line item#. Also note that PO line item can have material or service. Please advice how do i fetch these details at TABLE level.

  • How can I unactivate a form in a pdf so I can share an uncustomizable document after filling it?

    How can I unactivate a form in a pdf so I can share an uncustomizable document after filling it?

  • Help, want to buy a new system

    I dabble in video, DV since 1999. In January I upgraded to a Sony HDV cam and just cannot go back ;^) SW I own is Final Cut Pro 4.1 Academic (upgraded through updates to 4.5 HD) & FCE HD. In the past I have used everything from an iBook G4, to an iMa