The Following 5 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-24
, 12:12
|
Posts: 3,074 |
Thanked: 12,964 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#452
|
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
The Following 2 Users Say Thank You to freemangordon For This Useful Post: | ||
![]() |
2012-03-24
, 13:41
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#453
|
The Following 2 Users Say Thank You to nicolai For This Useful Post: | ||
![]() |
2012-03-24
, 13:43
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#454
|
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?
The Following 4 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-24
, 14:04
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#455
|
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?
![]() |
2012-03-24
, 14:37
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#456
|
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.
The Following User Says Thank You to nicolai For This Useful Post: | ||
![]() |
2012-03-24
, 15:19
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#457
|
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'
The Following User Says Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-24
, 17:00
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#458
|
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
The Following 3 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-25
, 21:31
|
Posts: 306 |
Thanked: 603 times |
Joined on Jan 2012
@ Belgium
|
#459
|
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
The Following 7 Users Say Thank You to DavyP For This Useful Post: | ||
![]() |
2012-03-27
, 18:49
|
Posts: 136 |
Thanked: 19 times |
Joined on Nov 2011
@ Hungary
|
#460
|
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