• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 74 75 76 77 78 ... 116 Next »

[Linux Build] "Must have Cg toolkit...." after install nvidia-cg-toolkit
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Linux Build] "Must have Cg toolkit...." after install nvidia-cg-toolkit
09-04-2010, 03:08 PM
#1
s8box Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Sep 2010
Sad 
Hi, I'm having some issues to compile the last release in Linux.

I downloaded all dependencies(actually I copied the apt-get command and pasted it in shell...) and tried to compile with:
$ scons verbose=yes flavor=release
< output here http://pastebin.com/vUdUt5Cz >

Ok, according to building tool, I don't have nvidia-cg-toolkit installed, but apt-get discord ..
$ sudo apt-get install nvidia-cg-toolkit
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
nvidia-cg-toolkit já é a versão mais nova.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 1081 não atualizados.

This output is some thinking like "nvidia-cg-toolkit is the newer version..."

I don't know where this build system search the libs, but in /lib I don't have any lib that is likely to be "libcg" ...


$ ls /usr/lib/libnvidia-c*
/usr/lib/libnvidia-cfg.so /usr/lib/libnvidia-compiler.so
/usr/lib/libnvidia-cfg.so.1 /usr/lib/libnvidia-compiler.so.1
/usr/lib/libnvidia-cfg.so.195.36.24 /usr/lib/libnvidia-compiler.so.195.36.24

$ ls /usr/lib/libcg*
/usr/lib/libcgraph.so /usr/lib/libcgraph.so.4 /usr/lib/libcgraph.so.4.0.0


So, why this is happing?


Thks
Find
Reply
09-04-2010, 07:53 PM
#2
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
The Cg detection doesn't seem to work properly...
As a workaround, replace these lines
Code:
if not conf.CheckPKG('Cg') and sys.platform == 'linux2':
        print "Must have Cg toolkit from NVidia to build"
        Exit(1)
    if not conf.CheckPKG('CgGL') and sys.platform == 'linux2':
        print "Must have CgGL to build"
        Exit(1)
with
Code:
#    if not conf.CheckPKG('Cg') and sys.platform == 'linux2':
#        print "Must have Cg toolkit from NVidia to build"
#        Exit(1)
#    if not conf.CheckPKG('CgGL') and sys.platform == 'linux2':
#        print "Must have CgGL to build"
#        Exit(1)
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
09-05-2010, 03:20 AM
#3
s8box Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Sep 2010
(09-04-2010, 07:53 PM)NeoBrain Wrote: The Cg detection doesn't seem to work properly...
As a workaround, replace these lines
Code:
if not conf.CheckPKG('Cg') and sys.platform == 'linux2':
        print "Must have Cg toolkit from NVidia to build"
        Exit(1)
    if not conf.CheckPKG('CgGL') and sys.platform == 'linux2':
        print "Must have CgGL to build"
        Exit(1)
with
Code:
#    if not conf.CheckPKG('Cg') and sys.platform == 'linux2':
#        print "Must have Cg toolkit from NVidia to build"
#        Exit(1)
#    if not conf.CheckPKG('CgGL') and sys.platform == 'linux2':
#        print "Must have CgGL to build"
#        Exit(1)

Yeah, I already made this (comment only the exits) ... *but* I had many compile errors, I supposed that it occurs in consequence of build system cant locate the right place of these libs.

Start from:
Source/Core/DolphinWX/Src/Globals.h:248:19: error: wx/wx.h: Arquivo ou diretório não encontrado
Source/Core/DolphinWX/Src/Globals.h:249:24: error: wx/toolbar.h: Arquivo ou diretório não encontrado
Source/Core/DolphinWX/Src/Globals.h:250:20: error: wx/log.h: Arquivo ou diretório não encontrado

(Arquivo ou diretório não encontrado== file not found)

Alright, so I force the include of path Externals/wxWidgets/include/ (-I Externals/wxWidgets/include/ )

And... more than all my bash buffer of errors lines... oO

Like:
In file included from Externals/wxWidgets/include/wx/memory.h:16,
from Externals/wxWidgets/include/wx/object.h:20,
from Externals/wxWidgets/include/wx/image.h:17,
from Source/Core/DolphinWX/Src/ISOFile.h:25,
from Source/Core/DolphinWX/Src/BootManager.cpp:41:
Externals/wxWidgets/include/wx/string.h:164:4: error: #error "Please define string case-insensitive compare for your OS/compiler"
In file included from Externals/wxWidgets/include/wx/variant.h:26,
from Externals/wxWidgets/include/wx/image.h:73,
from Source/Core/DolphinWX/Src/ISOFile.h:25,
from Source/Core/DolphinWX/Src/BootManager.cpp:41:

The g++ instructions were:

g++ -o Build/Linux-i686-release/Source/Core/DolphinWX/Src/BootManager.o -c -fvisibility-inlines-hidden -Wno-deprecated -O3 -fomit-frame-pointer -fno-exceptions -fno-strict-aliasing -fvisibility=hidden -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wpacked -Wpointer-arith -Wshadow -Wwrite-strings -Wno-array-bounds -Wno-unused-result -fPIC -msse2 -pthread -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -D_REENTRANT -I. -ISource/PluginSpecs -I/usr/include/GL -I/usr/local/include/SDL -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -I/usr/include/alsa -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -IExternals/Bochs_disasm -IExternals/Lua -IExternals/WiiUse/Src -IExternals/LZO -IExternals/SOIL -IExternals/SFML/include -IExternals/zlib -ISource/Core/AudioCommon/Src -IBuild/Linux-i686-release/Source/Core/DolphinWX/Src -ISource/Core/DolphinWX/Src -ISource/Core/Common/Src -ISource/Core/Core/Src -ISource/Core/DSPCore/Src -ISource/Core/DebuggerUICommon/Src -ISource/Core/DebuggerWX/Src -ISource/Core/DiscIO/Src -ISource/Core/DolphinWX/Src -ISource/Core/InputCommon/Src -ISource/Core/InputUICommon/Src -ISource/Core/VideoCommon/Src Source/Core/DolphinWX/Src/BootManager.cpp -IExternals/wxWidgets/include/



Thks



Find
Reply
09-06-2010, 01:55 PM (This post was last modified: 09-06-2010, 02:29 PM by s8box.)
#4
s8box Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Sep 2010
Cmon... any one?

Sad

Before change g++ build parameters:
http://pastebin.com/E596t75n

After( adding -IExternals/wxWidgets/include/):
http://pastebin.com/v1hndJVA

As I said, I have installed all libs and others stuffs... I'm using Debins squezee .
Find
Reply
09-06-2010, 08:07 PM
#5
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
Well, for some reason it can't find the wx headers. If you hadn't said that you've installed all deps I would've suggested installing the development packages of wxWidgets.

Anyway, try to locate e.g. wx/wx.h. Should be somewhere inside /usr/include, or maybe /use/include/wx-2.8/ or something and tell me the path then.
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
09-07-2010, 02:45 AM
#6
s8box Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Sep 2010
(09-06-2010, 08:07 PM)NeoBrain Wrote: Well, for some reason it can't find the wx headers. If you hadn't said that you've installed all deps I would've suggested installing the development packages of wxWidgets.

Anyway, try to locate e.g. wx/wx.h. Should be somewhere inside /usr/include, or maybe /use/include/wx-2.8/ or something and tell me the path then.

I had installed all deps, including dev pck.. but I include the wx.wx.h that is in ./Externals/wxWidgets/include/ from the svn repository. When including it, the 2º out is displayed.

Later I will try to include the wx from some where of my system.

Thks

Find
Reply
09-07-2010, 04:38 AM (This post was last modified: 09-07-2010, 04:40 AM by s8box.)
#7
s8box Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Sep 2010
Alright...

I launched apt-get to confirm that I have all wx dependencies:
Code:
sudo apt-get install  wx2.8-headers libwxbase2.8-0  libwxbase2.8-dev libwxgtk2.8-0  libwxgtk2.8-dev libgtk2.0-dev libsdl1.2-dev
Lendo listas de pacotes... Pronto
Construindo árvore de dependências      
Lendo informação de estado... Pronto
wx2.8-headers já é a versão mais nova.
libwxbase2.8-0 já é a versão mais nova.
libwxbase2.8-0 configurado para instalar manualmente.
libwxbase2.8-dev já é a versão mais nova.
libwxgtk2.8-0 já é a versão mais nova.
libwxgtk2.8-0 configurado para instalar manualmente.
libwxgtk2.8-dev já é a versão mais nova.
libgtk2.0-dev já é a versão mais nova.
libsdl1.2-dev já é a versão mais nova.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 1009 não atualizados.

Where "já é a versão mais nova." == "it's the newer version".

As in the g++ compile instructions, do you see that wx was included:
Code:
g++ -o Build/Linux-i686-release/Source/Core/DolphinWX/Src/BootManager.o -c -fvisibility-inlines-hidden -Wno-deprecated -O2 -fomit-frame-pointer -fno-exceptions -fno-strict-aliasing -fvisibility=hidden -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wpacked -Wpointer-arith -Wshadow -Wwrite-strings -Wno-array-bounds -Wno-unused-result -fPIC -msse2 -pthread -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -D_REENTRANT -I. -ISource/PluginSpecs -I/usr/include/GL -I/usr/local/include/SDL -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8  -I/usr/include/alsa -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -IExternals/Bochs_disasm -IExternals/Lua -IExternals/WiiUse/Src -IExternals/LZO -IExternals/SOIL -IExternals/SFML/include -IExternals/zlib -ISource/Core/AudioCommon/Src -IBuild/Linux-i686-release/Source/Core/DolphinWX/Src -ISource/Core/DolphinWX/Src -ISource/Core/Common/Src -ISource/Core/Core/Src -ISource/Core/DSPCore/Src -ISource/Core/DebuggerUICommon/Src -ISource/Core/DebuggerWX/Src -ISource/Core/DiscIO/Src -ISource/Core/DolphinWX/Src -ISource/Core/InputCommon/Src -ISource/Core/InputUICommon/Src -ISource/Core/VideoCommon/Src Source/Core/DolphinWX/Src/BootManager.cpp -I/usr/include/wx-2.8

So, I have all dependencies, I'm including it in compiler... but it result in many lines of errors... include codes out of ISO C++ ... Sad

Here is all files in /usr/include/wx-2.8:
http://pastebin.com/n6FpucB9

So... how do you guys compile that?! Huh
Find
Reply
09-08-2010, 02:03 PM
#8
s8box Offline
Junior Member
**
Posts: 8
Threads: 1
Joined: Sep 2010
Ok, last revision 6190, it compile well =]

Great Tongue
Find
Reply
09-08-2010, 04:37 PM
#9
jimith67
Unregistered
 
Part 1:The introduction
In the multimedia field, mts is a new high-definition video formats. Most of the recording video by sony high-definition DV is the mts format.The video coding usually is H264,The audio coding is AC-3,The resolution can up to full hd standard about 1920*1080,which means high quality.So we can see that mts is a product to meet the high definition era.

What are MTS files?
MTS Files is the AVCHD video file format, created by newer digital video cameras, such as Sony, Panasonic ,cannon and other HD camcorders. It bases on the MPEG-2 transport stream and supports 720p and 1080i HD video formats, can only be 2 GB in length

What are M2TS files?
M2TS files are used primarily with Sony hardware. Camcorders make use of M2TS in the form of AVCHD, a recording format made specifically for camcorders. Some camcorder models from Canon also use M2TS files. These files are also present on Blu-ray disc compilations, therefore they are capable of storing quite a large amount of information and data tracks.

What are TS files?
Transport stream is a standard format for transmission and storage of audio, video.and date.Transport Stream is specified in MPEG-2Part 1, Systems (formally known as ISO/IEC standard 13818-1 or ITU-T Rec. H.222.0)

In order to solve many puzzled from digital camcorders, I want to show three professional tools to you. If you want to convert MTS, TS, M2TS video to AVI, WMV, MP4, 3GP, 3G2, MOV, FLV, MKV, SWF, MPG, etc. You can read this article.

The three professional tools that I want to introduce are Tipard MTS Converter, Tipard TS Converter, Tipard M2TS Converter, which can help you convert AVCHD MTS to AVI, MPEG and MP4 etc, convert HD video to general format video, convert between all popular formats videos, Output HD videos for Sony PS3, Xbox 360, iRiver and suchlike PMPS.

Part 2:The Guide
1. How to convert .mts files with powerful MTS Converter?
2. How to convert .m2ts files with best M2TS Converter?
3. How to convert . ts files using this professional TS Converter?

Let's take to convert mts for example.(The steps to handle TS Converter and M2TS converter is similar to the below)

How to convert .mts files with best MTS Converter?

Step 0: Install and run Tipard MTS Converter.
Step 1: Click "Add File" button, it would pop up one window, and select the file you want to convert on this window.

[Image: addfiles.jpg]
Step 2: Choose output format
Select output format you want from the “Profile” drop down list.
Note: Click "Settings"button, you can set your video and audio parameters, click "ok" after seted video and audio parameters.
Step 3: Click the [Image: convert.jpg] button to start your conversion.
Just wait a moment, then your conversion will be finished.

Some powerful functions such as "Merge", "Trim", "Effect", "Snapshot", "Crop" are all available.
[Image: edit.jpg]

Tips
This MTS converter supports input, output video formats and devices are as following:
Support input video formats:
HD TS, HD MTS, HD M2TS, MPG, MPEG, MPEG 2, VOB, DAT, MP4, M4V, TS, RM, RMVB, WMV, ASF, MKV, AVI, 3GP, 3G2, FLV, SWF, MPV, MOD, TOD, QT, MOV, DV, DIF, MJPG, MJPEG, HD MPG, HD MPEG,HD MP4, HD WMV, QuickTime HD MOV, HD H.264, HD RM.
Supporting profile formats:
MPEG-4, H.264/MPEG-4 AVC, MOV, M4V, AVI, DivX, XviD, ASF, WMV, MPEG-1, MPEG-2, 3GP, 3GPP, MKV, FLV, SWF, VOB, DV, Super VCD(NTSC, PAL, SECAM), VCD(NTSC, PAL, SECAM) , DVD(NTSC, PAL, SECAM) and HD videos.
More reliable video to audio or audio to audio conversion
Support all popular players:
The converted video or audio files are high compatible with iPod, iPhone, iPhone 3G, Apple TV, PSP, PS3, Wii, Zune, Xbox, Xbox 360, Google Phone, Sony Walkman, Archos, Creative Zen, iRiver, BlackBerry, Palm Pre, Motorola, LG, Sony Ericsson, Mobile Phone, etc.

[Image: support-format.jpg]

See it is very easy to operate,just need few step,then you can get you want.
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode