Error trying to create seahorse init project, anchor init failed - blockchain

I'm trying to create a new project in Solana with seahorse but I have this issue
seahorse init project
I tried updating everything but still having the same problem.
I already have anchor installed and I'm using Windows 10

U cant run anchor i believe on Windows, try installing WSL (windows subsystem for linux) go to the left corn of visual studio press on remote connection and try running the command again that worked for me. The Solana BPF compiler doesn't work on Windows. Anchor uses that under the hood

Related

Can I remote debug a C++ makefile project from a windows vm using Eclipse?

I am on a Windows VM which has eclipse installed.
I connect to a remote centos machine using putty (yes command line)
I work on a large C++ makefile project there.
I have learnt to use gdb within putty and everything is ok.
Is there any way I can use Eclipse present in my Windows to debug the C++ makefile project present in my remote CentOS machine ?
I have the following installed on my windows VM
Winscp
Putty
Eclipse
I wont be able to install anything else.
I also wont be able to install anything else into my centos machine unless I can justify the reason.
I believe this is NOT an exact duplicate.
I searched high and low for a solution to this, most answers seem to be for a different application or requires some additional installations or maybe the instructions are not clear.
Please provide me a step to step guide as I am new to Eclipse, and 2yrs old into linux.
Basically a windows programmer, I have seen a VS solution to remote debugging, but I wont be able to install VS into my remote machine so thats out of question.
So the above ... or ... any GUI (Visual Studio kind) type solution that would make the remote command line GDB ... a breeze.

IONIC 2, debuging ios application - emulate?target return 404

I tried to build ios version of my ionic application which I build using Visual Studio 2017, but it seems it never can "install" to the simulator. The simulator is launched on the mac computer, but the application is not running, even I cannot find the icon in the simulator.
I suspect that it because the wrong naming of the target device.
I notice there is /cordova/build/.../emulate?target=iPhone+5 404 line on the mac's terminal, while when I try to the list the available target, it should be target=iPhone-5.
I'm a newbie in ionic and I don't know if it is the cause of problem that make the application is not shown at the emulator.
If it is not the problem, is there anybody can help me to find out what is the cause so the application cannot be debugged (not shown in the emulator)?
If it is the cause of the problem, then how can I change the command send from visual studio to the mac computer?
Thanks in advance for the help.

Oracle_VM-error at startup

I am using Oracle vm with windows as host machine and linux on VM. I had everything working, but once i used 'power off' when it took time to start. Since i am not able to start the OS on VM. I am getting errors as below.
Error relaunching VirtualBox VM process: 5
Command line: '60eaff78-4bdd-042d-2e72-669728efd737-suplib-3rdchild --comment RedHat_Linux_64bit_4GB --startvm 42e4c558-83d4-431c-a971-71ca9e1f4112 --no-startvm-errormsgbox "--sup-hardening-log=C:\Users\bhargav.vijay.desai\VirtualBox VMs\RedHat_Linux_64bit_4GB\Logs\VBoxHardening.log"' (rc=-104)
where: supR3HardenedWinReSpawn
what: 5
VERR_INVALID_NAME (-104) - Invalid (malformed) file/path name.
I am able to see a file in snapshots folder which is large in size. (2016-08-16T05-57-16-295692800Z.sav). Have uploaded an image. I am on lookout for solutions.
Restart of the system helped me resolve the issue. Also the snapshot files (.sav extensions) are of no use in this case.
This ref https://forums.virtualbox.org/viewtopic.php?f=6&t=82277 fixed issue for me for VB version 5.2.x on Windows 10.
I had tried other approaches like installing earlier versions of VB but nothing else worked for me.
I had the same problem on a new HP Elitebook with Windows 10 preinstalled.
Install Virtualbox and import applience worked fine, and can be startet.
But after next restart of the System Virtualbox always shows an Error...
... supR3HardenedWinReSpawn what: 5 VERR_INVALID_NAME (-104) - Invalid (malformed) file/path name.
I tryed 4 Days to fix the Problem inclusive deactivate preinstalled hp client security, windows defender etc.
Nothing worked until I found the Link of the latest post.
I had to reinstall Virtualbox and deactivate the VBoxdrv sevice in the registry.
After every Windows start i need to start the service manualy or over shedule...
After that Virtualbox starts correctly!
I tested a lot. Windows seems to destroy the Virtualbox installation while driver was loading on startup.
If the error occures once, one has to reinstall Virtualbox and deactivate the service... deactivate after the Error has already showen dosent work.
I was struggling with this one on HP Elite Book for some time and I found solution here.
The solution is to go to
HP Sure Sense -> Settings -> Advanced Settings
and turn off Enhanced Thread Protection.
It's not my solution, but I hope it's good to have here for someone in the future.
a) Clear AppData/Local/Temp
b) Completely uninstall any VirtualBox currently installed
c) Restart the computer
d) Install the latest version of VirtualBox
e) After install completes do not restart the computer
f) Open the registry editor. Start > Run > regedit
Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\VBoxDrv
Edit the key called Start. Change it's value from 1 to 3
g) Close the registry editor and restart your computer. After your computer restarts you should be able to use VirtualBox without any issues.

Building UWP app from command line

I need to create kind of builder for my Universal Windows App (UWP) application, that would load some configuration into it, build it and create app store package. Is there any way to build UWP app from command line, without associating it with the store and using Visual Studio at all?
There is WinAppDeployCmd, but it can be used to install builded appx package on device and I need tool like that to generate that package.
UPDATE
I've managed to build it and create app packages with command line, here is command I used:
msbuild "path to .csproj file" /p:OutDir=output_dir /p:AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM" /p:BuildAppxUploadPackageForUap=true
It's working but not as it should apparently. I can not install generated appx package on my phone (and emulator). I just get error
Failure reason: Failed to start deployment. Failure text: Install failed. Please contact your software vendor. (0x80073cf9)
I found many solutions for Windows 10 PC version, but there is only one solution I found for Windows 10 Mobile and this "solution" is to hard reset the phone, but I do not want to do that. Is there any other way?
And there is one more problem. This command doesn't work with parameter /p:Configuration=Release; and it only builds with Debug configuration, but I believe this is not related to previous error, because it doesn't work with Visual Studio either.
UPDATE
I could not find another solution, so I did the 'hard reset' of my phone and now it is working. It's sad, but I hope the reason is the Windows 10 Mobile OS is still in beta version.
Step 1 : See, you need to install .NET Framework installer from the below link. https://www.microsoft.com/en-us/download/details.aspx?id=30653
Step 2 : Go to C: drive and find where msbuild.exe is. You will find more msbuild. But mostly it will be in the location like C:\Windows\Microsoft.NET\Framework\v4.0.30319.
Step 3: Open the CMD in administrator and point to the location which is mentioned in Step 2.
Step 4 : Paste this. msbuild.exe "YourCompleteProjectPath.sln" /t:rebuild
See this for reference : https://msdn.microsoft.com/en-us/library/ms164311%28v=vs.85%29.aspx

Unable to create a debugger engine of the type "No engine"

I just installed Qt Creator (Windows 64 bits) and I am checking that everything works as expected.
At this point the only problem I have is related to the debuggers. Firstly I tried adding gdb manually (gdb.exe) and some problem about python popped-up, so I added gdb-python (gdb-python27.exe) and the result is:
Unable to create a debugger engine of the type "No engine"
I use this kit:
MinGW -> MinGW\bin\mingw32-gcc-4.8.1.exe
GBD-Python -> MinGW\bin\gdb-python27.exe
I read this post, but didn't help me since I am using MinGW :/
Thank you in advance.
Edit1: I am open if you want to recommend me another kit configuration :-)
Edit2: I tried to execute gdb-python27.exe and I got an error (missing python27.dll). I installed it in C:\Windows\SysWOW64 and now the error (when I try to open gdb-python27.exe) is something like The application failed to initialize properly (0xc000007b). Still the same error while debugging in Qt creator.
Edit3: Is the problem related to the difference between my MinGW (32bits) and my OS (64 bits)? Don't think so (Qt creator is 32 bits). I think the message The application failed to initialize properly (0xc000007b) is because I use python27.dll (64 bits) instead of 32 bits.
Edit4: I download python27.dll (32 bits) and now I can execute gdb-python27.exe but I got this message through the cmd.exe: ImportError: No module named site.
I still got the error Unable to create a debugger engine of the type "No engine" while trying to debug with Qt creator.
I had similar issue when I installed Qt 5.8.0 having QtCreator 4.2.1 inside it.
I did not have Visual Studio 2015 installed on my machine, and I didn't want to install Visual Studio 2015 for it. So I installed visualcppbuildtools_full from microsoft website, which installed all the required compiler. QtCreator detected the MSVC compilers.
Still QtCreator complained about debugger. For that, I downloaded Windows SDK 10 stand alone with only Debugging Tools as selected. And installed the Debugging tools, which resolved the debugger issue also.
To cross check,
Verify whether C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe and C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe are created with all other binaries.
Now, open QtCreator. Go to Tools | Options | Build & Run | Debugger tab.
Verify above cdb.exe files paths are listed under Auto-detected section.
Debugging starts working after this.
Unable to create a debugger engine of the type "No engine"
This is a bug in Q1t Creator 3.3.0, if you update, you should be OK. Alternatively, it seems solvable by updating to Python 2.7.1.
The application failed to initialize properly (0xc000007b)
If Qt is 32bit, so does the Python.dll
ImportError: No module named site
This seems to be a Python configuration problem as discussed here: Python (Windows) - ImportError: No module named site
Setting the PYTHONPATH / PYTHONHOME variables
Right click the Computer icon in the start menu, go to properties. On the left tab, go to Advanced system settings. In the window that comes up, go to the Advanced tab, then at the bottom click Environment Variables. Click in the list of user variables and start typing Python, and repeat for System variables, just to make certain that you don't have mis-set variables for PYTHONPATH or PYTHONHOME. Next, add new variables (I did in System rather than User, although it may work for User too): PYTHONPATH, set to C:\Python27\Lib. PYTHONHOME, set to C:\Python27.
Alternatively, installing Python 2.7.1 seems to fix that too.