how to define universal paths

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
yoniekai

how to define universal paths

Post by yoniekai »

im having trouble with visual studio 2005, using magick++. i've compiled and build the windows source, following the build instructions but still im clueless as to why debugging cannot find all headers. even the demo files cant find the headers (in this case magick++.h and others). i placed my imagemagick folder in program files btw. im a newbie to IM so please i need some help :(
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: how to define universal paths

Post by magick »

The default build is uninstalled meaning you must set the MAGICK_HOME environment variable so that Magick++ can find its configuration files. Set MAGICK_DEBUG to 'configure' and run your application. It will tell you where Magick++ is expecting to find its configuration files. If you install ImageMagick from the self-installing binary distributions we build, go to the c:\Program Files\ImageMagick-6.3.7-Q16\Magick++_demos folder and click on the button workspace. Build and execute. Use this workspace as a model for your own application. Note, the distributions we provide is an installed version which relies on the Windows registry to find the location of the configuration files.
yoniekai

Re: how to define universal paths

Post by yoniekai »

is the binary you've mentioned the static one? i uninstalled the dll-q16 and used instead the zipped windows source and built it. i think i get it now. so where can i find these MAGICK_HOME configs?
yoniekai

Re: how to define universal paths

Post by yoniekai »

and i dont get it at all. i installed the binary instead to save me the trouble but still it doesnt find headers!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: how to define universal paths

Post by magick »

When you installed ImageMagick, you need to click on the box that states something like "click here to install ImageMagick development headers".
yoniekai

Re: how to define universal paths

Post by yoniekai »

visual studio still cant find the magick++ header after all of this..... all the demos compile successfully (tho there are dll "no symbols loaded" errors) but my own project cant find the headers! what's wrong... im using the same solution in the same folder (magick++demo) but im clueless as to why it doesnt find the headers like the demos do
yoniekai

Re: how to define universal paths

Post by yoniekai »

so i figured i just need to edit one of the demo files to make applications. im having problems with renaming all files associated with the demo, for example i renamed demo to mydemo and it worked but the compiler generates files with the demo filename, including the debug. i dont need to make a new project, i just need to edit them, but how can i rename the whole solution?
Post Reply