stefanocasazza / ULib

C++ application development framework, to help developers create and deploy applications quickly and simply
GNU Lesser General Public License v3.0
943 stars 107 forks source link

Any chance of a tutorial ? #6

Closed mingodad closed 9 years ago

mingodad commented 9 years ago

Hello !

The code only documentation does not give a clear way on how to use this library, any chance to have a tutorial or a sample application that works straight away ?

I could not get anything to work due to missing configuration, it doesn't seem to have default configuration.

I installed to a custom location $HOME/local/ulib .

Cheers !

stefanocasazza commented 9 years ago

Hi, there are many sample application in directory tests. For the application server example there is a default configuration placed in your case at $HOME/local/ulib/etc/ulib/userver.cfg if we have used --prefix=$HOME/local/ulib with configure. For a tutorial I hope for same help by someone as you for example because I have serious problem with English language. I suggest to use --enable-debug with configure and setting the environment var UTRACE (ex. ='0 10M') to write a file with name trace.. which is a trace of the program. You can send this file to me if you want some help with any problem...

Cheers !

2015-05-15 16:12 GMT+02:00 Domingo Alvarez Duarte notifications@github.com :

Hello !

The code only documentation does not give a clear way on how to use this library, any chance to have a tutorial or a sample application that works straight away ?

I could not get anything to work due to missing configuration, it doesn't seem to have default configuration.

I installed to a custom location $HOME/local/ulib .

Cheers !

— Reply to this email directly or view it on GitHub https://github.com/stefanocasazza/ULib/issues/6.

mingodad commented 9 years ago

Hello Stefano !

Thanks for the fast reply !

I tried again with a config file with the paths reflecting my installation and it worked !

ULIB_HOME=$HOME/local/ulib
export PATH=$ULIB_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ULIB_HOME/lib:$LD_LIBRARY_PATH

bin/userver_tcp -c userver.cfg

One of the problems was that most directives accept a relative path but "PLUGIN_DIR" doesn't probably would be a good idea to specify this on the config file comments or check in code if the path provided is relative adjust it adding the executable/config/$PWD path.

Thanks !

stefanocasazza commented 9 years ago

Hi, I am glad that it worked... "PLUGIN_DIR" it accept a relative path but it must start with a '.' as you can see at source file: ULib-1.4.2/src/ulib/net/server/server.cpp line 989

Cheers !

EDIT: I changed the semantic, now "PLUGIN_DIR" consider a relativ path if not start with "/"...

2015-05-16 20:36 GMT+02:00 Domingo Alvarez Duarte notifications@github.com :

Hello Stefano !

Thanks for the fast reply !

I tried again with a config file with the paths reflecting my installation and it worked !

ULIB_HOME=$HOME/local/ulib export PATH=$ULIB_HOME/bin:$PATH export LD_LIBRARY_PATH=$ULIB_HOME/lib:$LD_LIBRARY_PATH

bin/userver_tcp -c userver.cfg

One of the problems was that most directives accept a relative path but "PLUGIN_DIR" doesn't probably would be a good idea to specify this on the config file comments or check in code if the path provided is relative adjust it adding the executable/config/$PWD path.

Thanks !

— Reply to this email directly or view it on GitHub https://github.com/stefanocasazza/ULib/issues/6#issuecomment-102664769.

lgallindo commented 6 years ago

@stefanocasazza What is your native language? If you write some tutorial, I might be able to translate it into English.

stefanocasazza commented 6 years ago

Hi,

my native language is Italian...

Greetings Stefano

2018-03-22 22:47 GMT+01:00 Lucas Gallindo notifications@github.com:

@stefanocasazza https://github.com/stefanocasazza What is your native language? If you write some tutorial, I might be able to translate it into English.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stefanocasazza/ULib/issues/6#issuecomment-375468479, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGkXuCEWLnvNGrMdRxMXK-FC_FnReHMks5thBvagaJpZM4EbvDQ .