Skip to content

Unable to set up dev enviroment on Debian 8.5 #9

@markotikvic

Description

@markotikvic

Hi,

I'm getting some (what I assume to be linking problem) errors when trying to run limeqml. I was trying to start contributing to the backend section but that's not gonna happen if I don't set up my machine correctly (:
This is my current setup:
go version go1.6.2 linux/amd64
GCC/G++ 4.9.2
Python 3.5.2

Now, since Python 3.5 isn't in the Debian repos at the moment I went and installed it from source (btw, that's what I think is the problem). I'm not a python guy so if any of the python gurus could help sort this out so I can GO (get it? GO!? no? okay, bad pun...) and get started with contributing.

I followed the instructions from here https://github.com/limetext/lime/wiki/Building-on-Debian-Stretch
but the 'go build' fails for the /lime-qml/main with these lovely messages:

marko@debian:~/workspace/go/src/github.com/limetext/lime-qml/main$ limeqml
# github.com/limetext/qml-go
In file included from ../../qml-go/all.cpp:2:0:
../../qml-go/cpp/capi.cpp: In function ‘void guiappSetDesktopFileName(const char*, int)’:
../../qml-go/cpp/capi.cpp:215:5: error: ‘setDesktopFileName’ is not a member of ‘QGuiApplication’
     QGuiApplication::setDesktopFileName(qsfileName);
     ^
# github.com/limetext/gopy
/usr/local/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_abs':
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:196: undefined reference to `hypot'
/usr/local/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_pow':
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:125: undefined reference to `hypot'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:126: undefined reference to `pow'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:127: undefined reference to `atan2'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:129: undefined reference to `sincos'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:130: undefined reference to `exp'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:131: undefined reference to `log'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:125: undefined reference to `hypot'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:126: undefined reference to `pow'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:127: undefined reference to `atan2'
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:128: undefined reference to `sincos'
/usr/local/lib/libpython3.5m.a(complexobject.o): In function `_Py_c_abs':
/home/marko/Downloads/Python-3.5.2/Objects/complexobject.c:196: undefined reference to `hypot'
/usr/local/lib/libpython3.5m.a(floatobject.o): In function `float_is_integer':
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:812: undefined reference to `floor'
/usr/local/lib/libpython3.5m.a(floatobject.o): In function `float_rem':
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:575: undefined reference to `fmod'
/usr/local/lib/libpython3.5m.a(floatobject.o): In function `float_divmod':
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:604: undefined reference to `fmod'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:627: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:604: undefined reference to `fmod'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:627: undefined reference to `floor'
/usr/local/lib/libpython3.5m.a(floatobject.o): In function `float_as_integer_ratio':
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:1483: undefined reference to `floor'
/usr/local/lib/libpython3.5m.a(floatobject.o): In function `float_pow':
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:763: undefined reference to `pow'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:728: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:739: undefined reference to `fmod'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:703: undefined reference to `fmod'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:713: undefined reference to `fmod'
/usr/local/lib/libpython3.5m.a(floatobject.o): In function `float_round':
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:1007: undefined reference to `round'
/home/marko/Downloads/Python-3.5.2/Objects/floatobject.c:1010: undefined reference to `round'
/usr/local/lib/libpython3.5m.a(longobject.o): In function `PyLong_FromString':
/home/marko/Downloads/Python-3.5.2/Objects/longobject.c:2168: undefined reference to `log'
/usr/local/lib/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToTime_t':
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:121: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:119: undefined reference to `ceil'
/usr/local/lib/libpython3.5m.a(pytime.o): In function `_PyTime_ObjectToDenominator':
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:89: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:82: undefined reference to `ceil'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:89: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:82: undefined reference to `ceil'
/usr/local/lib/libpython3.5m.a(pytime.o): In function `_PyTime_FromObject':
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:238: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:236: undefined reference to `ceil'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:238: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/Python/pytime.c:236: undefined reference to `ceil'
/usr/local/lib/libpython3.5m.a(dynload_shlib.o): In function `_PyImport_FindSharedFuncptr':
/home/marko/Downloads/Python-3.5.2/./Python/dynload_shlib.c:82: undefined reference to `dlsym'
/home/marko/Downloads/Python-3.5.2/./Python/dynload_shlib.c:95: undefined reference to `dlopen'
/home/marko/Downloads/Python-3.5.2/./Python/dynload_shlib.c:126: undefined reference to `dlsym'
/home/marko/Downloads/Python-3.5.2/./Python/dynload_shlib.c:95: undefined reference to `dlopen'
/home/marko/Downloads/Python-3.5.2/./Python/dynload_shlib.c:101: undefined reference to `dlerror'
/usr/local/lib/libpython3.5m.a(_threadmodule.o): In function `PyInit__thread':
/home/marko/Downloads/Python-3.5.2/./Modules/_threadmodule.c:1376: undefined reference to `floor'
/usr/local/lib/libpython3.5m.a(signalmodule.o): In function `timeval_from_double':
/home/marko/Downloads/Python-3.5.2/./Modules/signalmodule.c:140: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/./Modules/signalmodule.c:141: undefined reference to `fmod'
/home/marko/Downloads/Python-3.5.2/./Modules/signalmodule.c:140: undefined reference to `floor'
/home/marko/Downloads/Python-3.5.2/./Modules/signalmodule.c:141: undefined reference to `fmod'
/usr/local/lib/libpython3.5m.a(posixmodule.o): In function `os_forkpty_impl':
/home/marko/Downloads/Python-3.5.2/./Modules/posixmodule.c:5972: undefined reference to `forkpty'
/usr/local/lib/libpython3.5m.a(posixmodule.o): In function `os_openpty_impl':
/home/marko/Downloads/Python-3.5.2/./Modules/posixmodule.c:5878: undefined reference to `openpty'
collect2: error: ld returned 1 exit status

Now, as I mentioned, I get that most of these are caused by "failed to link dependencies" with python but the one in capi.cpp seems like a dev mistake. Anyway, any help would be appreciated and let me know if you need some other information.
Thanks,
Marko.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36370418-unable-to-set-up-dev-enviroment-on-debian-8-5?utm_campaign=plugin&utm_content=tracker%2F9076898&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9076898&utm_medium=issues&utm_source=github).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions