Building aseprite for mac

860 views
Skip to first unread message

Robin Clark

unread,
Aug 9, 2014, 11:21:20 PM8/9/14
to aseprite...@googlegroups.com
I'm trying to build aseprite for mac osx maverics. I followed the directions on github: https://github.com/aseprite/aseprite/blob/master/INSTALL.md however when I try to run make I get following errors:

Scanning dependencies of target app-lib

[  7%] Building CXX object src/app/CMakeFiles/app-lib.dir/app.cpp.o

In file included from /Users/robin/Desktop/aseprite-master/src/app/app.cpp:52:

In file included from /Users/robin/Desktop/aseprite-master/src/./app/ui/editor/editor.h:24:

In file included from /Users/robin/Desktop/aseprite-master/src/./app/document.h:25:

/Users/robin/Desktop/aseprite-master/src/./base/observable.h:33:17: error: use

      'template' keyword to treat 'notifyObservers' as a dependent template name

    m_observers.notifyObservers<A1>(method, a1);

                ^

                template 

/Users/robin/Desktop/aseprite-master/src/./base/observable.h:38:17: error: use

      'template' keyword to treat 'notifyObservers' as a dependent template name

    m_observers.notifyObservers<A1, A2>(method, a1, a2);

                ^

                template 

/Users/robin/Desktop/aseprite-master/src/./base/observable.h:43:17: error: use

      'template' keyword to treat 'notifyObservers' as a dependent template name

    m_observers.notifyObservers<A1, A2, A3>(method, a1, a2, a3);

                ^

                template 

3 errors generated.

make[2]: *** [src/app/CMakeFiles/app-lib.dir/app.cpp.o] Error 1

make[1]: *** [src/app/CMakeFiles/app-lib.dir/all] Error 2

make: *** [all] Error 2


Has anyone had succesful build for mac? What version of cmake and OS are you using?

Thanks,

 - Robin

David Capello

unread,
Aug 10, 2014, 12:30:33 AM8/10/14
to aseprite-discuss
Hi Robin,

I'm using Snow Leopard, so the compiler is quite old gcc version (I don't know if Mavericks uses clang by default).
In these days I'll be updating my OS X and the compiler because I want to start using new C++ features.
Try to compile the 'dev' branch, if that doesn't work, you will have to wait some days.

- David


--
You received this message because you are subscribed to the Google Groups "aseprite-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aseprite-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robin Clark

unread,
Aug 10, 2014, 11:35:54 AM8/10/14
to aseprite...@googlegroups.com
Hi David,

Yes you're right its using clang by default. When I try to compile dev branch I get these errors:

 16%] Building CXX object src/app/CMakeFiles/app-lib.dir/app.cpp.o

In file included from /Users/robin/Desktop/aseprite/aseprite/src/app/app.cpp:51:

In file included from /Users/robin/Desktop/aseprite/aseprite/src/./app/ui/editor/editor.h:24:

In file included from /Users/robin/Desktop/aseprite/aseprite/src/./app/document.h:25:

/Users/robin/Desktop/aseprite/aseprite/src/./base/observable.h:33:17: error: 

      use 'template' keyword to treat 'notifyObservers' as a dependent template

      name

    m_observers.notifyObservers<A1>(method, a1);

                ^

                template 

/Users/robin/Desktop/aseprite/aseprite/src/./base/observable.h:38:17: error: 

      use 'template' keyword to treat 'notifyObservers' as a dependent template

      name

    m_observers.notifyObservers<A1, A2>(method, a1, a2);

                ^

                template 

/Users/robin/Desktop/aseprite/aseprite/src/./base/observable.h:43:17: error: 

      use 'template' keyword to treat 'notifyObservers' as a dependent template

      name

    m_observers.notifyObservers<A1, A2, A3>(method, a1, a2, a3);

                ^

                template 

3 errors generated.

make[2]: *** [src/app/CMakeFiles/app-lib.dir/app.cpp.o] Error 1

make[1]: *** [src/app/CMakeFiles/app-lib.dir/all] Error 2

make: *** [all] Error 2

I'll look out for the updates.

Thanks,

- Robin

David Capello

unread,
Aug 12, 2014, 11:39:42 PM8/12/14
to aseprite-discuss
Hi Robin, you should be able to compile the dev branch now.
There is one problem: You need Mac OS X 10.4 SDK (universal).
Check these instructions:
https://github.com/aseprite/aseprite/blob/dev/INSTALL.md#how-to-compile-aseprite-with-mac-os-x


- David

Robin Clark

unread,
Aug 16, 2014, 11:18:03 AM8/16/14
to aseprite...@googlegroups.com
Hey David,

Thanks for the quick response. I'll give it a shot.

- Robin


--
You received this message because you are subscribed to a topic in the Google Groups "aseprite-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/aseprite-discuss/VeX4t6pkuoA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to aseprite-discu...@googlegroups.com.

Robin Clark

unread,
Aug 19, 2014, 8:33:57 PM8/19/14
to aseprite...@googlegroups.com
Hi David,

I didn't see a universal MacOSX10.4u.sdk, so I tried to use the regular MacOSX10.4.0.sdk, but that didn't work:
Inline image 1

It seems that MacOSX10.4u.sdk was included in some earlier versions of xcode, so I download xcode 3.0 which installed the MacOSX10.4u.sdk under my /Developer folder. Here's the modified cmake command I used.


cmake -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.4 -DCMAKE_OSX_SYSROOT:STRING=/Developer/SDKs/MacOSX10.4u.sdk ../

Cmake worked fine but I got the following errors when I ran the "make" command:

cc1plus: error: unrecognized command line option "-std=gnu++11"

make[2]: *** [src/filters/CMakeFiles/filters-lib.dir/color_curve.cpp.o] Error 1

make[1]: *** [src/filters/CMakeFiles/filters-lib.dir/all] Error 2

make: *** [all] Error 2


Any ideas?

Thanks,

 - Robin

David Capello

unread,
Aug 19, 2014, 10:12:10 PM8/19/14
to aseprite-discuss
Hi Robin,

You need to download Xcode 3.2 distribution, it includes the SDK.
I don't remember what specific version I've used, but I think that
the latest one should include the SDK for Mac 10.4

- David

David Capello

unread,
Aug 21, 2014, 12:19:46 AM8/21/14
to aseprite-discuss
Hi Robin, sorry, it's Xcode 3.1. I've updated the instructions with the specific
file that you have to download:

- David

Personal

unread,
Aug 21, 2014, 10:04:57 AM8/21/14
to aseprite...@googlegroups.com
Hey David,
No worries. Ill give it a shot tonight. 

- robin 

Sent from my iPhone

On Aug 20, 2014, at 9:19 PM, David Capello <davidc...@gmail.com> wrote:

Hi Robin, sorry, it's Xcode 3.1. I've updated the instructions with the specific
file that you have to download:

- David


On Tue, Aug 19, 2014 at 11:11 PM, David Capello <davidc...@gmail.com> wrote:
Hi Robin,

You need to download Xcode 3.2 distribution, it includes the SDK.
I don't remember what specific version I've used, but I think that
the latest one should include the SDK for Mac 10.4

- David


On Tue, Aug 19, 2014 at 9:33 PM, Robin Clark <robyd...@gmail.com> wrote:
Hi David,

I didn't see a universal MacOSX10.4u.sdk, so I tried to use the regular MacOSX10.4.0.sdk, but that didn't work:
<image.png>
Reply all
Reply to author
Forward
0 new messages