<br>
<br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 11:53 PM, Andreas Pakulat <span dir="ltr"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 20.12.10 23:34:55, ny wrote:<br>
> The code was never been tested on a mac, not to mention snow leopard.<br>
> I have the guarantee that it compiles + builds for win + linux.<br>
> Project was a collaborative effort and unfortunately I am stuck without a<br>
> makefile =P and with the ugly *.vcproj file. Note that I did not use an<br>
> automated ruby script I found for<br>
<br>
</div>Then either it doesn't build on Linux or there must be something else<br>
for Linux. There is no buildsystem that operates on .vcproj files<br>
(afaik) except VS which doesn't work on Linux.<br>
<div class="im"><br></div></blockquote><div><br></div><div><meta charset="utf-8"> I have the guarantee that it compiles + builds for linux, not the makefile though =P</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
> the translation of *.vcproj to makefile, since the script only<br>
> handled the basics -> no pre/post-build steps or file-specific flags are<br>
> included;<br>
> instead, I translated from scratch to CMakelists and then converted to<br>
> makefile. not that tricky as it sounds..<br>
><br>
> So, assuming the problem is w/ the makefile, why do I have a clean<br>
> makefile during the configuration/generation steps?<br>
<br>
</div>Are you mixing up Makefile (which is something that make works with) and<br>
CMakeLists.txt (which is the input for cmake, which then generates<br>
Makefiles from it)? To me the above doesn't make much sense when talking<br>
purely about Makefile's.<br></blockquote><div><br></div><div>indeed, the ruby script was translating *.vcproj to CMakelists *not* to makefile.</div><div>thanks </div><meta charset="utf-8"><meta charset="utf-8"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> Note that I choose to generate Unix makefile, not an xcode project.<br>
><br>
> I 've successfully translated the *.vcproj file into a makefile,<br>
> fixed a few issues, linked to external libs, but the build w/ make fails and<br>
> I get<br>
><br>
> *i686-apple-darwin10-g++-4.2.1: g++: No such file or directory<br>
> make[2]: *** [CMakeFiles/.../.../...cpp.o] Error 1<br>
> make[1]: *** [CMakeFiles/.../.../all] Error 2<br>
> make: *** [all] Error 2<br>
</div>> *<br>
<br>
Whats the full errror and the full compile line (run make VERBOSE=1)?<br>
<div><div></div><div class="h5"><br>
> which, honestly, I don't remember seeing before -> complaining about<br>
> g++ I mean and not missing file or dir. Note that g++ *is* in place, I can<br>
> successfully compile other programs.<br>
><br>
> Assuming that /usr/bin was somehow not in the path during the cmake<br>
> invocation,<br>
> I used<br>
> *<br>
> *<br>
> *set(CMAKE_C_COMPILER /usr/bin/gcc)*<br>
> *set(CMAKE_CXX_COMPILER /usr/bin/g++)*<br>
><br>
> in the beginning of my CMakeList.txt without any luck.<br>
> It complained temporarily for a conflict, i.e. had to reset the cache,<br>
> but no progress so far. I<br>
><br>
><br>
> I am stuck a few hours now and I suspect (or better hope) that the<br>
> problem is sth similar to the typical 32-bit/64-bit problem in mac<br>
> ports. I tried w/ -arch i386 -m32 flags without any luck, so I 'd love to<br>
> hear any thoughts, ideas..<br>
> I guess there are parts of the code need to be re-written especially<br>
> for OS X SL, but I cannot figure out the problem since the failing error is<br>
> not<br>
> descriptive enough.<br>
><br>
> When I build a xcodeproj (with g++ flag -arch i386), I get:<br>
><br>
> *lipo: can't figure out the architecture type of: /var/folders/9b/<br>
> 9b2CWG5gHvCi5hawjO4o5E+++TI/-Tmp-//ccXHDX6t.out<br>
> Command /Developer/usr/bin/gcc-4.2 failed with exit code 1<br>
> *<br>
> When I build a xcodeproj (with g++ flag -arch x86_64), I get:<br>
><br>
> *setenv LANG en_US.US-ASCII<br>
> /Developer/usr/bin/gcc-4.2 -x c++ -arch x86_64 -fmessage-length=0 -<br>
> pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -mdynamic-no-<br>
> pic -DCMAKE_INTDIR="Debug" -isysroot /Developer/SDKs/MacOSX10.6.sdk -<br>
> mmacosx-version-min=10.6 -gdwarf-2 -Wmost -Wno-four-char-constants -<br>
> Wno-unknown-pragmas //... ...<br>
> i686-apple-darwin10-gcc-4.2.1: g++: No such file or directory<br>
> Command /Developer/usr/bin/gcc-4.2 failed with exit code 1*<br>
><br>
> all cryptic..<br>
<br>
</div></div>Do you have a g++ in /Developer/usr/bin/? I don't know too much about<br>
the setup of Compilers on MacOSX, but if gcc-4.2 is run in that path,<br>
maybe it expects the g++ at the same place and not just /usr/bin (unless<br>
the two are symlinked).<br>
<br>
Andreas<br>
<br>
--<br>
Tonight's the night: Sleep in a eucalyptus tree.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>