Author Topic: Trouble installing mypaint  (Read 1172 times)

Offline colonel.sanders

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Trouble installing mypaint
« on: April 10, 2012, 12:43:09 pm »
Hi Folks,

I have downloaded mypaint-0.7.1 version of mypaint and while compiling i am getting the following errors.Can any one help me out with this ?

Thanks !

What do these error messages mean ?

Code: [Select]
sudo /usr/bin/scons
scons: Reading SConscript files ...
Building for python2.6
Saved options:
swig -o mypaintlib_wrap.cpp -python -c++ mypaintlib.i
python generate.py
Checked brushsettings.hpp
scons: done reading SConscript files.
scons: Building targets ...
g++ -o lib/mypaintlib_wrap.os -c " " - W a l l " " - W n o - s i g n - c o m p a r e " " - W n o - w r i t e - s t r i n g s -fno-strict-aliasing -fmessage-length=0 -O2 -Wall -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lsd/lib/python/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 lib/mypaintlib_wrap.cpp
g++:  : No such file or directory
g++: W: No such file or directory
g++: a: No such file or directory
g++: l: No such file or directory
g++: l: No such file or directory
g++:  : No such file or directory
g++: W: No such file or directory
g++: n: No such file or directory
g++: o: No such file or directory
g++: s: No such file or directory
g++: i: No such file or directory
g++: g: No such file or directory
g++: n: No such file or directory
g++: c: No such file or directory
g++: o: No such file or directory
g++: m: No such file or directory
g++: p: No such file or directory
g++: a: No such file or directory
g++: r: No such file or directory
g++: e: No such file or directory
g++:  : No such file or directory
g++: W: No such file or directory
g++: n: No such file or directory
g++: o: No such file or directory
g++: w: No such file or directory
g++: r: No such file or directory
g++: i: No such file or directory
g++: t: No such file or directory
g++: e: No such file or directory
g++: s: No such file or directory
g++: t: No such file or directory
g++: r: No such file or directory
g++: i: No such file or directory
g++: n: No such file or directory
g++: g: No such file or directory
g++: s: No such file or directory
g++: cannot specify -o with -c or -S with multiple files
scons: *** [lib/mypaintlib_wrap.os] Error 1
scons: building terminated because of errors.

Offline idragosani

  • Newbie
  • *
  • Posts: 39
  • Karma: +5/-0
  • Composer and Animator
    • Website
Re: Trouble installing mypaint
« Reply #1 on: April 10, 2012, 01:51:55 pm »
I have downloaded mypaint-0.7.1 version of mypaint and while compiling i am getting the following errors.Can any one help me out with this ?

Why such an old version? Version 1.0.0 is available for all platforms.
Brett W. McCoy -- http://www.brettwmccoy.com
---------------------------------------------------
Intel i7 2600 3.4 GHz : 8GB RAM : Ubuntu Studio 12.10 : Cintiq 21UX

Offline colonel.sanders

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Trouble installing mypaint
« Reply #2 on: April 11, 2012, 06:23:24 am »
I tried the latest version and i get the same error.Basically,i am trying to understand what those error messages mean ?

Thanks !

Offline idragosani

  • Newbie
  • *
  • Posts: 39
  • Karma: +5/-0
  • Composer and Animator
    • Website
Re: Trouble installing mypaint
« Reply #3 on: April 11, 2012, 01:34:48 pm »
I assume you are on some flavor of Linux...

This is the questionable line:

g++ -o lib/mypaintlib_wrap.os -c " " - W a l l " " - W n o - s i g n - c o m p a r e " " - W n o - w r i t e - s t r i n g s -fno-strict-aliasing -fmessage-length=0 -O2 -Wall -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fwrapv -fPIC -D_FORTIFY_SOURCE=2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lsd/lib/python/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 lib/mypaintlib_wrap.cpp

Not sure why those g++ options are getting expanded like that (with spaces, with ""), g++ is interpreting them as file names, not compile options. I just tested on my Ubuntu Studio installation, it compiled cleanly:


$ sudo scons prefix=/usr/local install
scons: Reading SConscript files ...
Building for python2.7
swig -o mypaintlib_wrap.cpp -noproxydel -python -c++ mypaintlib.i
python2.7 generate.py
Checked brushsettings.hpp
set umask to 0022 (was 0022)
scons: done reading SConscript files.
scons: Building targets ...
burn_python_version(["mypaint"], ["mypaint.py"])
Chmod("mypaint", 0755)
Install file: "mypaint" as "/usr/local/bin/mypaint"
Chmod("/usr/local/bin/mypaint", 0755)
Chmod("/usr/local/bin", 0755)
g++ -o lib/mypaintlib_wrap.os -c -Wall -Wno-sign-compare -Wno-write-strings -fno-strict-aliasing -g -fwrapv -O2 -Wall -Wstrict-prototypes -Xlinker -export-dynamic -fPIC -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libpng12 -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 lib/mypaintlib_wrap.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
g++ -o lib/_mypaintlib.so -Wl,-O1 -Wl,-Bsymbolic-functions -shared lib/mypaintlib_wrap.os -L/usr/lib/x86_64-linux-gnu -L/usr/lib/python2.7/config -lglib-2.0 -lpng12 -lpthread -ldl -lutil -lm -lpython2.7
Install file: "lib/_mypaintlib.so" as "/usr/local/lib/mypaint/_mypaintlib.so"

...

What distro are you on? Might be easier to install with your packaging system rather than compiling.
Brett W. McCoy -- http://www.brettwmccoy.com
---------------------------------------------------
Intel i7 2600 3.4 GHz : 8GB RAM : Ubuntu Studio 12.10 : Cintiq 21UX

Offline maxy

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: +9/-1
Re: Trouble installing mypaint
« Reply #4 on: April 11, 2012, 07:59:42 pm »
Maybe an old scons version, try to upgrade the scons package if you can.