Comments (16)
I need more information than this.
from wasmwinforms.
what os are you using?more of error message and how are you doing it
from wasmwinforms.
Windows 10 Home, Visual Studio 2019 Ent
from wasmwinforms.
I hope the screen shot helps, Release x86 builds fine, problems is only when I try to build WasmRel or WasmDbg targets.
from wasmwinforms.
Can you switch to output so I see more messages. Also what is your project located at? Full path of it
from wasmwinforms.
Project path : D:\Repos\WasmWinforms-prod\WasmWinforms
error-output.txt
from wasmwinforms.
Seems like some character in your path is off...
Maybe if you can download https://github.com/roozbehid/dotnet-vcxproj and build it in Debug it, you can find out why.
On Properties of GCCBuild->Debug put executable as
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe" (or your msbuild location for your visual studio)
Applications arguments:
D:\Repos\WasmWinforms-prod\WasmWinforms\WasmWinforms.sln /p:Configuration=WasmRel /p:Platform=x86 /bl
Working directory:
it should be your GCCBuild
Environment variables:
VCTargetsPath .
First, before debugging, build GCCBuild in Debug mode, then copy *.dll and *.pdb into
C:\Users\Raynon.nuget\packages\gccbuildtargets\1.19.325.5 (overwrite dlls there)
Now debugging it you should get the exception and see why you are getting it.
Also you get another exception in catch of CCompilerTask.cs:296
Let me know if you found something and thanks
from wasmwinforms.
if you open a cmd.exe can you type gcc and get results?
Also if you dont want to go into debugging gccbuild. send me another output with MSBuild verbosity set to detailed.
You should go to Tools->Options->Project and Solutions->Build and Run->MSBuild project build output verbosity:Detailed
You can also use msbuild same way as described above with /bl option. That option would generate a binary log output which has everything to debug what goes wrong during compilation
from wasmwinforms.
Thanks for your quick reply. I had completely forgotten about installing gcc.
After installing gcc, the errors have changed a little.
I'm new to compiling c++/c & your help with interpreting the outputs would be real nice. Will post the outputs here soon.
from wasmwinforms.
error-output2.txt
attached is build output with verbosity set to detailed, pls let me know if you find anything
from wasmwinforms.
@roozbehid I suspect this is the issue, but I don't know how to fix it. Any ideas?
from wasmwinforms.
I dont think that is an issue.
Take a look at D:\emsdk-master\upstream\emscripten\emcc.BAT
and see if that file is ok and runs well!
The error you see for the most part can be just ignored. emcc seems to be working fine too as it is also compiling. That error message is generating at the end during cleanup phase which is totally fine to ignore.
Try to build projects one by one and see if you find anything interesting.
Also do this in your cmd echo %PATH%
and see if you see something wrong with any directories in your path.
from wasmwinforms.
emcc.BAT is working fine, but the file is named with lower case ".bat",
but I don't think it would effect, in echo %PATH% all looks good
my major target atm is to rebuild mono.wasm file, I've made changes in drive.c and would like to see how it works. Is there any other way you can recommend to build it?
I'll try building projects one by one and see if I can find anything, thanks
from wasmwinforms.
I have a similar issue. Compiling a very simple .vcxproj with configuration named "GCC".
Here is an output:
1>C:\Users\azlygostev.SWSOFT\.nuget\packages\gccbuildtargets\1.19.325.5\build\Microsoft.Cpp.targets(173,5): error : ~RunWrapper caused an exception:System.ArgumentException: Illegal characters in path.
1>C:\Users\azlygostev.SWSOFT\.nuget\packages\gccbuildtargets\1.19.325.5\build\Microsoft.Cpp.targets(173,5): error : at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
1>C:\Users\azlygostev.SWSOFT\.nuget\packages\gccbuildtargets\1.19.325.5\build\Microsoft.Cpp.targets(173,5): error : at System.IO.Path.GetExtension(String path)
1>C:\Users\azlygostev.SWSOFT\.nuget\packages\gccbuildtargets\1.19.325.5\build\Microsoft.Cpp.targets(173,5): error : at GCCBuild.RunWrapper.Dispose() in D:\a\1\s\GCCBuild\RunWrapper.cs:line 44
from wasmwinforms.
@evilguest a few things you can try :
- copy files that didn't compile directly from "https://webassembly.z19.web.core.windows.net/" to your build directory
- gcc is installed & working from CMD
- changing build configuration to only build for x86
- skip building "mono.wasm" (or only build what you absolutely need)
I've mostly forgotten how this works, but if I remember correctly you don't need to build your project to wasm.
I think this is what worked for me.
- copy all the files from the demo site,
- add in your dll into same folder,
- modify mono-config.js to reference you project's dll
hope it helps
PS: take a look at this guide, it helped me
https://itnext.io/run-c-natively-in-the-browser-through-the-web-assembly-via-mono-wasm-60f3d55dd05a
from wasmwinforms.
Sorry for a misleading location - my project has nothing to do with wasm. I am building a simple C++ dynamic link library for x64. Project works fine when built from VS or msbuild in the "regular" configurations; however, the compilation fails with the error message I've quoted when I try to choose the GCC configuration.
from wasmwinforms.
Related Issues (14)
- Calculator demo does not work on Firefox HOT 3
- Unhandled Mono AssemblyResolutionException HOT 5
- Getting error while Installing via Nuget Package Manager Visual Studio 2019 HOT 3
- dl_mapping_symbol - proc name GdipNewPrivateFontCollection not matched HOT 1
- System.Drawing.Color giving errors
- About runnning OCX
- Update README HOT 2
- I want to run cefsharp on this HOT 1
- System.Drawing.New HOT 2
- Rendering Issue After Using ComboBox or Tab HOT 3
- Keyboard input kills calculator demo HOT 1
- [Troll] : Cannot Divide by zero HOT 1
- Bad charachters in forms will lead to hung
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasmwinforms.