Summerlu1 / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

libgoogle-data-mono-2.1.0.0 fails to compile #660

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I get this error:
make -j5 -j1 PREFIX=/usr 
gmcs /d:TRACE -target:library -out:Google.GData.Client.dll 
src/core/abstractentry.cs src/core/feedquery.cs src/core/tracing.cs 
src/core/atomsource.cs src/core/extcollections.cs src/core/simpleelement.cs 
src/core/xmlextension.cs src/core/atombase.cs src/core/rssfeedparser.cs 
src/core/authexceptions.cs src/core/asyncDataHandler.cs 
src/core/versioninterface.cs src/core/atomuri.cs src/core/basefeedparser.cs 
src/core/atomlink.cs src/core/atomfeed.cs src/core/feedconstants.cs 
src/core/atombaselink.cs src/core/simplecontainer.cs src/core/service.cs 
src/core/goauthrequest.cs src/core/atomtextconstruct.cs 
src/core/gauthrequest.cs src/core/exceptions.cs src/core/mediaservice.cs 
src/core/asyncservice.cs src/core/documentquery.cs src/core/batcherror.cs 
src/core/mediasource.cs src/core/atomfeedparser.cs src/core/logrequest.cs 
src/core/atomcategory.cs src/core/basenametable.cs src/core/abstractfeed.cs 
src/core/collections.cs src/core/authsubutil.cs src/core/request.cs 
src/core/utilities.cs src/core/HttpUtility.cs src/core/atomnametable.cs 
src/core/serviceinterface.cs src/core/atomcontent.cs src/core/atomfeedentry.cs 
src/core/atomlogo.cs src/core/authentication.cs src/core/gdatabatch.cs 
src/core/atomperson.cs src/core/extensionbase.cs src/core/appcontrol.cs 
src/core/atomId.cs src/core/oauthutil.cs src/core/oauthbase.cs 
src/core/atomFeedgenerator.cs src/core/resumableupload.cs 
src/core/goauth2request.cs src/core/oauthparameters.cs 
src/core/gauthsubrequest.cs src/core/atomicon.cs src/core/AssemblyInfo.cs 
src/core/oauthuri.cs src/core/feedmodel.cs src/core/batcherrors.cs 
version/AssemblyVersion.cs -r:System.dll -r:System.Xml.dll 
-r:System.Configuration.dll -keyfile:src/core/clientkey.sn
src/core/oauthbase.cs(8,7): error CS0246: The type or namespace name 
`Newtonsoft' could not be found. Are you missing an assembly reference?
Compilation failed: 1 error(s), 0 warnings
make: *** [Google.GData.Client.dll] Error 1

Original issue reported on code.google.com by pachora...@gmail.com on 25 May 2013 at 11:56

GoogleCodeExporter commented 8 years ago
Same problem here. Looks like Newtonsoft JSON does not exist on Linux/Mono. 
There isn't any source that can be easily compiled to work (only Ubuntu seems 
to have it).

Original comment by schmatz...@googlemail.com on 23 Apr 2014 at 2:53

GoogleCodeExporter commented 8 years ago
This may be a bit old now, but I was able to build Newtonsoft-JSON on 
Slackware. Just look at this script and you get the idea if you want to do it 
yourself:

http://schmatzler.de/my_slackbuilds/banshee/SlackBuilds/newtonsoft-json/newtonso
ft-json.SlackBuild

I registered the DLL with gacutil, but still got the error above, so I modified 
the Makefile of google-gdata to include the DLL directly. It works:

FRAMEWORK_REFS = -r:System.dll -r:System.Xml.dll -r:System.Configuration.dll 
-r:/usr/lib/mono/newtonsoft-json/Newtonsoft.Json.dll

Original comment by schmatz...@googlemail.com on 25 Jun 2014 at 1:27

GoogleCodeExporter commented 8 years ago
version 2.2 still has this issue 

Original comment by vcut...@gmail.com on 25 Jan 2015 at 2:08

GoogleCodeExporter commented 8 years ago
You can also download the dll and compiled sources from: 
https://github.com/JamesNK/Newtonsoft.Json/releases and reference it the way 
schmatz did

Original comment by vcut...@gmail.com on 25 Jan 2015 at 2:12