You are not logged in.
Pages: 1
hey folks!
Im trying to build openspades here..
seems to be some trouble with libcurl and ldap.
i have no idea how to continue. can anyone help?
heres some output:
-- C++11 activated.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tux/Downloads/OpenSpades/openspades-master
[ 0%] Built target OpenSpades_Resources
[ 0%] Built target OpenSpades_Unix
[ 4%] Built target Angelscript_addons
[ 16%] Built target Angelscript
Linking CXX executable ../bin/openspades
/usr/lib/libcurl.so: undefined reference to `ldap_sasl_bind@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ber_sockbuf_add_io@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_get_attribute_ber@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_parse_result@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_set_option@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_msgfree@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_result@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_search_ext@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_get_option@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ber_memfree@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_memfree@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_next_message@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ber_free@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_err2string@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_init_fd@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_msgtype@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_free_urldesc@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_url_parse@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_first_message@OPENLDAP_2.4_2'
collect2: error: ld returned 1 exit status
Sources/CMakeFiles/OpenSpades.dir/build.make:5399: recipe for target 'bin/openspades' failed
make[2]: *** [bin/openspades] Error 1
CMakeFiles/Makefile2:168: recipe for target 'Sources/CMakeFiles/OpenSpades.dir/all' failed
make[1]: *** [Sources/CMakeFiles/OpenSpades.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
[ 0%] Built target OpenSpades_Resources
[ 0%] Built target OpenSpades_Unix
[ 12%] Built target Angelscript
[ 16%] Built target Angelscript_addons
Linking CXX executable ../bin/openspades
/usr/lib/libcurl.so: undefined reference to `ldap_sasl_bind@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_get_dn_ber@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ber_sockbuf_add_io@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_unbind_ext@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_get_attribute_ber@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_parse_result@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_set_option@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_abandon_ext@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_msgfree@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_result@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_search_ext@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_get_option@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ber_memfree@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_memfree@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_pvt_url_scheme2proto@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_next_message@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ber_free@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_err2string@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_init_fd@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_msgtype@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_free_urldesc@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_url_parse@OPENLDAP_2.4_2'
/usr/lib/libcurl.so: undefined reference to `ldap_first_message@OPENLDAP_2.4_2'
collect2: error: ld returned 1 exit status
Sources/CMakeFiles/OpenSpades.dir/build.make:5399: recipe for target 'bin/openspades' failed
make[2]: *** [bin/openspades] Error 1
CMakeFiles/Makefile2:168: recipe for target 'Sources/CMakeFiles/OpenSpades.dir/all' failed
make[1]: *** [Sources/CMakeFiles/OpenSpades.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Offline
Hi K3nn3th,
Can you share the receipt? I want to "play" with compilation locally.
Offline
Hi Alex!
what exactly do you mean? im not quite sure what it should look like..
after installing ldap, ldap-dev, libsdl2 and libsdl2-image and their -dev's
i used this script:
#!/bin/bash
# OpenSpades automatic build script
# by Anthony Zhang <azhang9@gmail.com>
# set up working directory
mkdir OpenSpades
cd OpenSpades
# install some packages first // i replaced apt-get with tazpkg -gi
tazpkg -gi libopenal-dev
tazpkg -gi libpng-dev
tazpkg -gi libtiff-dev
tazpkg -gi pkg-config
tazpkg -gi glew-dev
#tazpkg -gi libcurl3-openssl-dev // couldnt find a tazpkg
# install SDL // i skipped this because i wanted to try with the available package
#wget http://www.libsdl.org/release/SDL2-2.0.2.tar.gz
#tar -zxvf SDL2-2.0.2.tar.gz
#cd SDL2-2.0.2/
#./configure
#make clean
#make
#sudo make install
#cd ../
# install SDL_image // i skipped this because i wanted to try with the available package
#wget https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
#tar -zxvf SDL2_image-2.0.0.tar.gz
#cd SDL2_image-2.0.0/
#./configure --disable-png-shared
#make clean
#make
#sudo make install
#cd ../
# build OpenSpades
wget https://github.com/yvt/openspades/archive/master.tar.gz
tar -zxvf master.tar.gz
cd openspades-master
cmake . -DCMAKE_BUILD_TYPE=Release
make -j 2
# install and run OpenSpades
sudo make install
openspades
Offline
Thank you!
Honestly, I thought that you use a receipt to compile the package.
Well, now I'll try to do it in my own way.
It may be, that we need to rebuild "openldap" and "openldap-dev" packages. Or, you may use slightly outdated packages (try "tazpkg up").
Offline
according to https://github.com/yvt/openspades/wiki/Playing-FAQ#installation it might also be necessary to build libsdl2-image according to the script above.
how would a receipt look like with the additional building of (png-shared-less)libsdl2-image?
thanks for your time!
ps: updating packages didnt seem to change anything
Offline
Please, take a look: http://pkgs.slitaz.org/?package=sdl2
We already have "libsdl2-image-dev", is it not enough?
Anyway, now I'm finding all the dependencies to make the package...
Offline
i think it should be enough. the page mentions the --disable-png-shared flag as a fix for a launch error.
if it occurs, we can always build libdsl2-image with the flag
Offline
Here's my current log: http://people.slitaz.org/~lexeii/tmp/openspades.html
Any ideas?
Receipt (unfinished) is also here: http://people.slitaz.org/~lexeii/tmp/receipt
PS.
Make in single thread ([c]make -j1[/c]) gives a bit clearer log: http://people.slitaz.org/~lexeii/tmp/openspades1.html (receipt: http://people.slitaz.org/~lexeii/tmp/receipt )
I highlighted here lines with text "sorry, unimplemented" and other fails. I think, this "unimplementation" causes errors, and our current GCC version is not enough. I'll try to compile older versions of subj.
PPS.
44% for version 0.0.10 http://people.slitaz.org/~lexeii/tmp/openspades0010.html 
And another error 
Offline
i remember reading about it heavily relying on c++11 features.
gcc-49 should do the trick.
is it possible to build with g++-49?
Offline
Hi K3nn3th,
I tried yesterday adding "gcc49", but without success. It need only one extra step: export correct variable CXX pointing to new version of GCC.
Package available now in the Cooking wok.
Cooking log: http://cook.slitaz.org/cooker.cgi?pkg=openspades
Download now: http://cook.slitaz.org/cooker.cgi?download=openspades-0.0.12.tazpkg (20.2MB)
It will be available in the mirrors in 1–4 days.
I not tested it yet.
Offline
Thanks a lot Aleksej!
Ive had that kind of trouble with GCC too, when needing C++11 features.
Ill test the package and report back.now
Offline
working!
i got a segfault once during the game for no reason.. might be the progam itself, though.
thanks aleksej!!
Offline
Nice to hear it! :-D
Offline
I'm getting random crashes (segmentation faults) during the game..
not sure if its got to do with my old hardware or the game itself.
Offline
Does your equipment meets requirements mentioned on the official website? Minimum, or Recommended?
You can run [c]openspades[/c] in the terminal and it may spam here by useful errors or crash reports.
Offline
Pages: 1
[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]