Notices


Reply
Thread Tools
Posts: 79 | Thanked: 273 times | Joined on Jul 2011
#1
I've done QT code snipplets to Linux with openldap development libraries but I think they are not available for SFOS? Do you have any suggestions on what libraries to use in order to develop LDAP applications for SFOS?

I'd hate to implement the protocol as it is done in available libraries but I have zero experience in porting libraries to another platform.

edit: only now found the openldap library from openrepos so now it looks a bit better! I think this should enable me to do a package to openrepos or try doing it static?

Last edited by pexi; 2017-05-31 at 12:45.
 

The Following 2 Users Say Thank You to pexi For This Useful Post:
Posts: 1,054 | Thanked: 3,475 times | Joined on Oct 2014
#2
Openldap is in my repository

https://build.merproject.org/package...elsen/openldap
__________________
You can still support my work by donation - click here

ETH: 0xf7544913017653719259c92d38d50d9d55f7c6cd
 

The Following 3 Users Say Thank You to nieldk For This Useful Post:
Posts: 1,054 | Thanked: 3,475 times | Joined on Oct 2014
#3
Originally Posted by pexi View Post
I've done QT code snipplets to Linux with openldap development libraries but I think they are not available for SFOS? Do you have any suggestions on what libraries to use in order to develop LDAP applications for SFOS?

I'd hate to implement the protocol as it is done in available libraries but I have zero experience in porting libraries to another platform.

edit: only now found the openldap library from openrepos so now it looks a bit better! I think this should enable me to do a package to openrepos or try doing it static?
Copy from my repository, to yours is perhaps easiest.
__________________
You can still support my work by donation - click here

ETH: 0xf7544913017653719259c92d38d50d9d55f7c6cd
 

The Following 2 Users Say Thank You to nieldk For This Useful Post:
Posts: 79 | Thanked: 273 times | Joined on Jul 2011
#4
Originally Posted by nieldk View Post
Copy from my repository, to yours is perhaps easiest.
Thanks. I try to unpack and use your package.

As another choice I compiled a 32bit static ELF binary in 64 bit linux but SFOS could not run it. Is it doable?

Edit: how stupid of me. It is arm processor Forget this question
 

The Following User Says Thank You to pexi For This Useful Post:
Posts: 79 | Thanked: 273 times | Joined on Jul 2011
#5
Could you help me out a bit.

I made a helloworld project with SFOS Qt Creator and I did the following:

- i extracted files from libopenldap-devel-2.4.40-10.7.2.jolla.armv7hl.rpm
- copied files lib*.a and lib*.la from libopenldap-devel to lib directory under the helloworld qt project
- copied files *.h from libopenldap-devel to include directory under the dummy qt project

I added to project .pro file:
INCLUDEPATH += include
DEPENDPATH += include
LIBS += -Llib -llber -lldap

I added to the project cpp file:
#include <ldap.h>
#include <lber.h>

and in the main {} i added:

LDAP *ldap;

And compile gives me:

g++ -Wl,-O1 -Wl,-rpath,/usr/share/HelloWorld/lib -o HelloWorld HelloWorld.o -Llib -llber -lldap -pie -rdynamic -lsailfishapp -lmdeclarativecache5 -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread

RPM build errors:
/opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: cannot find -llber
/opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: cannot find -lldap
collect2: error: ld returned 1 exit status

That g++ command line does not look like there's any includes to my lib and include subdirectories. Any help appreciated.
 

The Following 2 Users Say Thank You to pexi For This Useful Post:
Posts: 79 | Thanked: 273 times | Joined on Jul 2011
#6
Is the emulator i486 only?
 

The Following User Says Thank You to pexi For This Useful Post:
Posts: 79 | Thanked: 273 times | Joined on Jul 2011
#7
Got it to deploy to my Nexus 5 Sailfish Sailing continues..
 

The Following 2 Users Say Thank You to pexi For This Useful Post:
Posts: 79 | Thanked: 273 times | Joined on Jul 2011
#8
I included original source trees of openldap, cyrus-sasl and openssl and now it's going forward.
 

The Following User Says Thank You to pexi For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:57.