lemanhtrung / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Unable to run the examples (exit code -1073741515) #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install the latest Qt version, got local copy qextserialport.
2. Try to build qextserialport project, I had a few errors like:
   collect2: ld returned 1 exit status
   since:
   real library names: qextserialport1.dll & qextserialportd1.dll
   expected library names: qextserialport.dll & qextserialportd.dll
   so I have changed library names to real in event.pro & enumerator.pro
3. After that please try to run any example (for example - 'event'). 
   I have exit code -1073741515  immediately after run (no output in cmd.exe)

WBR, Anton

Original issue reported on code.google.com by Anton.Me...@gmail.com on 9 Mar 2010 at 8:58

GoogleCodeExporter commented 9 years ago
My OS is Windows XP SP3 x86, Qt 2010.02.1, COM1 settings are: 9600, 8N1

Original comment by Anton.Me...@gmail.com on 9 Mar 2010 at 8:59

GoogleCodeExporter commented 9 years ago
Have you tried running it in the debugger?  Any more info?

Original comment by lst...@gmail.com on 10 Mar 2010 at 2:48

GoogleCodeExporter commented 9 years ago
You have to copy the dll into the build directory of the example. Than you can
execute the example !

Regards, Mafofolus

Original comment by mafofo...@gmail.com on 10 Mar 2010 at 11:28

GoogleCodeExporter commented 9 years ago
The results of the debugger:
- From graphical frontend (in Qt): "You can't do that without a process to 
debug."
  (I have installed cdb (Debugging tools for Windows))
- From GDB shell: I enter "Run" in the debugger after that it hangs:
--------------------------------------------------------------------------------
----
C:\Projects\qextserialport\examples\event\debug>c:\Qt\2010.02.1\mingw\bin\gdb.ex
e
event.exe
GNU gdb 6.8
...
This GDB was configured as "i686-pc-mingw32"...
(gdb) run
Starting program: C:\Projects\qextserialport\examples\event\debug/event.exe
[New thread 1832.0x720] 
--------------------------------------------------------------------------------
----
This is repeated on several different computers. 
I am sure that COM port is working. I can work with examples of the 
qextserialport
(from qextserialport.sourceforge.net), but I have problem like in issue 17.
Thanks for you help.

Original comment by Anton.Me...@gmail.com on 10 Mar 2010 at 11:51

GoogleCodeExporter commented 9 years ago
-----------------------------------------------------
C:\Projects\qextserialport\examples\event\debug>dir
10.03.2010  13:21    <DIR>          .
10.03.2010  13:21    <DIR>          ..
10.03.2010  13:11           559 997 event.exe
22.06.2009  21:42            43 008 libgcc_s_dw2-1.dll
10.01.2009  13:32            11 362 mingwm10.dll
10.03.2010  13:11           980 157 qextserialportd1.dll
09.03.2010  20:08        30 314 117 QtCored4.dll
09.03.2010  20:08       147 474 116 QtGuid4.dll
-----------------------------------------------------
WBR, Anton

Original comment by Anton.Me...@gmail.com on 10 Mar 2010 at 11:54

GoogleCodeExporter commented 9 years ago
I think that this problem was related with issue 17:
--
I am using the qextserial in another application. It has a problem of not being 
able
to open the port unless it has been opened before by another app. Like 
hyperterminal.
-- (http://www.makingthings.com/forum/development/557727594)

Original comment by Anton.Me...@gmail.com on 10 Mar 2010 at 12:04

GoogleCodeExporter commented 9 years ago
So is this issue resolved? If so, please create another issue for a separate 
problem.

Original comment by lst...@gmail.com on 10 Mar 2010 at 5:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue is still persists. My previous post is about qextserialport from 
sourceforge.
Sorry.

Original comment by Anton.Me...@gmail.com on 10 Mar 2010 at 6:18

GoogleCodeExporter commented 9 years ago
Unfortunately, I do not see any forward movement in this ticket.
My program works after a succesfull change of qextserialport to qserialdevice,
so you can close this issue, if you wish.
I think that you can easily confirm my problem with qextserialport, if you try 
to
execute the qextserialport examples on any Windows XP PC (x86, SP2|SP3).
If you require some another help/information from my side - welcome.
Thanks for your patience. Good luck.

Original comment by Anton.Me...@gmail.com on 11 Mar 2010 at 7:44

GoogleCodeExporter commented 9 years ago
Your post above makes it look like there's just a naming problem when building 
the library.  In the src.pro file, 
try commenting out the VERSION line and re-building qextserialport, which 
should result in qextserialportd.dll 
instead of qextserialportd1.dll.

I still need to figure out the correct solution for this, but removing the 
VERSION in the meantime should work.

Original comment by lst...@gmail.com on 23 Mar 2010 at 2:59

GoogleCodeExporter commented 9 years ago
Thank you for your advice. Assembly-time errors disappeared. 
Unfortunately library examples still does not work (error code is the same
(-1073741515)). 
qextserialportd.dll is in the correct directory 
(qextserialport\examples\event\debug\).
The hg change set number is 106.

Original comment by Anton.Me...@gmail.com on 23 Mar 2010 at 8:23

GoogleCodeExporter commented 9 years ago
hi im saravana...
i need a favour... i want to transmit data from an FPGA on to the PC serial 
port 
(RS232)...
how do i do it??
can you please send me the code??
and also how do i bind QEXTSERIALPORT and QT4.3.1??
Thanks in advance

Original comment by saravana...@gmail.com on 31 Mar 2010 at 3:12

GoogleCodeExporter commented 9 years ago
I can confirm that problem. No work with all examples. Compilation works, but 
when
executing the program it quits instantly with return code -1073741515. (Windows 
XP
Pro SP3). Can anyone tell us how to find the reason why? 
I will try the same source with linux.

Thanks. 

Original comment by maikelme...@googlemail.com on 30 May 2010 at 5:59

GoogleCodeExporter commented 9 years ago
The same problem i had executing binary file form Qt Creator. The solution for 
this was to copy libs to directory with binary file. MAybe there is posibbility 
to configure environment for code execution in Qt Creator.

Original comment by musashi...@gmail.com on 17 Jun 2010 at 6:29

GoogleCodeExporter commented 9 years ago
Moving dll files to "Windows" directory has worked for me..

Original comment by heyy...@ozderya.net on 24 Jul 2011 at 2:35

GoogleCodeExporter commented 9 years ago
I was having the same problem and search all over. A bunch of methods that 
didn't seem to work. I copied the files to the "windows" directory like heyyo61 
said and it worked. It would be nice to just have the files in the working 
folder instead of needing to move dll's into the "windows" folder

Thanks

Original comment by travis.t...@gmail.com on 30 Aug 2011 at 3:53

GoogleCodeExporter commented 9 years ago
Here is a long description of what I had to do to get everything to work over 
the last several days. Hope someone can gain from my pain. This includes some 
of the items above. :) 

When I wanted to build within the serial port files in Creator I had to do the 
following things on the latest version of QT

You need to copy the file qwineventnotifier_p.h from the source to the correct 
location as mentioned in other places. (Google it)

Building the SRC files for the DLL (qextserialport.dll, qextserialportd.dll)

Load the src.pro fil into Creator
 To build a the correct debug file and never have a problem , I had to change the CONFIG line in the src.pro file from

CONFIG += qt warn_on debug_and_release
 To 
CONFIG += qt warn_on debug

And to build a release version I had to use
 CONFIG += qt warn_on release

The above allowed me to build both versions of the DLL file needed by the other 
programs. It took two steps but I wasn’t changing the code here so it 
wasn’t really an issue and it worked consistantly.

Building the different apps.

The default path to my projects including the “src” files wanted to be 
src-build-desktop and not just build. This has something to do with my creator 
settings I am sure, but I do not know how to fix it.

This means in your “enumerator”, “event” and “qespta” .PRO files 
you need to change the path of the serial library by doing the following.

#QMAKE_LIBDIR += ../../src/build
 QMAKE_LIBDIR += ../../src-build-desktop/build

This would allow me to compile correctly. However, when I wanted to run, I 
would get run time errors. Some mentioned above

I solved this by copying the (qextserialport.dll, qextserialportd.dll) files to 
the location of my executable. Once I did this I was able to run correctly. 
I probably need to place the DLL files in the system directory but for now, 
this worked.

Also, no spaces in the directory paths.

I hope the above helps others as it took me several hours over several days to 
figure this out from different threads and trial and error.

Original comment by kenjustk...@gmail.com on 30 Sep 2011 at 12:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:44