cant compile raylib for web - html

I have been trying to compile my raylib game to web (following this tutorial https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5) ) and i got stuck on this part:
Before compiling raylib, make sure all paths to emscripten (EMSDK_PATH) and tools are correctly configured on
C:/raylib/raylib/src/Makefile, you must verify these lines.
To compile raylib source code, just execute Notepad++ script: raylib_makefile and SET PLATFORM=PLATFORM_WEB.
To do this, start up Notepad++ for raylib, open the raylib.h file, press F6, choose raylib_makefile, verify that
in the script SET PLATFORM=PLATFORM_WEB, then click OK to run the script. That script just calls the following make
line (in case you're are working on a custom environment):
make PLATFORM=PLATFORM_WEB -B
When i open C:\raylib\raylib\src\raylib.h in notepad++ and press F6 nothing happens and when i try to call make PLATFORM=PLATFORM_WEB -B in the powershell it says
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ make PLATFORM=PLATFORM_WEB -B
+ ~~~~
+ CategoryInfo : ObjectNotFound: (make:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
please help

Related

I need some solution please

I am getting the following error message:
Warning: Environment variable SUMO_HOME is not set, using built in type maps.
Warning: Environment variable SUMO_HOME is not set, schema resolution will use slow website lookups.
Error: unable to open file 'https://sumo.dlr.de/xsd/types_file.xsd'
In file 'built in type map'
At line/column 1/0.
The types could not be loaded from 'built in type map'.
Quitting (on error).
What could be causing this?
Error: unable to open file 'https://sumo.dlr.de/xsd/types_file.xsd'
It's http , not https. ... Please see this site https://sumo.dlr.de/wiki/Networks/PlainXML → $ wget http://sumo.dlr.de/xsd/types_file.xsd
My test (I created a test dir. sumo/TEST_COMMANDS/ with some default files + the "wget downloaded" types_file.xsd):
$ cd sumo/ && export SUMO_HOME="$PWD" && cd TEST_COMMANDS/
$ netconvert --node-files=input_nodes.nod.xml --edge-files=input_edges.edg.xml \
--connection-files=input_connections.con.xml --type-files=types_file.xsd \
--output-file=MySUMONet.net.xml
The terminal reply is : Success. ..... And the file MySUMONet.net.xml 61.4kB is created.

Reverting to the original prompt in PowerShell Console

In PowerShell console window the initial prompt is
C:\users\username
I could customize the prompt with the below:
function Prompt { "PS: "}
The prompt now becomes
PS:
Without making change to the C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 I intend to revert to the original prompt.
How to go about it?
From the about_Prompt help file:
In Windows PowerShell 3.0, the built-in prompt function is:
function prompt
{
"PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) "
}

running gulp changes files by deleting and adding the same content

I am currently using Windows and when I use Linux (Fedora) this does not happen but it only happens on Windows. When I run gulp command on git bash. The changes look like this for many files:
## -1,6 +1,6 ##
-{
- "globalDependencies": {
- "angular": "registry:dt/angular#1.5.0+20160509150441",
- "jquery": "registry:dt/jquery#1.10.0+20160417213236"
- }
-}
+{^M
+ "globalDependencies": {^M
+ "angular": "registry:dt/angular#1.5.0+20160509150441",^M
+ "jquery": "registry:dt/jquery#1.10.0+20160417213236"^M
+ }^M
+}^M
I tried my best to find the solution for this problem. This is not causing the error but it just that when I try to commit this annoys me because this is not really the change I wanted to make.
It looks like the End of Line character is changing to that of the file system, i.e CRLF (Carriage Return, Line feed) on Windows, or LF (Line Feed) on Linux. When you open a file with CRLF on Linux, the CR shows up as ^M.
You can create a .gitattributes file and set the end of line character with:
*.json eol=lf
*.js eol=crlf
You could also add a gulp plugin that resets the line endings to the format you'd like.
From the Bash terminal run unix2dos on the file and see if the ^M disappears, this will confirm that it's a EOL character issue.

Error when trying to read the .ini file from .nsi script

I have to write a NSIS script for deployment the report on the server.It works fine when I am using localhost.
Now I want to send this package to my client but the problem is that I don't know the SERVER IP of the client for this purpose I have write the .ini file. The content of the ini file is
DeployReport.ini
[SETTINGS]
ServerIp=localhost
UserName=
PassWord=
DeployReport.nsi
# Script generated by DeepSofts - NSIS Script Generator
# Beginning Basic Section Script ...
Name 'DeployReport'
Icon 'modern-install-full.ico'
OutFile 'DeployReport.exe'
SilentInstall Normal
CRCCheck On
Section GetIP 0
ReadINIStr $ip "DeployReport.ini" "SETTINGS" "ServerIp"
MessageBox MB_OK "$ip"
SectionEnd
Section Command 1
Exec '"C:\Program Files\Microsoft SQL Server\90\Tools\Binn\rs.exe" -i PublishSampleReports.rss -s http://localhost/reportserver"'
SectionEnd
ComponentText 'A few details about the application that you have created'
AutoCloseWindow True
SetCompress Auto
SetDateSave On
SetDataBlockOptimize On
The problem is that the DeployReport.nsi script works fine untill I dont use the Section GetIP 0 and I am not able to find the error in the script.
You should use the full path to the .ini ("$exedir\DeployReport.ini")

Is it possible to run powershell using SSH from remote-host?

Is it possible to run powershell script using "ssh" or any protocol from remote-host (Linux)?
Followed these steps:
Have 'freeSHd' installed which runs ssh/ telnet services.
Able to connect Windows 2008R2 host thru SSH.
Able to run (powershell.exe) and entered into powershell environment.
Set the Execution Policy to 'Restricted' (Set-ExecutionPolicy Unrestricted) before running the powershell script.
Ran the script & "C:\Scripts\setUp.ps1"
Received following error:
The term 'Add-ADFSRelyingPartyTrust' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. t C:\Scripts\setUp.ps1:1 char:26
+ Add-ADFSRelyingPartyTrust <<<< -Name 'RP' -MetadataURL 'https://rphost:443/fed/sp/metadata'; + CategoryInfo : ObjectNotFound: (Add-ADFSRelyingPartyTrust:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Also tried running like this and resulted in same error:
C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy ByPass -command ". 'C:\Scripts\setUp.ps1'"
Please let me know how to solve this issue.
Thanks
GKS