QtCreator and cURL - final showdown.
-
Compile curl yourself, using the compiler from Qt package, then compile your application using the same compiler.
-
I find cURL MinGW32 - didn't work. The same fail.
I don't know, how to compile this. It is difficult for me.
I must download Source Archives - curl 7.37.1.zip, yes?
I need to use QtCreator or only MinGW and command line? -
Then maybe easier option is to download the 64 bit Qt package?
-
Yes, but MinGW is only in version Qt 32b. I don't know why.
Erlier I have a problem with version Qt VS, programs didn't compile, so I download MinGW. But some problems still are.
-
I'm so happy to be developing on Linux ;-) Problems like that are pretty much unheard of here.
Maybe there were problems with MinGW64 on Windows, so they have dropped the package, I don't know. You can try compiling Qt yourself, although it's not so easy on Windows.
-
So, now:
Qt, MinGW and cURL are for Windows 32-bit, and problem is not solved. Why?
I need to add some packages?
Do I something wrong? -
They might have been compiled using different version of MinGW. Some versions are not compatible with one another...
or something else is wrong. One thing is certain: the error you are getting is a linker error, so there is no bug on the C++ side.
-
Problem solved, but not completly.
All libcurl sources I moved to project folder, and I add:
@INCLUDEPATH += C:...\curl-7.34.0-devel-mingw32\include
LIBS += C:...\curl-7.34.0-devel-mingw32\lib\libcurldll.a
LIBS += C:...\curl-7.34.0-devel-mingw32\lib\libcurl.a
@
But programs exited with code -1073741515, what is the same as 0xC0000135 -> problem with dependency...The Fight Continues...
-
Hi,
You're application is probably not finding the libcurld dll. In Qt Creator go to Project -> run -> PATH and add the path to the folder containing the curl dll
-
I added path the libcurl dll (to Projects -> Run -> Run Environment -> Path), but nothing changes.
Still " programs exited with code -1073741515" -
What happens when you run with the debugger?
-
"The gdb process terminated unexpectedely (code 0)"
"Cannot continue debugged process: The program is not being run"
and
"During startup program exited with code 0xc0000135"Even when I close the terminal window, program is still running (when I want to quit Qt I get a message "Do you want to force quit untitled.exe?)
-
I installed Qt Creator 64 bit, Visual Studio 2013, cURL 64bit, and I have
"Cannot obtain a handle to the inferior: The parameter is incorrect."
So I cleaning project, and again
"exited with code -1073741515"Files are now in release folder
@INCLUDEPATH += C:\Users...\build-one-Qt_64bit-Release\curl-7.34.0-devel-mingw64\include
LIBS += C:\Users...\build-one-Qt_64bit-Release\curl-7.34.0-devel-mingw64\lib64\libcurldll.a
LIBS += C:\Users...\build-one-Qt_64bit-Release\curl-7.34.0-devel-mingw64\lib64\libcurl.a
@Any suggestions?
Edit:
Qt ask about "curl.lib", so I find it and copy to lib files.
Now Qt want "curldll.lib" and these file I can't find.
Why are they needed? .dll files are not enough? -
Finally, problem solved.
I run untitled.exe form explorer, and message shown, which dll is necessary.
So I download some dll's and it's work.
Thanks for response.