> Rafael Sadowski writes:
>> Please find below an update diff for TeXmacs 1.99.9. I stared to get rid
>> of COMPILER=base-gcc. Upstream switched form Qt4 to Qt5 and from
>> autotools to CMake.

I do not know cmake, so I did not review your cmake additions. It
builds, and I successfully followed the tutorial video. Thank you.

Here is some feedback:
1. Remove `patch-src_System_Link_pipe_link_cpp'. It still builds without
this patch.
2. Add iconv to WANTLIB. Otherwise, I get errors of the form:

--8<---------------cut here---------------start------------->8---
[593/610] : && /usr/ports/pobj/TeXmacs-1.99.9/bin/c++  -O2 -pipe -include 
/mnt/playground/ports/pobj/TeXmacs-1.99.9/build-amd64/src/System/config.h 
-DNDEBUG   tests/CMakeFiles/analyze_test.dir/Data/String/analyze_test.cpp.o 
tests/CMakeFiles/analyze_test.dir/analyze_test_autogen/mocs_compilation.cpp.o  
-o tests/analyze_test -L/usr/local/lib  -L/usr/X11R6/lib  
-L/usr/local/lib/qt5/.  -L/usr/ports/pobj/TeXmacs-1.99.9/bin  
-L/usr/local/lib/gcc/x86_64-unknown-openbsd6.5/4.9.4 
-Wl,-rpath,/usr/local/lib/qt5/.:/usr/X11R6/lib 
3rdparty/benchmark/googletest/googletest/libgtest.a 
3rdparty/benchmark/googletest/googletest/libgtest_main.a src/libtexmacs_body.a 
-lguile -lltdl -lgmp -lm -lltdl -lz -ljpeg -lpng -lz -lpthread -lsqlite3 
-lfreetype -lQt5PrintSupport 
3rdparty/benchmark/googletest/googletest/libgtest.a -lgmp -lm -lz -ljpeg -lpng 
-lz -ljpeg -lpng -lpthread -lsqlite3 -lfreetype -lQt5Widgets -lQt5Gui -lQt5Core 
-Wl,-rpath-link,/usr/X11R6/lib && :
FAILED: tests/analyze_test 
: && /usr/ports/pobj/TeXmacs-1.99.9/bin/c++  -O2 -pipe -include 
/mnt/playground/ports/pobj/TeXmacs-1.99.9/build-amd64/src/System/config.h 
-DNDEBUG   tests/CMakeFiles/analyze_test.dir/Data/String/analyze_test.cpp.o 
tests/CMakeFiles/analyze_test.dir/analyze_test_autogen/mocs_compilation.cpp.o  
-o tests/analyze_test -L/usr/local/lib  -L/usr/X11R6/lib  
-L/usr/local/lib/qt5/.  -L/usr/ports/pobj/TeXmacs-1.99.9/bin  
-L/usr/local/lib/gcc/x86_64-unknown-openbsd6.5/4.9.4 
-Wl,-rpath,/usr/local/lib/qt5/.:/usr/X11R6/lib 
3rdparty/benchmark/googletest/googletest/libgtest.a 
3rdparty/benchmark/googletest/googletest/libgtest_main.a src/libtexmacs_body.a 
-lguile -lltdl -lgmp -lm -lltdl -lz -ljpeg -lpng -lz -lpthread -lsqlite3 
-lfreetype -lQt5PrintSupport 
3rdparty/benchmark/googletest/googletest/libgtest.a -lgmp -lm -lz -ljpeg -lpng 
-lz -ljpeg -lpng -lpthread -lsqlite3 -lfreetype -lQt5Widgets -lQt5Gui -lQt5Core 
-Wl,-rpath-link,/usr/X11R6/lib && :
ld: error: undefined symbol: libiconv_open
>>> referenced by converter.cpp
>>>               converter.cpp.o:(iconv_converter::iconv_converter(string, 
>>> string, bool)) in archive src/libtexmacs_body.a

ld: error: undefined symbol: libiconv_close
>>> referenced by converter.cpp
>>>               converter.cpp.o:(iconv_converter::~iconv_converter()) in 
>>> archive src/libtexmacs_body.a

ld: error: undefined symbol: libiconv
>>> referenced by converter.cpp
>>>               converter.cpp.o:(apply(iconv_converter&, string)) in archive 
>>> src/libtexmacs_body.a

ld: error: undefined symbol: backtrace
>>> referenced by stack_trace.cpp
>>>               stack_trace.cpp.o:(get_stacktrace(unsigned int)) in archive 
>>> src/libtexmacs_body.a

ld: error: undefined symbol: backtrace_symbols
>>> referenced by stack_trace.cpp
>>>               stack_trace.cpp.o:(get_stacktrace(unsigned int)) in archive 
>>> src/libtexmacs_body.a
collect2: error: ld returned 1 exit status
--8<---------------cut here---------------end--------------->8---

Reply via email to