yop,
How to Build Synfig Studio in Ubuntu Karmic Koala 9.10
Seems to be the simplest way…
Nota : I have edited this post with some revelant? step …: <EDIT - MM/DD - N> , read
i’m stuck b[/b] …so bad (x2)
First way:
Building step by step (wiki.synfig.org/wiki/Dev:Build_Instructions) ;
Stuck in building core <EDIT 03/30> see EDIT 03/30 - 2
./configure
C++ compiler does not seem to support unordered containers
Know Issue : synfig.org/issues/thebuggeni … issues/103
NEED to update code (hard sourceforge link outdated issue inside)
<EDIT - 03/30 - 2> stuck in ETL! seems that i mess that before :
$ autoreconf --install --force
Makefile.am:99 [....] $(top_srcdir: non-POSIX variable name
Second way :
after updating and running “synfigstudio-linux-build.sh”
[code]Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libdirectfb-dev : Depends: libjpeg-dev
libmng-dev : Depends: libjpeg-dev
libtiff4-dev : Depends: libjpeg-dev
E: Unable to correct problems, you have held broken packages.[/code]
i already knew this problem when i followed wiki.synfig.org/wiki/Dev:Build_Instructions , seems because libmng-dev and libjpeg62-dev incompatible, cause libjpeg-dev require libjpeg8-dev.
<EDIT - 03/30 - 3> I will try suppressing libmng-dev & libjpeg-dev from “synfigstudio-linux-build.sh” ++ remove libdirectfb-dev libtiff4-dev
<EDIT - 03/30 - 4>
problem with ligne 826, 833, … “[[: not found” and (ligne?) “pushd: not found”
—> resolved changing “sh synfigstudio-linux-build.sh” by “sudo -H bash synfigstudio-linux-build.sh” (from youtrack.jetbrains.com/issue/JT-7619 and after checking #type ‘[[’ & pushd ouput )
problem2 :
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../src -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/local/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -DSYNFIG_NO_DEPRECATED -DLOCALEDIR=\"/Sources/Synfig/synfig/share/locale\" -DLIBDIR=\"/Sources/Synfig/synfig/lib\" -DSYSCONFDIR=\"/Sources/Synfig/synfig/etc\" -I/Sources/Synfig/synfig//include/ImageMagick -DNDEBUG -O2 -W -Wall -MT libsynfig_la-importer.lo -MD -MP -MF .deps/libsynfig_la-importer.Tpo -c importer.cpp -fPIC -DPIC -o .libs/libsynfig_la-importer.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../src -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/local/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -DSYNFIG_NO_DEPRECATED -DLOCALEDIR=\"/Sources/Synfig/synfig/share/locale\" -DLIBDIR=\"/Sources/Synfig/synfig/lib\" -DSYSCONFDIR=\"/Sources/Synfig/synfig/etc\" -I/Sources/Synfig/synfig//include/ImageMagick -DNDEBUG -O2 -W -Wall -MT libsynfig_la-guid.lo -MD -MP -MF .deps/libsynfig_la-guid.Tpo -c guid.cpp -fPIC -DPIC -o .libs/libsynfig_la-guid.o
libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../src -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml++-2.6 -I/usr/lib/libxml++-2.6/include -I/usr/local/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -DSYNFIG_NO_DEPRECATED -DLOCALEDIR=\"/Sources/Synfig/synfig/share/locale\" -DLIBDIR=\"/Sources/Synfig/synfig/lib\" -DSYSCONFDIR=\"/Sources/Synfig/synfig/etc\" -I/Sources/Synfig/synfig//include/ImageMagick -DNDEBUG -O2 -W -Wall -MT libsynfig_la-keyframe.lo -MD -MP -MF .deps/libsynfig_la-keyframe.Tpo -c keyframe.cpp -fPIC -DPIC -o .libs/libsynfig_la-keyframe.o
In file included from /usr/local/include/ETL/stringf:32:0,
from general.h:31,
from distance.cpp:35:
/usr/local/include/ETL/_stringf.h:128:2: warning: #warning Potential for Buffer-overflow bug using vsprintf [-Wcpp]
In file included from /usr/local/include/ETL/stringf:32:0,
from keyframe.cpp:34:
/usr/local/include/ETL/_stringf.h:128:2: warning: #warning Potential for Buffer-overflow bug using vsprintf [-Wcpp]
In file included from /usr/local/include/ETL/stringf:32:0,
from guid.cpp:39:
/usr/local/include/ETL/_stringf.h:128:2: warning: #warning Potential for Buffer-overflow bug using vsprintf [-Wcpp]
In file included from /usr/local/include/ETL/stringf:32:0,
from general.h:31,
from value.h:39,
from valuenode.h:33,
from canvas.h:40,
from importer.cpp:33:
/usr/local/include/ETL/_stringf.h:128:2: warning: #warning Potential for Buffer-overflow bug using vsprintf [-Wcpp]
distance.cpp: In member function 'synfig::Distance& synfig::Distance::operator=(const String&)':
distance.cpp:88:37: error: 'strscanf' was not declared in this scope
make[3]: *** [libsynfig_la-distance.lo] Erreur 1
make[3]: *** Attente des tâches non terminées....
guid.cpp: In constructor 'synfig::GUID::GUID(const String&)':
guid.cpp:205:85: error: 'strscanf' was not declared in this scope
make[3]: *** [libsynfig_la-guid.lo] Erreur 1
mv -f .deps/libsynfig_la-keyframe.Tpo .deps/libsynfig_la-keyframe.Plo
mv -f .deps/libsynfig_la-importer.Tpo .deps/libsynfig_la-importer.Plo
make[3]: quittant le répertoire « /home/devinfo/Sources/Synfig/synfig/synfig-core/src/synfig »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/devinfo/Sources/Synfig/synfig/synfig-core/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/devinfo/Sources/Synfig/synfig/synfig-core »
make: *** [all] Erreur 2
trying to resolve with : applying (manually) patch abf.rosalinux.ru/import/etl/blo … lags.patch - ‘strscanf’ Build error synfig forum
<END EDIT - 03/30 - 4>
<EDIT - 03/30 - 5>
- done earlier mentioned patch without result (in configure.ac [etl|core|studio] ) – return to initial state, this solution was not good for me, as i want to dig into more than wiki screenshot
- did in core/src/distance.cpp:
[code]#ifdef USING_PCH
include “pch.h”
#else
#ifdef HAVE_CONFIG_H
include <config.h>
#endif
++#include <ETL/stringf>
#include “distance.h”
#include “renddesc.h”
#include “general.h”
#include <ctype.h>
#endif[/code]
- and did in etl/etl/_stringf.h :
#if defined (HAVE_SSCANF) && defined (__GNUC__)
--#define strscanf(data,format,...) sscanf(data.c_str(),format,__VA_ARGS__)
++#define strscanf(data,format,...) sscanf(data.c_str(),format,##__VA_ARGS__)
#endif
#endif
based on : stackoverflow.com/questions/5588 … args-trick
grrrr…
where did i mess something ?
see(:ya!