AlfredoCubitos / qosmic

Automatically exported from code.google.com/p/qosmic
0 stars 1 forks source link

support for new flam3_xform struct layout #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download current flam3-svn-875 and install
2. try to compile qosmic

What is the expected output? What do you see instead?
Compiling breaks with the following error:

g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector 
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -D_REENTRANT 
-w -DVERSION='"1.5.0"' -DFL
AM3DIR='"/usr/share/flam3"' 
-DTRANSDIR='"/home/martti/abs/qosmic/pkg/usr/share/translations"' 
-DSCRIPTSDIR='"/home/martti/abs/qosmic/pkg/usr/share/scripts"' -DQT_NO_DEBUG 
-DQT_XML_LI
B -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 
-I. -I/usr/include/QtUiTools -I/usr/include/QtCore -I/usr/include/QtGui 
-I/usr/include/QtXml -I/usr/incl
ude -I/usr/include/libxml2 -Isrc -I.moc -I.ui -o .obj/mainwindow.o 
src/mainwindow.cpp
src/mainwindow.cpp: In member function ‘void 
MainWindow::paletteChangedAction()’:
src/mainwindow.cpp:1344:65: error: no matching function for call to 
‘FigureEditor::colorChangedAction(double [2])’
src/mainwindow.cpp:1344:65: note: candidate is:
src/xfedit.h:140:8: note: void FigureEditor::colorChangedAction(double)
src/xfedit.h:140:8: note:   no known conversion for argument 1 from ‘double 
[2]’ to ‘double’
src/mainwindow.cpp: In member function ‘void 
MainWindow::paletteHueChangedAction()’:
src/mainwindow.cpp:1352:65: error: no matching function for call to 
‘FigureEditor::colorChangedAction(double [2])’
src/mainwindow.cpp:1352:65: note: candidate is:
src/xfedit.h:140:8: note: void FigureEditor::colorChangedAction(double)
src/xfedit.h:140:8: note:   no known conversion for argument 1 from ‘double 
[2]’ to ‘double’
make: *** [.obj/mainwindow.o] Error 1

What version of the product are you using? On what operating system?
qosmic-1.5.0
flam3-svn-875
Using recent ArchLinux x86_64 (host and vm).

Please provide any additional information below.
new flam3.h: flam3_xform struct layout:

typedef struct {
   double var[flam3_nvariations];   /* interp coefs between variations */
   double c[3][2];      /* the coefs to the affine part of the function */
   double post[3][2];   /* the post transform */
   double density;      /* probability that this function is chosen. 0 - 1 */
   double color[2];     /* color coords for this function. 0 - 1 */
   double symmetry;     /* 1=this is a symmetry xform, 0=not */

...
} flam3_xform;

I can't really tell what the effect is of that change, because i haven't dug 
into the patch which implements it.

Original issue reported on code.google.com by mysat...@gmail.com on 1 Dec 2011 at 4:59

GoogleCodeExporter commented 8 years ago
It looks like you are using the sourceforge svn repository.  The current source 
repository has been moved to http://flam3.googlecode.com/svn/trunk/  Can you 
try the head of that repository, and file another bug if you see a problem?

Thanks,

Original comment by bit...@gmail.com on 3 Dec 2011 at 6:41

GoogleCodeExporter commented 8 years ago
Sorry for the noise. Actually the problem is a packaging problem, since my 
source still relies on sf. Thanks for the hint. :)

Original comment by mysat...@gmail.com on 4 Dec 2011 at 9:31