User forums > Using Code::Blocks

C::B With IM

<< < (6/7) > >>

dmoore:
Get the mingw binary instead. (EDIT: it's confusingly listed under the Unix binaries... this is the one I had downloaded in my earlier posts)

kirash4:

--- Quote from: dmoore on April 07, 2014, 12:52:40 am ---Get the mingw binary instead. (EDIT: it's confusingly listed under the Unix binaries... this is the one I had downloaded in my earlier posts)

--- End quote ---
Ok. This download doesn't have an actual installation, though am I correct in assuming all you're using that for is for linking against? Meaning, can I leave the regular installation in place?

dmoore:

--- Quote from: kirash4 on April 07, 2014, 01:01:50 am ---
--- Quote from: dmoore on April 07, 2014, 12:52:40 am ---Get the mingw binary instead. (EDIT: it's confusingly listed under the Unix binaries... this is the one I had downloaded in my earlier posts)

--- End quote ---
Ok. This download doesn't have an actual installation, though am I correct in assuming all you're using that for is for linking against? Meaning, can I leave the regular installation in place?

--- End quote ---

Yes, they should not clash. I think it's common to install these mingw bundles into your mingw folder (so bin ends up in C:\mingw\bin etc) but then it's hard to remove/upgrade outdated libs if you do that.

kirash4:
Yeah, I can put them elsewhere and just point C::B to them, no biggy. Progress report: I was able to successfully compile my test program. A few warnings, but nothing of real consequence:
--- Code: ---||=== Build: Release in POVpoi (compiler: GNU GCC Compiler) ===|
T:\ImageMagick-6.8.5\include\ImageMagick-6\magick\magick-config.h|29|warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" [-Wcpp]|
T:\ImageMagick-6.8.5\include\ImageMagick-6\magick\magick-config.h|30|warning: #warning "this is an obsolete behavior please fix your makefile" [-Wcpp]|
T:\ImageMagick-6.8.5\include\ImageMagick-6\magick\magick-config.h|52|warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" [-Wcpp]|
T:\ImageMagick-6.8.5\include\ImageMagick-6\magick\magick-config.h|53|warning: #warning "this is an obsolete behavior please fix yours makefile" [-Wcpp]|
||=== Build finished: 0 error(s), 4 warning(s) (0 minute(s), 1 second(s)) ===|
--- End code ---

My next issue now is that I can't execute the compiled program. First it told me that a libMagick library was missing so I dropped that in the same folder as the compiled binary, but now it's complaining about missing pthreadGC2.dll and I have no idea where that came from.

So, is there a way to create these binaries where they don't rely on the various library files needing to be present in the same folder? I realize this would make the binary itself much larger but in the end I think it would make it easier for distributing.

dmoore:
Could be that they compiled against an older mingw. You might need to compile it yourself. In any case, this is getting off topic for the Code::Blocks forum. You may be better served (and better follow our forum rules) by taking this up on the ImageMagick support forums/lists.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version