Static compiling for Win & Mac
Posted: 2014-03-06T05:54:06-07:00
Hi Folks,
my apologies in advance for the lengthy post that follows - but I thought best to explain/cover my position as best as possible.
I'm in the process of building a software plugin under another SDK environment (for Win and Mac, possibly Linux too). This software builds fine inside of VS 2010 Express, but getting ImageMagic to co-operate is starting to stretch my (albeit lack-of!) knowledge with C++ programming.
There are a few rules governing the making of this software, but the main one in regards to IM (and any other non-SDK related material) is that it needs to be built into the software - i.e. no other links/libraries/dlls/libs etc (STL-based stuff is an exception).
When I add the main header to my project file, and try to build my plugin from VS, it fails with a LNK2019 unresolved external symbol Magick::InitializeMagick(...). I get the same error with Magick::Image() and so on. My searches to date suggest there's a missing CORE_RL_Magick++_.lib file, but I cannot find this file anywhere, nor know how to get it. I'm not able to use the button demo project as a template to start with, because of the nature of the other SDK environment.
Am I needing the static version in order to do the above ("build" it into the plugin)? Is it possible to achieve this without the need for other files for the user? I've run through the configure.exe program and tried the Windows install .txt file steps etc, but unfortunately neither seem to get me going.
Is it possible at all (or is there a download somewhere!? Or could one be made available?) where I can just add IM to my project via a simple #include "My_IM_Header.h" call without having all the other un-needed bits and pieces packaged in the download zips? I'm quite lost with the downloads I've tried - they feel messy - their full of folders and files and just make it difficult to grasp (for a non-coder like me anyway!). So I tried to put together a folder system (see below) to keep things simple and easy to move amongst platforms, which for what it's worth, works, until I start calling the classes. I.e. it builds with the header file included, but once I add for example Magick::Image() the build fails.
I'm not at all concerned with build times or the size of the end-software file. What's important is that it's built into the plugin without the need for other "supporting" files. Is someone able to clarify for me (or provide..) this kind of setup? This is not a student-based request! Cheers!
PBert.
Simple folder/file system:
MyImageMagic (FOLDER)
- MyMagic.h --> the only header added to the project
- Includes (FOLDER)
- Include_1.h
- Include_2.h
- Include_3.h
- and etc!!
my apologies in advance for the lengthy post that follows - but I thought best to explain/cover my position as best as possible.
I'm in the process of building a software plugin under another SDK environment (for Win and Mac, possibly Linux too). This software builds fine inside of VS 2010 Express, but getting ImageMagic to co-operate is starting to stretch my (albeit lack-of!) knowledge with C++ programming.
There are a few rules governing the making of this software, but the main one in regards to IM (and any other non-SDK related material) is that it needs to be built into the software - i.e. no other links/libraries/dlls/libs etc (STL-based stuff is an exception).
When I add the main header to my project file, and try to build my plugin from VS, it fails with a LNK2019 unresolved external symbol Magick::InitializeMagick(...). I get the same error with Magick::Image() and so on. My searches to date suggest there's a missing CORE_RL_Magick++_.lib file, but I cannot find this file anywhere, nor know how to get it. I'm not able to use the button demo project as a template to start with, because of the nature of the other SDK environment.
Am I needing the static version in order to do the above ("build" it into the plugin)? Is it possible to achieve this without the need for other files for the user? I've run through the configure.exe program and tried the Windows install .txt file steps etc, but unfortunately neither seem to get me going.
Is it possible at all (or is there a download somewhere!? Or could one be made available?) where I can just add IM to my project via a simple #include "My_IM_Header.h" call without having all the other un-needed bits and pieces packaged in the download zips? I'm quite lost with the downloads I've tried - they feel messy - their full of folders and files and just make it difficult to grasp (for a non-coder like me anyway!). So I tried to put together a folder system (see below) to keep things simple and easy to move amongst platforms, which for what it's worth, works, until I start calling the classes. I.e. it builds with the header file included, but once I add for example Magick::Image() the build fails.
I'm not at all concerned with build times or the size of the end-software file. What's important is that it's built into the plugin without the need for other "supporting" files. Is someone able to clarify for me (or provide..) this kind of setup? This is not a student-based request! Cheers!
PBert.
Simple folder/file system:
MyImageMagic (FOLDER)
- MyMagic.h --> the only header added to the project
- Includes (FOLDER)
- Include_1.h
- Include_2.h
- Include_3.h
- and etc!!