Compiling Magick++ without Visual Studio?

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
User avatar
dan9er
Posts: 16
Joined: 2019-09-18T18:13:57-07:00
Authentication code: 1152
Location: Canada

Compiling Magick++ without Visual Studio?

Post by dan9er » 2019-09-18T18:37:13-07:00

I'm setting up a programming environment on my Windows 10 machine. I prefer to use Atom and I don't want to install Visual Studio just to compile Magick++.

I have CMake (from their site), Make (from GnuWin32) and CLang (from LLVM). All have been added to PATH.

I also have a Ubuntu machine with CLang on it, and I heard CLang can compile for different platforms.

User avatar
dan9er
Posts: 16
Joined: 2019-09-18T18:13:57-07:00
Authentication code: 1152
Location: Canada

Re: Compiling Magick++ without Visual Studio?

Post by dan9er » 2019-09-25T14:23:03-07:00

Sorry about my asinine question! I now know that VS Build Tools are required to build with Windows. However, let me rephrase my question:

How to compile Magick++ using Ninja? I have the VS Build Tools installed but not VS itself, since I perfer Atom.

snibgo
Posts: 12157
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Compiling Magick++ without Visual Studio?

Post by snibgo » 2019-09-25T14:55:46-07:00

VS Build Tools are not required to build IM on Windows. I use GNU CPP tools on Windows 8.1, and building is simple. The Windows IM source download contains commonly-desired delegates. See Compiling IM with Cygwin.

Windows 10 can come with a version of bash. I don't know if that includes GNU tools, or equivalent.

I have no idea what Ninja or Atom are.
snibgo's IM pages: im.snibgo.com

User avatar
dan9er
Posts: 16
Joined: 2019-09-18T18:13:57-07:00
Authentication code: 1152
Location: Canada

Re: Compiling Magick++ without Visual Studio?

Post by dan9er » 2019-09-25T18:49:52-07:00

snibgo wrote:
2019-09-25T14:55:46-07:00
VS Build Tools are not required to build IM on Windows. I use GNU CPP tools on Windows 8.1, and building is simple. The Windows IM source download contains commonly-desired delegates. See Compiling IM with Cygwin.

Windows 10 can come with a version of bash. I don't know if that includes GNU tools, or equivalent.

I have no idea what Ninja or Atom are.
  • I don't have Cygwin, and I want to avoid installing it unless I absolutely have to.
  • I have mingw32 make v3.81 installed separately, but isn't that for building for Linux? :?
  • Ninja is another build system: https://ninja-build.org/
  • Atom is a modular code editor by GitHub, and isn't relevant here.

User avatar
dan9er
Posts: 16
Joined: 2019-09-18T18:13:57-07:00
Authentication code: 1152
Location: Canada

Re: Compiling Magick++ without Visual Studio?

Post by dan9er » 2019-09-27T18:36:04-07:00

Bump. Still need a solution.

User avatar
dan9er
Posts: 16
Joined: 2019-09-18T18:13:57-07:00
Authentication code: 1152
Location: Canada

Re: Compiling Magick++ without Visual Studio?

Post by dan9er » 2019-09-30T18:52:52-07:00

Bump. I'm gonna try asking over in Stack Overflow as well...

User avatar
dan9er
Posts: 16
Joined: 2019-09-18T18:13:57-07:00
Authentication code: 1152
Location: Canada

Re: Compiling Magick++ without Visual Studio?

Post by dan9er » 2019-10-12T10:15:17-07:00

Small update: I have managed to compile ImageMagick using `msbuild.exe`, however I'm getting issues building programs with it so I don't know if I did so successfully.

Once I get it working with no issues I'll post steps here and mark this thread as solved.

Post Reply