Qt Libs error
-
;-) libraries such as advapi32.lib setupapi.lib or libadvapi32.a libsetupapi.a are all Windows special.
-
oh, sorry :) I was focused only on the .pro syntax, not even looked on the lib names :)
-
do not use '' at the end when not breaking the line
If I don't use the '' the Qt show me error ("library ...lqjson not found").
-
mitchelhajime, no mater you do, you won't compile this project on ubuntu. Also it seems you just don't have the qjson lib.
-
[quote author="gmaro" date="1333667746"]mitchelhajime, no mater you do, you won't compile this project on ubuntu. Also it seems you just don't have the qjson lib.[/quote]
:/ I installed qjson with ubuntu's repository... Is better I download the library and compile in terminal or Qt?
-
[quote author="mitchelhajime" date="1333668065"]
:/ I installed qjson with ubuntu's repository... Is better I download the library and compile in terminal or Qt?[/quote]That's fine, you just need to check where it is and pass the correct path.
But still, I think you've missed this:
[quote author="1+1=2" date="1333667188"];-) libraries such as advapi32.lib setupapi.lib or libadvapi32.a libsetupapi.a are all Windows special.[/quote] -
But still, I think you've missed this:
[quote author="1+1=2" date="1333667188"];-) libraries such as advapi32.lib setupapi.lib or libadvapi32.a libsetupapi.a are all Windows special.[/quote][/quote]
Ah.. this library's I found for linux too.. one is in the mingw32 for linux
-
[quote author="mitchelhajime" date="1333668523"]
Ah.. this library's I found for linux too.. one is in the mingw32 for linux[/quote]
If you really want to cross-compile the project, you should compile the Qt using the cross-compiler first. All of course, you will come with many many problems, but once done, you will be a Specialist in Qt area.
However, I don't know: what is the project for? why you want to compile a windows project under linux? ....
-
[quote author="1+1=2" date="1333669466"]
[quote author="mitchelhajime" date="1333668523"]Ah.. this library's I found for linux too.. one is in the mingw32 for linux[/quote]
If you really want to cross-compile the project, you should compile the Qt using the cross-compiler first. All of course, you will come with many many problems, but once done, you will be a Specialist in Qt area.
However, I don't know: what is the project for? why you want to compile a windows project under linux? ....[/quote]
It is a program that talks to a hardware to get and send data with interface (for the customers).
I need to make this run in linux and windows. :/Thanks for help I go to read about Cross-Compiling now :)
-
;(
You are on the wrong way now, you should know that, the result of cross-compiling is a windows application. After successfully(If you really can do this) compiled, you will need a windows system to run it!
If all you use is a serial port, it will be very easy.
Forget this .pro file, write a right one.
-
[quote author="1+1=2" date="1333670506"];(
You are on the wrong way now, you should know that, the result of cross-compiling is a windows application. After successfully(If you really can do this) compiled, you will need a windows system to run it!
If all you use is a serial port, it will be very easy.
Forget this .pro file, write a right one.[/quote]
I agree it's pretty easy to make a program that configures the hardware and send (for one website) and receive data (for sensors) , but I need to do with with graphical interface and linux for end user.
-
What I mean is, write a cross-platform serialport application with GUI is rather easy too.
But you have make an easy problem become complexed, as you get a platform special project file, and you want to compile it under another platform.
Cross-platform examples can be found from google too. such as
http://docs.qextserialport.googlecode.com/hg/1.2/examples-uartassistant.html
-
[quote author="1+1=2" date="1333671273"]What I mean is, write a cross-platform serialport application with GUI is rather easy too.
But you have make an easy problem become complexed, as you get a platform special project file, and you want to compile it under another platform.
Cross-platform examples can be found from google too. such as
http://docs.qextserialport.googlecode.com/hg/1.2/examples-uartassistant.html[/quote]
Thanks after I used part of this lib's example for made the project but I had to add a timer and a customizable filter for the output data.