GithubHelp home page GithubHelp logo

Comments (12)

xyproto avatar xyproto commented on July 24, 2024

When running ./build_linux.sh with the latest sources, this is the output I get, btw:

% ./build_linux.sh
build liteide
QTDIR=/opt/qt
GOROOT=
BUILD_ROOT=/home/alexander/checkout/liteide/build
LITEIDE_ROOT=/home/alexander/checkout/liteide/build/../liteidex
.
qmake liteide ...
.
make liteide ...
.
g++  -o liteidex     -L/opt/qt/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [liteidex] Error 1
error, make fail

from liteide.

visualfc avatar visualfc commented on July 24, 2024

comment the liteidex build (build_linux.sh)

build_linux.sh
webkit_linux.sh

2012/12/20 Alexander Rødseth [email protected]

When running ./build_linux.sh with the latest source release, this is the
output I get, btw:

{{{
% ./build_linux.sh
build liteide
QTDIR=/opt/qt
GOROOT=
BUILD_ROOT=/home/alexander/checkout/liteide/build
LITEIDE_ROOT=/home/alexander/checkout/liteide/build/../liteidex
.
qmake liteide ...
.
make liteide ...
.
g++ -o liteidex -L/opt/qt/lib -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib/crt1.o: In
function _start':
(.text+0x20): undefined reference tomain'
collect2: error: ld returned 1 exit status
make: *** [liteidex] Error 1
error, make fail
}}}


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-11543968.

from liteide.

xyproto avatar xyproto commented on July 24, 2024

When commenting out "make" which follows "echo make liteide ..." and "echo ." in build_linux.sh, this is the output I get when running ./build_linux.sh, from the latest git revision:

build liteide
QTDIR=/opt/qt
GOROOT=
BUILD_ROOT=/home/alexander/checkout/liteide/build
LITEIDE_ROOT=/home/alexander/checkout/liteide/build/../liteidex
.
qmake liteide ...
.
make liteide ...
.
go version go1.0.3
build liteide tools ...
can't load package: package tools/goapi: no Go source files in /home/alexander/checkout/liteide/liteidex/src/tools/goapi
error, go install fail

from liteide.

visualfc avatar visualfc commented on July 24, 2024

fixit b079ac7

from liteide.

xyproto avatar xyproto commented on July 24, 2024

Thanks! Now it builds if I run with

QTDIR=/usr ./build_linux.sh

Btw, is this line missing from the bottom of build_linux.sh, or is it not needed?

cp -a -v $QTDIR/lib/libQtNetwork.so* liteide/lib/liteide

from liteide.

visualfc avatar visualfc commented on July 24, 2024

if load plugin/webkithtmlwidget , use webkit_linux.sh

from liteide.

xyproto avatar xyproto commented on July 24, 2024

When running webkit_linux.sh instead, this is the errors I get:

build liteide
QTDIR=/usr
GOROOT=
BUILD_ROOT=/home/alexander/archpackages/community/golangide/trunk/src/liteide-master/build
LITEIDE_ROOT=/home/alexander/archpackages/community/golangide/trunk/src/liteide-master/build/../liteidex
.
cp: target «liteide/lib/liteide» is not a directory
cp: target «liteide/lib/liteide» is not a directory
cp: target «liteide/lib/liteide» is not a directory
cp: target «liteide/lib/liteide» is not a directory

Should one run build_linux.sh and then webkit_linux.sh?

from liteide.

xyproto avatar xyproto commented on July 24, 2024

Tried running both. This seems to work:

chmod +x build_linux.sh webkit_linux.sh
QTDIR=/usr build_linux.sh
QTDIR=/usr webkit_linux.sh

The "good old" ./configure; make or something modern like waf could have been nice, though. :)

from liteide.

xyproto avatar xyproto commented on July 24, 2024

Okay, it builds now, but when running, I get this error:

liteidex [/usr/bin/liteidex]
/usr/bin/liteidex: symbol lookup error: /usr/lib/liteide/plugins/libgolangdoc.so: undefined symbol: _ZN5QJson6ParserC1Ev

qjson 0.8.1 is installed here, and /usr/lib/libqjson.so exists and apparently it does provide this symbol:

nm -D /usr/lib/libqjson.so | grep Json6ParserC1Ev
000000000000b770 T _ZN5QJson6ParserC1Ev

from liteide.

xyproto avatar xyproto commented on July 24, 2024

Ok, found a workaround, it starts now:

LD_PRELOAD=/usr/lib/libqjson.so /usr/bin/liteidex

But, this is a bit ugly. What would you suggest for fixing this?

Thank you.

from liteide.

visualfc avatar visualfc commented on July 24, 2024

3rdparty/qjson use staticlib
https://github.com/visualfc/liteide/blob/master/liteidex/src/3rdparty/qjson/src/src.pro

from liteide.

xyproto avatar xyproto commented on July 24, 2024

Is there something wrong with the qjson that is installed on the system? Why should it have to be statically linked?

from liteide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.