Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - netrick

Pages: [1] 2 3 ... 12
DotNet / Re: How to compile SFML.Net under Linux
« on: July 20, 2015, 10:01:13 pm »
Yes, now it compiles under Mono.

However after this pull MonoDevelop complains that the project file is made in Visual 2008 which doesn't support .NET 4.0, but MonoDevelop is able to convert project file to VS 2012 format (anyway, I think it would be a good idea to generally update the project file as Visual 2008 is super obsolete now).

And there are some warnings:
Code: [Select]
Warning CS0618: `SFML.Window.EventType.MouseWheelMoved' is obsolete: `MouseWheelMoved is deprecated, please use MouseWheelScrolled instead' (CS0618) (sfml-window)

Warning CS0618:  `SFML.Window.MouseWheelEventArgs' is obsolete: `MouseWheelEventArgs is deprecated, please use MouseWheelScrollEventArgs instead' (CS0618) (sfml-window)

Warning CS0618: `SFML.Window.Event.MouseWheel' is obsolete: `MouseWheel is deprecated, please use MouseWheelScroll instead' (CS0618) (sfml-window)

DotNet / How to compile SFML.Net under Linux
« on: July 17, 2015, 04:25:38 pm »
I have troubles compiling latest SFML.Net sources under Linux. I have SFML 2.3.1 and CSFML 2.3.1 compilled and installed in my system. They are up and running.

I have newest Mono (4.0.2) and MonoDevelop (5.9.4) installed from official Xamarin repository for Ubuntu.

I opened the .sln file from SFML.Net sources, hit build and instantly got the following error:

Code: [Select]
Error: /home/user/Downloads/SFML.Net-master/src/System/sfml-system.csproj: /home/user/Downloads/SFML.Net-master/src/System/sfml-system.csproj
could not import "$(MSBuildBinPath)\Microsoft.CSharp.targets" (sfml-system)

Any ideas?

DotNet / Re: SFML.Net performance (GC)
« on: July 17, 2015, 12:48:41 pm »
I want to clarify one thing. I'm not asking about some very advanced technical stuff and theorycrafting - I just want to know if you had any problems in more advanced SFML.Net projects. Using "hello worlds" etc. everything seems to work fine, altough I have no idea how it looks like in more demanding scenarios.

General discussions / Missing UDev dependency in tutorial
« on: July 16, 2015, 05:21:31 pm »
In the "Compiling SFML with CMake" tutorial: http://www.sfml-dev.org/tutorials/2.3/compile-with-cmake.php there is a missing dependecy for Linux.

UDev is not listed and on Ubuntu 15.04 it's not installed by default. The actual package name is "libudev-dev".

Without UDev, CMake gives following errors:
(click to show/hide)

DotNet / SFML.Net performance (GC)
« on: July 16, 2015, 04:04:25 pm »
I have a question related to the following issue: https://github.com/SFML/SFML.Net/issues/5.

I see it's still not fixed, so I'm wondering if there are some problems related to performance/stuttering/memory usage using this binding?
I am asking about both Microsoft CLR (Windows) and Mono (Linux).

Thank you

DotNet / Re: Waiting for SFML.Net 2.3
« on: July 16, 2015, 03:59:53 pm »
Glad to hear that!

DotNet / Re: Waiting for SFML.Net 2.3
« on: July 16, 2015, 02:24:47 pm »
Any update on this? Or is the port "dead"?

General / Problem with shared libs on Linux [2.3.1]
« on: July 14, 2015, 12:45:19 am »
I downloaded SFML 2.3.1 sources from http://www.sfml-dev.org/files/SFML-2.3.1-sources.zip. I compiled and "make installed" them (using cmake) on freshly installed Ubuntu 15.04 64 bit (which means there had been no SFML libs in the system).

When I want to launch my SFML app I get following error:
Code: [Select]
error while loading shared libraries: libsfml-graphics.so.2.3: cannot open shared object file: No such file or directory

Using ldd ./myapp I get following output related to SFML (standard C++ libs are found)
Code: [Select]
libsfml-graphics.so.2.3 => not found
libsfml-window.so.2.3 => not found
libsfml-system.so.2.3 => not found

Which is a bit strange, because my /usr/local/lib looks like this: http://i.imgur.com/ueD8Bfx.png. And I have some static libs in /usr/local/lib and linker founds them without problems. There are also no problems with headers in /usr/local/include.

I link following libraries: "sfml-network;sfml-audio;sfml-graphics;sfml-window;sfml-system".

Do you have any idea? I remember there was a terminal command related to ld that refreshed shared library cache but I don't remember it. Anyway I think it should be done automatically after reboot, so this probably isn't the problem.

This is very strange as I've been using SFML on Linux for years without any linking problems. Now I installed Ubuntu 15.04 and the problems appeared. Maybe Ubuntu stopped looking in /usr/local/lib for shared libs? Or something is messed up with SFML libs' links in 2.3.1?


Well the magical command which I didn't remeber was "sudo ldconfig". It solved the problem. Altough I am almost sure that ldconfig happens automatically during reboot... I have no idea why reboots didn't trigger it.

Anyway you can delete this thread. Problem is solved and it turned out to be Linux problem, rather than SFML one.

Network / Re: Max number of TCP sockets
« on: August 29, 2014, 08:26:37 pm »
Yes I know, but my server is real time app so it always takes 100% CPU. Thank you for help.

Network / Re: Max number of TCP sockets
« on: August 29, 2014, 07:36:43 pm »
Thank you for your answer :)

I will certainly have a look into SFNUL. And epoll() is interesting, however I'd rather use something which is higher level.

So far it looks like that on Linux the number of concurrent TCP sockets is only limited by number of ports. Of course the selector amount is limited and it seems like it's good idea not to use selector on big server.

So I want to ask if it is a good idea to handle many (about 10k) TCP sockets this way:

- I create 10k sockets, set each of them to non-blocking mode and store them in vector
- my server has infinite main loop, and inside it I do:

foreach(&socket : socketContainer)
         if(socket.receive (...) == sf::SocketDone)
               //handle received data here

As for CPU and bandwith performance, it should be no problem on my server so I don't ask about it. I want to know if it is proper to handle TCP sockets in such way, without using selector.

Network / Max number of TCP sockets
« on: August 29, 2014, 01:24:12 pm »
What is maximum number of concurrent TCP sockets using SFML networking on Linux system?

I'm not asking about bandwith/performance thingy, I'm just interested in SFML limitation. Because for example, ENet has hard-coded limit of 4096 concurrent connections. I'm wondering if there is such a limit in SFML.

And the second question, is there a hard-coded limit of maximum sockets that can be put in sf::SocketSelector?


General discussions / Re: SFML team is growing
« on: August 06, 2013, 10:45:10 am »
A version of SFML for that will be the perfect excuse to try and learn how to develop for that platform.
Well, you're not going to learn much about Android development with SFML, since you'll always use the same cross-platform API. No platform specific stuff, except maybe a little bit in the compilation process.

How are you going to handle mouse and touch screen with the same API?

General discussions / Re: Debian/Ubuntu packages for SFML
« on: August 04, 2013, 10:30:36 am »
Own repository has the flaw that user must add it to the system, I think such a widely-used lib like SFML should be in official repos. Being in debian repos means being in *buntu and mint repos as well. Every SFML dependency is in debian repos, packages are already done, why don't you want to try?

General discussions / Re: SFML Game Jam Begins!
« on: August 02, 2013, 08:53:19 pm »
I must say programming streams are funnier than gaming streams and you can also always learn something new from better programmers.

General discussions / Re: SFML Game Jam Begins!
« on: August 02, 2013, 08:45:03 pm »
If you want to see two programmers that program with their feet, I'm straming too.

Man, you look like a robot! You code without any breaks, you have a lot of code already and when you compare it with expolitor who has less code and sometimes looks to doc or does some graphics, it looks so funny :P

Good streams both of you.

Pages: [1] 2 3 ... 12