|
Post by alessandro on Feb 6, 2023 22:21:17 GMT
Hi, I'm trying to use qb64. I started with an Inform project with no success (it seems it can't find the falcon library).
So I tried the simplest program ..... print "Hello" The compilation failed with these indications:
In file included from parts/core/src.c:2, from common.h:35, from libqb.cpp:1: parts/core/glew/include/GL/glew.h:294:10: fatal error: ""/inttypes.h: Invalid argument 294 | #include <inttypes.h> | ^~~~~~~~~~~~ compilation terminated. In file included from parts/core/src.c:2, from common.h:35, from qbx.cpp:1: parts/core/glew/include/GL/glew.h:294:10: fatal error: ""/inttypes.h: Invalid argument 294 | #include <inttypes.h> | ^~~~~~~~~~~~ compilation terminated.
I just downloaded and unzipped the qb64 package. Did I miss something in the qb64 installation ? Thanks
|
|
|
Post by bplus on Feb 6, 2023 23:47:36 GMT
What OS? If NOT Windows you will need to run a setup batch file I think.
Regardless of OS, did you start a whole new folder? You must.
|
|
|
Post by alessandro on Feb 7, 2023 7:39:29 GMT
Hi, I'm using It on Windows 10. I started a new folder and from there I launch a batch file to clear environment variables:
set path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Documenti\Portable\qb64 set C_INCLUDE_PATH="" set CPLUS_INCLUDE_PATH=""
So, I enter in the qb64 folder and first I launch the batch file.
Then I launch the qb64 ide or I use:
C:\Documenti\Portable\qb64>qb64 -c ..\test\hello.bas -o outputname.exe
|
|
|
Post by bplus on Feb 7, 2023 18:00:58 GMT
eee... you are giving me the heebee-geebees! Why don't you just extract QB64 to desktop, downloads or documents where you aren't a nuisance to Windows ways of taking over your computer. Just extract into new folder and run QB64.exe out of it. Setup a shortcut to the QB64.exe and put it on your desktop or whatever folder you work from, add it to task bar and/or startup menu, easy-peasy! You can put in your short cut the startup folder for your QB64 files in Properties Window for QB64.exe Shortcut. Also First thing to do in IDE is Change Run Menu > bullet "Output EXE to Source Folder" that way your EXEs are right where you write the .bas source where it is intuitive to find them and not cluttering up your QB64 Folder. Also for God or Goodness sake, keep your .bas files outside the QB64.exe folder, that way at next update of QB64.exe you just extract to another new Folder and still have access to all your old .bas files. It makes it very easy to backup your work to another disk (spoken by a guy who lost his hard drive 2-3 times last summer).
|
|
|
Post by alessandro on Feb 7, 2023 20:57:43 GMT
Straight setup simply didn't work for me. I first tried Desktop then the folder you can see above and now C:\QB64. Maybe because I already have a MinGW compiler chain and environement variables C_INCLUDE_PATH and CPLUS_INCLUDE_PATH are already set. That's why I tried to unset C_INCLUDE_PATH and CPLUS_INCLUDE_PATH. By the way, setting CPLUS_INCLUDE_PATH="QB64 installation folder"/internal/c/c_compiler/x86_64-w64-mingw32/include
makes the compilation phase to work now. But the linking phase is still failing because of missing references to OpenGL (glut) functions. compilelog.txt (14.13 KB)
|
|
|
Post by bplus on Feb 7, 2023 23:14:48 GMT
Sorry, really don't understand why you are messing around at root C:\ Windows owns that anymore.
Just try extracting the zip to either your desktop. (what I do anymore) or Documents (yuck!) or Downloads(more Yuck because Windows chimes in with security check every time you run an exe.
Then with no further ado, run QB64.exe and try your Hello World. The first run with QB64.exe takes really long but it gets there soon enough after that its faster.
If this does not work all your messing with Environment is messing with QB64 access to itself.
Sorry if I am repeating, you might have a much more complicated something set up way out of my pay range.
|
|
|
Post by alessandro on Feb 8, 2023 9:08:34 GMT
Thanks !!! I really appreciate your help. Don't worry, I will try to fix the problem. I will try on a virtual machine and for sure I will fix it. Alessandro
|
|
|
Post by bplus on Feb 8, 2023 15:39:50 GMT
I hope so! this forum could use more activity. Even I tire of my monologues, sometimes
|
|
dualbrain
Junior Member
The only bug free code is code that is no longer used.
Posts: 51
|
Post by dualbrain on Feb 21, 2023 2:52:01 GMT
I haven't worked with this specifically, so take my advice for what it is worth. Did you verify that faclon.h is in the QB64 folder? (I think any "includes" like this need to be located there.)
|
|