can't compile any version of open9x

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

can't compile any version of open9x

Post by Mechcondrid »

ok i don't know what i did if anything but now my windows machines won't compile open 9x it says it get error 1 on img2lbm python script and i have no idea how to fix it i've tried updating pyqt4, cygwin, even downloading the QtSDK and i can't get it to work.
any help would be appreciated...

User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

I have the same issue!

For now I have just edited that script and added an exit to the first line!
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

does it still compile normally?
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

Does for me! All that script does is convert the splash screen image to a format the firmware can use.
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: can't compile any version of open9x

Post by Romolo »

You can try to remove /usr/bin/env python
and substitute with just: python

User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

k substituted the usr/.. line with just python and now it can't find pyqt at all
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

You have to install pyQt4 !
Bertrand.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

I did.. but then just got more errors :-)

PyQt always causes me problems! No big issue.... for now I just bypassed the issue as did not have time to sit down and work out the problem.
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

Don't hesitate to paste the errors then! By the way, I always commit the C-generated code for these images, so this step is not mandatory (but sometimes is required if the source image has a modification date >= destination c-code). The easier step to bypass this step is just to touch (force to update the modification date) the c-code file.
Bertrand.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

ok i know for a fact i have pyqt4 installed but that one script just refuses to work right!
i've tried python 3.2 and 2.6-2.8 and all come with the error 1 code on that script when it tried to import qt and qtgui from pyqt module's imports, and yes i've tried placing the .dll file for qtcore and qtgui in every possible place i can think of that would matter
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

Be careful about which version of python and pyQt you install, they do have to be in line!
Bertrand.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

My typical error is this:

-
C:\Users\Rob Thomson\Desktop\open9x\trunk\util>img2lbm.py
Traceback (most recent call last):
File "C:\Users\Rob Thomson\Desktop\open9x\trunk\util\img2lbm.py",
module>
from PyQt4 import Qt, QtGui
ImportError: DLL load failed: %1 is not a valid Win32 application.
--

Now.. in a moment of inspiration this morning I clicked what the issue has been for me!

64bit/32bit miss matches.

So.. I uninstalled the PyQT4 (64bit version I had download)

And re-installed using the 32bit version.

Problem solved!

The point being...

The snake is a little sensitive about mixing 32bit and 64bit libraries. Make sure they are either all 64bit, or all 32bit.

Sadly.. the setup programs are not clever enough to detect you are making this simple error :-)

Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

well as far as i can tell all my copies of pyqt and python are 64-bit (i try to get everything 64-bit) and my error is a little different than rob's my exact error is as follows:

Code: Select all

Convert 9x splash from xbm to lbm:
python ../util/img2lbm.py splash_9x.xbm splash_9x.lbm img
Traceback (most recent call last):
  File "../util/img2lbm.py", line 4, in <module>
    from PyQt4 import Qt, QtGui
ImportError: No module named PyQt4
make: *** [splash_9x.lbm] Error 1
but i'm sitting here looking at the folder with pyqt in it
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

Maybe try all 32 bit?


Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

And where did you download pyqt from?


Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

the qt project page i believe lemme double check

nope the riverbank computing page is where i got it from
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

ok i just tried installing all 32bit stuff and now i get error code 5: Access Denied when it tried to create the subprocess
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: can't compile any version of open9x

Post by Romolo »

Run the shell as administrator...
Windows7 64 bit is somehow paranoid even with users belonging to administrators group.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

k tried that and still no go
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

Would you copy / paste the whole error here?
Thanks,
Bertrand.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

ok sorry bout takin so long been sick the last week or so, anyway heres the full error readout

Code: Select all

-------- begin --------
arm-none-eabi-gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Generate Version-stamp:
//Automatically generated file (Makefile) - do not edit
#define DATE_STR "2012-10-14"
#define TIME_STR "23:35:50"
#define VERS_STR "2.00-FWSSH"
#define SVN_STR  "open9x-r1479M"

Convert 9x splash from xbm to lbm:
python ../util/img2lbm.py splash_9x.xbm splash_9x.lbm img
process_begin: CreateProcess(C:\cygwin\bin\python, python ../util/img2lbm.py splash_9x.xbm splash_9x.lbm img, ...) failed.
make (e=5): Access is denied.
make: *** [splash_9x.lbm] Error 5
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

ok i fixed the access denied error now im getting the stupid qt error again, the error 5 was from a conflicting version of the make program.
but anyway the error for the qt import is as follows:

Code: Select all

Convert font from xbm to lbm:
python ../util/img2lbm.py font_dblsize.xbm font_dblsize.lbm dblsize
Traceback (most recent call last):
  File "../util/img2lbm.py", line 4, in <module>
    from PyQt4 import Qt, QtGui
ImportError: cannot import name Qt
Makefile:777: recipe for target `font_dblsize.lbm' failed
make: *** [font_dblsize.lbm] Error 1
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: can't compile any version of open9x

Post by Rob Thomson »

I am curious ... You seem to be using the Cygwin install of python? (Unix emulated version)


Is it even possible for this version to get the pyqt libraries linked to it?

I would suggest getting python for windows installed, and then the appropriated pyqt libraries installed too!
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

actually i have been using cygwin python and pyqt4 since i started with the 9x custom firmwares it makes compiling for multiple targets quite easy this issue with the error 1 code is only very recent
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

ok got rid of the issue with the img py script but now it's saying the make program can't find stamp-open9x.h and can't compile the elf
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

What is the error?
Bertrand.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

stamp.cpp:35:26: fatal error: stamp-open9x.h: No such file or directory
compilation terminated.
Makefile:890: recipe for target `open9x.elf' failed
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

It should be automatic, given our Makefile, but in case it helps would you launch

Code: Select all

make stamp_header
Bertrand.
User avatar
Mechcondrid
Posts: 222
Joined: Fri Dec 30, 2011 3:53 am
Country: -
Location: ledyard, connecticut, United States
Contact:

Re: can't compile any version of open9x

Post by Mechcondrid »

oh thats new, least i think it is
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: can't compile any version of open9x

Post by bertrand35 »

If you consider th9x as new, then yes it is ;)
Bertrand.

Post Reply

Return to “openTx”