Closed sgano closed 5 years ago
Update: still getting the same errors on the final 2.0 version. I was able to compile the beta versions just fine. I am doing this to enable dark mode support.
Same errors here...
Do you guys think you can help us fix it? If you do, we will have more time developing new features.
Do you guys think you can help us fix it? If you do, we will have more time developing new features.
I would be happy if I were able, but the most I can do with my knowledge, is to try to compile from sources following the instructions :(
A friend wrote this gist which has been quite helpful getting the source to compile for mac. https://gist.github.com/fujin/78e3ebda0f6c39d23ce1bb2a904db83c
I have the same errors /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwxtiff-3.1.a(wxtiff_tif_jbig.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwxtiff-3.1.a(wxtiff_tif_jpeg_12.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwxtiff-3.1.a(wxtiff_tif_lzma.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwxtiff-3.1.a(wxtiff_tif_jbig.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwxtiff-3.1.a(wxtiff_tif_jpeg_12.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwxtiff-3.1.a(wxtiff_tif_lzma.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu_xml-3.1.a(xmllib_xtixml.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/kenji/projects/PrusaSlicer/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu_xml-3.1.a(xmllib_xtixml.o) has no symbols
The issue here is that gettext binary tools are not found by wxWidgets build.
This should be fixed in ab677bad41bedf74296c9cc02224c64aea03af07 provided you install gettext with brew install gettext
.
Let me know should the issue remain...
Looks like this is back on current master:
[ 77%] Performing build step for 'dep_wxwidgets'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
./src/osx/cocoa/menu.mm:291:15: warning: 'auto' type specifier is a C++11
extension [-Wc++11-extensions]
for ( auto item : menu->GetMenuItems() )
^
./src/osx/cocoa/menu.mm:291:25: warning: range-based for loop is a C++11
extension [-Wc++11-extensions]
for ( auto item : menu->GetMenuItems() )
^
2 warnings generated.
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_memory.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_wxprintf.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_xti.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_xtistrm.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_fswatcherg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_epolldispatcher.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_cocoa_utils.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_memory.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_wxprintf.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_xti.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_xtistrm.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_fswatcherg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_epolldispatcher.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_baseu-3.1.a(baselib_cocoa_utils.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_accesscmn.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_cairo.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_effects.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_fontutilcmn.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_ownerdrwcmn.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_preferencesg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_srchctlg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_accesscmn.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_cairo.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_effects.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_fontutilcmn.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_ownerdrwcmn.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_preferencesg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_core-3.1.a(corelib_srchctlg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_adv-3.1.a(advlib_datavgen.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_adv-3.1.a(advlib_timectrlg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_adv-3.1.a(advlib_carbon_sound.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_adv-3.1.a(advlib_datavgen.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_adv-3.1.a(advlib_timectrlg.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: /Users/athomas/Develop/GitHub/External-Forked/Slic3rPE/deps/build/dep_wxwidgets-prefix/src/dep_wxwidgets/lib/libwx_osx_cocoau_adv-3.1.a(advlib_carbon_sound.o) has no symbols
[ 78%] Performing install step for 'dep_wxwidgets'
------------------------------------------------------
The installation of wxWidgets is finished. On certain
platforms (e.g. Linux) you'll now have to run ldconfig
if you installed a shared library and also modify the
LD_LIBRARY_PATH (or equivalent) environment variable.
wxWidgets comes with no guarantees and doesn't claim
to be suitable for any purpose.
Read the wxWindows Licence on licencing conditions.
------------------------------------------------------
[ 79%] Completed 'dep_wxwidgets'
[ 82%] Built target dep_wxwidgets
make: *** [all] Error 2
I'm not going to reopen this just yet because it seems like you're doing some major overhauls and it may just be temporary…
@DrLex0 I don't think I can see the error in that log, it seems like the actual error was earlier somewhere in the scrollback.
OK, I have dumped the entire log to a file and looked for “error:” and this seems to be the actual error:
[ 68%] Built target qvoronoi
[ 56%] Building CXX object CMakeFiles/tbb_static.dir/src/tbb/mutex.cpp.o
Scanning dependencies of target qhull
[ 69%] Building C object CMakeFiles/qhull.dir/src/qhull/unix_r.c.o
[ 70%] Linking C executable qhull
ld: can't open output file for writing: qhull, errno=21 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [qhull] Error 1
make[4]: *** [CMakeFiles/qhull.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dep_qhull-prefix/src/dep_qhull-stamp/dep_qhull-build] Error 2
make[1]: *** [CMakeFiles/dep_qhull.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Here is the entire log for reference (output of make -j 6 2>&1 | tee buildlog.txt
inside deps/build):
buildlog.txt.zip
This is on OS X Mojave 10.14.6, with CMAKE_OSX_DEPLOYMENT_TARGET
set to "10.9" and CMAKE_OSX_SYSROOT
to /Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk
. This still worked about a week ago.
make[4]: msgfmt: No such file or directory
: You need GNU gettext on Mac to build wxWidgetsld: can't open output file for writing: qhull, errno=21 for architecture x86_64
: This is a bug in QHull build which got fixed recently and current master
branch of PrusaSlicer includes the fix.It's now more broken:
CMake Error at /Users/athomas/Desktop/tmp/PSlicer/deps/build/destdir/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package):
Found package configuration file:
/Users/athomas/Desktop/tmp/PSlicer/deps/build/destdir/usr/local/lib/cmake/boost_iostreams-1.71.0/boost_iostreams-config.cmake
but it set boost_iostreams_FOUND to FALSE so package "boost_iostreams" is
considered to be NOT FOUND. Reason given by package:
No suitable build variant has been found.
The following variants have been tried and rejected:
* libboost_iostreams.a (static, default is shared, set
Boost_USE_STATIC_LIBS=ON to override)
Call Stack (most recent call first):
/Users/athomas/Desktop/tmp/PSlicer/deps/build/destdir/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.14.3/share/cmake/Modules/FindBoost.cmake:266 (find_package)
openvdb/CMakeLists.txt:108 (find_package)
-- Configuring incomplete, errors occurred!
This should hopefully be fixed now...
I'm getting the same error 127 and error 102, trying to install the current master. How did you solve it?
Version
version_2.0.0-rc
Operating system type + version
macOS 10.14.5 - Mojave
3D printer brand / version + firmware version (if known)
MK2 (though Not Applicable here)
Behavior
-Errors when compiling the dependancies for PrusaSlicer 2.0-RC on macOS.
Here is the full log with the errors at the end:
Is this a new feature request? No
Project File (.3MF) where problem occurs