[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 271228] New: KDevelop doesn't find headers from source
From: David <daviddoria () gmail ! com>
Date: 2011-04-18 16:40:11
Message-ID: bug-271228-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=271228
Summary: KDevelop doesn't find headers from source directory of
a library
Product: kdevelop
Version: git master
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Build tools: CMake
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: daviddoria@gmail.com
Created an attachment (id=59107)
--> (http://bugs.kde.org/attachment.cgi?id=59107)
Example code
Version: git master (using Devel)
OS: Linux
My workflow never used to include an 'install'. I would simply:
mkdir ~/src/ITK
cd ~/src/ITK
git clone ...
mkdir ~/bin/ITK
cd ~/bin/ITK
cmake ~/src/ITK
make
Then when I open a project which uses ITK, I set ITK_DIR to ~/bin/ITK
and all is well.
Recently that method ends up with "cannot find header" errors.
Reproducible: Always
The following files:
CMakeLists.txt
-------------
cmake_minimum_required(VERSION 2.6)
PROJECT(RescaleIntensityImageFilter)
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
ADD_EXECUTABLE(Simple Simple.cxx)
TARGET_LINK_LIBRARIES(Simple ${ITK_LIBRARIES})
Simple.cxx
-----------
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkRescaleIntensityImageFilter.h"
int main(int argc, char *argv[])
{
typedef itk::Image<unsigned char, 2> ImageType;
typedef itk::ImageFileReader<ImageType> ReaderType;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(argv[1]);
typedef itk::RescaleIntensityImageFilter< ImageType, ImageType >
RescaleFilterType;
RescaleFilterType::Pointer rescaleFilter = RescaleFilterType::New();
rescaleFilter->SetInput(reader->GetOutput());
rescaleFilter->SetOutputMinimum(0);
rescaleFilter->SetOutputMaximum(255);
return EXIT_SUCCESS;
}
produce the error of: Simple.cxx:3:44: fatal error:
itkRescaleIntensityImageFilter.h: No such file or directory
even thought the file exists in the source directory:
cd ~/src/ITK
[doriad@daviddesktop ITK]$ find . -name itkRescaleIntensityImageFilter.h
./Modules/Filtering/ImageIntensity/include/itkRescaleIntensityImageFilter.h
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic