I'm using the Magick.NET-x64.dll file in my project that converts pdf files to jpg images. But when I moved from a 32-bit windows processor to a 64-bit machine the following error encountered:
Could not load file or assembly 'Magick.NET-x64, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=2004825badfa91ec' or one of its dependencies. An attempt was made to load
a program with an incorrect format.
I am getting this error when I build the project. How can I avoid this?
Related
I want to compile a golang program containing CGO code into a program running under Linux under windows, and I encountered the following error at the beginning
fatal error: Windows.h: No such file or directory
After that I copied the content under mingw64\x86_64-w64-mingw32\include to the x86_64-linux-musl\x86_64-linux-musl\include directory
I am using GCC under x86_64-linux-musl to build the program, the version is
Proceed to build with error #error Only Win32 target is supported!
I've been searching for a long time and haven't found a solution
I successfully built standalone llvm on windows with clang-cl (clang 8.0 downloadable binary) against back-end msvc build tool 2017 with windows 10 sdk using cmake/ninja
After that when I was building standalone clang, it reported "version.lib" in linking phase of clang-rename.exe is missing.
LINK Pass 1: command "....
" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: cannot open file 'version.lib'
The weird thing is that word version.lib was slabbed in place amoung various lib\clang?????.libs and the leading -LIBPATH:llvm\\.\lib
I tried looking for version.lib in both build folders of llvm and clang, and found none.
Am I supposed to have verson.lib in llvm\lib?
What am I missing here?
I'm trying to get the latest mono (version 3.12.0) to compile on my raspberry pi 2 running raspbian linux (based on debian).
I've downloaded the mono source and compiling seems to be going well then I hit an error when compiling 'mcs/class/aot-compiler'
the error is that it cannot find './../../class/lib/net_4_5/mscorlib.dll.so'
I've checked the directory and I see that mscorlib.dll was compiled along with an .mdb file but I do not see an so file.
Do I need to specify a switch or something to build the so file? (I'm a linux newb)
Where is the make file that's building mscorlib? compiling is taking forever for the whole source, can I just recompile mscorlib and have an so file emitted somehow?
I'm new to haskell and I'm trying to do my exercise for my class, I've written up the following and tried evaluating the main it but it spits out an error. (In WinGHCi)
Loading package GLUT-2.3.0.0 ... can't load .so/.DLL for: glut32 (addDLL: could not load DLL)
I've tried adding the glut32.dll to my system32 folder and running it again but the same error still pops up. Can someone tell me whats going on?
Heres my code:
import Graphics.Gloss
main = display (InWindow "Exercise One" (200, 200) (10, 10)) black picture
picture = color red (rectangleWire 198 198)
when I compile through powershell using ghc -o test test.hs and ./test and it spits out an error: one.exe: user error (unknown GLUT entry glutInit)
Any help would be appreciated!
You put the glut32.dll file in your system32 directory but if you're on a 64-bit version of windows, it needs to go in your Windows\SysWOW64 directory, with the other 32-bit binaries.
For historical reasons, system32 holds the native OS binaries and are only actually 32-bit on 32-bit windows versions. Despite the name, the binaries in system32 are 64-bit on 64-bit Windows and the 32-bit files go in SysWOW64.
GHC does not have a Win64 port at this time, so it needs the 32-bit glut32.dll.
You could also try putting the glut32.dll in the same directory as the exe you're building.
There is more than one version of glut for Windows; I'd recommend one of the (32 bit) binary builds of freeglut.
I used the MinGW .a to Windows .lib transformation process as detailed in a
thread on the gmp-discuss list, as below (acting against a library created with --disable-shared --enable-static.)
cp libgmp.a gmp.a
ranlib gmp.a
mv gmp.a gmp.lib
I now have a .lib file against which VC++6 seems to have no difficulty linking. What concerns me now is warning messages I'm getting from the link phase:
LINK : warning LNK4049: locally defined symbol "___mb_cur_max" imported
LINK : warning LNK4049: locally defined symbol "__pctype" imported
LINK : warning LNK4049: locally defined symbol "__iob" imported
At this point in the proceedings these make no difference to the running of
my DLL (which wraps certain GMP functionality). But is that good enough?
Will having these three symbols from libgmp.a linked in to my Windows DLL
end up biting me later on?
Someone else had a similar problem and the fix was relatively simple.