Subject: mailing-list for TeXmacs Users
List archive
From : Zhang Zhen <address@hidden>- To: Henri Girard <address@hidden>
- Cc: address@hidden
- Subject: Re: [TeXmacs] Compile error on ubuntu 16.04
- Date: Fri, 16 Nov 2018 19:17:11 -0500
I installed qt5 instead of qt4, will this be a problem?
anyway, I think I can add a -fPIC parameter during compiling, but don't know where should I put the parameter.
Best,
Zhen
On Fri, Nov 16, 2018 at 7:09 PM Zhang Zhen <address@hidden> wrote:
with the makefile generated by ./configuremake process got following error:In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer.h:37:0,from /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:37,from /usr/include/x86_64-linux-gnu/qt5/QtCore/QPointer:1,from Plugins/Qt/qt_widget.hpp:17,from Plugins/Qt/qt_simple_widget.hpp:18,from Edit/editor.hpp:20,from Texmacs/server.hpp:14,from ./Texmacs/Texmacs/texmacs.cpp:25:/usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."# error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\^makefile:345: recipe for target 'Objects/texmacs.o' failedmake[1]: *** [Objects/texmacs.o] Error 1make[1]: Leaving directory '/home/zarzen/Desktop/texmacs-master/src'Makefile:59: recipe for target 'TEXMACS' failedmake: *** [TEXMACS] Error 2On Fri, Nov 16, 2018 at 11:40 AM Henri Girard <address@hidden> wrote:For ubuntu it's good to do
./configure --prefix=/usr (then texmacs is in your path)
make
sudo make install
Keep the compiled sources if you want to uninstall it
sudo make uninstall
Le 16/11/2018 à 09:01, Massimiliano Gubinelli a écrit :
Does the standard
./configuremake
works?
cmake is not (yet) the preferred build method for TeXmacs.Maybe Darcy Shen <address@hidden> know what to do.
BestMax
On 16. Nov 2018, at 06:26, Zhang Zhen <address@hidden> wrote:
Hi,
I have installed libsqlite3-dev and sqlite3 on the system. But still got following error:
[ 87%] Linking CXX executable ../texmacs.bin
libtexmacs_body.a(sqlite3.cpp.o): In function `tm_sqlite3_initialize()':
/home/zarzen/Desktop/texmacs-master/src/Plugins/Sqlite3/sqlite3.cpp:75: undefined reference to `sqlite3_open'
/home/zarzen/Desktop/texmacs-master/src/Plugins/Sqlite3/sqlite3.cpp:76: undefined reference to `sqlite3_close'
/home/zarzen/Desktop/texmacs-master/src/Plugins/Sqlite3/sqlite3.cpp:77: undefined reference to `sqlite3_get_table'
/home/zarzen/Desktop/texmacs-master/src/Plugins/Sqlite3/sqlite3.cpp:78: undefined reference to `sqlite3_free_table'
collect2: error: ld returned 1 exit status
src/CMakeFiles/texmacs.bin.dir/build.make:124: recipe for target 'texmacs.bin' failed
make[2]: *** [texmacs.bin] Error 1
CMakeFiles/Makefile2:991: recipe for target 'src/CMakeFiles/texmacs.bin.dir/all' failed
make[1]: *** [src/CMakeFiles/texmacs.bin.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
Any suggestion?
Best,
Zhen
- [TeXmacs] Compile error on ubuntu 16.04, Zhang Zhen, 11/16/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Massimiliano Gubinelli, 11/16/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Henri Girard, 11/16/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Zhang Zhen, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Zhang Zhen, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Henri Girard, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Henri Girard, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Pablo S. Casas, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Henri Girard, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Zhang Zhen, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Zhang Zhen, 11/17/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Henri Girard, 11/16/2018
- Re: [TeXmacs] Compile error on ubuntu 16.04, Massimiliano Gubinelli, 11/16/2018
Archive powered by MHonArc 2.6.19.