While trying to get the cma.py script running, I encountered a similar error. 
It also wasn’t able to find the glib-2.0 package. I have a strong assumption 
why: 
The scripts are searching for the path /usr/lib/i386-linux-gnu/pkgconfig 
But, in my ubuntu installation its always /usr/lib/x86_64-linux-gnu/pkgconfig 
The same with some other paths in the file “/pyclasswrappers/AssimCtypes.py”. 
Starting in line 602 there are a lot of paths pointing to i386 directories. 

I also had to add my path in line 593
add_library_search_dirs(['../../bin/clientlib', 
'/home/alanr/monitor/bin/clientlib', '/usr/lib/i386-linux-gnu', 
'/usr/lib/x86_64-linux-gnu'])

Changing this, the script was able to passes these lines of code. 
Then it stopped again. I’ll write a separate mail for that issue as it has 
nothing to do with the “changed” paths. 

Thanks
Andreas


-------- Original-Nachricht --------
Datum: Thu, 20 Sep 2012 10:07:06 +0200
Von: "Andreas Scheuring" <[email protected]>
An: Alan Robertson <[email protected]>
CC: [email protected]
Betreff: Compiling issue on ubuntu 12.04 and workaround

Hi Alan, 
I decided to spilt my concerns into several mails, as they address different 
issues and Operating Systems. 
I also compiled your code on an Ubuntu 12.04 Operating System. It took me a 
while but it worked. In a view words I will describe what happened. I did all 
the actions as root.

I updated the system with all the needed packages and tried to cmake it. The 
following error occurred.
#########Output###############
root@assimmon1:/assimmon/bin# cmake ../Experimental-Assimilation-3195581b5863/
-- The C 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
-- checking for module 'glib-2.0'
--   package 'glib-2.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 
(_pkg_check_modules_internal)
  CMakeLists.txt:12 (pkg_check_modules)


-- found gnu
-- Found Doxygen: /usr/bin/doxygen
-- Configuring incomplete, errors occurred!
########################


The problem here is, that pkg-config wasn’t able to find the file 
“glib-2.0.pc”. So I had to add the right path to the system variable with
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig

After that it worked fine!

Andreas


_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

Reply via email to