can't compile any version of open9x
- 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
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...
any help would be appreciated...
- 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
I have the same issue!
For now I have just edited that script and added an exit to the first line!
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- 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
does it still compile normally?
- 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
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 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
You can try to remove /usr/bin/env python
and substitute with just: python
and substitute with just: python
- 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
k substituted the usr/.. line with just python and now it can't find pyqt at all
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
You have to install pyQt4 !
Bertrand.
Bertrand.
- 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
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.
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
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.
Bertrand.
- 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
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
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
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
Be careful about which version of python and pyQt you install, they do have to be in line!
Bertrand.
Bertrand.
- 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
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
-
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- 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
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:
but i'm sitting here looking at the folder with pyqt in it
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
- 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
Maybe try all 32 bit?
Sent from my iPhone using Tapatalk
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- 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
And where did you download pyqt from?
Sent from my iPhone using Tapatalk
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- 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
the qt project page i believe lemme double check
nope the riverbank computing page is where i got it from
nope the riverbank computing page is where i got it from
- 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
ok i just tried installing all 32bit stuff and now i get error code 5: Access Denied when it tried to create the subprocess
-
- 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
Run the shell as administrator...
Windows7 64 bit is somehow paranoid even with users belonging to administrators group.
Windows7 64 bit is somehow paranoid even with users belonging to administrators group.
- 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
k tried that and still no go
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
Would you copy / paste the whole error here?
Thanks,
Bertrand.
Thanks,
Bertrand.
- 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
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
- 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
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:
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
- 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
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!
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- 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
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
- 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
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
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
What is the error?
Bertrand.
Bertrand.
- 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
stamp.cpp:35:26: fatal error: stamp-open9x.h: No such file or directory
compilation terminated.
Makefile:890: recipe for target `open9x.elf' failed
compilation terminated.
Makefile:890: recipe for target `open9x.elf' failed
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
It should be automatic, given our Makefile, but in case it helps would you launch
Bertrand.
Code: Select all
make stamp_header
- 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
oh thats new, least i think it is
-
- 9x Developer
- Posts: 2764
- Joined: Fri Dec 30, 2011 11:11 pm
- Country: -
Re: can't compile any version of open9x
If you consider th9x as new, then yes it is
Bertrand.
Bertrand.