Build and Install Cinepaint on Ubuntu 10.10

Cinepaint lässt sich zurzeit leider nicht so einfach unter Debian oder Ubuntu Installieren. Aber mit ein paar Anpassungen lässt es sich aus dem CVS bauen.

Hier eine kurze schritt für schritt Anleitung.

1. ubuntu-cvs.sh speichern.

2. In ubuntu-cvs.sh Zeile 24 in “export LD_LIBRARY_PATH=/usr/lib/local” ändern.

3. CVS per “apt-get install cvs” installieren.

4. Skript mit “sh ubuntu-cvs.sh” ausführen (bricht bei ersten Durchlauf ab)

5. ca. Zeile 304 “cvs/cinepaint-project/cinepaint/plug-ins/collect/collect.cpp”

- gimp_layer_set_name (layers[0], strrchr(fc->value(1),'/')+1);
+ gimp_layer_set_name (layers[0], (char *)(strrchr(fc->value(1),'/')+1));

6. ca. Zeile 341 “cvs/cinepaint-project/cinepaint/plug-ins/collect/collect.cpp”

- gimp_layer_set_name(layers[0], strrchr(fc->value(i),'/')+1);
+ gimp_layer_set_name(layers[0], (char *)(strrchr(fc->value(i),'/')+1));

7. Skript mit “sh ubuntu-cvs.sh” erneut ausführen.

Related posts:

  1. Simple and fast Appliance Setup
    • h0t5p0t18
    • March 14th, 2011

    Genau danach habe ich gesucht! Danke!
    Aber scheinbar sind noch andere Strings zu ersetzen:

    F .deps/collect.Tpo -c -o collect.o collect.cpp
    collect.cpp: In function ‘void query()’:
    collect.cpp:104: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:104: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:104: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:104: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:108: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:108: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp:122: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp: In function ‘void run(char*, int, GParam*, int*, GParam**)’:
    collect.cpp:154: warning: format not a string literal and no format arguments
    collect.cpp:155: warning: deprecated conversion from string constant to ‘gchar*’
    collect.cpp:194: warning: deprecated conversion from string constant to ‘gchar*’
    collect.cpp: In function ‘int file_load(const char*, int)’:
    collect.cpp:210: warning: deprecated conversion from string constant to ‘char*’
    collect.cpp: In function ‘int do_collect()’:
    collect.cpp:304: error: invalid conversion from ‘const char*’ to ‘char*’
    collect.cpp:304: error: initializing argument 2 of ‘void gimp_layer_set_name(gint32, char*)’
    collect.cpp:365: warning: format not a string literal and no format arguments
    make[2]: *** [collect.o] Fehler 1
    make[2]: Verlasse Verzeichnis ‘/home/martin/Downloads/cvs/cinepaint-project/cinepaint/plug-ins/collect’
    make[1]: *** [install-recursive] Fehler 1
    make[1]: Verlasse Verzeichnis ‘/home/martin/Downloads/cvs/cinepaint-project/cinepaint/plug-ins’
    make: *** [install-recursive] Fehler 1

    Lieben Gruß

    • Daniel Nümm
    • March 14th, 2011

    mmm. eigentlich sollte es das gewesen sein. Deine Fehlermeldung sagt ja auch…

    collect.cpp:304: error: invalid conversion from ‘const char*’ to ‘char*’
    collect.cpp:304: error: initializing argument 2 of ‘void gimp_layer_set_name(gint32, char*)’

    also genau die Zeile auf die sich der Patch bezieht. Kontrolliere am besten nochmal ob du die Zeilen Korrekt angepasst hast.

    Wenn es nicht geht versuch ichs auch nochmal zu bauen.

    Grüße Daniel

  1. No trackbacks yet.