Ticket #575 (closed defect: fixed)
Opened 3 years ago
Last modified 3 years ago
cmake is crashing?
| Reported by: | cipri | Owned by: | scottmc |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | default | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I wanted to see how is missing to get ogre3d working on haiku.
I downloaded the soure of ogre 1.7.4 from here: http://www.ogre3d.org/download/source
I installed cmake and then tried to compile ogre with the command
cmake -G "Unix Makefiles"
The result was a crash (and it crashes all the time like that) with the following error:
cmake: /Buildbot/nightly-uploader/workdir/haiku/src/system/libroot/posix/malloc/processheap.cpp:166:void BPrivate::processHeap::free(vo id*): sb
Change History
comment:1 Changed 3 years ago by cipri
comment:2 Changed 3 years ago by cipri
just tested it again to be sure.
On gcc2h it works without porblems.
On gcc4 only nightly it crashes like already explained.
comment:3 Changed 3 years ago by augiedoggie
- Owner set to scottmc
Most likely the package needs to be update as it's really old. I have 2.8.5 installed on my gcc4 partition and it works fine.
$ mkdir ogrebuild $ cd ogrebuild $ cmake ../ogre_src_v1-7-4 -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /boot/develop/tools/gnupro/bin/gcc -- Check for working C compiler: /boot/develop/tools/gnupro/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /bin/c++ -- Check for working CXX compiler: /bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring OGRE 1.7.4 -- Check size of void* -- Check size of void* - done -- Performing Test OGRE_GCC_HAS_SSE -- Performing Test OGRE_GCC_HAS_SSE - Success -- Performing Test OGRE_GCC_VISIBILITY -- Performing Test OGRE_GCC_VISIBILITY - Success -- Detected g++ 4.6.2 -- Enabling GCC visibility flags -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Search path: /Projects/ogrebuild/Dependencies;/Projects/ogre_src_v1-7-4/Dependencies;/Projects/ogrebuild/../Dependencies;/Projects/ogre_src_v1-7-4/../Dependencies -- Looking for ZLIB... -- Found ZLIB: optimized;/boot/system/lib/libz.so;debug;/boot/system/lib/libz.so -- Looking for ZZip... -- Could not locate ZZip -- Looking for FreeImage... -- Could not locate FreeImage -- Looking for FREETYPE... -- CMAKE_PREFIX_PATH: /Projects/ogrebuild/Dependencies;/Projects/ogre_src_v1-7-4/Dependencies;/Projects/ogrebuild/../Dependencies;/Projects/ogre_src_v1-7-4/../Dependencies;/usr/local -- Found FREETYPE: optimized;/boot/system/lib/libfreetype.so;debug;/boot/system/lib/libfreetype.so -- Found OpenGL: /boot/system/lib/libGL.so -- Looking for Cg... -- Cg_PREFIX_PATH changed. -- Could not locate Cg -- Looking for POCO... -- Could not locate POCO -- Looking for TBB... -- Could not locate TBB -- Looking for OIS... -- OIS_PREFIX_PATH changed. -- Could not locate OIS -- Found Doxygen: /boot/common/doxygen/bin/doxygen -- Looking for CppUnit... -- Could not locate CppUnit CMake Error at CMake/Utils/MacroLogFeature.cmake:100 (MESSAGE): ----------------------------------------------------------------------------- -- The following REQUIRED packages could NOT be located on your system. -- Please install them before continuing this software installation. -- If you are in Windows, try passing -DOGRE_DEPENDENCIES_DIR=<path to dependencies> ----------------------------------------------------------------------------- + X11: X Window system <http://www.x.org> + Xt: X Toolkit <http://www.x.org> + Xaw: X11 Athena widget set <http://www.x.org> ----------------------------------------------------------------------------- Call Stack (most recent call first): CMake/Dependencies.cmake:208 (MACRO_DISPLAY_FEATURE_LOG) CMakeLists.txt:175 (include) -- Configuring incomplete, errors occurred!
comment:4 follow-up: ↓ 5 Changed 3 years ago by michaelvoliveira
Firstly you need to create if conditions into cmake file to avoid the search for X11 libs (IF NOT BEOS) ;)
comment:5 in reply to: ↑ 4 Changed 3 years ago by cipri
Replying to michaelvoliveira:
Firstly you need to create if conditions into cmake file to avoid the search for X11 libs (IF NOT BEOS) ;)
cmake should not crash, nomater how the cmake files are.
comment:6 Changed 3 years ago by scottmc
- Owner scottmc deleted
comment:7 Changed 3 years ago by augiedoggie
- Owner set to scottmc
There is a reason I assigned this to you
comment:8 Changed 3 years ago by scottmc
- Resolution set to fixed
- Status changed from new to closed
Updated cmake to 2.8.5 in Haiku hrev44352.
Try Haiku hrev44352 or later and see if this is still an issue, if so then reopen this ticket.

I tried that on one of the latest nightly (gcc2h or gcc4).