cmake files for building Newton-2.36

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

cmake files for building Newton-2.36

Postby Emperor2k3 » Wed Jul 11, 2012 10:23 am

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
Attachments
newton-2.36_cmake_files.tar.gz
(1.17 KiB) Downloaded 402 times
Last edited by Emperor2k3 on Sun Jul 15, 2012 10:10 am, edited 1 time in total.
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Wed Jul 11, 2012 11:00 am

yes that will be very cool, but we need to let core 200 rest in peace.

can you make the same cMake for core 300, and I include it with the archive? I cna veryfy teh window and Mac part.
I do not want to go back to core 200, unless is a real crash bug that is stoping some one.
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 carli2 » Wed Jul 11, 2012 11:45 am

Julio Jerez wrote:yes that will be very cool, but we need to let core 200 rest in peace.

can you make the same cMake for core 300, and I include it with the archive? I cna veryfy teh window and Mac part.
I do not want to go back to core 200, unless is a real crash bug that is stoping some one.

I cannot release a game where all objects fall down to nirvanah ;) as long as I dont get newton 3.00 running with my complex code, newton 2.xx will be the choice.
carli2
 
Posts: 157
Joined: Thu Nov 10, 2011 1:53 pm

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Wed Jul 11, 2012 12:16 pm

but carli, I never say to do anything like that.
I am sorry you feel upset, I try to help you wit the problesm you have but I can no take teh chance to run a program that I am consistley warn it has a risk.
Run a scanner on the program or find a different ftp,
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 carli2 » Thu Jul 12, 2012 3:35 am

Julio Jerez wrote:but carli, I never say to do anything like that.
I am sorry you feel upset, I try to help you wit the problesm you have but I can no take teh chance to run a program that I am consistley warn it has a risk.
Run a scanner on the program or find a different ftp,


I dont have windows, so I cannot install anti virus scanners. I simply cross compile with my linux tools.
Look, Norton and all these anti viruses are just snake oil. They look if programs are not written with the same tools as ICQ, Firefox or MSVC and then reject them because it could be a virus. My game is written in freepascal which has an other initialization mechanism than C/C++. This could lead anti viruses to think it's a descrambler.

I can also pack a linux64 executable or you can try the .exe with wine under linux. This wont have any risk for your productive system.
carli2
 
Posts: 157
Joined: Thu Nov 10, 2011 1:53 pm

Re: cmake files for building Newton-2.36

Postby Emperor2k3 » Sun Jul 15, 2012 10:13 am

Julio Jerez wrote:yes that will be very cool, but we need to let core 200 rest in peace.

can you make the same cMake for core 300, and I include it with the archive? I cna veryfy teh window and Mac part.
I do not want to go back to core 200, unless is a real crash bug that is stoping some one.


of course i could do it for core 300, i am on it. i am dealing with some redefinitions right now. but what is with the core 200 release? maybe it is possible to give us a maintenance release with bugfixes, since there is no stable 300 release right now.
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby Emperor2k3 » Sun Jul 15, 2012 10:47 am

now i am running in that SSE instruction issues which other guys already mentioned in the forum
Code: Select all
[  0%] Building CXX object CMakeFiles/Newton.dir/coreLibrary_300/source/core/dgPolygonSoupBuilder.cpp.o
In file included from /home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgAVX_Instrutions.h:28:0,
                 from /home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgVector.h:28,
                 from /home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgMatrix.h:28,
                 from /home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgPolygonSoupBuilder.cpp:29:
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgSimD_Instrutions.h: In member function 'simd_128 simd_128::AddHorizontal() const':
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgSimD_Instrutions.h:149:46: error: '_mm_hadd_ps' was not declared in this scope
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgSimD_Instrutions.h: In member function 'simd_128 simd_128::DotProduct(const simd_128&) const':
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgSimD_Instrutions.h:164:55: error: '_mm_hadd_ps' was not declared in this scope
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgSimD_Instrutions.h: In member function 'simd_128 simd_128::DotProduct_SSE4(const simd_128&) const':
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgSimD_Instrutions.h:175:46: error: '_mm_dp_ps' was not declared in this scope
make[2]: *** [CMakeFiles/Newton.dir/coreLibrary_300/source/core/dgPolygonSoupBuilder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Newton.dir/all] Error 2
make: *** [all] Error 2


since i am not SSE experienced i have problems to fix that. as far as i can see it is a platform issue affected by GCC/MSVC compiler differences
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Sun Jul 15, 2012 12:00 pm

there is a define that disable SSE altogether
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 12:02 pm

Julio Jerez wrote:there is a define that disable SSE altogether

i managed that already, now i am stucking at the dgThread class.
Code: Select all
[  0%] Building CXX object CMakeFiles/Newton.dir/coreLibrary_300/source/core/dgThread.cpp.o
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.cpp: In constructor 'dgThread::dgThread()':
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.cpp:37:20: error: 'm_threadhandle' was not declared in this scope
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.cpp: At global scope:
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.cpp:103:8: error: 'dgThreadOld' has not been declared
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.h: In function 'void* ThreadSystemCallback(void*)':
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.h:49:7: error: 'void dgThread::RunForEver()' is private
/home/srohmen/develop/newton/newton-dynamics/coreLibrary_300/source/core/dgThread.cpp:115:18: error: within this context
make[2]: *** [CMakeFiles/Newton.dir/coreLibrary_300/source/core/dgThread.cpp.o] Error 1
make[1]: *** [CMakeFiles/Newton.dir/all] Error 2
make: *** [all] Error 2

the member variable m_threadhandle seems not be declared. i will dig further in it.
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Sun Jul 15, 2012 12:50 pm

you must have an old version, teh tread class does not math what those errors show.
sinc to svn
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 12:53 pm

Julio Jerez wrote:you must have an old version, teh tread class does not math what those errors show.
sinc to svn


seems to be, i've made much of porting stuff already but there are files missing now. i used the alpha version of 3.00 from 4th of February. seems that i have to make a patch from my changes i have now an merge them into the recent svn version...
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Sun Jul 15, 2012 1:31 pm

you need to get svn version. many of the issues you have, had being resolved
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 3:46 pm

okay i have almost done it with the recent SVN version. i just was able to compile everything except of some packages: dCompilerKit, dContainers and dVisualDebuggerServer
i commented them out in the cmake file, so that me or some other can take a look on it later.
Attachments
newton-svn-r2314-cmake-files.tar.gz
(1.41 KiB) Downloaded 394 times
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Re: cmake files for building Newton-2.36

Postby Julio Jerez » Sun Jul 15, 2012 4:43 pm

where do I put it?
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 5:06 pm

Julio Jerez wrote:where do I put it?

unpack it to the root folder of the rar file / repository, where applications , coreLibrary_300 and packages lives
Emperor2k3
 
Posts: 8
Joined: Mon Jul 09, 2012 10:58 am

Next

Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 6 guests

cron