lzweopard / carve

Automatically exported from code.google.com/p/carve
Other
0 stars 0 forks source link

Build failed #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Fails to build, I'm not sure why, C++ noob. I tried --with-boost-collections, 
it failed on some other place.

Original issue reported on code.google.com by dusan.ma...@gmail.com on 5 Jun 2011 at 3:27

Attachments:

GoogleCodeExporter commented 8 years ago
$ g++ -v
Using built-in specs.
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.4.4-14ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.4 --enable-shared --enable-multiarch 
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls 
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc 
--enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic 
--enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu 
--target=i686-linux-gnu
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) 

Original comment by dusan.ma...@gmail.com on 5 Jun 2011 at 3:51

Attachments:

GoogleCodeExporter commented 8 years ago
This should be fixed by the changeset 9f0b295384cb, however I note that you're 
using autotools to build. Because cmake is the preferred method now, I can't be 
certain that you won't run into other problems. If you do, please report them 
and I'll try and fix them. It would be better, however, if you could build with 
cmake, if possible.

Original comment by tobias.s...@gmail.com on 6 Jun 2011 at 3:12

GoogleCodeExporter commented 8 years ago
Hi tobi, I tried cmake like:
cd carve
cmake .

and got the following:

-- Using system boost
-- Found OpenGL: /System/Library/Frameworks/OpenGL.framework 
-- Found OpenGL and GLUT
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found PythonInterp: /opt/local/bin/python2.7 
-- Configuring done
CMake Error at src/CMakeLists.txt:26 (add_executable):
  Cannot find source file:

    face_merge.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx

-- Build files have been written to: /Users/skrat/Workspace/carve

Original comment by dusan.ma...@gmail.com on 6 Jun 2011 at 12:48

GoogleCodeExporter commented 8 years ago
BTW, what's the message about "Found PythonInterp"? Are there some bindings? 
Because my point was to try carve with ply/obj input first, if all works well I 
planned on tiny python wrapper to save me from running a subprocess.

Why 2 build methods?

Original comment by dusan.ma...@gmail.com on 6 Jun 2011 at 12:50

GoogleCodeExporter commented 8 years ago
Apologies. The missing file is now added.

There are two build systems because I started using autotools, and maintaining 
Visual C++ and XCode project files on the side, and then discovered that CMake 
could produce all three (even though the project files produced are a bit odd, 
and depend on CMake). As a result, CMake became my preferred build system, and 
the autotools code has languished a bit. It should probably either be updated, 
or removed, but I haven't decided which.

No, there are no python bindings available at the moment. I think that would be 
a great addition, though.

Original comment by tobias.s...@gmail.com on 8 Jun 2011 at 12:03

GoogleCodeExporter commented 8 years ago
Hey! It works!

Original comment by dusan.ma...@gmail.com on 8 Jun 2011 at 4:32