newtonSDK Licensing

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: newtonSDK Licensing

Postby Stucuk » Sun Aug 15, 2010 4:48 am

hicham wrote:At least developers can compile it as they want it. And distributions can include it ( since that is how Linux works ).

As far as i understand, for Standard Linux what Julio compiles should work on all Standard Linux Distributions? If so then i don't see why you need to compile it yourself. People who use windows don't need to compile it themselfs, they just wait for Julio to release a new version, like what happens with most software thats developed. Unless what Julio compiles doesn't work with a certain Linux(Which people actually use) then you don't need to compile it yourself.

Note: Unless anyone is seriously going to make something for Linux ARM, etc then its a completely mute point, so people should just talk about Standard Linux if thats all anyone is going to seriously use Newton on.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: newtonSDK Licensing

Postby hicham » Mon Aug 16, 2010 8:10 pm

@Julio Jerez

no PIC code still.

Just put the static lib back if the code can't be built with -fPIC.
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby Julio Jerez » Mon Aug 16, 2010 8:47 pm

But I did made the 32 bit build using the -FPIE flag for linux.

you also say -fpic when I write fpic I get compiler error.

how can I test if teh .so file has that flag?
Julio Jerez
Moderator
Moderator
 
Posts: 12481
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: newtonSDK Licensing

Postby hicham » Mon Aug 16, 2010 9:00 pm

Julio Jerez wrote:But I did made the 32 bit build using the -FPIE flag for linux.

you also say -fpic when I write fpic I get compiler error.

how can I test if teh .so file has that flag?


eu-findtextrel libNewton.so
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby Julio Jerez » Mon Aug 16, 2010 9:51 pm

Ok I will verify that tonight.
Julio Jerez
Moderator
Moderator
 
Posts: 12481
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: newtonSDK Licensing

Postby hicham » Mon Aug 16, 2010 10:10 pm

Here is a good document on PIC importance for shared libs :

http://www.gentoo.org/proj/en/hardened/ ... =printable
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby hicham » Tue Aug 17, 2010 2:33 am

and btw, can you update the license in the package : doc/license.txt, that is a real blocker
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby hicham » Tue Aug 17, 2010 2:34 am

I mean to allow redistribution explicitely
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby Stucuk » Tue Aug 17, 2010 7:03 am

The whole Doc folder should be removed from Linux and Mac Distributions as its the 1.53 Documentation folder and has nothing to do with 2.0 . As i keep saying, there is no License.txt for Newton 2.0 . If you read the license its for version 1.53 .

If you don't believe me then believe Julio:
Julio Jerez wrote:Those points are from the old 1.53 license


Julio has already stated you can redistribute the SDK's files(As long as you keep the copyright notices in the C++ files):
Julio Jerez wrote:you can do what even you want with the library.

Julio Jerez wrote:where does the license say "Not Redistributable"
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: newtonSDK Licensing

Postby Julio Jerez » Tue Aug 17, 2010 9:10 am

hicham wrote:
Julio Jerez wrote:But I did made the 32 bit build using the -FPIE flag for linux.

you also say -fpic when I write fpic I get compiler error.

how can I test if teh .so file has that flag?


eu-findtextrel libNewton.so


julio@julio-desktop:~$ cd NewtonLinux32/development/
julio@julio-desktop:~/NewtonLinux32/development$ dir
dg libNewton.a libNewton.so makefile makefile~ newton physics
julio@julio-desktop:~/NewtonLinux32/development$ eu-findtextrel libNewton.so
The program 'eu-findtextrel' is currently not installed. You can install it by typing:
sudo apt-get install elfutils
bash: eu-findtextrel: command not found
julio@julio-desktop:~/NewtonLinux32/development$ sudo apt-findtextrel elfutils
[sudo] password for julio:
sudo: apt-findtextrel: command not found
julio@julio-desktop:~/NewtonLinux32/development$ findtextrel libNewton.so
bash: findtextrel: command not found
julio@julio-desktop:~/NewtonLinux32/development$
Julio Jerez
Moderator
Moderator
 
Posts: 12481
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: newtonSDK Licensing

Postby Julio Jerez » Tue Aug 17, 2010 9:39 am

you are right I was a moron, I added the -fpic to a variable that is used in debug by make

I added the common option variable now and I get the error I told you about, that only happens in 32 bit

here is is
gcc -c -Wall -Wno-strict-aliasing -D_LINUX_VER -O2 -msse -fPIC -msse2 -ffloat-store -ffast-math -freciprocal-math -funsafe-math-optimizations -fsingle-precision-constant -Idg -Iphysics -o dg/dgTypes.o dg/dgTypes.cpp
dg/dgTypes.cpp: In function ‘dgCpuClass dgGetCpuType()’:
dg/dgTypes.cpp:301: error: can't find a register in class ‘BREG’ while reloading ‘asm’
dg/dgTypes.cpp:301: error: ‘asm’ operand has impossible constraints
make: *** [dg/dgTypes.o] Error 1
julio@julio-desktop:~/Desktop/NewtonLinux32/development$


the function that is trying to compiled is this
Code: Select all
#if (defined (_LINUX_VER) || defined (_MINGW_32_VER) || defined (_MINGW_64_VER))

   #define cpuid(func,ax,bx,cx,dx)\
      __asm__ __volatile__ ("cpuid":\
      "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) : "a" (func));

   static dgInt32 i386_cpuid(void)
   {
      int a, b, c, d;
      cpuid(1,a,b,c,d);
      return d;
   }

   dgCpuClass dgApi dgGetCpuType ()
   {
      #define bit_MMX (1 << 23)
      #define bit_SSE (1 << 25)
      #define bit_SSE2 (1 << 26)

#ifndef __USE_DOUBLE_PRECISION__

      if (i386_cpuid() & bit_SSE) {
         return dgSimdPresent;
      }
#endif
      return dgNoSimdPresent;
   }

#endif

it is important for PC users in 32 bit mode, because there are some Newton users who still run Newton in machines that do not have SSE instructions but that are still good CPU like the AMD athloms.

if you can tell me how to get rid of the asm instruction to detect SSE support then it will work, but I could not find out in Linux.
somehow that function compile fine with GCC 4.3.3 in 64 bit mode.

one solution could be to remove the SSE in linux, I like that but unfortunatly
that will cripple the SSE mode which in 32 bit is a significant improvement in all OS, specially with people using Intel dual cores.
Julio Jerez
Moderator
Moderator
 
Posts: 12481
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: newtonSDK Licensing

Postby hicham » Tue Aug 17, 2010 4:48 pm

@Julio Jerez :

Have a look at this :

http://sam.zoy.org/blog/2007-04-13-shli ... c-mix-well
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby hicham » Tue Aug 17, 2010 4:53 pm

Stucuk wrote:If you don't believe me then believe Julio


It is not a matter of believing; To add newton to rpmfusion.org repos, the tarball should have a license that explicitly allows redistribution.
hicham
 
Posts: 31
Joined: Thu Aug 05, 2010 10:15 pm
Location: Taza

Re: newtonSDK Licensing

Postby Julio Jerez » Tue Aug 17, 2010 5:47 pm

Oh I see you save the register on the stack.
Ha I will try that detection funtion.

what does the licence should say?
Julio Jerez
Moderator
Moderator
 
Posts: 12481
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: newtonSDK Licensing

Postby Stucuk » Tue Aug 17, 2010 6:50 pm

This should cover every situation:
"You may use and distribute the files contained in the Newton Game Dynamics SDK in anyway you see fit, as long as the usage is within the confines of the Law."

@hicham: They don't allow you to upload stuff which doesn't have a license agreement? (Which 2.0 doesn't, only 1.53 does)
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron