Bug#641432: Multiarch libraries not found using find_library()

2011-09-14 Thread Patryk Cisek
 I can't reproducible on up-to-date sid, sorry. What's more, the bug
 itself is a bit inconsistent. The error is about X11 while example
 itself attempts to look for PNG.
Oh, sorry about that. I actually reproduced it when finding X11 when
compiling kadu. I switched in the demo to libpng, because FindPNG.cmake
is way simpler than FindX11.cmake and reproduced the same way as X11.
Just forgot to change my output from X11 to PNG in bug report mail.

Anyways, where does cmake take the directories for find_library() from?
I'd like to hunt the bug down. It might not be cmake's fault. Just
trying to dig into it a bit more.

BTW, all packages in my system are up-to-date Sid versions. Trying to
figure out the important difference between my system and yours.

Thanks. :)

-- 
Patryk Cisek



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#641432: [pat...@debian.org: Re: Bug#641432: Multiarch libraries not found using find_library()]

2011-09-14 Thread Patryk Cisek
Also forwarding to BTS.
-- 
Patryk Cisek
---BeginMessage---
Update:
I created new user just for testing.
Logged to that new user accout, and tried cmake with the demo again. No
problem here -- probably environment variable(s) problem?

-- 
Patryk Cisek
---End Message---


Bug#641432: Multiarch libraries not found using find_library()

2011-09-13 Thread Patryk Cisek
Package: cmake
Version: 2.8.5-1
Severity: important

When invoking cmake command, find_library() does not find library in
/usr/lib/arch-triplet directory.

Steps to reproduce (on DEB_HOST_MULTIARCH=i386-linux-gnu):
1) Make sure you've got libpng12-dev
# aptitude install libpng12-dev

2) Unpack tiny demo project attached to this report
$ cd ~
$ tar xfz /path/to/saved/attachment/demo.tar.gz
$ mkdir build_dir
$ cd build_dir
$ cmake ~/demo

Here you get an error:
CMake Error at /usr/share/cmake-2.8/Modules/FindX11.cmake:381 (MESSAGE):
  Could not find X11
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)

-- 
Patryk Cisek


demo.tar.gz
Description: Binary data


Bug#641432: Multiarch libraries not found using find_library()

2011-09-13 Thread Modestas Vainius

tags 641432 unreproducible moreinfo
thanks

2011.09.13 15:36, Patryk Cisek rašė:

Package: cmake
Version: 2.8.5-1
Severity: important

When invoking cmake command, find_library() does not find library in
/usr/lib/arch-triplet directory.

$ cat ../CMakeLists.txt
project(demo)
cmake_minimum_required(VERSION 2.8)
find_package(PNG REQUIRED)
find_package(X11 REQUIRED)
$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found ZLIB: /usr/lib/libz.so (found version 1.2.3.4)
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so
-- Looking for XOpenDisplay in 
/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in 
/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so 
- found

-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/modax/test/cmake/builddir


2) Unpack tiny demo project attached to this report
$ cd ~
$ tar xfz /path/to/saved/attachment/demo.tar.gz
$ mkdir build_dir
$ cd build_dir
$ cmake ~/demo

Here you get an error:
CMake Error at /usr/share/cmake-2.8/Modules/FindX11.cmake:381 (MESSAGE):
   Could not find X11
Call Stack (most recent call first):
   CMakeLists.txt:4 (find_package)


I can't reproducible on up-to-date sid, sorry. What's more, the bug 
itself is a bit inconsistent. The error is about X11 while example 
itself attempts to look for PNG.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org