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 - Suhair Zain

Pages: [1]
1
General / Re: 64bit make in Android fails
« on: November 08, 2015, 05:35:45 pm »
I don't have any experience in 'standard cross-compiling'. But I guess I could try it nonetheless. If I get it right, I can push a commit to make it part of SFML, right?  :D

2
General / 64bit make in Android fails
« on: November 08, 2015, 02:13:09 pm »
Hi,
I recently tried to make sfml for armeabi in android, following the tutorial at https://github.com/SFML/SFML/wiki/Tutorial%3A-Building-SFML-for-Android. It works without any issue and same goes for 32 bit architectures such as armeabi-v7a, x86, mips etc.

But once I try a 64bit platform such as arm64-v8a, mips64 or x86_64, an error is thrown. It's got something to do with missing JPEG LIBRARY. Could anyone take a look at it?

Quote
cmake -DANDROID_ABI=x86_64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchains/android.toolchain.cmake ../..
-- Adjusting Android API level 'android-9' to 'android-21'
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find JPEG (missing: JPEG_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/toolchains/android.toolchain.cmake:1565 (find_package)
  src/SFML/Graphics/CMakeLists.txt:119 (find_host_package)


-- Configuring incomplete, errors occurred!
See also "/home/suhairzain/Downloads/SFML-2.3.2/build/x86_64/CMakeFiles/CMakeOutput.log".

This is the content of CMakeOutput.log
Quote
The target system is: Linux - 1 - x86_64
The host system is: Linux - 3.19.0-32-generic - x86_64

What could be the issue? The page lists 'other valid targets' as: armeabi-v7a, mips, and x86.

Quote
You can repeat the following steps for all available architectures. Unfortunately, you can't build all targets for SFML at once. The following lines create a armeabi build. If you'd like to build for any other target, just replace all occurences. Other valid targets would be armeabi-v7a, mips, and x86.

Is there some extra configuration to be done for 64bit architectures?

[EDIT]
Looking at https://github.com/SFML/SFML/tree/master/extlibs/libs-android, there are only 32bit architectures. How can I build it for the 64bit architectures?

3
General / Re: Integrate SFML into existing Android application
« on: November 08, 2015, 01:49:35 pm »
@Mario
I'll take a look at it then. I was thinking of embedding it in a SurfaceView. I'll look for some workarounds and post here.

@dabbertorres
I wasn't clear enough in the question. To the best of my knowledge, we cannot use features of the Android SDK such as TitleBar etc in a NativeActivity. I may be completely wrong here, but I'll take a look at it and let you know.

Thanks all :)

4
General / Integrate SFML into existing Android application
« on: November 06, 2015, 07:40:17 pm »
Hi,
I tried the Android example app and it works fine. But I would like to integrate SFML into an existing Android app. i.e; I have implemented a part of the app using the Android SDK but for a specific functionality (rendering of a custom layout to be exact), I cannot go with Android SDK. Thus I decided to give SFML a try.

Is it possible that I can use SFML only for a specific portion of the app? Like, integrate it into an Activity which can be called from another Activity implemented using Android SDK(Java)? Have anyone successfully done something like that?

5
Graphics / Query about including Harfbuzz in SFML
« on: November 05, 2015, 09:57:54 pm »
Hi,

As mentioned at http://en.sfml-dev.org/forums/index.php?topic=19293.0, I need to display complex text layout in my app. I was directed to the github issue https://github.com/SFML/SFML/issues/246.

According to the PR at https://github.com/SFML/SFML/pull/624, a way to make Harfbuzz a part of SFML was given, but it was rejected/postponed for the following reasons: https://github.com/SFML/SFML/pull/624#issuecomment-57596111.

One of the reasons mentioned is the use of a LGPL licensed library. But I believe harfbuzz has a new version now which is licensed under the "Old MIT" license as given at https://github.com/behdad/harfbuzz/blob/master/COPYING, so one less reason to not use Harfbuzz right?

Also, as specified at https://github.com/SFML/SFML/issues/799#issue-58459076, freetype 2.5.3 can be configured to use Harfbuzz, whereas SFML uses a 2.5.5+ version.

Is there any way I implement the complex layout without going through a lot of manual source code changes, either using Harfbuzz or some other SFML implementation?

6
Graphics / Re: Issues while displaying Indian text (Malayalam)
« on: November 04, 2015, 06:04:05 pm »
Ok Cool. Thank you.  :)

7
Graphics / Re: Issues while displaying Indian text (Malayalam)
« on: November 04, 2015, 02:02:45 pm »
Just a small question:

SFML doesn't support complex text layouts at the moment

Any plans to support it in any upcoming versions? I wouldn't have to go ahead with my own implementation then.

8
Graphics / Re: Issues while displaying Indian text (Malayalam)
« on: November 04, 2015, 10:28:41 am »
Okay. So I have to make the changes specified at https://github.com/afiefh/SFML/commit/a09f55d3c3e264f1a66a486dfc098eb6a58dd6c1 right?

I used apt-get to install the SFML libraries. I'll have to download the source from the SFML site, make the necessary changes and build it now. Right?

9
Graphics / Re: Issues while displaying Indian text (Malayalam)
« on: November 04, 2015, 08:36:15 am »
@Rhimlock I tried all of the fonts listed in the Malayalam Unicode support page, all of them displays it correctly within the browser/PC. To the best of my observation, this issue appears only when displayed using SFML.

I can give you an example of the issues:

1)
The first image shows how that particular set of character is supposed to be displayed(from Firefox). When stored programatically, it's stored in the order in which SFML displays it. But according to the rules of Malayalam (my native language), it's supposed to be displayed in the order Firefox/Ubuntu etc does, as follows:
Firfox(correct display)

SFML(incorrect, displayed without appropriate adjustments)

2)
Here, the three characters in the third image are supposed to be joined to be displayed as a single character as in the fourth image





These issues are repeated throughout the text. If these are some manual adjustments to be done per language, I think I can write something to pre-process the text before displaying it. But if there is some way SFML can already manage this, I won't have to re-invent the wheel. Please help.

10
Graphics / Issues while displaying Indian text (Malayalam)
« on: November 03, 2015, 12:25:35 pm »
Hi,
I'm trying to display a UTF-8 encoded malayalam text obtained from Wikipedia which is as follows: ദയവായി ഈ താളിലെ വിവരങ്ങൾ തർജ്ജമ ചെയ്യരുത്

This is how it is supposed to be displayed (screenshot from Firefox):


How it is actually displayed:


I had installed SFML using the libsfml-dev package in ubuntu, as described in http://www.sfml-dev.org/tutorials/2.0/start-linux.php.
The version, as obtained by dpkg -s is 2.1+dfsg-4ubuntu2

I spent a whole day on figuring this out to no avail. Could you help me out? The 1.6 version had a characterSet option (http://www.sfml-dev.org/tutorials/1.6/graphics-fonts.php). Was it removed in this version?

Following is my code:
Code: [Select]
sf::Font font { };
//sf::Uint32 mlCharset[] = {0x0d01, 0x0d02, 0x0d03, 0x0d04, 0x0d05, 0x0d06, 0x0d07, 0x0d08, 0x0d09, 0x0d0a, 0x0d0b, 0x0d0c, 0x0d0d, 0x0d0e, 0x0d0f, 0x0d10, 0x0d11, 0x0d12, 0x0d13, 0x0d14, 0x0d15, 0x0d16, 0x0d17, 0x0d18, 0x0d19, 0x0d1a, 0x0d1b, 0x0d1c, 0x0d1d, 0x0d1e, 0x0d1f, 0x0d20, 0x0d21, 0x0d22, 0x0d23, 0x0d24, 0x0d25, 0x0d26, 0x0d27, 0x0d28, 0x0d29, 0x0d2a, 0x0d2b, 0x0d2c, 0x0d2d, 0x0d2e, 0x0d2f, 0x0d30, 0x0d31, 0x0d32, 0x0d33, 0x0d34, 0x0d35, 0x0d36, 0x0d37, 0x0d38, 0x0d39, 0x0d3a, 0x0d3b, 0x0d3c, 0x0d3d, 0x0d3e, 0x0d3f, 0x0d40, 0x0d41, 0x0d42, 0x0d43, 0x0d44, 0x0d45, 0x0d46, 0x0d47, 0x0d48, 0x0d49, 0x0d4a, 0x0d4b, 0x0d4c, 0x0d4d, 0x0d4e, 0x0d4f, 0x0d50, 0x0d51, 0x0d52, 0x0d53, 0x0d54, 0x0d55, 0x0d56, 0x0d57, 0x0d58, 0x0d59, 0x0d5a, 0x0d5b, 0x0d5c, 0x0d5d, 0x0d5e, 0x0d5f, 0x0d60, 0x0d61, 0x0d62, 0x0d63, 0x0d64, 0x0d65, 0x0d66, 0x0d67, 0x0d68, 0x0d69, 0x0d6a, 0x0d6b, 0x0d6c, 0x0d6d, 0x0d6e, 0x0d6f, 0x0d70, 0x0d71, 0x0d72, 0x0d73, 0x0d74, 0x0d75, 0x0d76, 0x0d77, 0x0d78, 0x0d79, 0x0d7a, 0x0d7b, 0x0d7c, 0x0d7d, 0x0d7e, 0x0d7f};
font.loadFromFile("fonts/ml.ttf");

sf::Text text{};
text.setFont(font);
text.setString(L"ദയവായി ഈ താളിലെ വിവരങ്ങൾ തർജ്ജമ ചെയ്യരുത്");

For additional info, the specification for the Malayalam language is at http://www.fileformat.info/info/unicode/block/malayalam/list.htm, if you need it.

Pages: [1]
anything