Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link failure #784

Closed
AMDmi3 opened this issue May 26, 2020 · 4 comments
Closed

Link failure #784

AMDmi3 opened this issue May 26, 2020 · 4 comments

Comments

@AMDmi3
Copy link
Contributor

AMDmi3 commented May 26, 2020

System information (version)
  • mandelbulber2 => 2.21, master
  • Operating System / Platform => FreeBSD 12
  • Compiler => clang 8.0.1
Detailed description

Since 2.21, mandelbulber fails to link:

ld: error: undefined symbol: BoxFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)0>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: SphericalFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)0>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: BoxFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)3>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: SphericalFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)3>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: BoxFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)4>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: SphericalFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)4>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: BoxFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)1>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: SphericalFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)1>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: BoxFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)5>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: SphericalFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)5>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: BoxFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)6>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: SphericalFolding(CVector4&, sFractalFoldings const*, sExtendedAux&)
>>> referenced by compute_fractal.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/compute_fractal.cpp.o:(void Compute<(fractal::enumCalculationMode)6>(cNineFractals const&, sFractalIn const&, sFractalOut*))
 
ld: error: undefined symbol: newFractalList
>>> referenced by main.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/main.cpp.o:(main)
 
ld: error: undefined symbol: DefineFractalList(QList<cAbstractFractal*>*)
>>> referenced by main.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/main.cpp.o:(main)
 
ld: error: undefined symbol: newFractalList
>>> referenced by nine_fractals.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/nine_fractals.cpp.o:(cNineFractals::cNineFractals(cFractalContainer const*, cParameterContainer const*))
 
ld: error: undefined symbol: newFractalList
>>> referenced by nine_fractals.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/nine_fractals.cpp.o:(cNineFractals::cNineFractals(cFractalContainer const*, cParameterContainer const*))
 
ld: error: undefined symbol: newFractalList
>>> referenced by nine_fractals.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/nine_fractals.cpp.o:(cNineFractals::cNineFractals(cFractalContainer const*, cParameterContainer const*))
 
ld: error: undefined symbol: newFractalList
>>> referenced by nine_fractals.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/nine_fractals.cpp.o:(cNineFractals::cNineFractals(cFractalContainer const*, cParameterContainer const*))
 
ld: error: undefined symbol: newFractalList
>>> referenced by nine_fractals.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/nine_fractals.cpp.o:(cNineFractals::cNineFractals(cFractalContainer const*, cParameterContainer const*))
 
ld: error: undefined symbol: newFractalList
>>> referenced by nine_fractals.cpp
>>>               CMakeFiles/mandelbulber2.dir/wrkdirs/usr/ports/graphics/mandelbulber/work/mandelbulber2-continuous/mandelbulber2/src/nine_fractals.cpp.o:(cNineFractals::cNineFractals(cFractalContainer const*, cParameterContainer const*))
 
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

full log: https://pastebin.com/wwGNvp6e

@buddhi1980
Copy link
Owner

Have you run qmake before build?

@buddhi1980
Copy link
Owner

I see... You use cmake instead of qmake. And indeed there is something wrong with cmake configuration. I will fix it asap.

@buddhi1980
Copy link
Owner

Fixed

@AMDmi3
Copy link
Contributor Author

AMDmi3 commented May 26, 2020

Superb, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants