Recent

Author Topic: Question about using C, Activex, Java or whatever else with a pascal program  (Read 15505 times)

wpflum

  • Sr. Member
  • ****
  • Posts: 287
I just got it 'working' right before I saw your reply. :D  Seems g++ didn't like the -lpthread option but when I changed it to just -pthread it worked, still not finding the pad but at least I'm getting a compiled program to start with.

Once I can get the pad working in the HidTest program I can start on boning up on my C to get the library converted over to something pascal can handle.

Thanks again.

wpflum

  • Sr. Member
  • ****
  • Posts: 287
Quote
I'd just like to know if you added any software to the stock setup to get it to compile
I had already 'build-essential' installed. This is a meta-package that pulls in everything needed to build debian packages.

Would you mind going into the SigTabLtTest directory and running make for me?  I just want to see if you get the same errosr I'm getting about missing references to compressBound and compress.  Since you've already been able to compile the other test program on a Ubuntu system I was hoping the error I'm getting is related to something on my end.

Thanks

ludob

  • Hero Member
  • *****
  • Posts: 1173
Quote
I'm getting about missing references to compressBound and compress
I'm getting the same. These missing references are in zlib. I got it working by changing the Makefile: change line 43 to
Code: [Select]
L-Flags = -Wall -D_POSIX_C_SOURCE -lpthread -lz-lz tells to link with libz.

Apparently a bug in their Makefile



wpflum

  • Sr. Member
  • ****
  • Posts: 287
Thanks, I'm still getting errors but at least I know it will compile and it's probably my setup.  Maybe I'll wipe my test ubuntu setup and reinstall it. Then I'll just add the 'build-essential meta package and go from there.

Thanks again.

wpflum

  • Sr. Member
  • ****
  • Posts: 287
Ok, I did a fresh install of Ubuntu 11.10 desktop added gnome-shell so I can use a decent desktop and added the build-essentials meta package.  Still get the same errors and infact I still have to change the lpthread to pthread to get the correct pthread references.  You must have something else installed?  I posted this issue with compress and compressBound on a Ubuntu board but I'd love to know what you have that I don't, other than looks, personality and good breeding  :D

ludob

  • Hero Member
  • *****
  • Posts: 1173
I don't have a 11.10 installation but just tried on a recent 11.04 installation. build-essential was installed as well as fpc and lazarus. After adding -lz to the Makefile in SigTabLtTest it built fine, although with some warnings about deprecated conversion from string constant to 'char *'

According to http://devforum.skype.com/t5/Compiling-Runtimes/C-wrapper-fails-to-compile-pthread/td-p/7713, libpthread is missing on 11.10. That seems to explain the -lpthread problem you see.
Perhaps all your problems are related to 11.10. I suggest you contact the topaz people or whatever the manufacturer of the pad is called. While you are on them, rub their nose in the -lz bug and ask in return for a c wrapper for the c++ library  ;)

I've attached the output of 'dpkg --get-selections' for my 11.04.

wpflum

  • Sr. Member
  • ****
  • Posts: 287
Thanks, I'll dig up a 11.04 disk and try it with that.  I'll also contact Topaz and see if I can get the C wrappers.

Thanks
« Last Edit: January 03, 2012, 06:57:52 pm by wpflum »

wpflum

  • Sr. Member
  • ****
  • Posts: 287
That did it!  Installing Ubuntu 11.04 and zlib-dev let me compile correctly.  Now I just have to install 11.04 on the test hardware so I can see if the test program will see the signature pad.  Then onto the hard stuff  ::)  making the C wrappers for the interface to pascal.  At least at this point I should know if the hardware is functioning   :D  I did email Topaz but I wont hold my breath.  :'(

On another note I'm VERY disappointed with Ubuntu, they REALLY screwed up with their latest 'upgrade' not only does Unity suck but it seems they managed to break a bunch of the under the hood stuff as well.  >:(

Thanks again for your help.

 

TinyPortal © 2005-2018