cmake files for building Newton-2.36

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Sun Jul 15, 2012 6:07 pm

ok, sinc and see if it is right.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: cmake files for building Newton-2.36

Postby Emperor2k3 » Sun Jul 15, 2012 6:14 pm

Julio Jerez wrote:ok, sinc and see if it is right.

yes this is correct! thank you very much.
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby carli2 » Mon Jul 16, 2012 1:43 am

I tried your makefile, but the .so is somewhat corrupted:
Code: Select all
./gwX.engine: symbol lookup error: src/libNewton.so: undefined symbol: _ZN14dAnimationClip6UpdateEP19dAnimationTransformi

The old makefiles work correctly afaik they dont include any extra library code like dAnimation and such

Edit: I found the reason:
Code: Select all
file(GLOB_RECURSE NewtonLibSrc
    ${CMAKE_SOURCE_DIR}/coreLibrary_300/source/*.cpp
)

file(GLOB_RECURSE NewtonLibH
    ${CMAKE_SOURCE_DIR}/coreLibrary_300/source/*.h
)


just paste the file list from the posix makefiles there. They are correct.
When Julio adds some random unused .cpp files to the directory, it will break the makefile.
carli2
 
Posts: 157
Joined: Thu Nov 10, 2011 1:53 pm

Re: cmake files for building Newton-2.36

Postby Kjow » Wed Aug 22, 2012 4:53 pm

Emperor2k3 wrote:I wrote a cmake script for Newton-2.36 and published it already in the gentoo bug tracker. On my gentoo linux machine it works. Would be nice if its possible to provide this two small files with the next Newton release, since the original Makefiles are very buggy and inflexible. I did not check it on windows or mac, but maybe someone take a look on it and improve it that it works there without problems, too.

Best regards


Hi!
I downloaded your script and newton-dynamics-2.36.rar (from http://code.google.com/p/newton-dynamics/downloads/list )

I have a working project under windows and I want to port it under linux, so I'm trying to compile libs under Ubuntu 12.04 X64

Edit [solved]:
the script works well, just installing libtinyxml-dev:

Code: Select all
sudo apt-get install libtinyxml-dev


Thank you! :)
Kjow
 
Posts: 56
Joined: Thu Nov 13, 2008 11:33 am

Previous

Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 1 guest

cron