[SOLVED] Compiling

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Compiling

Postby bkv1958 » Feb 7th, '12, 20:11

Hi, I need help with compiling a program.

Cmake gives me these error messages

Code: Select all
- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- 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
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- checking for module 'gtk+-2.0'


I don't know what the CXX compiler identification is. The packages libgtk+2.0_0 and gtk+2.0 are installed.

Thanks, Bjørn
bkv1958
 
Posts: 10
Joined: Jan 22nd, '12, 21:25

Re: Compiling

Postby eonwir » Feb 7th, '12, 20:20

The CXX stands for the C++ compiler. You need to install the g++ compiler here, in addition to the normal gcc compiler for the C language. It is located in the package: gcc-c++.
eonwir
 
Posts: 16
Joined: Sep 15th, '11, 22:06

Re: Compiling

Postby bkv1958 » Feb 7th, '12, 20:34

eonwir wrote:The CXX stands for the C++ compiler. You need to install the g++ compiler here, in addition to the normal gcc compiler for the C language. It is located in the package: gcc-c++.


Thanks, thast took care of some of the problem, but it still fails with the mesages shown below
The packages libgtk+2.0_0, gtk+2.0 and webkit-1.0 that are reported missing, are installed.

Code: Select all
- checking for module 'gtk+-2.0'
--   package 'gtk+-2.0' not found
CMake Error at app/FindPkgConfig.cmake:270 (message):
  A required package was not found
Call Stack (most recent call first):
  app/FindPkgConfig.cmake:322 (_pkg_check_modules_internal)
  CMakeLists.txt:65 (PKG_CHECK_MODULES)


-- checking for module 'webkit-1.0'
--   package 'webkit-1.0' not found
CMake Error at app/FindPkgConfig.cmake:270 (message):
  A required package was not found
Call Stack (most recent call first):
  app/FindPkgConfig.cmake:322 (_pkg_check_modules_internal)
  CMakeLists.txt:66 (PKG_CHECK_MODULES)
bkv1958
 
Posts: 10
Joined: Jan 22nd, '12, 21:25

Re: Compiling

Postby eonwir » Feb 7th, '12, 20:49

You likely have the libraries installed, but you need also to install the headers of the libraries you need for compiling. They are located in the "-devel" version of the package, for instance for gtk+2-0 you have to install either libgtk+2.0-devel (in 32 bits) or lib64gtk+2.0-devel (in 64 bits).
Hope it helps!
eonwir
 
Posts: 16
Joined: Sep 15th, '11, 22:06

Re: Compiling

Postby bkv1958 » Feb 7th, '12, 20:59

Thanks again, it worked.
bkv1958
 
Posts: 10
Joined: Jan 22nd, '12, 21:25

Re: Compiling

Postby eonwir » Feb 7th, '12, 21:03

Great! :-)
eonwir
 
Posts: 16
Joined: Sep 15th, '11, 22:06


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron