Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Compile error on ubuntu 16.04

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Compile error on ubuntu 16.04


Chronological Thread 
  • From: Henri Girard <address@hidden>
  • To: Zhang Zhen <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] Compile error on ubuntu 16.04
  • Date: Sat, 17 Nov 2018 09:39:51 +0100

I don't know where is the problem... I will try to compile texmacs, but I am with 18.04 bionic.

qt4 or qt5 formerly compiled well

I keep you inform

Le 17/11/2018 à 01:17, Zhang Zhen a écrit :
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 ./configure

make 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' failed
make[1]: *** [Objects/texmacs.o] Error 1
make[1]: Leaving directory '/home/zarzen/Desktop/texmacs-master/src'
Makefile:59: recipe for target 'TEXMACS' failed
make: *** [TEXMACS] Error 2


On 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 

./configure
make

works?

cmake is not (yet) the preferred build method for TeXmacs. 
Maybe Darcy Shen <address@hidden> know what to do.

Best
Max


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




Archive powered by MHonArc 2.6.19.

Top of Page