compile.sh build failed on OSX

Bug #721918 reported by Wolf St. Kappesser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Invalid
Wishlist
Jens Beyer

Bug Description

Got this error on Mac OS X 10.6.6 with widelands revno: 5842 [merge] after

# sh ./compile.sh :

Should Widelands be build in [r]elease or [d]ebug mode?

r

  -> Release mode selected

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- 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 whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- 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
-- Disabled Unit Tests
-- Boost version: 1.45.0
-- Using compiler flags: -O2 -DNDEBUG
CMake Error at cmake/Modules/FindGGZ_Core.cmake:18 (MESSAGE):
  Could not find GGZ_Core
Call Stack (most recent call first):
  CMakeLists.txt:259 (find_package)

-- Configuring incomplete, errors occurred!

EDIT:
The problem: I have my libs and includes installed in a non standard folder. Which way I should use to inform compile.sh about this paths?

Tags: cmake
Revision history for this message
Nicolai Hähnle (nha) wrote :

The error message indicates very clearly that this is because the GGZ libraries are either not installed or cannot be found. Please install those libraries and try again.

Changed in widelands:
status: New → Invalid
status: Invalid → Incomplete
assignee: nobody → Jens Beyer (Qcumber-some) (qcumber-some)
importance: Undecided → Wishlist
Revision history for this message
Nicolai Hähnle (nha) wrote :

On second thought, Jens, do you think it would be possible to display an informative text message that indicates to the user where those libraries can be downloaded from? I remember seeing such messages in the KDE build process, and they are of course very useful to prevent this type of bug reports.

tags: added: cmake
Wolf St. Kappesser (wsk)
description: updated
Revision history for this message
Nicolai Hähnle (nha) wrote :

I suppose it depends on how non-standard that path is. Can you give more information, please?

compile.sh can only find automatically what cmake can find automatically, and if the installation path is sufficiently non-standard, then it's your responsibility to tell cmake about that, by invoking it directly instead of via the convenience script. Refer to doc/README.compiling for general info on how you would do that - I see it's lacking Mac OS X specific information, but it should be similar to under Linux.

If somebody with a Mac runs across this report, do you think you could extend that README accordingly?

Revision history for this message
Wolf St. Kappesser (wsk) wrote :

I think it will work with 'export'. I will try to update the compiling instructions on webpage and the readme for osx.

David Allwicher (aber)
Changed in widelands:
status: Incomplete → Invalid
Revision history for this message
Wolf St. Kappesser (wsk) wrote :

I have edit the build instructions on the website. You can adapt the README simply by use this page infos. Think the issue is solved. Greets WSK

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.