libnewton_utils.a and compiling

Did you throw the wrench into the cogwheel again?! Never mind, we'll help you fix it.

libnewton_utils.a and compiling

Postby Ockonal » 07 Mar 2010, 20:55

Hello, I'm trying to compile pseudoform under linux. I've uploaded all dependencies but building fails near physic. Here is build output:
deps/linux/newton/sdk/libnewton_utils.a: could not read symbols: File format not recognized
collect2: ld returned 1 exit status

Pseudoform is latest from git.
Newton is latest beta (2.17).
I didn't find any reference to libnewton_utils.a. As I undestand, it built with another version of newton-sdk instead of libNewton.a.
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby shua » 09 Mar 2010, 01:41

same version, it's just that in order to get libNewton.a to work, you would need to move some stuff to /usr/include and they wanted everything self-contained. It's probably because libnewton_utils.a was made on a different machine with different path names. You can try making the archive on your computer. I'll branch my repo and add the object files and a script to archive them to .a .

*edit* just made a branch named lnewton http://github.com/shua/pseudoform/tree/lnewton#, when you download it, just go to the deps/linux/newton dir and run lnewtonutils.sh and it should work, but until someone fixes the scripting I don't think you'll see anything except a grey screen when you run it; if you want a version that "works" try the one on the download page http://pseudoform.org/index.php?id=download
>+++++++++[<+++++++++>-]<++.>>++++++++++[<++++++++++>-]<++++.>>
Desktop OS: Linux Mint 8 "Helena" 64bit; CPU: AMD Athlon II; RAM: 4Gb; Graphics: NVidia GeForce 9500 GT 1Gb
Mobile(/ish) OS: archlinux 2009_8; CPU: intel pentium 4; RAM: 512Mb; Graphics: integrated ATI Radeon IGP 340M (Mobility U2)
Virtualbox: archlinux 2009_8, Windows 7 64bit Access to: Windows XP, sometimes vista, and maybe osx

+++++++++++[<+++++++++++>-]<----.>>++++++++++[<++++++++++>-]<---.
User avatar
shua
Intermediary Appearance
Intermediary Appearance
 
Posts: 130
Joined: 07 Aug 2009, 16:19
Location: America

Re: libnewton_utils.a and compiling

Postby Ockonal » 09 Mar 2010, 12:46

Thank you, shua.
Now I'm downloading that branch.
>if you want a version that "works" try the one on the download page http://pseudoform.org/index.php?id=download
It's pretty enough to see the full game but I'm interested in some things about portals. As you can see here: http://www.pseudoform.org/index.php?id=media
version: Pseudoform 0.1.*.* 'Fry'. There are pretty videos about translating lights throughout the portals and another stuff. In what version I can see realization of these videos?
And is it available for public viewing/downloading.
-----
I've downloaded files from your own repository. Ran that script and tried to rebuild. Here is log:
-------------- Build: Release_linux in Portalized ---------------
Linking executable: bin/linux/release/portalized
deps/linux/newton/sdk/libnewton_utils.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

:(
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby shua » 09 Mar 2010, 17:44

you can do light transfer through portals as well as all the other things in the movies of Fry with the one on the download page,
and as far as the linker errors, assuming you already ran build-all.sh, I would try running
Code: Select all
ranlib libnewton_utils.a
in the deps/linux/newton/sdk directory.

Also, what type of linux are you running again?
>+++++++++[<+++++++++>-]<++.>>++++++++++[<++++++++++>-]<++++.>>
Desktop OS: Linux Mint 8 "Helena" 64bit; CPU: AMD Athlon II; RAM: 4Gb; Graphics: NVidia GeForce 9500 GT 1Gb
Mobile(/ish) OS: archlinux 2009_8; CPU: intel pentium 4; RAM: 512Mb; Graphics: integrated ATI Radeon IGP 340M (Mobility U2)
Virtualbox: archlinux 2009_8, Windows 7 64bit Access to: Windows XP, sometimes vista, and maybe osx

+++++++++++[<+++++++++++>-]<----.>>++++++++++[<++++++++++>-]<---.
User avatar
shua
Intermediary Appearance
Intermediary Appearance
 
Posts: 130
Joined: 07 Aug 2009, 16:19
Location: America

Re: libnewton_utils.a and compiling

Postby Ockonal » 09 Mar 2010, 18:19

Okay, so 'Fry' isn't available for publics?
And running:
ranlib libnewton_utils.a

Does nothing :)

I'm using arch linux 32bit
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby Svenstaro » 09 Mar 2010, 18:56

Arch Linux will work fine. The .a that somehow ended up in the repo is made on an Arch Linux x86_64 machine. Simply rebuild the Newton utils into an *.a and you should be fine. Try gcc -c -o libnewton_utils.a path_to_newtonutils/**
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby Ockonal » 09 Mar 2010, 19:17

Svenstaro, sorry, I can't understand what to do exactly. I didn't work with gcc directly cause I worked with vc under windows :).
Where should I do that and with what files?
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby Svenstaro » 09 Mar 2010, 19:46

Get the most recent Newton SDK for your architecture. Extract it and go to newtonSDK\sdk\. Do g++ -c -o libnewton_utils.a d*/*. Substitute the new libnewton_utils.a you get with the one you are compiling against at the moment. You might have to also link the utils against newton itself (-lNewton -L.).
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby Ockonal » 09 Mar 2010, 19:51

[ockonal@wincode linux]$ cd newtonSDK/sdk/
[ockonal@wincode sdk]$ g++ -c -o libnewton_utils.a d*/*
g++: cannot specify -o with -c or -S with multiple files

What's wrong?
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby Svenstaro » 09 Mar 2010, 21:53

Ok, just try g++ -fPIC -o libnewton_utils.a d*/* and add the other linker flags if necessary.
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby shua » 09 Mar 2010, 22:04

Svenstaro wrote:Ok, just try g++ -fPIC -o libnewton_utils.a d*/* and add the other linker flags if necessary.


I'm pretty sure you also need CustomJointLibraryStdAfx.cpp/.h, NewtonCustomJoint.cpp/.h, and Newton.h for it to all compile correctly.
>+++++++++[<+++++++++>-]<++.>>++++++++++[<++++++++++>-]<++++.>>
Desktop OS: Linux Mint 8 "Helena" 64bit; CPU: AMD Athlon II; RAM: 4Gb; Graphics: NVidia GeForce 9500 GT 1Gb
Mobile(/ish) OS: archlinux 2009_8; CPU: intel pentium 4; RAM: 512Mb; Graphics: integrated ATI Radeon IGP 340M (Mobility U2)
Virtualbox: archlinux 2009_8, Windows 7 64bit Access to: Windows XP, sometimes vista, and maybe osx

+++++++++++[<+++++++++++>-]<----.>>++++++++++[<++++++++++>-]<---.
User avatar
shua
Intermediary Appearance
Intermediary Appearance
 
Posts: 130
Joined: 07 Aug 2009, 16:19
Location: America

Re: libnewton_utils.a and compiling

Postby shua » 10 Mar 2010, 00:49

you don't need Newton.h, but I've made up a makefile that, if you have the newtonSDK folder in your deps/linux folder, should compile all the source files into .o's and those into a new libnewton_utils.a.

Instructions:
delete all files in the deps/linux/newton folder (or move them somewhere else, it doesn't really matter)(and make sure you keep the sdk folder)
delete libnewton_utils.a in deps/linux/newton/sdk folder
extract my makefile to deps/linux/newton
open terminal in deps/linux/newton and type "make" w/out quotes of course.

and to answer your question about Fry, no, I don't think so, but Leela http://www.pseudoform.org/index.php?id=download looks and plays exactly the same as those Fry screenshots, its just more stable. Q:)
Attachments
Makefile.tar.gz
extract this to deps/linux/newton
(610 Bytes) Downloaded 5 times
>+++++++++[<+++++++++>-]<++.>>++++++++++[<++++++++++>-]<++++.>>
Desktop OS: Linux Mint 8 "Helena" 64bit; CPU: AMD Athlon II; RAM: 4Gb; Graphics: NVidia GeForce 9500 GT 1Gb
Mobile(/ish) OS: archlinux 2009_8; CPU: intel pentium 4; RAM: 512Mb; Graphics: integrated ATI Radeon IGP 340M (Mobility U2)
Virtualbox: archlinux 2009_8, Windows 7 64bit Access to: Windows XP, sometimes vista, and maybe osx

+++++++++++[<+++++++++++>-]<----.>>++++++++++[<++++++++++>-]<---.
User avatar
shua
Intermediary Appearance
Intermediary Appearance
 
Posts: 130
Joined: 07 Aug 2009, 16:19
Location: America

Re: libnewton_utils.a and compiling

Postby Ockonal » 10 Mar 2010, 12:57

shua, thanks for helping. Here is log of my doings: http://dpaste.com/170379/
What is wrong there?
----------------
Svenstaro, and what can u say about Fry?
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby shua » 10 Mar 2010, 19:37

Haha, my bad, I thought you needed Newton.h, here you are.

just remove those old object files and replace the old makefile with the new one. Should work.
Attachments
Makefile.tar.gz
new one
(611 Bytes) Downloaded 6 times
>+++++++++[<+++++++++>-]<++.>>++++++++++[<++++++++++>-]<++++.>>
Desktop OS: Linux Mint 8 "Helena" 64bit; CPU: AMD Athlon II; RAM: 4Gb; Graphics: NVidia GeForce 9500 GT 1Gb
Mobile(/ish) OS: archlinux 2009_8; CPU: intel pentium 4; RAM: 512Mb; Graphics: integrated ATI Radeon IGP 340M (Mobility U2)
Virtualbox: archlinux 2009_8, Windows 7 64bit Access to: Windows XP, sometimes vista, and maybe osx

+++++++++++[<+++++++++++>-]<----.>>++++++++++[<++++++++++>-]<---.
User avatar
shua
Intermediary Appearance
Intermediary Appearance
 
Posts: 130
Joined: 07 Aug 2009, 16:19
Location: America

Re: libnewton_utils.a and compiling

Postby Svenstaro » 10 Mar 2010, 19:55

Ockonal, what do you want to know about Fry? It's the current "stable" release and should work just out of the box. If you want to help in development you should use the git clone though.
shua, thanks for the help.
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby Ockonal » 11 Mar 2010, 05:27

Svenstaro, Okay, I understand. Yeah, I wanna help this project. Now I'm reviewing all source to know the structure better.
shua, thank you for helping too. I'm going to test it soon. The I'll post here.
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby Svenstaro » 11 Mar 2010, 14:50

Woah, sorry for the BS there. Fry is (well, was) the fully experimental Portalized 1 engine that is now totally deprecated. The next one would be Bender after Leela.
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby Phosfor » 11 Mar 2010, 18:23

Lol Futurama-names^^

I love Futurama and Simpsons^^
OS: Windows Vista 32bit / Ubuntu 64bit;
CPU: Intel Core 2Duo: 2.66 Ghz;
RAM: 4GB;
Graphics card: Nvidia Geforce 8600GS 256MB
User avatar
Phosfor
Intermediary Appearance
Intermediary Appearance
 
Posts: 141
Joined: 16 Aug 2009, 12:57
Location: Germany

Re: libnewton_utils.a and compiling

Postby Ockonal » 11 Mar 2010, 19:36

shua, totally killer :) Now everything compiles fine!
Going to make up another dependencies :)
Svenstaro, okay. I hope, 'Bender' will come. I'm going to post any troubles first time. But why did I ask. In 'Fry' videos there is new skin interface and in last stable release (which available in torrent) there is older one.
---
Now I can start application using need sh-script. Everyting goes right, but after some sec application closes. Here is log: http://pastebin.com/YEud3u8x
Is there something wrong?
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby shua » 12 Mar 2010, 00:31

Coolz that was my first makefile ever, I'm glad it worked. It was a little hacky on the .cpp to .o but I couldn't get the .cpp.o: part to work, and if it works it works. I'll probably merge it with my main.
>+++++++++[<+++++++++>-]<++.>>++++++++++[<++++++++++>-]<++++.>>
Desktop OS: Linux Mint 8 "Helena" 64bit; CPU: AMD Athlon II; RAM: 4Gb; Graphics: NVidia GeForce 9500 GT 1Gb
Mobile(/ish) OS: archlinux 2009_8; CPU: intel pentium 4; RAM: 512Mb; Graphics: integrated ATI Radeon IGP 340M (Mobility U2)
Virtualbox: archlinux 2009_8, Windows 7 64bit Access to: Windows XP, sometimes vista, and maybe osx

+++++++++++[<+++++++++++>-]<----.>>++++++++++[<++++++++++>-]<---.
User avatar
shua
Intermediary Appearance
Intermediary Appearance
 
Posts: 130
Joined: 07 Aug 2009, 16:19
Location: America

Re: libnewton_utils.a and compiling

Postby Ockonal » 12 Mar 2010, 16:26

Svenstaro, if I'll write back script system for the latest (git) version, will it work?
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby Svenstaro » 13 Mar 2010, 03:59

Ockonal, what do you mean? If you are going to request a pull request, I'll happily pull from you on github.
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby Ockonal » 13 Mar 2010, 10:16

Svenstaro, yeah, I mean that i'm going to write back lua script to the engine. I need in this for understanding the structure. Then I'll be able to help with chainscript. So the question is: did you start to rewrite only script-engine in git-version of pseudoform? WIll it work if I'll write back lua?
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Re: libnewton_utils.a and compiling

Postby Svenstaro » 13 Mar 2010, 11:40

Why not just use the Leela package and diff the sources and scripts against the current git ones? Leela still used Lua to do its thing. That is 100% what you want assuming I got you right. You do not actually need to "write back" the Lua stuff. We still have it ;).
OS: Windows 7 64bit / Arch Linux x86_64; CPU: Intel Core Quad 3.2 Ghz; RAM: 8GB; Graphics card: Nvidia 8800 GTX 768MB
Portalized Steam Community Group
User avatar
Svenstaro
Developer
Developer
 
Posts: 820
Joined: 28 Apr 2008, 22:34
Location: Germany

Re: libnewton_utils.a and compiling

Postby Ockonal » 13 Mar 2010, 11:50

Why not just use the Leela package and diff the sources

I'm new to control systems. I know only how to create/commit and some other basic stuff :)
But I'll try to do something by my hands.
Arch linux 32bit/Win7, nVidia GeForce 220GT 1gb, ram 4gb, AMD Athlon XP 5400+
User avatar
Ockonal
Transient Appearance
Transient Appearance
 
Posts: 57
Joined: 27 Jan 2010, 12:27
Location: Ukraine

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron