Page 1 of 1

codelite 5.2 src: Undef refs to "openpty" and "login_tty"

Posted: Sun Oct 06, 2013 3:35 am
by craftyguy
Since there doesn't seem to be any Ubuntu 13.10 "saucy" packages in the codelite ppa.. I've had to resort to trying to build codelite 5.2 from sourcecode, and hit this error during linking:

Linking CXX executable ../bin/codelite
/home/clayton/src/codelite-5.2/build-release/lib/liblibcodelite.so: undefined reference to `login_tty'
/home/clayton/src/codelite-5.2/build-release/lib/liblibcodelite.so: undefined reference to `openpty'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/codelite] Error 1
make[1]: *** [LiteEditor/CMakeFiles/codelite.dir/all] Error 2
make: *** [all] Error 2


Is there an ETA on 'saucy' debs in the official PPA?

Re: codelite 5.2 src: Undef refs to "openpty" and "login_tty

Posted: Sun Oct 06, 2013 9:01 am
by eranif
craftyguy wrote:Since there doesn't seem to be any Ubuntu 13.10 "saucy" packages in the codelite ppa.. I've had to resort to trying to build codelite 5.2 from sourcecode, and hit this error during linking:

Linking CXX executable ../bin/codelite
/home/clayton/src/codelite-5.2/build-release/lib/liblibcodelite.so: undefined reference to `login_tty'
/home/clayton/src/codelite-5.2/build-release/lib/liblibcodelite.so: undefined reference to `openpty'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/codelite] Error 1
make[1]: *** [LiteEditor/CMakeFiles/codelite.dir/all] Error 2
make: *** [all] Error 2


Is there an ETA on 'saucy' debs in the official PPA?
Seems like you missing -lutil
I can see that I set it it LiteEditor/CMakeLists.txt but not for CodeLite/CMakeLists.txt which should have done the work.
I fixed this in git head (I don't have a 13.10 ubuntu VB yet, will install one)
Can you please do a git pull and re-run cmake and give it another try?

Eran

Re: codelite 5.2 src: Undef refs to "openpty" and "login_tty

Posted: Sun Oct 06, 2013 9:44 pm
by craftyguy
Pull'd from head and successfully built it. Quick question, the cmake argument list on wiki page (http://codelite.org/Developers/Linux) lists a MAKE_DEB option, is that still functional? I passed -DMAKE_DEB=1 to cmake but it doesn't look like a deb was created (at least none that I can find)

Thanks for the help!

EDIT: After poking around in the Makefile, looks like the secret is "make package" :D

Re: codelite 5.2 src: Undef refs to "openpty" and "login_tty

Posted: Sun Oct 06, 2013 10:16 pm
by eranif
craftyguy wrote:EDIT: After poking around in the Makefile, looks like the secret is "make package"
If you wish to make packages, you should use 2 cmake flags:
-DDCOPY_WX_LIBS=1
and
-DMAKE_DEB=1
Otherwise, people will need to install/build wx by themselves

EDIT:
Our wiki documents also states that you need to run 'make package'

http://codelite.org/Developers/Linux#toc6
When set, a new make target is created by cmake, called package. Running make package thereafter will generate a .deb file for installation
Eran