Re: [Wt-interest] Mysql backend for Wt

2014-04-07 Thread Tor Arne Fallingen
10-4 :) 7. apr. 2014 kl. 13:36 skrev Wim Dumon : > No need to delete, it will continue where it stopped. > > BR, > Wim. > > > 2014-04-07 12:51 GMT+02:00 Tor Arne Fallingen : >> I hear you wim :) >> >> If only I could find an easier way to get the needed dependencies installed >> on my pi, I

Re: [Wt-interest] Mysql backend for Wt

2014-04-07 Thread Wim Dumon
No need to delete, it will continue where it stopped. BR, Wim. 2014-04-07 12:51 GMT+02:00 Tor Arne Fallingen : > I hear you wim :) > > If only I could find an easier way to get the needed dependencies installed > on my pi, I would really go with that instead of having to build from source > ev

Re: [Wt-interest] Mysql backend for Wt

2014-04-07 Thread Tor Arne Fallingen
I hear you wim :) If only I could find an easier way to get the needed dependencies installed on my pi, I would really go with that instead of having to build from source every time. Ive been trying to set up a cross compile environment, but I was stopped by the need to develop a database handl

Re: [Wt-interest] Mysql backend for Wt

2014-04-07 Thread Wim Dumon
Hey Tor, That's most likely your compiler running out of memory. Like CssParser.C, you can disable the use of Spirit for the SQL parser. Spirit takes a lot of memory to compile. Edit SqlQueryParse.C and add #define WT_NO_SPIRIT at the top of the file. Cross compilation is really the way to go on

Re: [Wt-interest] Mysql backend for Wt

2014-04-07 Thread Tor Arne Fallingen
Hey Wim and Koen. Sorry to be such a pain! But now we are nearing the end of our project and I was trying to make a new nice clean installed SD-Card for our raspberry pi. We have tried, tested and discarded a few programs along the way, but during development we haven’t been removing programs w

Re: [Wt-interest] MySQL backend login

2014-03-03 Thread Muhammad Nasser Al-Noimi
> > dbo::backend::MySQL mysql("sre_db","username","password","IP",3306); > > sure this must work, you have to make sure that port is set correctly as the same port that MySQL server is using also if you are trying to connect to MySQL on another pc over network or internet you must set the permissio

Re: [Wt-interest] MySQL backend login

2014-03-03 Thread Tor Arne Fallingen
That actually makes a lot of sense to me. The thing is, Im trying to run that first program from the dbo tutorial, and I can’t really see where to pass the arguments for the connection itself. I guess you got the code in the examples that came with Wt, under features and dbo :) Would this be the

Re: [Wt-interest] MySQL backend login

2014-03-03 Thread Muhammad Nasser Al-Noimi
Hi Tor, I think the error you've got is because you didn't pass the database password. You need to initialize the connection and pass database user name and password, use the constructor for connection like this: connection_("dbname", "username", "password", "127.0.0.1", 3306) On Mon, Mar 3, 2

[Wt-interest] MySQL backend login

2014-03-03 Thread Tor Arne Fallingen
Im trying to start using the MySQL backend, but I keep getting this message: libc++abi.dylib: terminating with uncaught exception of type Wt::Dbo::backend::MySQLException: MySQL : Failed to connect to database server: Access denied for user 'root'@'localhost' (using password: NO) Apparently I n

Re: [Wt-interest] Mysql backend for Wt

2014-03-03 Thread Wim Dumon
There's two files of interest: 1. wt-x.y.z/cmake/WtFindMysql.txt 2. build/CMakeCache.txt In (1), you'll find how Wt searches for mysql. In (2), you'll find what was found (search for variables containing MYSQL). Variable MYSQL_LIBRARY is set to a wrong value. The documentation of this variable sa

Re: [Wt-interest] Mysql backend for Wt

2014-03-02 Thread Tor Arne Fallingen
Hey Wim, As you probably noticed, I managed to install Wt on my MacBook. I posted my «steps» here, as there are certain factors I think needs to be pointed out. Then for your advice to comment out the Render/CssParser.C line 11, it seems to work like a charm. Im completing the install of the ex

Re: [Wt-interest] Mysql backend for Wt

2014-02-28 Thread Tor Arne Fallingen
Wim/koen/Anyone knowing this. Now I have added both DMYSQL_PREFIX= and -DMYSQL_LIBRARY= in my MacBook pre-installation cmake, still I get a message that the mysql backend won’t get built. Ive searched google on the libmysqlclient-dev equivalent for OSX, and it says that the dmg file install of

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Tor Arne Fallingen
koen, I feel a bit stupid for asking, but now I have gone ahead and started the reinstall of boost and Wt (of course using the last release), and boost finished with a rather positive summary: ...failed updating 1 target... ...skipped 1 target... ...updated 1030 targets… But running cmake in Wt

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Tor Arne Fallingen
Im sitting in class, ignoring the lecture, trying 12.04 LTS now. But I keep getting disk errors…So Im going to try a setting up a VB with a static HD. I know how to stumble upon bugs it seems ;) Regards, Tor 27. feb. 2014 kl. 15:31 skrev Koen Deforche : > Hey, > > See here: https://bugs.laun

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Koen Deforche
Hey, See here: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1278092 You've stumbled on the same bug. Perhaps you'll fare better with 12.04 LTS instead of the latest Ubuntu version. Regards, koen 2014-02-27 15:14 GMT+01:00 Tor Arne Fallingen : > Hey koen, > > This is an install

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Tor Arne Fallingen
Hey koen, This is an install on a new ubuntu virtualbox machine. Its clean, I only installed htop and aptitude before proceeding to the Wt-ubuntu installation. Since I encountered this, I put the new install on my Mac on hold. But I will proceed with that this afternoon. I also have a RPi that

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Koen Deforche
Hey Tor, This really seems to be something fundamentally wrong with your system. Your compiler gives an internal error, while CMake it's testing it? Regards, koen 2014-02-27 11:08 GMT+01:00 Tor Arne : > Here it is: > > taf@taf-VirtualBox:~/wt-3.3.2-rc2/build$ sudo cmake ../ > -- The C compiler

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Tor Arne Fallingen
I just started wondering, am I doing anything wrong, or is this a problem with the release? Regards, Tor 27. feb. 2014 kl. 10:55 skrev Koen Deforche : > Hey Tor, > > Can you provide the actual output? The CMakeLists.txt should be in the > package, so if one is missing that sounds like a brok

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Tor Arne
Here it is: taf@taf-VirtualBox:~/wt-3.3.2-rc2/build$ sudo cmake ../ -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Det

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Koen Deforche
Hey Tor, Can you provide the actual output? The CMakeLists.txt should be in the package, so if one is missing that sounds like a broken package. Regards, koen 2014-02-27 10:45 GMT+01:00 Tor Arne Fallingen : > Hey Koen. > > Another day, another problem.. I have installed Oracle Virtual box and

Re: [Wt-interest] Mysql backend for Wt

2014-02-27 Thread Tor Arne Fallingen
Hey Koen. Another day, another problem.. I have installed Oracle Virtual box and Ubuntu on my Mac. Now Ive tried to follow your Wiki guide for installing from source, and first time the cmake process halted at 66%, so I shut it down and removed the whole wt directory, then extracted a new one,

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Oh, and you beat me! rc2 it is ;) 26. feb. 2014 kl. 23:45 skrev Tor Arne Fallingen : > koen, just to let you know. I have gotten as far as mounting the RPi in a > folder on my Mac, but I have not done the last remaining of the «Cross > compiling on RPi» tutorial yet. But I might be pretty damn

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
koen, just to let you know. I have gotten as far as mounting the RPi in a folder on my Mac, but I have not done the last remaining of the «Cross compiling on RPi» tutorial yet. But I might be pretty damn close to succeeding. Regards, Tor 26. feb. 2014 kl. 21:05 skrev Koen Deforche : > Hey Tor

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
koen, then you better hurry, I should have installed this tonight, but I will start tomorrow morning ;) I do need to be able to run the finished program on Raspberry Pi, because thats going to be the core of the system. Thats why I want to do a complete install on one of them at least. If I r

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Koen Deforche
Hey Tor, > > cmake -DCMAKE_CXX_FLAGS='-stdlib=libc++' > -DCMAKE_INSTALL_PREFIX=/Users/taf/Wt -DBOOST_PREFIX=/Users/taf/Boost > -DCMAKE_EXE_LINKER_FLAGS='-stdlib=libc++' > -DCMAKE_MODULE_LINKER_FLAGS='-stdlib=libc++' -DWT_CPP_11_MODE='-std=c++11' > ../ > Of course Ill remove my prefixes! > You nee

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Koen, one more thing, the Wt 3.3.2rc1 is the one thats recommended? 26. feb. 2014 kl. 15:45 skrev Koen Deforche : > Hey Tor, > > What version of Wt are you using? The mysql backend is included in Wt since > release 3.3.0 (April, 8 2013) > > Regards, > koen > > > 2014-02-26 12:48 GMT+01:00 T

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Hey again koen. Allright, I definitively see your point in removing everything and starting all over again, and that way Im probably going to end up getting things right. But that also means executing all commands with sudo prepending. So, how do I make sure I get MySQL in my install? Here is t

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Koen Deforche
Hey Tor, 2014-02-26 17:25 GMT+01:00 Tor Arne Fallingen : > Hey Koen. > > I am using Wt 3.3.1, but I looked in my /Wt/Dbo/backend directory, and I > expected to find MySQL there but it isn't there. Also there is no > <> folder anywhere to be found under /Wt. I guess you can read all > about my ins

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Koen, one more thing, our RPi installation uses Lighttpd as the web server, not Apache. Is that a problem? 26. feb. 2014 kl. 17:25 skrev Tor Arne Fallingen : > Hey Koen. > > I am using Wt 3.3.1, but I looked in my /Wt/Dbo/backend directory, and I > expected to find MySQL there but it isn’t th

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Hey Koen. I am using Wt 3.3.1, but I looked in my /Wt/Dbo/backend directory, and I expected to find MySQL there but it isn’t there. Also there is no «resources» folder anywhere to be found under /Wt. I guess you can read all about my installation in the Issues section. To give you some backgro

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Koen Deforche
Hey Tor, What version of Wt are you using? The mysql backend is included in Wt since release 3.3.0 (April, 8 2013) Regards, koen 2014-02-26 12:48 GMT+01:00 Tor Arne Fallingen : > Im sorry Muhammad, but my Wt/Dbo/backend directory does not include any > MySQL, only Firebird, Postgres and Sqlite

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Im sorry Muhammad, but my Wt/Dbo/backend directory does not include any MySQL, only Firebird, Postgres and Sqlite3…. 26. feb. 2014 kl. 11:53 skrev Muhammad Nasser Al-Noimi : > Does the lwtdbomysql library come with the standard Wt installation? > Yes it comes with Witty. but its name may varry

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Thanks again :) 26. feb. 2014 kl. 11:53 skrev Muhammad Nasser Al-Noimi : > Does the lwtdbomysql library come with the standard Wt installation? > Yes it comes with Witty. but its name may varry due to OS. > On linux its name is lwtdbomysql > > > On Wed, Feb 26, 2014 at 11:45 AM, Tor Arne Fall

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Muhammad Nasser Al-Noimi
> > Does the lwtdbomysql library come with the standard Wt installation? > Yes it comes with Witty. but its name may varry due to OS. On linux its name is lwtdbomysql On Wed, Feb 26, 2014 at 11:45 AM, Tor Arne Fallingen wrote: > Thank you :) > > Ill get on with it now. Does the lwtdbomysql lib

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Thank you :) Ill get on with it now. Does the lwtdbomysql library come with the standard Wt installation? Best regalrs Tor 26. feb. 2014 kl. 10:58 skrev Muhammad Nasser Al-Noimi : > Hi, > > If you want any detailed information about Wt classes you can visit the > documentation: > http://ww

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Thank you, Ill get on to it now. The Sendt fra min iPhone > Den 26. feb. 2014 kl. 10:58 skrev Muhammad Nasser Al-Noimi > : > > Hi, > > If you want any detailed information about Wt classes you can visit the > documentation: > http://www.webtoolkit.eu/wt/doc/reference/html/index.html > > Thi

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Muhammad Nasser Al-Noimi
Hi, If you want any detailed information about Wt classes you can visit the documentation: http://www.webtoolkit.eu/wt/doc/reference/html/index.html This link illustrates SqlConnection http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Dbo_1_1SqlConnection.html Best regards, Nasser Al-No

Re: [Wt-interest] Mysql backend for Wt

2014-02-26 Thread Muhammad Nasser Al-Noimi
Hi, Here you can find perfect example of how using database in Wt: http://www.webtoolkit.eu/wt/doc/tutorial/dbo/tutorial.html In order to access MySQL database you just have to use dbo::backend::MySQL class for connection instead of dbo::backend::Sqlite3. Also you should add this library to your

[Wt-interest] Mysql backend for Wt

2014-02-26 Thread Tor Arne Fallingen
Im in a emergency situation here, I need to be able to prove that I can read write and show dynamic data from a mysql database before the end of the day. Im having a bit of trouble finding a guide to install the Mysql backend for Wt. Im NOT an expert on compiling my own libraries, but Im pretty

[Wt-interest] mysql backend, just pain, pain pain

2010-03-20 Thread mobi phil
FYI: http://www.mobiphil.com/2010/03/mysqclient-api-designed-by-schoolgirls (about writing the mysql backend).. suggestions? -- rgrds, mobi phil being mobile, but including technology http://mobiphil.com -- Download I

Re: [Wt-interest] Mysql backend

2010-02-09 Thread mobi phil
Pau, I am aware about that ambiguity. What I was trying to explain is that by creating dlopen plug-ins, Emweb would free themselves about liabilities against how clients would use it. The decision would belong to the customer (they would be made aware about it). However the example you gave is a

Re: [Wt-interest] Mysql backend

2010-02-09 Thread misi e
I already created a 3rd party repository, at least the webspace: http://babelengine.org ( I hope you like the name) On 9 February 2010 20:44, Dule Savic wrote: > Ehmm... > > How about we create some 3rdParty community components repository ? > > I guess it should solve the licencing pro

Re: [Wt-interest] Mysql backend

2010-02-09 Thread Dule Savic
Ehmm... How about we create some 3rdParty community components repository ? I guess it should solve the licencing problems by delegating those problems to the user . -- SOLARIS 10 is the OS for Data Centers - provi

Re: [Wt-interest] Mysql backend

2010-02-09 Thread Pau Garcia i Quiles
On Tue, Feb 9, 2010 at 3:48 PM, Wim Dumon wrote: >> Maybe the solution would be to refactor a bit Wt::Dbo and clearly >> define a narrow interface that each backend would implement. The >> backend could be even loaded dynamically etc. Some backends source >> code could be part of WT, some parts a

Re: [Wt-interest] Mysql backend

2010-02-09 Thread mobi phil
it is, it is not... you move the liability to the client. Not a lawyer, but this is how I see it: Your client, or anyones buys the license for a Wt application + Wt library. You write a contract that they are supposed to use the db backend libraries provided by you or they may purchase libraries f

Re: [Wt-interest] Mysql backend

2010-02-09 Thread Wim Dumon
2010/2/9 mobi phil : >> MariaDB is GPL, isn't it? We cannot include GPL in Wt. > > Ok, so that is the real problem. > > Maybe the solution would be to refactor a bit Wt::Dbo and clearly > define a narrow interface that each backend would implement. The > backend could be even loaded dynamically etc

Re: [Wt-interest] Mysql backend

2010-02-09 Thread mobi phil
> MariaDB is GPL, isn't it? We cannot include GPL in Wt. Ok, so that is the real problem. Maybe the solution would be to refactor a bit Wt::Dbo and clearly define a narrow interface that each backend would implement. The backend could be even loaded dynamically etc. Some backends source code coul

Re: [Wt-interest] Mysql backend

2010-02-09 Thread Wim Dumon
MariaDB is GPL, isn't it? We cannot include GPL in Wt. On FOSDEM we had a short talk with a MariaDB guy, who said they'd want to develop a more free (presumably BSD) connector. But as I understood it, this does not yet exist. It would also be a solution, though. Best Regards, Wim. 2010/2/9 Pau Ga

Re: [Wt-interest] Mysql backend

2010-02-09 Thread Pau Garcia i Quiles
Hello, Another option is MariaDB: http://en.wikipedia.org/wiki/MariaDB On Tue, Feb 9, 2010 at 12:32 PM, Wim Dumon wrote: > Hi, > > Our opinion is based on the information we found at > https://partner-portal.mysql.com/guide/overview.html > The restrictions in their Connector License are not acce

Re: [Wt-interest] Mysql backend

2010-02-09 Thread Wim Dumon
Hi, Our opinion is based on the information we found at https://partner-portal.mysql.com/guide/overview.html The restrictions in their Connector License are not acceptable to us. (You may not:) - distribute “Community Edition” GPL-licensed versions of the MySQL database system software on your ap

Re: [Wt-interest] Mysql backend

2010-02-09 Thread mobi phil
Pao I hope you do not mind... I added your email to this conversation... I concluded the same picture. However I can understand that emweb is not motivated to develop that they cannot include into a commercial license There should be a solution for a win-win situation.. mobiphil On 9 F

[Wt-interest] Mysql backend

2010-02-09 Thread misi e
Hello, I saw the name DRIZZLE somewhere in the conversation, but Wim confirmed that there will be a drizzle implementation. I mentioned this topic in my previous email, but I think it is better to start a new thread. I was happy to see WT::Dbo, but I cannot use it as I am constrained to use MYSQL.