Cross-compilation support --??

General FreeBASIC programming questions.
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Cross-compilation support --??

Postby agamemnus » Dec 17, 2011 22:20

error 74: Invalid command-line option, "-target"


I want to use the "-target" option of the compiler, but apparently it doesn't work because the latest downloadable package was not built with cross-compilation support.

Can anyone compile for me a Windows version with cross-compilation support?

Also, I suggest that this be the standard for new packages...
fxm
Posts: 9178
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Postby fxm » Dec 17, 2011 22:58

IMHO, I think this problem is solved since the Aug 14, 2011 (on week after the first release output).
See this post and the followings:
http://www.freebasic.net/forum/viewtopi ... 866#161866

On my PC, at least the present 'Windows 0.23.0 Zip Archive' works.
(file fbc.exe : Aug 14, 2011)
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 18, 2011 5:11

Oh, didn't know. Thanks, I'll re-download.
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 18, 2011 6:26

It doesn't work.

I downloaded the latest SVN, no go.

Trying to compile Linux w/Windows.
fxm
Posts: 9178
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Postby fxm » Dec 18, 2011 6:51

agamemnus wrote:It doesn't work.

I downloaded the latest SVN, no go.

Trying to compile Linux w/Windows.

http://www.freebasic.net/forum/viewtopi ... 755#150755
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 18, 2011 7:10

=|

N3trunn3r wrote:Well i guess i have to set up a Virtual Machine.
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 18, 2011 17:02

Edit:

I found this--
http://www.ubuntu.com/download/ubuntu/windows-installer

It's not what I thought.

For some reason I thought it would be in a VM.

Anyone know an easy way to create an Ubuntu VM on Windows 7?

Further: (getting a bit off topic): I don't know how to install Freebasic properly and run the compiler on a bas file. :| Any help plz?
joseywales72
Posts: 206
Joined: Aug 27, 2005 2:02
Location: Istanbul, Turkey

Postby joseywales72 » Dec 18, 2011 17:59

Virtualbox is a great VM program. It's opensource, very fast and flexible. You can easily install Ubuntu (or any other Linux, BSD even MacOSX) on Windows 7 with it. I use it on an exactly opposite way. All my PCs are on ArchLinux, but I have Windows XP VMs running on Virtualbox.
Hope this helps.
Anil
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 18, 2011 18:08

I see...

Can you tell me how to get the Freebasic compiler to run on a Linux system?

I don't even need any libraries at the moment except the mysql library, either.
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Postby TJF » Dec 18, 2011 19:35

Installation on Ubuntu:

Download the installer.

Make it executalble by opening a console window and changing directory to the installers path. Then type
    chmod a+x ./FreeBASIC-0.23.0-linux.run
(Or by right-clicking on the installer file in a file-browser (ie nautilus) and in the pop-up choose the Properties menu (at the bottom). In the dialog choose Permissions tab and mark the executable button. Close the dialog.)

Then you'll need admin privileges to perform the installation. In a console window at the installers path type
    sudo ./FreeBASIC-0.23.0-linux.run install
Then try the command
    fbc -version
Depending on your distro you may get some error messages about missing libraries. Install the dev-packages with apt-get command. Ie if the message is about missing 'ncurses'-library, type
    sudo apt-get install libncurses-dev
To install Geany as IDE type
    sudo apt-get install geany
and find it in the desktop menu in the Development submenu.

(Hopefully the English expressions are correct, I'm working on a German system.)
marcov
Posts: 2770
Joined: Jun 16, 2005 9:45
Location: Eindhoven, NL
Contact:

Postby marcov » Dec 18, 2011 21:29

agamemnus wrote:Edit:
Anyone know an easy way to create an Ubuntu VM on Windows 7?


Just dl virtualbox and a Ubuntu DVD ISO, create a new, empty VM with the ISO in the virtual CD rom, boot, install.

Don't be too greedy with diskspace. Being greedy degrades performance (sparse files are ok though)

Btw, the reason why I replied:

- don't think crosscompiling means you don't need to get an target installation.

You still need it. Crosscompiling is more a solution to not have to boot the VM everytime, or to generate nightly snapshots once you found a working configuration.

It is usually not doable to just crosscompile your app to a platform you don't have at all, and have no experience with.

Just installing the "other" OS, and taking your first steps there is easier. Trust me.
Landeel
Posts: 695
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Postby Landeel » Dec 18, 2011 22:42

Just installing the "other" OS, and taking your first steps there is easier. Trust me.

I totally agree. Sometimes programs will behave slightly different in different platforms, in very unexpected ways.

Many times my games would work fine on wine, but not on windows.
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 19, 2011 4:52

Marcov, the other OS is on a server (this one...) I don't quite have full access to (not enough to compile). . . but it's all theoretical now, I guess. I'll try TJF's instructions...
joseywales72
Posts: 206
Joined: Aug 27, 2005 2:02
Location: Istanbul, Turkey

Postby joseywales72 » Dec 19, 2011 14:46

Just FYI, Agamemnus, do not try to install a 64bit Linux if you do not want to struggle with library incompatibilities with Freebasic.
Anil
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Postby agamemnus » Dec 19, 2011 17:09

Hmm... well, thanks for the head's up... but....the server I will eventually use my code on won't be my own and it will be 64-bit...

Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests