Cannot compile program in Monodevelop - xamarin

I have been trying for days to fix this problem.
I set up monodevelop 7.8.4 on linux, everything works fine except building.
Whenever I build, it outputs 'build successful' yet no files are changed.
Oddly, I can build it via msbuild. However I want to be able to build it using the editor.

Related

CLion (C++) : unable to open image using SFML

I just started using CLion to build my projects and tried to launch one of my previous ones to test. Compiler doesn't return any errors, but when I try to run the executable it says unable to open "img.png" but it worked fine when i compiled it in terminal and launched.
I figured it out in case anyone faces the same problem. CLion searches for resources in debug/release folder by default. Changing the default directory or writing "../img.png" instead of "img.png" solves the issue.

Can not install the app on Windows

While it builds fine (there are warnings, but no errors), I cannot install a Cordova app on Windows (Windows 10) and the other dev of the project tried to do it and ran into the exact same error messages. Now, I tried googling for info, but I couldn't find anything of use, so I'm posting here.
So here's the cmd output I get from running "cordova build windows": http://pastebin.com/Fmtw9d7Z
It looks like it builds successfully, although there are warnings.
Then I run "cordova run windows" and this is what I get: http://pastebin.com/CYA7RwZH
As it suggested, I tried running "Get-AppxLog" and this is the output that I got from that: http://pastebin.com/Axwea7Ft
I've tried rebuilding/rerunning multiple times and at one point I actually did find an older version of the app installed (in Start -> All Apps) and I uninstalled it manually (Right Click -> Uninstall), but it doesn't look like it helped or did anything.

How do I Compile a Framework in Xcode?

Ever since I switched to Yosemite, I have been getting an Xcode quit unexpectedly error whenever I try to run SDL2. I can't even get a "hello world" to run.
I am trying the fix it by following the directions on this page:
Xcode 5 crashes when running an app with SDL 2
But I don't know how to "Compile the "Framework" target in Xcode/SDL/SDL.xcodeproj" I tried just simply building it but that doesn't seem to work because I don't see any framework file showing up.
Can someone help me figure out how to get rid of this error?
I assume you have got the latest version of the code either by doing hg clone http://hg.libsdl.org/SDL or by downloading the latest snapshot from https://www.libsdl.org/hg.php
This should give you a directory called SDL which contains the source and all of the projects. You will want to open 'Xcode/SDL/SDL.xcodeproj'
Then ensure the following is set as your build target - Framework > My Mac (64-bit) You can change it by clicking on it.
Then hit CMD+B (or select Product->Build from the menu) to build the framework. You will then be able to find the SDL2.framework in the following location:
/Users/*yourusername*/Library/Developer/Xcode/DerivedData/SDL2-*randomstring*/Build/Products/<*Debug/Release*>
Copy the framework to /Library/Frameworks

How to build firefox as installer

Now I'm trying to build firefox according to https://developer.mozilla.org/en-US/docs/Simple_Firefox_build
So I can get firefox from mozilla-release\obj-i686-pc-mingw32\dist\bin folder.
I want to get setup.exe from this result.
How can I build firefox as installer type.
./mach build installer is both the official way to build a Firefox installer, and the way that worked for me.
Note: it will put the installer in mozilla-release\obj-i686-pc-mingw32\dist\install\sea\firefox-36.0a1.en-US.win32.installer.exe (where “36.0a1” is replaced whatever version you're compiling.
Note 2: You may need to add the line mk_add_options WIN32_REDIST_DIR="$VCINSTALLDIR\redist\x86\Microsoft.VC80.CRT" (or similar) to your .mozconfig to build a version that installs on non-developer’s computers. This part didn’t actually work for me. :(

Extra verbose output from mdtool?

I'm working on a project in Xamarin.iOS, and it happens to go through a build server (running on a Mac).
The build seems to commonly fail, but even with the --verbose or -v it seems to Silently fail. For example, right now, it seems to fail after optimizing the graphics for iOS. The last line of the build says Build complete -- 0 errors, 0 warnings. But then I get a Build step 'Execute shell' marked build as failure from Jenkins. I know that this is a failure in the mdtool build, because I have had a successful build before, and I know there are several more steps before it actually succeeds.
The next step in the successful process should be Compiling to native code, but for some reason it fails before getting to that, or at least outputting it to the console.
Thanks in advance for the help!
There's a few places in the mdtool build logic that didn't properly catch exceptions when executing shell programs which I (hopefully) fixed for Xamarin Studio 4.0.2.
Without seeing the full build log it's hard to say for sure, but it might be that whatever shell command that it is trying to execute either doesn't exist or isn't marked with execute permissions.
The programs that I can think of off the top of my head that mdtool will invoke for the iOS builds are:
pngcrush (optimizes .png files)
plutil (optimizes .plist and .strings files)
codesign (although this one gets called after compiling to native code)
and of course, mtouch which is what is used to compile IL to native code. The mtouch command is part of Xamarin.iOS while the other 3 utilities are part of Mac OS X (or Xcode).
The solution for the other person with a similar problem that I helped debug a week or 2 ago was because he had modified his PATH environment that launchd launched apps with to not include /usr/bin and so mdtool couldn't find the utility programs listed above.
I'm not very familiar with Jenkins (I know we use it at Xamarin, but I'm not part of the team that does), so make sure that the PATH environment that it launches mdtool under is setup to include /usr/bin.
Hope that helps.

Resources