On 29. des. 2013 14:50, Carsten A. Arnholm wrote:
> Now I will experiment....

Hi, I would just like to make a quick report on my progress.

I made a shared object "libfilepicker.so" completely independent of 
tntnet. I tested it with a standard console application and it works as 
expected. It simply reads a JPG file from disk and returns it as a 
string of bytes in a std::string (simulating generation of an image at 
runtime).

The good news is that I am able to use "libfilepicker.so" from a tntnet 
project ("stest1.so") and send a JPG image to the browser, as explained 
by Tommi and Olaf earlier. It is a start.

What I don't quite understand is that if I use boost in my 
"libfilepicker.so", then "stest1.so" fails to load in tntnet. This is a 
problem since I need to use boost for several things.


Here is what I see when I simply #include a boost header in my C++ code 
in "libfilepicker.so" (I don't even use any features). My tntnet 
component fails to load:

2013-12-30 19:47:30.80337 [22977.140332730865408] INFO tntnet.comploader 
- load library "stest1"
2013-12-30 19:47:30.80368 [22977.140332730865408] WARN tntnet.comploader 
- failed to load library "./stest1"
2013-12-30 19:47:30.80373 [22977.140332730865408] WARN tntnet.comploader 
- failed to load library "/usr/local/lib/tntnet/stest1"
2013-12-30 19:47:30.80404 [22977.140332730865408] WARN tntnet.comploader 
- failed to load library "stest1"
2013-12-30 19:47:30.80415 [22977.140332730865408] WARN tntnet.worker - 
library stest1 not found
2013-12-30 19:47:30.80424 [22977.140332730865408] WARN tntnet.worker - 
http-Error: 404 Not Found: vhost: 192.168.0.197:8000 /stest1



Here is what I see when I don't #include boost headers, everything works.

2013-12-30 19:48:58.17077 [23030.140730937177856] INFO tntnet.comploader 
- load library "stest1"
2013-12-30 19:48:58.17125 [23030.140730937177856] INFO tntnet.comploader 
- library "./stest1.so"
reading file.... ok image data sent

Notice that the boost headers are not included in the ecpp code, just in 
my independent "libfilepicker.so" which does not know about tntnet.

I don't quite understand this problem of loading the component *.so. 
FYI, I have built boost 1.55.0 myself from source as follows
./bootsrap.h
./b2 link=static

Any ideas?


Otherwise, I feel encouraged to have achieved something, if not very 
much. Since the website is down, it makes it harder, but I found a 
tntnet.pdf with the installation that contains useful information.

Best regards
Carsten Arnholm



------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to