[SOLVED] building latest svn on fedora 23 fails on importps.cpp

Previous topic - Next topic

corebots

Hello, I'd like to test some of the bugs with the 'needs testing' flag but scribus fails to build. all deps are installed, and i've build before (~month ago). could you please help me on what might be the cause? thank you.

[ 81%] Built target importpct
[ 81%] Building CXX object scribus/plugins/import/ps/CMakeFiles/importps.dir/importps.cpp.o
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp: In memberfunctie 'void EPSPlug::parseOutput(QString, bool)':
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp:563:14: fout: 'class ScribusDoc' has no member named 'AdjustItemSize'
       m_Doc->AdjustItemSize(ite);
              ^
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp:609:14: fout: 'class ScribusDoc' has no member named 'AdjustItemSize'
       m_Doc->AdjustItemSize(ite);
              ^
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp:644:14: fout: 'class ScribusDoc' has no member named 'AdjustItemSize'
       m_Doc->AdjustItemSize(ite, true);
              ^
scribus/plugins/import/ps/CMakeFiles/importps.dir/build.make:69: recept voor doel 'scribus/plugins/import/ps/CMakeFiles/importps.dir/importps.cpp.o' is mislukt
make[2]: *** [scribus/plugins/import/ps/CMakeFiles/importps.dir/importps.cpp.o] Fout 1
CMakeFiles/Makefile2:1793: recept voor doel 'scribus/plugins/import/ps/CMakeFiles/importps.dir/all' is mislukt
make[1]: *** [scribus/plugins/import/ps/CMakeFiles/importps.dir/all] Fout 2
Makefile:149: recept voor doel 'all' is mislukt
make: *** [all] Fout 2

Kunda


a.l.e

hey

strange error.

is is a clan build? (first build on a fresh repository?)

have you compiled scribus before?

ciao
a.l.e


corebots

Quote from: a.l.e on January 19, 2016, 09:11:27 AM
hey

strange error.

is is a clan build? (first build on a fresh repository?)

have you compiled scribus before?

ciao
a.l.e

well I've used scribus 1.5.1 from svn , built roughly a month ago. so I thought for testing i get the latest from svn and followed the instructions on http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake#Fedora_19_and_later

I had to ' sudo rm -R /usr/local/scribus_svn/ ' right at the beginning because the old directory was  still there, then I've created a new one and after the Build files have been written to: /home/debili/src/scribus_svn/Scribus/build i run
' make ' which finished with the above described error. i must admit i'm not very experienced with building but as I look back there aren't many steps where i could have made a mistake..

a.l.e

if you followed

http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake#Build_from_Source

to the letter, you should remove at the

~/src/scribus_svn

redo the checkout and do a full compile...


(and i recomend you to set the PATH to ~/bin/scribus_svn instead of /usr/local/scribus_svn : if possible, you should avoid sudo when installing software compiled by yourself)

a.l.e

oooops... it probably should be ->adjustItemSize() ... lowercase...

probably related to the big refactoring by asma or ali...

corebots

Quote from: a.l.e on January 19, 2016, 11:41:51 AM
oooops... it probably should be ->adjustItemSize() ... lowercase...

probably related to the big refactoring by asma or ali...

not sure if i understand what you mean. I've deleted the folders and have repeated the procedure but the result remains the same; error at 81%. but i see the bug i've opened is marked resolved ? thanks

Kunda

Please build Trunk again and then report results in the ticket. Thanks

a.l.e

hey corebots,

i wanted to tell you that it's very likely that there is an error in the scribus code!

... and now i know that my suspicion was correct...


the error you're having is:

'class ScribusDoc' has no member named 'AdjustItemSize'

and indeed the function call should be "m_Doc->adjustItemSize(ite)", with lowercase "a"
(https://github.com/scribusproject/scribus/blob/master/scribus/scribusdoc.h#L1153)

as you can see in the ticket

http://bugs.scribus.net/view.php?id=13668

that the bug has been fixed yesterday evening by craig with the following changes:

http://lists.scribus.net/pipermail/scribus-commit/2016-January/008136.html


you should now be able to update your code and correctly compile scribus!

good luck
a.l.e

corebots

works great now, thank you and sorry for the late response