Unity Command Line -- executeMethod and logFile not working? - unity3d

I'm trying to get started with Unity Command Line arguments and trying to simply make an editor function that writes to a file. If I run the function from within Unity, it works and I can successfully see the contents of the file, but when I'm trying to call it from the command prompt, it doesn't give any error messages in the console (and even if I change the name of the function to something that doesn't exist, it doesn't giev any errors either.. so also it would be cool to get an error stdout if possible). Here's my basic unity class (that works when called from within unity):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.Networking;
using System.IO;
public class CobysBundleBuilder {
public static void CobyBuildIt() {
var path = "Assets/test.txt";
StreamWriter writer = new StreamWriter(path, true);
writer.WriteLine("Hi there!");
writer.Close();
Debug.Log("ASDFGG");
MonoBehaviour.print("wow");
}
}
And this is the command I'm calling from the command line, I don't even see a logFile created:
C:\"Program Files"\Unity\Hub\Editor\2019.1.0b1\Editor\Unity.exe -batchmode -quit -projectPath C:\Users\me\OneDrive\Documents\"totally empty"\"New Unity Project" -executeMethod CobysBundleBuilder.CobyBuildIt -logFile C:\Users\me\OneDrive\Desktop
So first of all the desired file, which is placed in my assets folder (test.txt), isn't being written to (like it is when called from within Unity), and also the logfile isn't appearing on my desktop.
Am I missing something basic? I'm just trying to test the Unity command line arguments and get something basic to work.
Thanks, if anyone knows how to fix it.
P.S.:
Also it might be possible that the projectPath parameter might not be working, since when I call the command without -batchmode and -quit it just opens up the unity hub with a list of all my projects, but doesn't open the specific project passed as the paramter.
EDIT:
I tried putting the script in my Assets/Editor folder and checked the Editor.Log file in AppData and this is what it says (I changed the function BTW):
LICENSE SYSTEM [2019219 0:41:36] Next license update check is after 2018-08-28T23:32:35
LICENSE SYSTEM [2019219 0:41:36] 00342-20100-00000-AAOEM != 00342-20108-34498-AAOEM
Built from '2019.1/staging' branch; Version is '2019.1.0b1 (83b3ba1f99df) revision 8631226'; Using compiler version '191627012'
OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 11743 MB
BatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start -- Port 54964 was selected
COMMAND LINE ARGUMENTS:
C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Unity
-batchmode
-quit
-projectPath
C:\Users\me\OneDrive\Documents\totally empty
-executeMethod
MyScript.MyMethod
Successfully changed project path to: C:\Users\me\OneDrive\Documents\totally empty
C:/Users/me/OneDrive/Documents/totally empty
Using Asset Import Pipeline V1.
DisplayProgressbar: Unity Package Manager
Loading GUID <-> Path mappings...0.000110 seconds
Loading Asset Database...0.016790 seconds
AssetDatabase consistency checks...0.049615 seconds
[Package Manager] Done resolving packages in 0.74s seconds
[Package Manager] Registering 38 packages:
[Package Manager] * Package : com.unity.ads#2.0.8
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.ads#2.0.8)
[Package Manager] * Package : com.unity.analytics#3.2.2
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.analytics#3.2.2)
[Package Manager] * Package : com.unity.collab-proxy#1.2.15
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.collab-proxy#1.2.15)
[Package Manager] * Package : com.unity.package-manager-ui#2.1.1
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.package-manager-ui)
[Package Manager] * Package : com.unity.purchasing#2.0.1
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.purchasing#2.0.1)
[Package Manager] * Package : com.unity.textmeshpro#1.3.0
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.textmeshpro#1.3.0)
[Package Manager] * Package : com.unity.timeline#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.timeline)
[Package Manager] * Package : com.unity.xr.legacyinputhelpers#1.0.0
(location: C:\Users\me\OneDrive\Documents\totally empty\Library\PackageCache\com.unity.xr.legacyinputhelpers#1.0.0)
[Package Manager] * Package : com.unity.modules.ai#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ai)
[Package Manager] * Package : com.unity.modules.animation#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.animation)
[Package Manager] * Package : com.unity.modules.assetbundle#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.assetbundle)
[Package Manager] * Package : com.unity.modules.audio#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.audio)
[Package Manager] * Package : com.unity.modules.cloth#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.cloth)
[Package Manager] * Package : com.unity.modules.director#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.director)
[Package Manager] * Package : com.unity.modules.imageconversion#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imageconversion)
[Package Manager] * Package : com.unity.modules.imgui#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.imgui)
[Package Manager] * Package : com.unity.modules.jsonserialize#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.jsonserialize)
[Package Manager] * Package : com.unity.modules.particlesystem#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.particlesystem)
[Package Manager] * Package : com.unity.modules.physics#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics)
[Package Manager] * Package : com.unity.modules.physics2d#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.physics2d)
[Package Manager] * Package : com.unity.modules.screencapture#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.screencapture)
[Package Manager] * Package : com.unity.modules.terrain#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrain)
[Package Manager] * Package : com.unity.modules.terrainphysics#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.terrainphysics)
[Package Manager] * Package : com.unity.modules.tilemap#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.tilemap)
[Package Manager] * Package : com.unity.modules.ui#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.ui)
[Package Manager] * Package : com.unity.modules.uielements#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.uielements)
[Package Manager] * Package : com.unity.modules.umbra#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.umbra)
[Package Manager] * Package : com.unity.modules.unityanalytics#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unityanalytics)
[Package Manager] * Package : com.unity.modules.unitywebrequest#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequest)
[Package Manager] * Package : com.unity.modules.unitywebrequestassetbundle#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestassetbundle)
[Package Manager] * Package : com.unity.modules.unitywebrequestaudio#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestaudio)
[Package Manager] * Package : com.unity.modules.unitywebrequesttexture#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequesttexture)
[Package Manager] * Package : com.unity.modules.unitywebrequestwww#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.unitywebrequestwww)
[Package Manager] * Package : com.unity.modules.vehicles#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vehicles)
[Package Manager] * Package : com.unity.modules.video#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.video)
[Package Manager] * Package : com.unity.modules.vr#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.vr)
[Package Manager] * Package : com.unity.modules.wind#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.wind)
[Package Manager] * Package : com.unity.modules.xr#1.0.0
(location: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.modules.xr)
[Package Manager] Done registering packages in 0.01s seconds
Refreshing native plugins compatible for Editor in 18.94 ms, found 2 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
Initialize engine version: 2019.1.0b1 (83b3ba1f99df)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 11.0 [level 11.1]
Renderer: AMD Radeon(TM) R7 Graphics (ID=0x9874)
Vendor:
VRAM: 3433 MB
Driver: 22.19.180.513
Launched and connected shader compiler UnityShaderCompiler.exe after 0.14 seconds
[EnlightenBakeManager] m_Clear = false;
WARNING: Shader Unsupported: 'AR/TangoARRender' - Pass '' has no vertex shader
WARNING: Shader Unsupported: 'AR/TangoARRender' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VideoDecodeOSX' - Pass 'Flip_RGBARect_To_RGBA' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VideoDecodeOSX' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VideoDecodeAndroid' - Pass 'RGBAExternal_To_RGBA' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VideoDecodeAndroid' - Setting to default shader.
WARNING: Shader Unsupported: 'Hidden/VideoDecodeML' - Pass 'RGBAExternal_To_RGBA' has no vertex shader
WARNING: Shader Unsupported: 'Hidden/VideoDecodeML' - Setting to default shader.
Initialize mono
Mono path[0] = 'C:/Program Files/Unity/Hub/Editor/2019.1.0b1/Editor/Data/Managed'
Mono path[1] = 'C:/Program Files/Unity/Hub/Editor/2019.1.0b1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit'
Mono config path = 'C:/Program Files/Unity/Hub/Editor/2019.1.0b1/Editor/Data/MonoBleedingEdge/etc'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=0.0.0.0:56428
Begin MonoManager ReloadAssembly
Refreshing native plugins compatible for Editor in 0.97 ms, found 3 plugins.
Initializing Extension Manager v2019.1.0 for Unity v2019.1.0b1
Registering precompiled unity dll's ...
Register platform support module: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\PlaybackEngines\windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll
Register platform support module: C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Data\PlaybackEngines\WebGLSupport/UnityEditor.WebGL.Extensions.dll
Registered in 0.005863 seconds.
Registering platform support modules:
Registered platform support modules in: 0.2405032s.
Native extension for WindowsStandalone target not found
Native extension for WebGL target not found
Refreshing native plugins compatible for Editor in 0.59 ms, found 3 plugins.
Preloading 1 native plugins for Editor in 3.16 ms.
Mono: successfully reloaded assembly
- Completed reload, in 3.308 seconds
Registering precompiled user dll's ...
Registered in 0.082678 seconds.
Platform modules already initialized, skipping
Begin MonoManager ReloadAssembly
my new C# code is pretty much the same but here it is anyway:
using UnityEngine;
using UnityEditor;
using System.IO;
public class MyScript {
public static void MyMethod () {
var path = "Assets/test.txt";
StreamWriter writer = new StreamWriter(path, true);
writer.WriteLine("Hi there!");
writer.Close();
Debug.Log ("Here you put your code");
}
}
SO after I run the command the test.txt file still isn't created.
2nd Edit: I just saw the new answer that logfile indeed needs to be a file name, and after doing so the logfile was created! And this is what it says:
LICENSE SYSTEM [2019219 0:45:54] Next license update check is after 2018-08-28T23:32:35
LICENSE SYSTEM [2019219 0:45:54] 00342-20100-00000-AAOEM != 00342-20108-34498-AAOEM
Built from '2019.1/staging' branch; Version is '2019.1.0b1 (83b3ba1f99df) revision 8631226'; Using compiler version '191627012'
OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 11743 MB
BatchMode: 1, IsHumanControllingUs: 0, StartBugReporterOnCrash: 0, Is64bit: 1, IsPro: 0
[Package Manager] Server::Start -- Port 51774 was selected
COMMAND LINE ARGUMENTS:
C:\Program Files\Unity\Hub\Editor\2019.1.0b1\Editor\Unity
-batchmode
-quit
-projectPath
C:\Users\me\OneDrive\Documents\totally empty
-executeMethod
MyScript.MyMethod
-logfile
C:\Users\me\OneDrive\Desktop\wow.txt
Successfully changed project path to: C:\Users\me\OneDrive\Documents\totally empty
C:/Users/me/OneDrive/Documents/totally empty
Using Asset Import Pipeline V1.
DisplayProgressbar: Unity Package Manager
Loading GUID <-> Path mappings...0.000149 seconds
Loading Asset Database...0.018028 seconds
AssetDatabase consistency checks...0.041902 seconds
so it seems to be opening the project, but the test.txt file is still not created so it seems the function MyScript.MyMethod isn't being called still

As the document says, argument for -logfile should be a file name, and you seem to use a directory name, this may be the reason.
https://docs.unity3d.com/2019.1/Documentation/Manual/CommandLineArguments.html

Related

ionic use video.js throws error

I try to use video.js as my video player, but reaches error:
Uncaught (in promise): Error: Cannot find module "safe-json-parse/tuple" Error: Cannot find module "safe-json-parse/tuple"
Steps I did:
npm install -S video.js
import videojs from 'video.js';
write code in palyer.ts => videojs('my-player', { controls: true});
above error appears when player page is hit.
Anybody has any idea? Or what other 3rd party html5 video player can be easily plugged in?
environment details:
ionic info
global packages:
#ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
#ionic/app-scripts : 1.3.7
#ionic/cli-plugin-cordova : 1.4.0
#ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.3.0
System:
Node : v6.10.3
OS : Linux 4.10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10
I did the same thing, I had a safe-json-parse module so thought I was fine, but after doing:
npm install -s safe-json-parse
new files were added and the error was gone.
I downloaded the videojs js and css files to assets/ folder and references them in index.html.
By this way videojs works, though not as elegant as with npm package

FB.Init no callback for some users

I'm trying to add Facebook functionality to my Unity3D project, which is working for me. But for some unknown reason the test scene doesn't seem to work for some Facebook users. It looks like the the Facebook DLL doesn't load.
I'm using the example scene which comes with Unity3D Facebook SDK. No modifications, I only changed the App Name and App Id (Facebook Settings).
The application is set on public.
log when it works:
140505 15:36:05 ------------------------------------------------------------
140505 15:36:05 Instance starting, version 4.3.5f1_cab656801c19, UNITY_WEB_ENABLE_AUTODOWNLOAD: 1, GetDisableAutoUpdates(): 0
140505 15:36:05 Datafile https://oege.ie.hva.nl/~vriens09/facebook.unity3d
web: player version 4.3.6f1
web: load mono
Mono path[0] = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/player/Stable3.x.x/Data/lib'
Mono path[1] = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/lib'
Mono config path = 'C:/Users/Robert/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/etc'
web: start, src=https://oege.ie.hva.nl/~vriens09/facebook.unity3d abs=https://oege.ie.hva.nl/~vriens09/facebook.unity3d flags=0x1
web: sucessfully initialized
140505 15:36:06 loader: start ok
140505 15:36:06 Times: download 0.2 load 0.1
Loading webdata version: 4.3.4f1
Initialize engine version: 4.3.6f1 (7a73f0242edf)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 9.0c [nvd3dum.dll 9.18.13.3250]
Renderer: NVIDIA Quadro FX 570M
Vendor: NVIDIA
VRAM: 1255 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll into Unity Child Domain
Non platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll (this message is harmless)
Loading C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll into Unity Child Domain
- Completed reload, in 0.074 seconds
<RI> Initializing input.
<RI> Input initialized.
desktop: 1680x1050 60Hz; virtual: 1680x1050 at 0,0
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\System.Core.dll (this message is harmless)
Using SDK 5.1.0, Build 140401.725cc2ecbc9002a
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
loading dll: /rsrc/unity/lib/sdk_5.1/CanvasFacebook.dll
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\Mono.Security.dll (this message is harmless)
Non platform assembly: data-0B170078 (this message is harmless)
Finished loading Facebook dll. Version 5.1.0 Build 140313.f19caa5422b69ba
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
FB.Init completed: Is user logged in? True
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Robert\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\System.dll (this message is harmless)
log when it fails:
140505 15:33:35 ------------------------------------------------------------
140505 15:33:35 Instance starting, version 4.3.5f1_cab656801c19, UNITY_WEB_ENABLE_AUTODOWNLOAD: 1, GetDisableAutoUpdates(): 0
140505 15:33:36 Datafile https://oege.ie.hva.nl/~vriens09/facebook.unity3d
web: player version 4.3.6f1
web: load mono
Mono path[0] = 'C:/Users/Eigenaar/AppData/LocalLow/Unity/WebPlayer/player/Stable3.x.x/Data/lib'
Mono path[1] = 'C:/Users/Eigenaar/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/lib'
Mono config path = 'C:/Users/Eigenaar/AppData/LocalLow/Unity/WebPlayer/mono/Stable3.x.x/Data/etc'
web: start, src=https://oege.ie.hva.nl/~vriens09/facebook.unity3dabs=https://oege.ie.hva.nl/~vriens09/facebook.unity3d flags=0x1
web: sucessfully initialized
140505 15:33:36 loader: start ok
140505 15:33:36 Times: download 0.7 load 0.2
Loading webdata version: 4.3.4f1
Initialize engine version: 4.3.6f1 (7a73f0242edf)
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 9.0c [igdumd32.dll 8.15.10.1749]
Renderer: Mobile Intel(R) 965 Express Chipset Family (Microsoft Corporation - WDDM 1.1)
Vendor: Intel
VRAM: 64 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=0 NativeShadow=1 DF16=0 INTZ=0 RAWZ=0 NULL=0 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Assembly-CSharp.dll into Unity Child Domain
Non platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll (this message is harmless)
Loading C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\IFacebook.dll into Unity Child Domain
- Completed reload, in 0.119 seconds
<RI> Initializing input.
XInput1_3.dll not found.
<RI> Input initialized.
desktop: 1280x800 60Hz; virtual: 1280x800 at 0,0
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\System.Core.dll (this message is harmless)
Using SDK 5.1.0, Build 140401.725cc2ecbc9002a
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
loading dll: /rsrc/unity/lib/sdk_5.1/CanvasFacebook.dll
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
Platform assembly: C:\Users\Eigenaar\AppData\LocalLow\Unity\WebPlayer\mono\Stable3.x.x\Data\lib\Mono.Security.dll (this message is harmless)
Non platform assembly: data-09B0B848 (this message is harmless)
Finished loading Facebook dll. Version 5.1.0 Build 140313.f19caa5422b69ba
(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)
SDK Version 5.1.0
Unity3D Version 4.3.4f1

SDK Manager will not work

I am running windows 7 64 bit and I can't run my sdk manager. I've tried command prompt. I've done alot of RandD and can't seem to get it too work. I mean i don't get it. If Microsoft wants us to spend more money on their 64 bit operating systems why would they make it less functional than their 32 bit operating system? Anyways, here is there error I get every time try to run my sdk manager:
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] 'xcopy' is not recognized as an internal or external command,
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] operable program or batch file.
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] Access is denied.
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-win32-3550 or swt-win32 in swt.library.path, java.library.path or the jar file
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.showSdkManagerWindow(Main.java:334)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.doAction(Main.java:308)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.run(Main.java:119)
[2013-06-19 23:39:29 - SDK Manager] [SDK Manager] at com.android.sdkmanager.Main.main(Main.java:102)
Problem solved. Just had to right click sdk manager and run it as an administrator.

ndk-build library can't be added to apk file by eclipse and signature issue after aapt a the lib module

First, I am running a ubuntu 12.04 x86 virtual machine hosted on win8. I am compiling a c/c++ library to my android app.
After I use ndk-build in the directory, It seems the library and module were built successfully. And I can also see the .so file under libs/armeabi/ . However, when I import my project to eclipse, it always gives error that says can't find the lib, named event in this case. And I did unzip the apk file and find that the lib/armeabi/ .so is not packed in the apk file.
Below are detailed info, hope anyone can help me.
NDK build:
simon#ubuntu:~/projects/apps/latest/tgs-android/jni$ ndk-build
/home/simon/Android/android-ndk-r8c/build/core/add-application.mk:128: Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 11 a in /home/simon/projects/apps/latest/tgs-android
ndroidManifest.xml
Compile++ thumb : swift <= NativeLib.cpp
Compile++ thumb : swift <= sha1.cpp
Compile++ thumb : swift <= compat.cpp
Compile++ thumb : swift <= sendrecv.cpp
Compile++ thumb : swift <= send_control.cpp
Compile++ thumb : swift <= hashtree.cpp
Compile++ thumb : swift <= bin.cpp
Prebuilt : libevent.a <= jni/libevent2/lib/
Prebuilt : libstlport_static.a <= <NDK>/sources/cxx-stl/stlport/libs/armeabi/
SharedLibrary : libevent.so
Install : libevent.so => libs/armeabi/libevent.so
Can find it
simon#ubuntu:~/projects/apps/latest/tgs-android/jni$ ls ../libs/armeabi/
libevent.so
Another question I have is, when I tried using aapt a to add the .so lib to the .apk file, it seems succeed, however when I use adb install to install it on my device. It prompts out the:
simon#ubuntu:~/projects/apps/latest/tgs-android/bin$ adb install IntroActivity.apk
2871 KB/s (1089288 bytes in 0.370s)
pkg: /data/local/tmp/IntroActivity.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
simon#ubuntu:~/projects/apps/latest/tgs-android/bin$
But I think the apk file has already been signed by eclipse in debug mode.
simon#ubuntu:~/projects/apps/latest/tgs-android/bin$ jarsigner -verify IntroActivity.apk
jar verified.
Warning:
This jar contains unsigned entries which have not been integrity-checked.
Re-run with the -verbose and -certs options for more details.
Any help is appreciated !
THANKS IN ADVANCE!
You can fix this by performing the following steps in Eclipse:
1.
Window -> Preferences -> C/C++ -> Build -> Settings
Select CDT GNU C/C++ Error Parser
In the Error Parser options at the bottom, add a new entry with the following contents:
Severity: Warning
Pattern: (.*?):(\d+): Android NDK: WARNING:(.*)
File: $1
Line: $2
Description: $3
2.
After that move this new item up just above its's upper one : (.*?):(\d+):(\d+:)? (.*)
This is discussed here : https://code.google.com/p/android/issues/detail?id=39752

Use CPAN BerkeleyDB module on Windows 7 (64 bit)

I have been trying to install the BerkeleyDB CPAN module on my Windows 7 (x86_64) PC without any luck (BerkeleyDB::Hash is what I need). I have 64 bit ActivePerl and Oracle Berkeley DB 11gR2 5.3.15 installed. First I tried installing using the command :
*cpan install BerkeleyDB*
This came back with the error:
*It looks like the installation of dmake and MinGW has failed. You will not be
able to run Makefile commands or compile C extension code. Please check your
internet connection and your proxy settings!*
So I installed Microsoft Windows SDK for Windows 7 and .NET Framework 4.
Then I installed cpanm
*cpan App::cpanminus*
And when I tried running:
*cpanm BerkeleyDB*
I got the error:
*Note (probably harmless): No library found for -llibdb
Note (probably harmless): No library found for bufferoverflowU.lib*
So I edited the config.in file and changed the lib and include paths to:
*INCLUDE = C:\PROGRA~2\Oracle\BERKEL~1.15\include
LIB = C:\PROGRA~2\Oracle\BERKEL~1.15\lib*
Now when I ran perl makefile.pl, the warning about -llibdb went away.
When I tried running:
*nmake*
I got errors:
*Creating library blib\arch\auto\BerkeleyDB\BerkeleyDB.lib and object blib\arc
h\auto\BerkeleyDB\BerkeleyDB.exp
BerkeleyDB.obj : error LNK2001: unresolved external symbol __heap_exist
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_version
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_strerror
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_env_create
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_create
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_sequence_create
blib\arch\auto\BerkeleyDB\BerkeleyDB.dll : fatal error LNK1120: 6 unresolved ext
ernals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\link.EXE"' : return code '0x460'
Stop.*
I've nearly lost all hope of ever building this module successfully on my PC. Has anyone been lucky with this?
Many thanks,
SN
All following claims untested/unverified. Competent advice is available from #win32 on MagNET <irc://irc.perl.org/win32> (Web chat).
libdb needs patching for 64-bit. Installing a whole new compiler toolchain before installing the dependent library and its headers made the problem worse. If you continue to have problems linking after applying the patch, uninstall the MS tools and try again with MinGW.