Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [BETA RELEASE] PhoneME Advanced (Java Mobile)

    Reply
    Page 46 of 85 | Prev | 36   44     45   46   47     48   56 | Next | Last
    DavyP | # 451 | 2012-03-24, 12:07 | Report

    Small follow-up:

    The build instructions for the library have been greatly simplified but I have to check whether the method I used before to produce libcvm.so is completely compatible with the one mentioned on the website.

    I am not familiar with scratchbox to try and set up a build environment, but if someone wants to have a go it, I might be able to help with resolving the last remaining issues.

    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 5 Users Say Thank You to DavyP For This Useful Post:
    demludi, Estel, Joseph9560, pepitoe, wwweagle

     
    freemangordon | # 452 | 2012-03-24, 12:12 | Report

    Originally Posted by DavyP View Post
    Small follow-up:

    The build instructions for the library have been greatly simplified but I have to check whether the method I used before to produce libcvm.so is completely compatible with the one mentioned on the website.

    I am not familiar with scratchbox to try and set up a build environment, but if someone wants to have a go it, I might be able to help with resolving the last remaining issues.

    Davy
    I will try to build the Qt stuff later (or tomorrow).

    Sorry if you've already answered, but where are the checkout/build instructions for libcvm?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to freemangordon For This Useful Post:
    Estel, Joseph9560

     
    nicolai | # 453 | 2012-03-24, 13:41 | Report

    Thank you DavyP.

    sharing the code and buildinstructions is great.

    If you want to build libcvm with scratchbox for crosscompiling, just
    change the first line of your build script from
    export CVM_TARGET_TOOLS_PREFIX=/opt/arm-2011.09/bin/arm-none-linux-gnueabi-
    to
    export CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/arm-none-linux-gnueabi-

    So, building the cvm application works, but

    compiling Qt4 cvm application gives the following errors:
    build/main.o: In function `resetFrameBufferSize(int, int)':
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:229: undefined reference to `resizeFrameBuffer'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:231: undefined reference to `resizeFrameBuffer'
    build/main.o: In function `cvm_exec()':
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:146: undefined reference to `cvm_main'
    build/main.o: In function `main':
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:618: undefined reference to `initPixmap'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:620: undefined reference to `initPixmap'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:624: undefined reference to `initDrawChars'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:626: undefined reference to `initPlatform'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:628: undefined reference to `initGPS'

    any ideas?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to nicolai For This Useful Post:
    Estel, Joseph9560

     
    DavyP | # 454 | 2012-03-24, 13:43 | Report

    Originally Posted by freemangordon View Post
    I will try to build the Qt stuff later (or tomorrow).

    Sorry if you've already answered, but where are the checkout/build instructions for libcvm?
    Like I mentioned on the previous page, they are at

    http://davy.preuveneers.be/phoneme/?q=node/34

    or go to http://davy.preuveneers.be/phoneme and choose in the menu Maemo/MeeGo -> Build instructions

    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to DavyP For This Useful Post:
    Estel, freemangordon, fw190, Joseph9560

     
    DavyP | # 455 | 2012-03-24, 14:04 | Report

    Originally Posted by nicolai View Post
    Thank you DavyP.

    sharing the code and buildinstructions is great.

    If you want to build libcvm with scratchbox for crosscompiling, just
    change the first line of your build script from
    export CVM_TARGET_TOOLS_PREFIX=/opt/arm-2011.09/bin/arm-none-linux-gnueabi-
    to
    export CVM_TARGET_TOOLS_PREFIX=/scratchbox/compilers/cs2007q3-glibc2.5-arm7/bin/arm-none-linux-gnueabi-

    So, building the cvm application works, but

    compiling Qt4 cvm application gives the following errors:
    build/main.o: In function `resetFrameBufferSize(int, int)':
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:229: undefined reference to `resizeFrameBuffer'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:231: undefined reference to `resizeFrameBuffer'
    build/main.o: In function `cvm_exec()':
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:146: undefined reference to `cvm_main'
    build/main.o: In function `main':
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:618: undefined reference to `initPixmap'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:620: undefined reference to `initPixmap'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:624: undefined reference to `initDrawChars'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:626: undefined reference to `initPlatform'
    /tmp/build_phoneme//Downloads/cvm/src/main.cpp:628: undefined reference to `initGPS'

    any ideas?
    I presume this is during the linking phase. Have you build the libcvm.so library? Like I said, I still have to test the build process to see if the library is fully compatible with the one I built manually. I will do so when time permits.

    This library should contain the methods for which you get the errors. However, the build instructions do not include support for GPS and audio and stuff. The initPlatform and initGPS are used for those purposes.

    Maybe it is better if I create a slightly trimmed down front-end so that I first get you all started with compiling the basics, without pulling in external dependencies like the customized Location API I got from another project.

    Thanks for the scratchbox tip. I have built phoneME with this toolchain before, but used this cross-compiler:

    http://www.scratchbox.org/download/f...-1-i386.tar.gz

    I never set up the scratchbox build environment as explain over here

    http://www.developer.nokia.com/Commu..._for_beginners

    I installed the Qt SDK as the above website claimed this would be the best way forward.

    Anyway, I had some problems with the toolchain of the Qt SDK to build phoneME. That is why I relied on the CodeSourcery toolchain, and used the Qt SDK ones to build the frontend.

    If I can build both with scratchbox, I might be able to have a fully integrated build (without the need for creating a separate library).

    I'd say keep an eye on my build webpage the next couple of days to see if there are any updates on how to build this thing.



    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to DavyP For This Useful Post:
    Estel, fw190, nicolai

     
    nicolai | # 456 | 2012-03-24, 14:37 | Report

    Originally Posted by DavyP View Post
    I presume this is during the linking phase. Have you build the libcvm.so library? Like I said, I still have to test the build process to see if the library is fully compatible with the one I built manually. I will do so when time permits.
    I used the "create libcvm.so manually" build instruction, the current
    one with "export CVM_BUILD_SO=true"
    has just more errors:

    lib/libcvm.so: undefined reference to `pcsl_string_cat'
    ...
    lib/libcvm.so: undefined reference to `pcsl_file_getusedspace'

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nicolai For This Useful Post:
    Estel

     
    DavyP | # 457 | 2012-03-24, 15:19 | Report

    Originally Posted by nicolai View Post
    I used the "create libcvm.so manually" build instruction, the current
    one with "export CVM_BUILD_SO=true"
    has just more errors:

    lib/libcvm.so: undefined reference to `pcsl_string_cat'
    ...
    lib/libcvm.so: undefined reference to `pcsl_file_getusedspace'
    I was afraid this would happen. The CVM_BUILD_SO is a feature that was already available in the phoneME source tree and noticed it recently while going through the build configuration files, but it does not seem to be compatible with what I need. I just compared the build commands and indeed several libs are not included.

    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to DavyP For This Useful Post:
    nicolai

     
    DavyP | # 458 | 2012-03-24, 17:00 | Report

    Originally Posted by DavyP View Post
    I was afraid this would happen. The CVM_BUILD_SO is a feature that was already available in the phoneME source tree and noticed it recently while going through the build configuration files, but it does not seem to be compatible with what I need. I just compared the build commands and indeed several libs are not included.

    Davy
    I added a few more patches to my website. The build instructions remain the same.

    As I have not included a detailed explanation on how to add external dependencies for Location API support, just disable call to initGPS() in the main.cpp source file of the Qt4 front end application.

    This time, the libcvm.so library compiles and after commenting the initGPS() call, I don't get any undefined references anymore.

    However, I cannot currently test my build on a N900, as I don't have the device with me.

    This is all for now, folks.

    Cheers,
    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to DavyP For This Useful Post:
    Estel, Joseph9560, nicolai

     
    DavyP | # 459 | 2012-03-25, 21:31 | Report

    Originally Posted by DavyP View Post
    Yes, I have not found a way for the phoneME Qt4 front end application to find the dynamically linked libcvm.so library when I put it in /opt/phoneme/bin. That is why I copied it to /usr/lib and the problem was gone.

    Before, I used dlopen and dlsym routines to load the libcvm.so from the phoneme dir in /opt, but this was a mess as I had to create function pointers for all relevant methods.

    If I can find a way to build the phoneME Qt4 front end and also have it look for libcvm.so in other directories than /usr/lib etc. then this is issue is solved.

    PS: I am fully aware of the LD_LIBRARY_PATH environment variable, but I do not consider this as a proper solution.

    Davy
    I solved the library location issue by passing -Wl,-rpath,<dir> to
    gcc when compiling cvm. This means the cvm application will now
    look for the libcvm.so library in /opt/phoneme/bin rather than in /usr/lib

    I uploaded a new build: http://davy.preuveneers.be/phoneme/public/maemo/deb/

    Davy

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 7 Users Say Thank You to DavyP For This Useful Post:
    Brian_7, don_falcone, Estel, Joseph9560, nicolai, pepitoe, wwweagle

     
    Arthuro_Adam | # 460 | 2012-03-27, 18:49 | Report

    Thanks for the latest update.
    I don't know, were there any changes in Opera Mini landscape/portrait mode or auto-rotation, but on N9, it's still the same. After start OM is in landscape mode and no auto rotation.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 46 of 85 | Prev | 36   44     45   46   47     48   56 | Next | Last
vBulletin® Version 3.8.8
Normal Logout